/* SenTurGo Marketplace — front components. Uses the theme's design tokens when present. */
.stgm-showcase__head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem}
.stgm-showcase__head .stg-section__title{text-align:start;margin:0 0 .25rem}
.stgm-showcase__sub{color:var(--stg-text-muted,#6b7280);margin:0}
.stgm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.25rem}
.stgm-card{display:flex;flex-direction:column;background:var(--stg-surface,#fff);border:1px solid var(--stg-border,#e5e7eb);border-radius:14px;overflow:hidden;transition:box-shadow .2s ease,transform .2s ease}
.stgm-card:hover{box-shadow:0 10px 30px rgba(0,0,0,.08);transform:translateY(-2px)}
.stgm-card__media{position:relative;display:block;aspect-ratio:4/3;background:var(--stg-neutral-100,#f3f4f6)}
.stgm-card__media{background:radial-gradient(ellipse at 50% 40%,var(--stg-bg-card,#fff) 0%,var(--stg-neutral-100,#f3f4f6) 100%)}
.stgm-card__media img{width:100%;height:100%;object-fit:contain;padding:10px;box-sizing:border-box;display:block}
.stgm-card__ph{display:block;width:100%;height:100%;background:linear-gradient(135deg,#f3f4f6,#e5e7eb)}
.stgm-card__body{display:flex;flex-direction:column;gap:.35rem;padding:1rem;flex:1}
.stgm-card__cat{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--stg-primary,#c62828);font-weight:600}
.stgm-card__title{font-size:1rem;line-height:1.35;margin:0}
.stgm-card__title a{color:inherit;text-decoration:none}
.stgm-card__title a:hover{text-decoration:underline}
.stgm-card__supplier{font-size:.875rem;color:var(--stg-text-muted,#6b7280);margin:0}
.stgm-card__price{font-weight:700;margin:.25rem 0 .5rem}
.stgm-card__actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:auto}
.stgm-badge{display:inline-block;font-size:.7rem;font-weight:700;padding:.2rem .5rem;border-radius:999px;line-height:1.2}
.stgm-card__media .stgm-badge{position:absolute;top:.6rem;inset-inline-start:.6rem}
.stgm-badge--sponsored{background:#111827;color:#fff}
.stgm-badge--verified{background:#e8f5e9;color:#1b5e20;margin-inline-start:.25rem}
.stgm-empty{text-align:center;color:var(--stg-text-muted,#6b7280)}
.stgm-notice{padding:.85rem 1rem;border-radius:10px;margin:0 0 1rem;background:#fff8e1;border:1px solid #ffe082}
.stgm-notice--ok{background:#e8f5e9;border-color:#a5d6a7}
.stgm-notice--err{background:#ffebee;border-color:#ef9a9a}
.stgm-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.stgm-plan{border:1px solid var(--stg-border,#e5e7eb);border-radius:14px;padding:1.25rem;display:flex;flex-direction:column;gap:.5rem}
.stgm-plan--current{border-color:var(--stg-primary,#c62828);box-shadow:0 0 0 2px rgba(198,40,40,.12)}
.stgm-plan__price{font-size:1.5rem;font-weight:800}
.stgm-plan ul{margin:.25rem 0 1rem;padding-inline-start:1.1rem}
.stgm-table{width:100%;border-collapse:collapse;font-size:.9rem}
.stgm-table th,.stgm-table td{padding:.6rem .5rem;border-bottom:1px solid var(--stg-border,#e5e7eb);text-align:start;vertical-align:top}
.stgm-form{display:grid;gap:1rem;max-width:760px}
.stgm-form .stgm-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.stgm-form label{display:block;font-weight:600;font-size:.9rem;margin-bottom:.3rem}
.stgm-form input,.stgm-form select,.stgm-form textarea{width:100%;padding:.65rem .75rem;border:1px solid var(--stg-border,#d1d5db);border-radius:10px;font:inherit;background:var(--stg-surface,#fff);color:inherit}
.stgm-form .stgm-hp{position:absolute;left:-9999px}
@media (max-width:640px){.stgm-form .stgm-row{grid-template-columns:1fr}.stgm-card__actions .stg-btn{flex:1;text-align:center}}
/* Messaging */
.stgm-msg-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem}
.stgm-inbox{list-style:none;margin:0;padding:0;border:1px solid var(--stg-border,#e5e7eb);border-radius:14px;overflow:hidden}
.stgm-inbox__item a{display:grid;grid-template-columns:1fr auto;gap:.15rem 1rem;padding:.9rem 1rem;color:inherit;text-decoration:none;border-bottom:1px solid var(--stg-border,#e5e7eb)}
.stgm-inbox__item:last-child a{border-bottom:0}
.stgm-inbox__item a:hover{background:var(--stg-neutral-50,#f9fafb)}
.stgm-inbox__item--unread .stgm-inbox__name,.stgm-inbox__item--unread .stgm-inbox__excerpt{font-weight:700}
.stgm-inbox__subject{grid-column:1;font-size:.85rem;color:var(--stg-primary,#c62828)}
.stgm-inbox__excerpt{grid-column:1;font-size:.9rem;color:var(--stg-text-muted,#6b7280);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stgm-inbox__date{grid-column:2;grid-row:1;font-size:.8rem;color:var(--stg-text-muted,#6b7280)}
.stgm-thread{display:flex;flex-direction:column;gap:.75rem;max-height:60vh;overflow-y:auto;padding:1rem;border:1px solid var(--stg-border,#e5e7eb);border-radius:14px;background:var(--stg-neutral-50,#f9fafb);margin-bottom:1rem}
.stgm-bubble{max-width:78%;align-self:flex-start;background:var(--stg-surface,#fff);border:1px solid var(--stg-border,#e5e7eb);border-radius:14px 14px 14px 4px;padding:.65rem .85rem}
.stgm-bubble--mine{align-self:flex-end;background:var(--stg-primary,#c62828);color:#fff;border-color:transparent;border-radius:14px 14px 4px 14px}
.stgm-bubble--mine a{color:#fff}
.stgm-bubble__meta{font-size:.72rem;opacity:.75;margin-top:.3rem}
.stgm-bubble__img{max-width:240px;max-height:240px;border-radius:8px;display:block;margin-top:.4rem}
.stgm-bubble__file{display:inline-block;margin-top:.4rem}
.stgm-attach{position:relative;display:inline-flex!important;align-items:center;gap:.3rem;margin:0!important;cursor:pointer;font-weight:600!important}
.stgm-attach input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0!important;border:0!important}
.stgm-attach:focus-within{outline:2px solid var(--stg-primary,#c62828);outline-offset:2px}
.stgm-composer__bar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem;border:1px solid var(--stg-border,#e5e7eb);border-radius:12px;background:var(--stg-neutral-50,#f9fafb)}
.stgm-composer__spacer{flex:1 1 auto}
.stgm-composer__kbd{font-size:.78rem;color:var(--stg-text-muted,#6b7280)}
.stgm-composer__send[disabled]{opacity:.7;cursor:wait}
.stgm-composer__hint{margin:0;font-size:.8rem;color:var(--stg-text-muted,#6b7280)}
.stgm-form textarea{resize:vertical;min-height:3.2rem}
@media (max-width:640px){.stgm-composer__kbd{display:none}.stgm-composer__send{flex:1 1 100%}}
.stgm-thread-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;margin-top:.5rem}
@media (max-width:640px){.stgm-bubble{max-width:92%}}
/* Onboarding checklist */
.stgm-onboarding{border:1px solid var(--stg-border,#e5e7eb);border-radius:14px;padding:1.25rem;margin:0 0 1.5rem;background:var(--stg-surface,#fff)}
.stgm-onboarding__bar{height:8px;border-radius:99px;background:var(--stg-neutral-100,#f3f4f6);overflow:hidden;margin:.5rem 0 1rem}
.stgm-onboarding__bar span{display:block;height:100%;background:var(--stg-primary,#c62828)}
.stgm-onboarding ol{margin:0;padding-inline-start:1.25rem;display:grid;gap:.5rem}
.stgm-onboarding li.is-done{color:var(--stg-text-muted,#6b7280);text-decoration:line-through}
.stgm-filter{display:flex;flex-wrap:wrap;gap:.4rem}
.stgm-partner__logo{width:56px;height:56px;border-radius:12px;object-fit:cover;flex:0 0 56px;display:block}

[dir="rtl"] .stgm-bubble{border-radius:14px 14px 4px 14px}
[dir="rtl"] .stgm-bubble--mine{border-radius:14px 14px 14px 4px}
/* Messaging v2: files, quotes, replies */
.stgm-files{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.4rem}
.stgm-file--image img{display:block;max-width:220px;max-height:220px;border-radius:8px;object-fit:cover}
.stgm-file--video{display:block;max-width:320px;width:100%;border-radius:8px;background:#000}
.stgm-file--doc{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .6rem;border-radius:8px;background:rgba(0,0,0,.06);color:inherit;text-decoration:none;max-width:280px}
.stgm-bubble--mine .stgm-file--doc{background:rgba(255,255,255,.18)}
.stgm-file__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stgm-file__size{font-size:.75rem;opacity:.75;flex:0 0 auto}
.stgm-quote{display:flex;flex-direction:column;gap:.1rem;margin-bottom:.4rem;padding:.35rem .6rem;border-inline-start:3px solid var(--stg-primary,#c62828);background:rgba(0,0,0,.05);border-radius:6px;font-size:.82rem;color:inherit;text-decoration:none}
.stgm-bubble--mine .stgm-quote{background:rgba(255,255,255,.18);border-inline-start-color:#fff}
.stgm-quote span{opacity:.85}
.stgm-quote--missing{font-style:italic;opacity:.7}
.stgm-reply-btn{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
.stgm-replying{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.4rem .6rem;border-inline-start:3px solid var(--stg-primary,#c62828);background:var(--stg-neutral-50,#f9fafb);border-radius:6px;font-size:.85rem}
.stgm-replying__cancel{background:none;border:0;font-size:1.2rem;line-height:1;cursor:pointer}
.stgm-attach-list{margin:.25rem 0 0;padding-inline-start:1.1rem;font-size:.85rem}
.stgm-bubble--flash{box-shadow:0 0 0 3px #fbbf24;transition:box-shadow .3s}
/* Translator + voice messages */
.stgm-translate-btn{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
.stgm-translation{margin-top:.4rem;padding:.45rem .6rem;border-radius:8px;background:rgba(0,0,0,.05);font-size:.92rem}
.stgm-bubble--mine .stgm-translation{background:rgba(255,255,255,.18)}
.stgm-translation__text{margin:0 0 .2rem}
.stgm-translation small{opacity:.7}
.stgm-file--audio{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.3rem .4rem;padding:.4rem .6rem;border-radius:8px;background:rgba(0,0,0,.06);min-width:240px}
.stgm-bubble--mine .stgm-file--audio{background:rgba(255,255,255,.18)}
.stgm-file--audio audio{grid-column:1/-1;width:100%;max-width:300px}
.stgm-voice{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.stgm-voice[hidden],.stgm-composer__kbd[hidden],.stgm-translation[hidden],.stgm-replying[hidden]{display:none!important}
.stgm-voice__rec.is-recording{background:#c62828;color:#fff;border-color:#c62828;animation:stgm-pulse 1.2s infinite}
.stgm-voice__preview{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
@keyframes stgm-pulse{50%{opacity:.7}}
@media (prefers-reduced-motion:reduce){.stgm-voice__rec.is-recording{animation:none}}
/* ---- Service partners: tiers, request form, sponsor band, partner leads ---- */
.stgm-badge--official{background:linear-gradient(90deg,#00a651,#e31b23);color:#fff}
.stgm-badge--premium{background:#111827;color:#fbbf24;border:1px solid #fbbf24}
[data-theme="dark"] .stgm-badge--premium{background:transparent}
.stgm-partner__badges{display:flex;flex-wrap:wrap;gap:.35rem;margin:.2rem 0}
.stgm-partner--official{border-color:#e31b23;box-shadow:0 0 0 1px rgba(227,27,35,.25)}
.stgm-partner--premium{border-color:#fbbf24}
.stgm-prq-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1rem;margin:1.25rem 0;padding:1rem 1.25rem;border:1px solid var(--stg-border,#e5e7eb);border-radius:14px;background:linear-gradient(120deg,rgba(0,166,81,.08),rgba(227,27,35,.08)),var(--stg-surface,#fff)}
.stgm-prq-cta div{display:flex;flex-direction:column;gap:.2rem;min-width:0;flex:1 1 280px}
.stgm-prq-cta span{font-size:.9rem;color:var(--stg-text-muted,#6b7280)}
.stgm-prq-kinds{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1rem}
.stgm-sponsor-band{margin:0 0 1.25rem;padding:.85rem 1rem;border:1px solid var(--stg-border,#e5e7eb);border-radius:14px;background:var(--stg-surface,#fff)}
.stgm-sponsor-band__title{margin:0 0 .6rem;font-weight:700;font-size:.9rem}
.stgm-sponsor-band__title small{font-weight:500;color:var(--stg-text-muted,#6b7280)}
.stgm-sponsor-band__list{display:flex;flex-wrap:wrap;gap:.6rem}
.stgm-sponsor-band__item{display:inline-flex;align-items:center;gap:.5rem;padding:.4rem .7rem .4rem .4rem;border:1px solid var(--stg-border,#e5e7eb);border-radius:999px;color:inherit;text-decoration:none;font-weight:600;font-size:.9rem}
.stgm-sponsor-band__item img{width:32px;height:32px;border-radius:50%;object-fit:cover}
.stgm-prq .stgm-row{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.stgm-prq-status{margin:.5rem 0 1rem}
.stgm-prq-lead{margin:1rem 0}
.stgm-prq-lead__kind{margin:0;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--stg-primary,#dc2626)}
.stgm-prq-lead__kind small{text-transform:none;font-weight:500;color:var(--stg-text-muted,#6b7280)}
.stgm-prq-lead__title{margin:.25rem 0 .6rem;font-size:1.1rem;overflow-wrap:anywhere}
.stgm-prq-dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.3rem 1rem;margin:0 0 .75rem;font-size:.92rem}
.stgm-prq-dl dt{color:var(--stg-text-muted,#6b7280)}
.stgm-prq-dl dd{margin:0;overflow-wrap:anywhere}
.stgm-prq-lead__lock{font-size:.9rem;color:var(--stg-text-muted,#6b7280)}
.stgm-prq-lead__actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.stgm-prq-lead__actions form{margin:0}
.stgm-prq-contact{padding:.75rem 1rem;border-radius:10px;background:rgba(0,166,81,.08);border:1px solid rgba(0,166,81,.3)}
.stgm-prq-contact p{margin:.2rem 0}
.stgm-plan--partner{border-color:#fbbf24}
@media (max-width:480px){.stgm-prq-dl{grid-template-columns:1fr}.stgm-prq-dl dd{margin-bottom:.3rem}.stgm-prq-cta .stg-btn{width:100%;text-align:center}}
@media (max-width:640px){.stgm-filter,.stgm-prq-kinds{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:.4rem;padding-bottom:.35rem;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.stgm-filter .stg-btn,.stgm-prq-kinds .stg-btn{flex:0 0 auto;white-space:nowrap}}
/* ---- Partner sign-up, "Devenir partenaire" page, checkbox groups ---- */
.stgm-check{display:inline-flex!important;align-items:center;gap:.45rem;font-weight:500!important;margin:0 1rem .45rem 0!important;cursor:pointer}
.stgm-check input{width:18px!important;height:18px;margin:0;accent-color:var(--stg-primary,#dc2626);flex:0 0 auto}
.stgm-types{border:1px solid var(--stg-border,#e5e7eb);border-radius:12px;padding:.75rem 1rem;margin:0}
.stgm-types legend{font-weight:600;font-size:.9rem;padding:0 .35rem}
.stgm-types__group{display:flex;flex-wrap:wrap;margin:.25rem 0 .5rem}
.stgm-types__group>p{flex:1 1 100%;margin:.25rem 0 .4rem;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--stg-text-muted,#6b7280)}
.stgm-types small{display:block;color:var(--stg-text-muted,#6b7280)}
.stgm-partner-signup{border:1px solid var(--stg-border,#e5e7eb);border-radius:12px;padding:.75rem .9rem;margin:0 0 1rem;background:linear-gradient(120deg,rgba(0,166,81,.06),rgba(227,27,35,.06))}
.stgm-partner-signup__toggle{display:flex!important;gap:.6rem;align-items:flex-start;cursor:pointer;margin:0!important}
.stgm-partner-signup__toggle input{width:20px!important;height:20px;margin-top:2px;accent-color:var(--stg-primary,#dc2626);flex:0 0 auto}
.stgm-partner-signup__toggle span{display:flex;flex-direction:column;gap:.15rem}
.stgm-partner-signup__toggle small{font-weight:400;color:var(--stg-text-muted,#6b7280);font-size:.82rem;line-height:1.35}
.stgm-partner-signup__services{margin-top:.75rem;display:flex;flex-wrap:wrap}
.stgm-partner-signup__services>p{flex:1 1 100%;margin:0 0 .4rem;font-weight:600;font-size:.85rem}
@supports selector(:has(*)){.stgm-partner-signup__services{display:none}.stgm-partner-signup:has(input[name="stgm_partner"]:checked) .stgm-partner-signup__services{display:flex}}
.stgm-become{max-width:980px}
.stgm-become__lead{font-size:1.1rem;line-height:1.6}
.stgm-become__benefits{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin:1.5rem 0 2rem}
.stgm-become__benefit{border:1px solid var(--stg-border,#e5e7eb);border-radius:16px;padding:1.25rem;background:var(--stg-surface,#fff)}
.stgm-become__benefit>span{font-size:1.6rem}
.stgm-become__benefit h3{margin:.5rem 0 .35rem;font-size:1.05rem}
.stgm-become__benefit p{margin:0;color:var(--stg-text-muted,#6b7280);font-size:.92rem;line-height:1.5}
.stgm-become__steps{counter-reset:s;list-style:none;padding:0;margin:1rem 0 2rem;display:grid;gap:.75rem}
.stgm-become__steps li{counter-increment:s;display:flex;gap:.75rem;align-items:flex-start;line-height:1.5}
.stgm-become__steps li::before{content:counter(s);flex:0 0 30px;height:30px;border-radius:50%;background:var(--stg-primary,#dc2626);color:#fff;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.stgm-become__offers .stgm-plan ul{margin:.6rem 0 0;padding-inline-start:1.1rem;font-size:.92rem;line-height:1.6}
.stgm-become__services{display:flex;flex-wrap:wrap;gap:.5rem}
.stgm-become-link{margin:1rem 0;font-size:.92rem;color:var(--stg-text-muted,#6b7280)}
.stgm-become-link a{font-weight:600}
/* ---- Contact details guard ---- */
.stgm-masked-note{margin:.3rem 0 0;font-size:.75rem;opacity:.75}
.stgm-contact-hint{color:var(--stg-text-muted,#6b7280);font-size:.875rem;margin:0 0 .6rem}
.stgm-upsell{border-inline-start:4px solid #fbbf24}
.stgm-upsell a{font-weight:600}
.stgm-compliance-hint{font-size:.85rem;color:var(--stg-text-muted,#6b7280);margin:.5rem 0}
.stgm-compliance-hint a{font-weight:600}
/* Translate button on product / service / business pages */
.stgm-ctr{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .6rem;margin:.35rem 0 .75rem}
.stgm-ctr[hidden]{display:none!important}
.stgm-ctr__btn{display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .75rem;border:1px solid var(--stg-border,#d6d9de);border-radius:999px;background:var(--stg-surface,#fff);color:inherit;font:inherit;font-size:.88rem;cursor:pointer;min-height:34px}
.stgm-ctr__btn:hover,.stgm-ctr__btn:focus-visible{border-color:var(--stg-primary,#0b6b4f)}
.stgm-ctr__note{opacity:.75;font-size:.8rem}
/* Owner translations (dashboard) */
.stgm-ctr--owner{margin:.35rem 0 .75rem;opacity:.85}
.stgm-tr-auto{display:flex;gap:.5rem;align-items:flex-start;margin:.5rem 0}
.stgm-tr-list{list-style:none;margin:1rem 0;padding:0;display:grid;gap:.75rem}
.stgm-tr-item{border:1px solid var(--stg-border,#d6d9de);border-radius:12px;padding:.75rem 1rem;background:var(--stg-surface,#fff);min-width:0}
.stgm-tr-item__head{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}
.stgm-tr-item__head strong{overflow-wrap:anywhere}
.stgm-tr-item__langs{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.6rem}
.stgm-tr-state{display:inline-block;padding:.1rem .5rem;border-radius:999px;font-size:.78rem;background:rgba(0,0,0,.06)}
.stgm-tr-state--auto,.stgm-tr-state--manual{background:rgba(16,140,90,.14);color:var(--stg-success,#0b6b4f)}
.stgm-tr-state--stale{background:rgba(217,140,0,.16);color:var(--stg-warning,#8a5a00)}
.stgm-tr-state--held{background:rgba(200,30,30,.14);color:var(--stg-error,#b42318)}
.stgm-tr-state--orig{background:rgba(30,80,200,.12)}
.stgm-tr-lang{border:1px solid var(--stg-border,#d6d9de);border-radius:12px;padding:.75rem 1rem;margin:0 0 1rem;display:grid;gap:.6rem;min-width:0}
.stgm-tr-lang legend{font-weight:600;padding:0 .35rem}
.stgm-tr-lang input[type=text],.stgm-tr-lang textarea{width:100%;box-sizing:border-box}
.stgm-tr-orig{margin-top:1rem}
