/* مجازية — Majazia */
:root {
  --bg: #050b08;
  --surface: #0c1511;
  --surface-2: #121e18;
  --border: #1c2a23;
  --text: #eef3ef;
  --muted: #8a9e94;
  --primary: #19915a;
  --primary-2: #147a4b;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, .14);
  --blue: #1d9bf0;
  --danger: #e5484d;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Arabic", "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 60px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; }
body { min-height: 100vh; overscroll-behavior-y: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.i.fill { fill: currentColor; stroke: none; }

/* ---------- أزرار وحقول ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 700; transition: transform .12s, opacity .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); }
.btn.gold { background: var(--gold); color: #1a1405; }
.btn.ghost { border: 1px solid var(--border); background: var(--surface); }
.btn.danger { background: rgba(229, 72, 77, .14); color: #ff8b8f; border: 1px solid rgba(229, 72, 77, .35); }
.btn.block { width: 100%; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.icon-btn:hover { background: var(--surface-2); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input, textarea.input, select.input { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; outline: none; transition: border .2s; }
.input:focus { border-color: var(--primary); }
textarea.input { min-height: 96px; resize: vertical; }
.input.ltr { direction: ltr; text-align: start; }
[dir=rtl] .input.ltr { text-align: right; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; margin: 10px 0 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); margin: 1px 0 0; flex-shrink: 0; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg button { height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.seg button.on { border-color: var(--primary); background: rgba(31, 164, 99, .15); color: #7fe0ae; font-weight: 700; }
.error-box { background: rgba(229, 72, 77, .12); border: 1px solid rgba(229, 72, 77, .35); color: #ffb3b5; padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }

/* ---------- البداية: اللغة وتسجيل الدخول ---------- */
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px calc(32px + var(--safe-b));
  background: radial-gradient(120% 70% at 50% 0%, #0f3a26 0%, #071a11 45%, var(--bg) 100%); }
.gate-logo { width: 190px; margin-bottom: 6px; }
.gate-tag { color: #b7c9bf; font-size: 14px; margin: 0 0 28px; text-align: center; }
.card { width: 100%; max-width: 420px; background: rgba(12, 21, 17, .92); border: 1px solid var(--border); border-radius: 24px; padding: 26px 22px; backdrop-filter: blur(10px); }
.card h2 { margin: 0 0 6px; font-size: 22px; }
.card p.sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.lang-list { display: grid; gap: 10px; }
.lang-btn { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); font-size: 17px; font-weight: 700; }
.lang-btn:hover { border-color: var(--primary); }
.lang-btn small { color: var(--muted); font-weight: 400; font-size: 13px; }
.switch-line { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.switch-line button { color: var(--gold); font-weight: 700; }
.privacy { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #9fb4a9; background: rgba(31, 164, 99, .08); border: 1px solid rgba(31, 164, 99, .2); padding: 10px 12px; border-radius: 12px; margin-bottom: 16px; }
.keybox { direction: ltr; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(15px, 4.4vw, 19px); letter-spacing: .5px; text-align: center; padding: 18px 8px; border-radius: 14px; background: var(--gold-soft); border: 1px dashed var(--gold); color: #f3d77a; margin: 16px 0; user-select: all; word-break: break-all; }
.lang-mini { position: fixed; top: 14px; inset-inline-end: 14px; display: flex; gap: 4px; background: rgba(0,0,0,.35); border: 1px solid var(--border); border-radius: 999px; padding: 4px; z-index: 5; }
.lang-mini button { padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--muted); }
.lang-mini button.on { background: var(--primary); color: #fff; }

/* ---------- هيكل التطبيق ---------- */
.app { display: flex; justify-content: center; min-height: 100vh; }
.side { width: 250px; padding: 14px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; border-inline-end: 1px solid var(--border); }
.side .logo { width: 120px; margin: 6px 10px 18px; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 999px; font-size: 17px; position: relative; }
.nav-item:hover { background: var(--surface-2); }
.nav-item.on { font-weight: 800; }
.nav-item.on svg { stroke-width: 2.5; }
.side .publish-big { margin-top: 12px; }
.side .me-mini { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 999px; }
.side .me-mini:hover { background: var(--surface-2); }
.main { width: 100%; max-width: 620px; min-height: 100vh; border-inline-end: 1px solid var(--border); padding-bottom: calc(var(--nav-h) + var(--safe-b) + 10px); }
.aside { width: 340px; padding: 12px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(5, 11, 8, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 12px; }
.topbar-row .logo { height: 34px; width: auto; }
.topbar-row h1 { font-size: 19px; margin: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 34px; padding: 0 15px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; color: #c8d6cf; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.bottom-nav { position: fixed; bottom: 0; inset-inline: 0; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: none; background: rgba(5, 11, 8, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); z-index: 30; }
.bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; color: var(--muted); position: relative; }
.bottom-nav .on { color: var(--text); }
.bottom-nav .on svg { stroke-width: 2.5; }
.bottom-nav .plus { width: 46px; height: 34px; border-radius: 12px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.dot { position: absolute; top: 4px; inset-inline-end: calc(50% - 20px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-item .dot { position: static; margin-inline-start: auto; }
@media (max-width: 1180px) { .aside { display: none; } }
@media (max-width: 899px) {
  .side { display: none; }
  .main { border: 0; }
  .bottom-nav { display: flex; }
}

/* ---------- قسم الريلز (أعلى الرئيسية) ---------- */
.section-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; }
.section-h h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.section-h a, .section-h button { font-size: 13px; color: var(--gold); }
.reel-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 14px 14px; scroll-snap-type: x mandatory; scroll-padding-inline: 14px; scrollbar-width: none; }
.reel-strip::-webkit-scrollbar { display: none; }
.reel-card { position: relative; flex-shrink: 0; width: 132px; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; background: var(--surface-2); scroll-snap-align: start; border: 1px solid var(--border); }
.reel-card img { width: 100%; height: 100%; object-fit: cover; }
.reel-card .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); background: linear-gradient(160deg, #10241a, #070d0a); }
.reel-card .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 55%); }
.reel-card .meta { position: absolute; bottom: 8px; inset-inline: 8px; font-size: 12.5px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-card .dur { position: absolute; top: 7px; left: 7px; background: rgba(0,0,0,.6); font-size: 11px; padding: 1px 7px; border-radius: 6px; unicode-bidi: isolate; }
.reel-card.gold-card { border: 1.5px solid var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.12); }
.reel-card .top-tag { position: absolute; top: 7px; right: 7px; background: var(--gold); color: #1a1405; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 6px; }
.reel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0 0 10px; }
.reel-grid .reel-card { width: auto; border-radius: 4px; border: 0; }
.divider { height: 8px; background: #0a120e; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- المنشورات (مثل إكس) ---------- */
.post { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.post:hover { background: rgba(255,255,255,.015); }
.post.gold-post { background: linear-gradient(180deg, rgba(212,175,55,.06), transparent 70%); }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #fff; text-transform: uppercase; }
.avatar.lg { width: 84px; height: 84px; font-size: 34px; border: 4px solid var(--bg); }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.post-body { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; min-width: 0; font-size: 14.5px; }
.post-head .nm { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.post-head .un, .post-head .tm { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-head .un { direction: ltr; unicode-bidi: isolate; }
.post-head .nm, .post-head .tm, .post-head .badge { flex-shrink: 0; }
.post-head .un { min-width: 0; }
.post-head .more { margin-inline-start: auto; color: var(--muted); }
.badge { display: inline-flex; width: 17px; height: 17px; flex-shrink: 0; }
.badge svg { width: 100%; height: 100%; }
.post-cat { display: inline-block; font-size: 12px; color: #9bd8b8; background: rgba(31,164,99,.1); padding: 1px 9px; border-radius: 999px; margin: 3px 0 2px; }
.post-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; margin: 4px 0 8px; font-size: 15.5px; }
.post-text[dir] { unicode-bidi: plaintext; }
.trans-link { font-size: 13px; color: var(--blue); margin-bottom: 8px; display: inline-block; }
.imgs { display: grid; gap: 3px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 8px; }
.imgs.n1 { grid-template-columns: 1fr; }
.imgs.n2, .imgs.n4 { grid-template-columns: 1fr 1fr; }
.imgs.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.imgs.n3 img:first-child { grid-row: span 2; }
.imgs img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/11; background: var(--surface-2); }
.imgs.n1 img { aspect-ratio: auto; max-height: 520px; }
.imgs.n3 img:first-child { aspect-ratio: auto; }
.actions { display: flex; justify-content: space-between; max-width: 420px; color: var(--muted); margin-inline-start: -8px; }
.act { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 999px; font-size: 13px; }
.act svg { width: 19px; height: 19px; }
.act:hover { color: var(--text); background: var(--surface-2); }
.act.liked { color: #f4587a; }
.act.liked svg { fill: currentColor; }
.act.dl { color: #7fe0ae; }

/* ---------- عارض الريلز (سحب للأعلى والأسفل) ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; background: #000; }
.viewer-scroll { height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.viewer-scroll::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
.slide video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.slide .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(24px) brightness(.45); transform: scale(1.1); }
.slide .tap { position: absolute; inset: 0 0 120px 0; }
.slide .paused { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity .2s; }
.slide.is-paused .paused { opacity: 1; }
.slide .paused svg { width: 34px; height: 34px; color: #fff; }
.viewer-top { position: absolute; top: 0; inset-inline: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 10px; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); pointer-events: none; }
.viewer-top > * { pointer-events: auto; }
.viewer-top .icon-btn { color: #fff; background: rgba(0,0,0,.3); }
.viewer-top .cc.on { background: rgba(255,255,255,.9); color: #000; }
.side-acts { position: absolute; inset-inline-end: 8px; bottom: calc(110px + var(--safe-b)); display: flex; flex-direction: column; gap: 16px; align-items: center; z-index: 4; }
.side-acts button { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.side-acts button .circle { width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.32); display: flex; align-items: center; justify-content: center; }
.side-acts svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.side-acts .liked svg { fill: #f4587a; stroke: #f4587a; }
.side-acts .dl .circle { background: rgba(31,164,99,.55); }
.reel-info { position: absolute; bottom: 0; inset-inline: 0; padding: 60px 74px calc(26px + var(--safe-b)) 14px; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); z-index: 3; }
[dir=rtl] .reel-info { padding: 60px 14px calc(26px + var(--safe-b)) 74px; }
.reel-info .who { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 6px; }
.reel-info .ttl { font-weight: 700; font-size: 15px; margin: 0 0 3px; }
.reel-info .desc { font-size: 13.5px; color: #dfe7e2; max-height: 3.1em; overflow: hidden; margin: 0; white-space: pre-wrap; }
.reel-info .desc.open { max-height: 40vh; overflow-y: auto; }
.reel-info .cat { font-size: 12px; color: #9bd8b8; margin-top: 6px; display: inline-block; }
.subline { position: absolute; inset-inline: 14px; bottom: calc(170px + var(--safe-b)); z-index: 4; text-align: center; pointer-events: none; }
.subline span { display: inline; background: rgba(0,0,0,.72); color: #fff; font-size: 17px; font-weight: 600; line-height: 1.65; padding: 3px 9px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; white-space: pre-wrap; unicode-bidi: plaintext; }
.scrub { position: absolute; bottom: calc(8px + var(--safe-b)); inset-inline: 12px; z-index: 6; display: flex; align-items: center; gap: 8px; direction: ltr; }
.scrub input { flex: 1; accent-color: var(--primary); height: 18px; }
.scrub .t { font-size: 11px; color: #ddd; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; min-width: 74px; text-align: right; }
.viewer-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,.6); padding: 10px 18px; border-radius: 999px; z-index: 8; font-size: 14px; pointer-events: none; animation: fadeout 2.4s forwards; }
@keyframes fadeout { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@media (min-width: 900px) {
  .slide video { width: auto; max-width: min(100%, calc(100vh * 9 / 16 * 1.6)); }
  .reel-info { inset-inline: max(0px, calc(50% - 50vh * 9 / 16 - 90px)); }
  .side-acts { inset-inline-end: max(8px, calc(50% - 50vh * 9 / 16 - 80px)); }
  .scrub { inset-inline: max(12px, calc(50% - 50vh * 9 / 16 - 80px)); }
}

/* ---------- النوافذ السفلية ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: fadein .15s; }
@keyframes fadein { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: 86vh; background: var(--surface); border: 1px solid var(--border); border-bottom: 0; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .2s ease-out; padding-bottom: var(--safe-b); }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
@media (min-width: 900px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; border-bottom: 1px solid var(--border); } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.sheet-h h3 { margin: 0; font-size: 17px; }
.sheet-b { padding: 14px 16px; overflow-y: auto; }
.sheet-f { padding: 10px 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: flex-end; }
.sheet-f textarea { min-height: 44px; max-height: 120px; flex: 1; border-radius: 22px; padding: 11px 16px; }
.opt { display: flex; gap: 14px; align-items: center; width: 100%; text-align: start; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 10px; }
.opt:hover { border-color: var(--primary); }
.opt .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(31,164,99,.15); color: #7fe0ae; flex-shrink: 0; }
.opt.goldopt .ic { background: var(--gold-soft); color: var(--gold); }
.opt b { display: block; }
.opt small { color: var(--muted); font-size: 12.5px; }
.radio-list label { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.radio-list input { accent-color: var(--primary); width: 18px; height: 18px; }
.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment .cb { flex: 1; min-width: 0; }
.comment .ch { font-size: 13.5px; display: flex; gap: 4px; align-items: center; }
.comment .ct { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; unicode-bidi: plaintext; }
.comment .cx { font-size: 12px; color: var(--muted); display: flex; gap: 12px; margin-top: 2px; }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), #4fd18f); transition: width .25s; }

/* ---------- الشات الجانبي الصغير ---------- */
.chat-panel { position: fixed; bottom: 16px; inset-inline-end: 16px; width: 340px; height: 470px; max-height: calc(100vh - 32px); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.55); display: flex; flex-direction: column; z-index: 70; overflow: hidden; animation: up .18s ease-out; }
@media (max-width: 899px) { .chat-panel { inset: auto 0 0 0; width: 100%; height: 78vh; border-radius: 22px 22px 0 0; padding-bottom: var(--safe-b); } }
.chat-h { display: flex; align-items: center; gap: 8px; padding: 10px 10px; border-bottom: 1px solid var(--border); min-height: 54px; }
.chat-h b { flex: 1; display: flex; align-items: center; gap: 5px; min-width: 0; }
.chat-list { flex: 1; overflow-y: auto; }
.thread { display: flex; gap: 10px; align-items: center; padding: 10px 12px; width: 100%; text-align: start; border-bottom: 1px solid var(--border); }
.thread:hover { background: var(--surface-2); }
.thread .tb { flex: 1; min-width: 0; }
.thread .tn { font-weight: 700; display: flex; gap: 4px; align-items: center; }
.thread .tl { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .ub { background: var(--primary); color: #fff; font-size: 11px; border-radius: 9px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 16px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); align-self: flex-start; unicode-bidi: plaintext; }
.msg.mine { background: var(--primary); color: #fff; align-self: flex-end; }
.msg .mt { display: block; font-size: 10.5px; opacity: .65; margin-top: 2px; }
.chat-f { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--border); }
.chat-f input { flex: 1; border-radius: 999px; padding: 10px 14px; }
.chat-f .icon-btn { background: var(--primary); color: #fff; }
.aside-box { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.aside-box h4 { margin: 0 0 10px; font-size: 16px; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search-wrap .input { padding-inline-start: 42px; border-radius: 999px; height: 44px; }

/* ---------- الحساب ---------- */
.cover { height: 130px; background: linear-gradient(135deg, #0f3a26, #06140d 60%, #1b1606); position: relative; }
.cover img { position: absolute; inset-inline-end: 14px; bottom: 10px; height: 44px; opacity: .35; }
.prof { padding: 0 16px 12px; }
.prof-top { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -42px; position: relative; z-index: 2; }
.prof h2 { margin: 8px 0 0; font-size: 21px; display: flex; align-items: center; gap: 6px; }
.prof .un { color: var(--muted); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.prof .bio { margin: 10px 0; white-space: pre-wrap; unicode-bidi: plaintext; }
.prof .stats { display: flex; gap: 16px; color: var(--muted); font-size: 14px; }
.prof .stats b { color: var(--text); }
.tabs { display: flex; border-bottom: 1px solid var(--border); position: sticky; top: 54px; background: rgba(5,11,8,.9); backdrop-filter: blur(10px); z-index: 10; }
.tabs button { flex: 1; height: 50px; color: var(--muted); font-weight: 700; position: relative; }
.tabs button.on { color: var(--text); }
.tabs button.on::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 56px; height: 4px; border-radius: 4px; background: var(--primary); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); width: 100%; text-align: start; }
.list-item:hover { background: var(--surface-2); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item small { display: block; color: var(--muted); }
[dir=rtl] .list-item small[dir=ltr] { text-align: right; }
.status-pill { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.status-pill.pending { background: rgba(212,175,55,.15); color: var(--gold); }
.status-pill.approved { background: rgba(31,164,99,.15); color: #7fe0ae; }
.status-pill.rejected { background: rgba(229,72,77,.15); color: #ff8b8f; }
.panel { padding: 16px; }
.publish-banner { margin: 14px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(31,164,99,.18), rgba(212,175,55,.1)); border: 1px solid rgba(31,164,99,.35); display: flex; gap: 12px; align-items: center; }
.publish-banner .grow { flex: 1; }
.publish-banner b { display: block; }
.publish-banner small { color: #b9cbc1; }

/* ---------- النشر ---------- */
.drop { border: 1.5px dashed #2c4337; border-radius: 18px; padding: 28px 16px; text-align: center; background: var(--surface); cursor: pointer; display: block; }
.drop:hover { border-color: var(--primary); }
.drop svg { width: 40px; height: 40px; color: var(--primary); margin: 0 auto 8px; }
.vid-prev { position: relative; border-radius: 16px; overflow: hidden; background: #000; max-height: 360px; display: flex; justify-content: center; }
.vid-prev video { max-height: 360px; }
.img-prev { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.img-prev div { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-prev button { position: absolute; top: 4px; inset-inline-end: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 14px; }

/* ---------- عام ---------- */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty svg { width: 52px; height: 52px; margin: 0 auto 12px; color: #3c5248; }
.empty h4 { color: var(--text); margin: 0 0 4px; font-size: 17px; }
.spinner { width: 30px; height: 30px; border: 3px solid #1f3329; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-wrap { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 28px); max-width: 420px; }
.toast { background: #e8efe9; color: #0b130f; padding: 11px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: up .2s; text-align: center; }
.toast.err { background: #ffdfe0; color: #5a0d10; }
.loadmore { height: 1px; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- مراجعة التصميم: إصلاحات صغيرة (اتجاه النص، إمكانية الوصول، مساحات اللمس) ---------- */
/* عناوين الريلز تتبع اتجاه لغتها: عنوان عربي داخل واجهة إنجليزية/فرنسية لا تنقلب علامات ترقيمه */
.reel-card .meta, .reel-info .ttl, .reel-info .desc { unicode-bidi: plaintext; }
/* حلقة تركيز واضحة لمستخدمي لوحة المفاتيح فقط */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.input:focus-visible { outline: none; }
/* مساحات لمس أكبر قليلاً (كانت ~26–31px) */
.lang-mini button { min-height: 32px; min-width: 38px; }
.act { min-height: 38px; }
/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .spinner { animation-duration: 1.2s !important; animation-iteration-count: infinite !important; } }

/* ---------- الأجزاء (جزء 1، جزء 2…) ---------- */
.reel-card .part-tag { position: absolute; bottom: 46px; inset-inline-start: 8px; background: rgba(212,175,55,.92); color: #1a1405; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 6px; }
.part-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.part-badge { background: var(--gold); color: #1a1405; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.part-next { background: rgba(255,255,255,.14); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.part-next:hover { background: rgba(255,255,255,.24); }
.parts-pin { border: 1px solid rgba(212,175,55,.4); background: var(--gold-soft); border-radius: 14px; padding: 10px; margin-bottom: 12px; }
.parts-h { display: flex; gap: 6px; align-items: center; color: var(--gold); font-size: 14px; margin-bottom: 8px; }
.parts-h svg { width: 18px; height: 18px; }
.parts-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.parts-row::-webkit-scrollbar { display: none; }
.part-chip { flex-shrink: 0; display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 6px; max-width: 220px; text-align: start; }
.part-chip.on { border-color: var(--gold); }
.part-chip img, .part-chip .ph { width: 34px; height: 54px; object-fit: cover; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #10241a; flex-shrink: 0; }
.part-chip b { display: block; font-size: 13px; }
.part-chip small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }

/* ================= إضافات: صور الحساب، الروابط، الخط الإخباري، الصوتيات، الهاشتاقات ================= */
.avatar.has-img { background: var(--surface-2); overflow: hidden; padding: 0; }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.has-img { height: 160px; }
.cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.top-strip { padding: 0 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.link-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.link-row::-webkit-scrollbar { display: none; }
.link-ic { flex-shrink: 0; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: #dce8e1; font-size: 13px; }
[dir=rtl] .link-ic { padding: 0 4px 0 12px; }
.link-ic:not(:has(small)) { padding: 0 3px; }
.link-ic span, .link-ic img { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; overflow: hidden; object-fit: cover; }
.link-ic svg { width: 28px; height: 28px; }
.news-bar { display: flex; align-items: center; gap: 8px; height: 32px; border-radius: 10px; background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.25); overflow: hidden; }
.news-tag { flex-shrink: 0; height: 100%; display: flex; align-items: center; padding: 0 10px; background: var(--gold); color: #1a1405; font-weight: 800; font-size: 12px; }
.news-view { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.news-track { display: inline-flex; gap: 48px; animation: tick 30s linear infinite; padding-inline-start: 100%; }
.news-track:hover { animation-play-state: paused; }
.news-item { font-size: 13.5px; color: #f3e4b0; }
.news-item::before { content: "◆"; color: var(--gold); margin-inline-end: 10px; font-size: 10px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes tickRtl { from { transform: translateX(0); } to { transform: translateX(100%); } }
[dir=rtl] .news-track { animation-name: tickRtl; }
@media (prefers-reduced-motion: reduce) { .news-track { animation: none; padding: 0; } .news-view { overflow-x: auto; } }
.post-title { font-weight: 800; font-size: 16px; margin: 2px 0 4px; unicode-bidi: plaintext; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0; }
.tags a { color: #7cc4f5; font-size: 13.5px; }
.reel-info .cat a { color: #9bd8b8; }
.audio-strip { display: flex; gap: 12px; overflow-x: auto; padding: 0 12px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.audio-strip::-webkit-scrollbar { display: none; }
.audio-strip .audio-card { width: 300px; flex-shrink: 0; scroll-snap-align: start; }
.audio-list { display: flex; flex-direction: column; gap: 12px; padding: 0 12px 12px; }
.audio-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.audio-card .ac-top { display: flex; gap: 12px; align-items: center; }
.audio-card .ac-cover { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.audio-card .ac-cover.ph { display: flex; align-items: center; justify-content: center; color: var(--primary); }
.audio-card .ac-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-card .ac-perf { display: flex; align-items: center; gap: 4px; color: var(--gold); font-size: 13px; }
.audio-card .ac-perf .i { width: 14px; height: 14px; }
.audio-card .ac-by { color: var(--muted); font-size: 12.5px; }
.audio-card audio { width: 100%; height: 40px; }
.audio-card .actions { margin-top: 0; }
.stat-btn { color: var(--muted); font-size: 14px; padding: 0; }
.stat-btn b { color: var(--text); }
.pill-s { display: inline-block; margin-inline-start: 8px; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.img-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.img-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.img-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.img-cv { width: 72px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #0f3a26, #06140d 60%, #1b1606) center / cover; flex-shrink: 0; }
.chat-notice { font-size: 12.5px; color: var(--gold); background: rgba(212,175,55,.08); padding: 8px 12px; border-top: 1px solid var(--border); }
.req-line { border-bottom: 1px solid var(--border); }
.thread .btn.sm { flex-shrink: 0; }
.opt-h { font-size: 15px; margin: 18px 0 6px; }

/* ================= القصص، الخلاصة المختلطة، كتابة منشور، المجموعات ================= */
.stories-bar { display: flex; gap: 14px; overflow-x: auto; padding: 12px 14px 10px; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.stories-bar::-webkit-scrollbar { display: none; }
.stories-bar.hl { border-bottom: 0; padding-top: 4px; }
.story-item { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; width: 70px; }
.story-item small { font-size: 11.5px; color: #c9d6cf; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-ring { position: relative; display: inline-flex; padding: 3px; border-radius: 50%; background: conic-gradient(#1fa463, #d4af37, #1fa463); }
.story-ring > .avatar, .story-ring > .hl-img { border: 3px solid var(--bg); width: 60px; height: 60px; }
.story-ring.seen { background: #3a4a42; }
.story-ring.none { background: transparent; }
.story-ring.big { padding: 4px; }
.story-ring.big > .avatar { width: 84px; height: 84px; }
.story-add { position: absolute; bottom: 0; inset-inline-end: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); font-size: 15px; line-height: 1; }
.hl-img { border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; background: var(--surface-2); overflow: hidden; }
.story-viewer { position: fixed; inset: 0; z-index: 400; background: #000; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.sv-bars { display: flex; gap: 4px; padding: 10px 10px 6px; }
.sv-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.sv-bars i { display: block; height: 100%; background: #fff; }
.sv-head { display: flex; align-items: center; gap: 10px; padding: 4px 12px 8px; color: #fff; }
.sv-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sv-media { max-width: 100%; max-height: 100%; object-fit: contain; }
.sv-text { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; font-size: 26px; font-weight: 700; color: #fff; white-space: pre-wrap; unicode-bidi: plaintext; }
.sv-cap { position: absolute; bottom: 18px; left: 12px; right: 12px; text-align: center; color: #fff; background: rgba(0,0,0,.45); padding: 8px 12px; border-radius: 12px; font-size: 15px; }
.sv-tap { position: absolute; top: 0; bottom: 0; width: 35%; background: transparent; }
.sv-tap.prev { inset-inline-start: 0; }
.sv-tap.next { inset-inline-end: 0; }
.sv-foot { display: flex; gap: 8px; align-items: center; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
.sv-foot .input { flex: 1; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; }
.story-prev img, .story-prev video { max-width: 100%; max-height: 300px; border-radius: 12px; display: block; margin: 0 auto; }
.story-colors { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.story-colors button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); }
.composer { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.composer .grow { flex: 1; min-width: 0; }
.composer textarea { min-height: 48px; resize: vertical; }
.composer-f { display: flex; align-items: center; gap: 2px; margin-top: 6px; }
.composer-f .grow { flex: 1; }
.feed-audio { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.feed-video { position: relative; display: block; width: 100%; max-width: 360px; aspect-ratio: 9 / 14; margin: 6px 0; border-radius: 16px; overflow: hidden; background: #000; }
.feed-video img, .feed-video .ph { width: 100%; height: 100%; object-fit: cover; display: block; background: linear-gradient(135deg, #0f3a26, #050b08); }
.feed-video .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.feed-video .play .i { width: 54px; height: 54px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.feed-video .dur { position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 1px 7px; border-radius: 6px; }
.feed-video .part-tag { position: absolute; top: 8px; inset-inline-start: 8px; }
.chat-tabs { display: flex; border-bottom: 1px solid var(--border); }
.chat-tabs button { flex: 1; height: 40px; color: var(--muted); font-weight: 700; }
.chat-tabs button.on { color: var(--text); box-shadow: inset 0 -3px 0 var(--primary); }
.grp-title { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; text-align: start; }
.msg-who { display: block; font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.msg-sys { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 3px 10px; border-radius: 999px; margin: 4px auto; max-width: 90%; text-align: center; }
.msg { position: relative; }
.msg-del { position: absolute; top: -6px; inset-inline-end: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 14px; line-height: 1; display: none; }
.msg:hover .msg-del, .msg:focus-within .msg-del { display: block; }
@media (hover: none) { .msg-del { display: block; opacity: .7; } }

/* ================= كتابة منشور مصغّرة، المجموعات (صور، صوت، تثبيت، دعوة) ================= */
.composer { padding: 8px 14px; align-items: center; }
.composer textarea { min-height: 38px; height: 38px; padding: 8px 14px; border-radius: 999px; resize: none; font-size: 14.5px; line-height: 1.4; overflow: hidden; }
.composer .composer-f { display: none; }
.composer.open { align-items: flex-start; }
.composer.open textarea { border-radius: 14px; min-height: 70px; overflow: auto; }
.composer.open .composer-f { display: flex; }
.composer-f .icon-btn { width: 34px; height: 34px; }
.contact-list { display: flex; flex-direction: column; max-height: 230px; overflow-y: auto; margin-top: 6px; }
.contact { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--border); }
.contact b { display: block; font-size: 14px; }
.contact .plus { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.contact.done .plus { background: var(--surface-2); color: var(--primary); }
.pin-bar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(212,175,55,.07); border-bottom: 1px solid var(--border); }
.pin-text { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.has-media { padding: 4px; }
.msg-img { display: block; max-width: 240px; max-height: 280px; border-radius: 12px; cursor: zoom-in; margin-bottom: 4px; }
.msg-audio { display: block; width: 240px; max-width: 100%; height: 38px; margin-bottom: 4px; }
.msg-tools { position: absolute; top: -12px; inset-inline-end: -4px; display: none; gap: 2px; }
.msg-tools button { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; line-height: 1; }
.msg:hover .msg-tools, .msg:focus-within .msg-tools { display: flex; }
@media (hover: none) { .msg-tools { display: flex; opacity: .75; } }
.invite-box { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid rgba(31,164,99,.35); border-radius: 14px; margin-bottom: 10px; background: rgba(31,164,99,.06); }
.invite-box .grow { display: flex; flex-direction: column; min-width: 0; }
.chat-f .icon-btn.hidden { display: none; }

/* ================= حساب الإدارة، المنشورات الجديدة، المثبّت، تنبيهات الإدارة ================= */
.admin-ring { display: inline-flex; padding: 2.5px; border-radius: 50%; background: linear-gradient(135deg, #f6dc7a, #c9971c 45%, #f3d26a); box-shadow: 0 0 0 1px rgba(212,175,55,.35); flex-shrink: 0; }
.admin-ring > .avatar { border: 2px solid var(--bg); }
.admin-tag { display: inline-block; font-size: 10.5px; font-weight: 800; color: #1a1405; background: linear-gradient(135deg, #f6dc7a, #d4af37); padding: 0 6px; border-radius: 6px; line-height: 17px; vertical-align: middle; }
.admin-tag.big { font-size: 13px; padding: 3px 12px; line-height: 20px; align-self: center; }
.post.admin-post { background: linear-gradient(180deg, rgba(212,175,55,.06), transparent 70%); }
.admin-note { display: flex; gap: 8px; align-items: center; color: var(--gold); font-size: 13.5px; margin-top: 6px; }
.new-pill { position: sticky; top: 64px; z-index: 20; display: block; margin: 8px auto; padding: 7px 16px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; font-size: 13.5px; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.new-pill.hidden { display: none; }
.pinned-label { display: flex; align-items: center; gap: 6px; padding: 8px 16px 0; font-size: 12.5px; color: var(--gold); font-weight: 700; }
.notice-card { max-width: 440px; }
.notice-card.warn { border-color: rgba(229,72,77,.6); }
.notice-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.notice-card.warn .notice-h b { color: #ff9a9e; }
