/* ===================== Réseaux sociaux (Pixa, Buzz, Loop, Flame, Shadow, Bazaar) ===================== */

/* --- Commun --- */
.soc-link { color: var(--soc-accent, var(--accent)); cursor: pointer; font-weight: 500; }
.soc-verified svg { width: 14px; height: 14px; fill: #1d9bf0; vertical-align: -2px; margin-left: 3px; }
.avatar.xs { width: 26px; height: 26px; font-size: 11px; }
.avatar.lg { background-size: cover; }
.soc-error { color: var(--red); font-size: 13px; min-height: 16px; text-align: center; }
.soc-editor { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 30px; }
.soc-brand { text-align: center; padding: 6px 0 8px; }
.soc-brand .ic { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 10px; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.soc-brand .ic svg { width: 42px; fill: #fff; }
.soc-brand h2 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.soc-brand p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.soc-avatar-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--soc-accent, var(--accent)); font-size: 14px; font-weight: 600; }
.soc-thumb { width: 42px; height: 42px; border-radius: 6px; background: #ccc center / cover; flex-shrink: 0; }
.soc-notif-txt { font-size: 14px; line-height: 1.35; white-space: normal; }
.soc-dot { position: absolute; top: 8px; right: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* Barre d'onglets en bas */
.soc-tabs { position: absolute; left: 12px; right: 12px; bottom: 18px; z-index: 22; display: flex; justify-content: space-around; padding: 6px 4px;
  background: var(--glass-strong); backdrop-filter: blur(26px) saturate(1.8); border: 1px solid var(--glass-border); border-radius: 26px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.soc-tabs button { position: relative; width: 52px; height: 40px; display: grid; place-items: center; border-radius: 20px; color: var(--muted); }
.soc-tabs button svg { width: 25px; height: 25px; fill: currentColor; }
.soc-tabs button.on { color: var(--text); background: rgba(118,118,128,.14); }
.soc-tabs button.on .avatar { box-shadow: 0 0 0 2px var(--text); }
.soc-tabs .avatar.xs { width: 28px; height: 28px; }
.pixa-app .app-body, .buzz-app .app-body, .flame-app .app-body, .loop-app .app-body { padding-bottom: 96px; }

/* Création de post */
.soc-compose { display: flex; flex-direction: column; gap: 12px; padding: 6px 0 20px; }
.soc-compose textarea { font-size: 16px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); outline: none; resize: none; }
.soc-media-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.soc-media-strip::-webkit-scrollbar { display: none; }
.soc-media-item, .soc-media-add { position: relative; width: 108px; height: 140px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: var(--card); }
.soc-media-item img, .soc-media-item video { width: 100%; height: 100%; object-fit: cover; }
.soc-media-item button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; }
.soc-media-item button svg { width: 14px; fill: #fff; }
.soc-media-add { border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 11px; padding: 8px; text-align: center; }
.soc-media-add svg { width: 26px; fill: currentColor; }

/* Commentaires */
.soc-comments .ui-sheet-body { flex: 1; }
.soc-comment { display: flex; gap: 10px; font-size: 14px; line-height: 1.35; }
.soc-comment .avatar { width: 32px; height: 32px; font-size: 13px; flex-shrink: 0; }
.soc-comment > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.soc-comment-bar { display: flex; gap: 8px; align-items: center; padding: 8px 14px 26px; border-top: 1px solid var(--line); }
.soc-comment-bar input { flex: 1; padding: 10px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--text); outline: 0; font-size: 15px; }

/* Profil */
.soc-profile { padding: 4px 2px 14px; display: flex; flex-direction: column; gap: 8px; }
.soc-prof-top { display: flex; align-items: center; gap: 18px; }
.soc-stats { flex: 1; display: flex; justify-content: space-around; text-align: center; }
.soc-stats div, .loop-counts div { display: flex; flex-direction: column; cursor: pointer; }
.soc-stats b, .loop-counts b { font-size: 18px; }
.soc-stats span, .loop-counts span { font-size: 12px; color: var(--muted); }
.soc-prof-name { font-weight: 700; font-size: 16px; }
.soc-prof-bio { font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.soc-prof-btns .btn { padding: 8px; font-size: 14px; border-radius: 10px; }
.soc-people .row { cursor: pointer; }

/* --- Pixa --- */
.pixa-app { --soc-accent: #14b8a6; }
.pixa-logo { font-size: 28px; font-weight: 800; font-style: italic; letter-spacing: -1px;
  background: linear-gradient(45deg,#f9a134,#14b8a6,#833ab4); -webkit-background-clip: text; color: transparent; }
.soc-btn-pixa, .pixa-app .btn.soc-btn-pixa { background: linear-gradient(90deg,#2dd4bf,#14b8a6 50%,#2563eb); }
.pixa-seg { margin: 0 0 12px; }
.pixa-feed { display: flex; flex-direction: column; gap: 18px; margin: 0 -16px; }
.pixa-feed.wide { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.pixa-feed.wide .pixa-card { border-radius: 18px; overflow: hidden; background: var(--card); padding-bottom: 8px; }
.pixa-card header { display: flex; align-items: center; gap: 8px; padding: 0 14px 8px; font-size: 14px; }
.pixa-card header .avatar { width: 32px; height: 32px; font-size: 13px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #14b8a6; }
.pixa-feed.wide .pixa-card header { padding-top: 10px; }
.pixa-user { font-weight: 700; cursor: pointer; }
.pixa-more { margin-left: auto; }
.pixa-more svg { width: 20px; fill: var(--text); }
.pixa-media { position: relative; aspect-ratio: 1; background: #111; display: flex; overflow: hidden; }
.pixa-media.multi { overflow-x: auto; scroll-snap-type: x mandatory; }
.pixa-media::-webkit-scrollbar { display: none; }
.pixa-media .pixa-img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; scroll-snap-align: start; }
.pixa-count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 10px; }
.pixa-burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.pixa-burst svg { width: 96px; fill: #fff; filter: drop-shadow(0 4px 14px rgba(0,0,0,.4)); }
.pixa-burst.go, .loop-heart.go { animation: burst .8s ease-out; }
@keyframes burst { 0% { opacity: 0; transform: scale(.4); } 15% { opacity: 1; transform: scale(1.15); } 30% { transform: scale(.95); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
.pixa-actions { display: flex; gap: 14px; padding: 10px 14px 4px; }
.pixa-actions svg { width: 26px; fill: var(--text); }
.pixa-actions .on svg { fill: #ed4956; animation: pop .3s; }
@keyframes pop { 50% { transform: scale(1.25); } }
.pixa-likes { font-weight: 700; font-size: 14px; padding: 0 14px; }
.pixa-caption { font-size: 14px; padding: 4px 14px 0; line-height: 1.35; }
.pixa-caption b { cursor: pointer; }
.pixa-viewcom { color: var(--muted); font-size: 14px; padding: 4px 14px 0; text-align: left; }
.pixa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 10px -16px 0; }
.pixa-grid.wide { grid-template-columns: repeat(5, 1fr); }
.pixa-grid > div { position: relative; aspect-ratio: 1; background: #ddd; overflow: hidden; cursor: pointer; }
.pixa-grid img, .pixa-grid video { width: 100%; height: 100%; object-fit: cover; }
.pixa-grid .vid-badge svg { width: 18px; fill: #fff; }
.pixa-tabs .pixa-new svg { width: 28px; padding: 2px; border: 2px solid currentColor; border-radius: 8px; }

/* --- Buzz --- */
.buzz-app { --soc-accent: #1d9bf0; }
.buzz-logo svg { width: 30px; fill: #ffb300; }
.buzz-btn, .buzz-app .btn.soc-btn-buzz, .soc-btn-buzz { background: #0f1419; color: #fff; border-radius: 22px; }
.dark .buzz-btn, .dark .soc-btn-buzz { background: #eff3f4; color: #0f1419; }
.buzz-switch { display: flex; border-bottom: 1px solid var(--line); margin: 0 -16px 2px; }
.buzz-switch button { flex: 1; padding: 12px 0; font-weight: 600; font-size: 15px; color: var(--muted); position: relative; }
.buzz-switch button.on { color: var(--text); }
.buzz-switch button.on::after { content: ""; position: absolute; left: 35%; right: 35%; bottom: -1px; height: 4px; border-radius: 2px; background: #1d9bf0; }
.buzz-list { margin: 0 -16px; }
.buzz-list.wide { display: grid; grid-template-columns: 1fr 1fr; }
.buzz-row { padding: 12px 16px 8px; border-bottom: 1px solid var(--line); cursor: pointer; }
.buzz-row:active { background: rgba(120,120,128,.08); }
.buzz-rt { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 4px 34px; display: flex; align-items: center; gap: 6px; }
.buzz-rt svg { width: 16px; fill: currentColor; }
.buzz-main { display: flex; gap: 10px; }
.buzz-content { flex: 1; min-width: 0; }
.buzz-head { display: flex; align-items: center; gap: 4px; font-size: 15px; white-space: nowrap; overflow: hidden; }
.buzz-head b { cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.buzz-head .r-sub { font-size: 14px; overflow: hidden; text-overflow: ellipsis; margin-left: 2px; }
.buzz-more { margin-left: auto; }
.buzz-more svg { width: 18px; fill: var(--muted); }
.buzz-text { font-size: 15px; line-height: 1.38; white-space: pre-wrap; word-wrap: break-word; margin-top: 2px; }
.buzz-media { margin-top: 8px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); max-height: 300px; }
.buzz-media img, .buzz-media video { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.buzz-actions { display: flex; justify-content: space-between; max-width: 300px; margin-top: 6px; }
.buzz-actions button { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; padding: 4px 6px 4px 0; }
.buzz-actions svg { width: 18px; fill: currentColor; }
.buzz-actions .on { color: #f91880; }
.buzz-actions .on-rt { color: #00ba7c; }
.buzz-focus .buzz-text { font-size: 18px; }
.buzz-reply-bar { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--line); cursor: pointer; }
.buzz-reply-bar .avatar { width: 34px; height: 34px; font-size: 13px; }
.buzz-sub { font-size: 18px; font-weight: 800; padding: 14px 0 6px; }
.buzz-compose { display: flex; gap: 12px; padding-top: 6px; }
.buzz-compose-main { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.buzz-compose textarea { border: 0; background: transparent; font-size: 19px; color: var(--text); outline: 0; resize: none; }
.buzz-compose-bar { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.buzz-compose-bar .link svg { width: 24px; fill: #1d9bf0; }
.buzz-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.buzz-count.warn { color: var(--red); font-weight: 700; }
.buzz-compose-bar .btn { padding: 8px 18px; border-radius: 20px; background: #1d9bf0; color: #fff; }
.buzz-compose-bar .btn:disabled { opacity: .45; }
.buzz-banner { height: 100px; margin: 0 -16px; background: linear-gradient(120deg,#ffd60a,#ff9f0a 50%,#1d9bf0); }
.buzz-prof-top { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -40px; }
.buzz-prof-top .avatar.lg { box-shadow: 0 0 0 4px var(--bg); }
.buzz-prof-top .btn { padding: 7px 16px; font-size: 14px; border-radius: 18px; }
.buzz-counts { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.buzz-counts b { color: var(--text); }
.buzz-counts span { cursor: pointer; }
.buzz-fab { background: #1d9bf0; bottom: 92px; box-shadow: 0 8px 20px rgba(29,155,240,.45); }

/* --- Loop (toujours sombre) --- */
.loop-app { --bg: #000; --text: #fff; --muted: #a0a0a8; --card: rgba(255,255,255,.08); --line: rgba(255,255,255,.12); --soc-accent: #f59e0b; background: #000; color: #fff; padding-top: 0 !important; }
.loop-app.dark-ui { padding-top: 54px !important; }
.loop-top { position: absolute; top: 50px; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.loop-top b { font-size: 17px; }
.loop-top svg { width: 24px; fill: #fff; }
.loop-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; }
.loop-feed::-webkit-scrollbar { display: none; }
.loop-item { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: #000; overflow: hidden; }
.loop-feed.wide .loop-item video { object-fit: contain; }
.loop-item video { width: 100%; height: 100%; object-fit: cover; }
.loop-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 18%, transparent 60%, rgba(0,0,0,.6) 100%); }
.loop-rail { position: absolute; right: 10px; bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loop-rail button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.loop-rail svg { width: 32px; fill: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.loop-rail .on svg { fill: #f59e0b; }
.loop-av .avatar { width: 46px; height: 46px; box-shadow: 0 0 0 2px #fff; }
.loop-info { position: absolute; left: 14px; right: 80px; bottom: 100px; font-size: 14px; line-height: 1.35; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.loop-info b { font-size: 16px; cursor: pointer; }
.loop-heart { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.loop-heart svg { width: 110px; fill: #f59e0b; }
.loop-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #888; }
.loop-empty svg { width: 54px; fill: #555; }
.loop-tabs { background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.12); }
.loop-tabs button { color: #aaa; }
.loop-tabs button.on { color: #fff; background: rgba(255,255,255,.12); }
.loop-tabs .loop-new svg { width: 34px; height: 24px; background: #fff; fill: #000; border-radius: 7px; box-shadow: -3px 0 0 #a855f7, 3px 0 0 #f59e0b; }
.loop-btn { background: #f59e0b; }
.loop-prof { align-items: center; text-align: center; }
.loop-counts { display: flex; gap: 26px; margin: 4px 0 6px; }
.loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 12px -16px 0; }
.loop-grid.wide { grid-template-columns: repeat(5, 1fr); }
.loop-grid > div { position: relative; aspect-ratio: 3/4; background: #111; cursor: pointer; overflow: hidden; }
.loop-grid video { width: 100%; height: 100%; object-fit: cover; }
.loop-grid span { position: absolute; left: 6px; bottom: 5px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 3px; }
.loop-grid span svg { width: 13px; fill: #fff; }
.loop-pick { aspect-ratio: 9/14; width: 60%; align-self: center; border-radius: 16px; border: 2px dashed rgba(255,255,255,.3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #bbb; overflow: hidden; }
.loop-pick svg { width: 34px; fill: currentColor; }
.loop-pick video { width: 100%; height: 100%; object-fit: cover; }
.loop-app .soc-compose textarea { background: rgba(255,255,255,.08); color: #fff; }

/* --- Flame --- */
.flame-app { --soc-accent: #e11d48; }
.flame-btn { background: linear-gradient(90deg,#fb7185,#be123c 60%,#7c3aed); }
.flame-top { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 0; font-size: 24px; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(90deg,#fb7185,#be123c 60%,#7c3aed); -webkit-background-clip: text; color: transparent; }
.flame-top svg { width: 26px; fill: #fd5068; }
.flame-deck { position: relative; flex: 1; margin: 8px 14px 0; }
.flame-deck.wide { margin: 8px auto 0; width: 420px; }
.flame-card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: #222; box-shadow: 0 10px 30px rgba(0,0,0,.25); touch-action: none; user-select: none; cursor: grab; }
.flame-card.preview { position: relative; height: 470px; cursor: default; }
.fc-photos, .fc-ph { position: absolute; inset: 0; }
.fc-ph { background: center / cover; opacity: 0; transition: opacity .2s; }
.fc-ph.on { opacity: 1; }
.fc-bars { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; gap: 4px; }
.fc-bars i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4); }
.fc-bars i.on { background: #fff; }
.fc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 18px 18px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.85)); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.fc-info h3 { font-size: 28px; font-weight: 800; }
.fc-info h3 span { font-weight: 400; }
.fc-info p { font-size: 14px; line-height: 1.35; opacity: .92; }
.fc-info .chip { align-self: flex-start; background: rgba(255,255,255,.22); color: #fff; }
.fc-stamp { position: absolute; top: 40px; padding: 4px 12px; border: 4px solid; border-radius: 8px; font-size: 32px; font-weight: 900; opacity: 0; letter-spacing: 2px; }
.fc-stamp.like { left: 22px; color: #3ddc84; transform: rotate(-18deg); }
.fc-stamp.nope { right: 22px; color: #ff4458; transform: rotate(18deg); }
.flame-btns { display: flex; justify-content: center; gap: 30px; padding: 14px 0 96px; }
.flame-btns button { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: 0 6px 18px rgba(0,0,0,.15); transition: transform .15s; }
.flame-btns button:active { transform: scale(.9); }
.flame-btns svg { width: 30px; }
.fl-no svg { fill: #ff4458; }
.fl-yes svg { fill: #3ddc84; }
.flame-app > .flame-deck { display: flex; }
.flame-app { display: flex; flex-direction: column; }
.flame-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); text-align: center; padding: 30px; }
.flame-empty svg { width: 60px; fill: #fd5068; opacity: .5; }
.flame-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.flame-photos .fp { position: relative; aspect-ratio: 3/4; border-radius: 12px; background: #ddd center / cover; }
.flame-photos .fp.empty { background: var(--card); border: 2px dashed var(--line); display: grid; place-items: center; }
.flame-photos .fp.empty svg { width: 26px; fill: #fd5068; }
.flame-photos .fp button { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); display: grid; place-items: center; }
.flame-photos .fp button svg { width: 14px; fill: #fd5068; }
.flame-match { position: absolute; inset: 0; z-index: 95; background: rgba(10,4,8,.9); backdrop-filter: blur(18px); display: flex; align-items: center; justify-content: center; animation: fadeIn .3s; }
.fm-inner { width: 80%; text-align: center; color: #fff; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fm-inner .btn.secondary { color: #fff; background: rgba(255,255,255,.16); }
.fm-inner h2 { font-size: 40px; font-weight: 900; font-style: italic; letter-spacing: -1.5px; line-height: 1.05; background: linear-gradient(90deg,#fb7185,#be123c 60%,#7c3aed); -webkit-background-clip: text; color: transparent; animation: pop .6s; }
.fm-photo { width: 140px; height: 140px; border-radius: 50%; background: center / cover; box-shadow: 0 0 0 4px #fff; margin: 10px 0; }
.flame-new { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 14px; }
.flame-new button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.fm-av { width: 74px; height: 96px; border-radius: 12px; background: center / cover; box-shadow: 0 0 0 2px #fd5068; }
.flame-chat .app-body { display: flex; flex-direction: column; padding-bottom: 10px; }
.flame-chat-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 10px; }
.flame-chat .bubble.me { background: linear-gradient(90deg,#fb7185,#be123c 60%,#7c3aed); }
.flame-send { background: #e11d48; }
.flame-tabs button.on { color: #e11d48; }

/* --- Shadow (toujours sombre, style terminal) --- */
.shadow-app { --bg: #070807; --text: #d6f5d6; --muted: #6f8f6f; --card: rgba(80,255,120,.05); --line: rgba(80,255,120,.12); --accent: #39ff88; --soc-accent: #39ff88;
  background: radial-gradient(circle at 50% -20%, #0f2a16, #070807 60%); color: var(--text); font-family: 'SF Mono', 'Consolas', ui-monospace, monospace; }
.shadow-app .app-title { font-family: 'SF Mono', 'Consolas', monospace; color: #39ff88; text-shadow: 0 0 12px rgba(57,255,136,.4); }
.shadow-intro { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.shadow-intro svg, .sh-lock { width: 13px; fill: currentColor; }
.shadow-list { display: flex; flex-direction: column; gap: 8px; }
.shadow-list.wide { display: grid; grid-template-columns: 1fr 1fr; }
.shadow-room { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; color: var(--text); }
.shadow-room:hover { border-color: rgba(57,255,136,.4); }
.sh-hash { font-size: 22px; color: #39ff88; }
.shadow-room .r-main { flex: 1; min-width: 0; }
.shadow-room .r-meta { font-size: 11px; color: var(--muted); }
.shadow-room .r-title { font-family: inherit; display: flex; align-items: center; gap: 6px; }
.shadow-me { font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0 10px; border-bottom: 1px dashed var(--line); margin-bottom: 10px; }
.shadow-chat .app-body { padding-bottom: 10px; }
.shadow-msgs { display: flex; flex-direction: column; gap: 10px; }
.sh-msg { font-size: 14px; line-height: 1.4; padding: 8px 10px; border-left: 2px solid var(--line); background: rgba(255,255,255,.02); border-radius: 0 8px 8px 0; }
.sh-msg.mine { border-left-color: #39ff88; background: rgba(57,255,136,.06); }
.sh-alias { font-weight: 700; font-size: 13px; margin-right: 8px; }
.sh-time { font-size: 11px; color: var(--muted); }
.shadow-bar input { background: rgba(255,255,255,.04) !important; color: #d6f5d6; border-color: var(--line) !important; font-family: inherit; }
.shadow-bar .send-btn { background: #39ff88; }
.shadow-bar .send-btn svg { fill: #041; }
.shadow-app .ui-back svg, .shadow-app .ui-act svg { fill: #39ff88; }

/* --- Bazaar --- */
.bazaar-app { --soc-accent: #0f9d58; }
.bz-btn { background: #0f9d58; }
.bz-cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; }
.bz-cats::-webkit-scrollbar { display: none; }
.bz-cats button { flex-shrink: 0; padding: 7px 14px; border-radius: 18px; background: rgba(118,118,128,.14); font-size: 14px; font-weight: 600; }
.bz-cats button.on { background: #0f9d58; color: #fff; }
.bz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bz-grid.wide { grid-template-columns: repeat(4, 1fr); }
.bz-card { text-align: left; display: flex; flex-direction: column; gap: 2px; }
.bz-ph { position: relative; aspect-ratio: 1; border-radius: 14px; background: var(--card) center / cover; display: grid; place-items: center; margin-bottom: 6px; overflow: hidden; }
.bz-ph svg { width: 40px; fill: var(--muted); opacity: .4; }
.bz-sold { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.bz-price { font-weight: 800; font-size: 16px; }
.bz-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-card .r-sub { font-size: 12px; }
.bz-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; aspect-ratio: 4/3; background: #111; }
.bz-gallery img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; scroll-snap-align: start; }
.bz-noph { width: 100%; display: grid; place-items: center; }
.bz-noph svg { width: 60px; fill: #555; }
.bz-detail { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 20px; }
.bz-detail h2 { font-size: 21px; }
.bz-detail p { font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.bz-big-price { font-size: 26px; font-weight: 800; color: #0f9d58; display: flex; align-items: center; gap: 8px; }
.bz-detail .btn { gap: 8px; }
