/* «روزنامه» — Twitter-style feed. */
:root { --tw-blue: rgb(var(--sk-1d9bf0, 29, 155, 240)); --tw-green: rgb(var(--sk-00ba7c, 0, 186, 124)); --tw-pink: #f91880; --tw-gray: rgb(var(--sk-8b98a5, 139, 152, 165)); --tw-line: rgba(var(--sk-eff3f4, 239, 243, 244), .12); --tw-bg: rgb(var(--sk-0b0f14, 11, 15, 20)); }
.tw-page { margin: -4px -12px 0; padding-bottom: 24px; background: var(--tw-bg); min-height: 100%; color: #e7e9ea; }

/* header + tabs */
.tw-top { position: sticky; top: 0; z-index: 3; background: rgba(var(--sk-0b0f14, 11, 15, 20), .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tw-line); }
.tw-brand { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; }
.tw-brand .ic-lg { width: 34px; height: 34px; }
.tw-brand h2 { margin: 0; font-size: 19px; font-weight: 900; }
.tw-brand small { color: var(--tw-gray); font-size: 12px; }
.tw-brand > div { flex: 1; min-width: 0; }
.tw-refresh { width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; color: var(--tw-gray); cursor: pointer; }
.tw-refresh:active { background: rgba(255, 255, 255, .08); }
.tw-refresh .ic { width: 22px; height: 22px; }
.tw-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
.tw-tab { position: relative; border: 0; background: none; color: var(--tw-gray); font-family: inherit; font-size: 14.5px; font-weight: 700;
  padding: 14px 4px 15px; cursor: pointer; }
.tw-tab.on { color: #e7e9ea; font-weight: 900; }
.tw-tab.on::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 56px; height: 4px; transform: translateX(-50%);
  border-radius: 99px; background: var(--tw-blue); }
.tw-tab:active { background: rgba(255, 255, 255, .05); }

/* trends + hashtag filter */
.tw-trends { padding: 12px 0 10px; border-bottom: 1px solid var(--tw-line); }
.tw-trends-title { display: block; padding: 0 16px 8px; font-size: 16px; font-weight: 900; }
.tw-trend-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 2px; scrollbar-width: none; }
.tw-trend-row::-webkit-scrollbar { display: none; }
.tw-trend { flex: none; display: grid; gap: 2px; text-align: right; min-width: 120px; padding: 10px 12px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--tw-line); background: rgba(255, 255, 255, .03); color: #e7e9ea; font-family: inherit; }
.tw-trend b { font-size: 14.5px; color: #e7e9ea; }
.tw-trend small { font-size: 11.5px; color: var(--tw-gray); }
.tw-filter { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--tw-line);
  font-size: 14px; }
.tw-filter b { color: var(--tw-blue); }
.tw-chip-x { border: 1px solid var(--tw-line); background: none; color: #e7e9ea; border-radius: 99px; padding: 4px 12px; font-family: inherit; cursor: pointer; }

/* a tweet */
.tw { padding: 12px 16px 6px; border-bottom: 1px solid var(--tw-line); cursor: pointer; transition: background .15s; }
.tw:active { background: rgba(255, 255, 255, .03); }
.tw.big { cursor: default; }
.tw-rt-by { display: flex; align-items: center; gap: 6px; margin: -2px 30px 6px 0; color: var(--tw-gray); font-size: 12.5px; font-weight: 700; }
.tw-rt-by .ic { width: 16px; height: 16px; }
.tw-row { display: flex; gap: 10px; }
.tw-av { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, rgb(var(--sk-2b3a4d, 43, 58, 77)), rgb(var(--sk-16202c, 22, 32, 44))); box-shadow: 0 0 0 1px var(--tw-line); }
.tw-av img { width: 100%; height: 100%; object-fit: cover; }
.tw-av i { font-style: normal; font-weight: 900; font-size: 18px; color: rgb(var(--sk-cfd9e5, 207, 217, 229)); }
.tw-av.xs { width: 22px; height: 22px; }
.tw-av.xs i { font-size: 11px; }
.tw-main { flex: 1; min-width: 0; }
.tw-head { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 14.5px; line-height: 1.4; }
.tw-name { font-weight: 800; color: #e7e9ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.tw-head .sup-badge { margin-inline-start: 2px; transform: scale(.9); }
.tw-handle { color: var(--tw-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.tw-dot, .tw-head time { color: var(--tw-gray); white-space: nowrap; flex: none; }
.tw-edited { flex: none; font-size: 11.5px; color: var(--tw-gray); border: 1px solid var(--tw-line); border-radius: 99px; padding: 0 6px; }
.tw-menu { margin-inline-start: auto; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; color: var(--tw-gray); cursor: pointer; }
.tw-menu .ic { width: 20px; height: 20px; }
.tw-menu:active { background: rgba(var(--sk-1d9bf0, 29, 155, 240), .15); color: var(--tw-blue); }
.tw-replyto { color: var(--tw-gray); font-size: 13.5px; margin: 1px 0 2px; }
.tw-replyto button, .tw-replyto b { border: 0; background: none; padding: 0; color: var(--tw-blue); font-family: inherit; font-size: inherit; font-weight: 600; cursor: pointer; }
.tw-title { font-weight: 900; font-size: 15.5px; margin: 2px 0; }
.tw-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.75; margin: 2px 0 4px; }
.tw.big .tw-text { font-size: 17px; }
.tw-tag { border: 0; background: none; padding: 0; color: var(--tw-blue); font: inherit; cursor: pointer; }
.tw-quote { margin: 8px 0 6px; padding: 10px 12px; border: 1px solid var(--tw-line); border-radius: 16px; cursor: pointer; }
.tw-quote .tw-head { font-size: 13.5px; gap: 5px; }
.tw-quote .tw-text { font-size: 14px; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tw-quote.removed { color: var(--tw-gray); font-size: 13.5px; cursor: default; }

/* actions */
.tw-actions { display: flex; justify-content: space-between; max-width: 360px; margin: 2px -8px 0 0; }
.tw-act { display: inline-flex; align-items: center; gap: 2px; min-width: 52px; height: 36px; border: 0; background: none; color: var(--tw-gray);
  font-family: inherit; font-size: 13px; cursor: pointer; border-radius: 99px; padding: 0 6px 0 2px; transition: color .15s; }
.tw-act .ic { width: 34px; height: 34px; padding: 7px; border-radius: 50%; box-sizing: border-box; transition: background .15s; }
.tw-act.reply:active .ic { background: rgba(var(--sk-1d9bf0, 29, 155, 240), .14); color: var(--tw-blue); }
.tw-act.rt:active .ic { background: rgba(var(--sk-00ba7c, 0, 186, 124), .14); }
.tw-act.like:active .ic { background: rgba(249, 24, 128, .14); }
.tw-act.rt.on { color: var(--tw-green); }
.tw-act.like.on { color: var(--tw-pink); }
.tw-act.share { min-width: 36px; }
.tw-act.like.pop .ic { animation: tw-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes tw-pop { 0% { transform: scale(.6); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* feed bits */
.tw-skel { cursor: default; }
.tw-skel .skel { height: 14px; margin: 8px 0; }
.tw-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 24px; text-align: center; color: var(--tw-gray); }
.tw-empty .ic-lg { width: 44px; height: 44px; color: var(--tw-blue); }
.tw-empty.small { padding: 24px; }
.tw-more-btn { display: block; width: 100%; padding: 16px; border: 0; background: none; color: var(--tw-blue); font-family: inherit; font-size: 15px; cursor: pointer; }
.tw-fab { position: sticky; bottom: 18px; margin: 12px auto 0 18px; z-index: 20; width: 58px; height: 58px; border-radius: 50%;
  border: 0; background: var(--tw-blue, rgb(var(--sk-1d9bf0, 29, 155, 240))); color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(var(--sk-1d9bf0, 29, 155, 240), .45), 0 2px 6px rgba(var(--sk-000000, 0, 0, 0), .5); transition: transform .15s; }
.tw-fab .ic { width: 28px; height: 28px; }
.tw-fab:active { transform: scale(.92); }
.tw-fab.off { opacity: .45; }

/* sheets: thread, composer, small menus */
.tw-sheet .sheet-body { background: rgb(var(--sk-0b0f14, 11, 15, 20)); }
.tw-sheet .tw { padding-inline: 4px; }
.tw-parent { position: relative; }
.tw-parent .tw { border-bottom: 0; }
.tw-parent::after { content: ""; position: absolute; right: 25px; top: 62px; bottom: -6px; width: 2px; background: rgb(var(--sk-333c46, 51, 60, 70)); }
.tw-reply-bar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 6px; border: 0; border-bottom: 1px solid var(--tw-line, rgba(var(--sk-eff3f4, 239, 243, 244), .12));
  background: none; color: rgb(var(--sk-8b98a5, 139, 152, 165)); font-family: inherit; font-size: 15px; cursor: pointer; text-align: right; }
.tw-replies .tw { padding-inline: 4px; }
.tw-compose { display: grid; gap: 10px; }
.tw-compose .tw-row { gap: 10px; }
.tw-compose textarea { width: 100%; box-sizing: border-box; min-height: 110px; resize: none; border: 0; outline: 0; background: none; color: #e7e9ea;
  font-family: inherit; font-size: 18px; line-height: 1.7; padding: 8px 0; }
.tw-compose textarea::placeholder { color: #71767b; }
.tw-compose-ctx { display: grid; gap: 6px; }
.tw-compose-ctx .tw-quote { margin: 0; cursor: default; }
.tw-compose-bar { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(var(--sk-eff3f4, 239, 243, 244), .12); }
.tw-hint { flex: 1; min-width: 0; font-size: 12px; color: rgb(var(--sk-8b98a5, 139, 152, 165)); }
.tw-count { display: inline-flex; align-items: center; gap: 4px; }
.tw-ring { width: 26px; height: 26px; transform: rotate(-90deg); }
.tw-ring circle { fill: none; stroke-width: 2.6; }
.tw-ring .bg { stroke: rgb(var(--sk-2f3336, 47, 51, 54)); }
.tw-ring .fg { stroke: rgb(var(--sk-1d9bf0, 29, 155, 240)); transition: stroke-dashoffset .15s; }
.tw-ring.near .fg { stroke: rgb(var(--sk-ffd400, 255, 212, 0)); }
.tw-ring.over .fg { stroke: #f4212e; }
.tw-left-n { font-size: 12.5px; color: rgb(var(--sk-8b98a5, 139, 152, 165)); }
.tw-left-n.over { color: #f4212e; }
.tw-send { border: 0; border-radius: 99px; padding: 9px 20px; background: rgb(var(--sk-1d9bf0, 29, 155, 240)); color: #fff; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.tw-send:disabled { opacity: .5; cursor: default; }
.tw-menu-sheet { display: grid; gap: 4px; }
.tw-menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 10px; border: 0; border-radius: 12px; background: none; color: #e7e9ea;
  font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-align: right; }
.tw-menu-item .ic { width: 24px; height: 24px; color: #e7e9ea; }
.tw-menu-item:active { background: rgba(255, 255, 255, .06); }
.tw-menu-item.undo, .tw-menu-item.undo .ic { color: rgb(var(--sk-00ba7c, 0, 186, 124)); }
.tw-menu-item.danger, .tw-menu-item.danger .ic { color: #f4212e; }
.tw-menu-item.cancel { justify-content: center; color: rgb(var(--sk-8b98a5, 139, 152, 165)); border: 1px solid rgba(var(--sk-eff3f4, 239, 243, 244), .12); margin-top: 6px; }

.reduce-motion .tw-act.like.pop .ic { animation: none; }

/* names win the space: the handle shrinks first, badges become a "verified" dot */
.tw-head .tw-name { flex: 0 1 auto; max-width: 62%; }
.tw-head .tw-handle { flex: 0 1000 auto; }
.tw-head .sup-badge { flex: none; font-size: 0; gap: 0; padding: 3px; margin-inline-start: 1px; transform: none; border-radius: 50%; }
.tw-head .sup-badge i { width: 8px; height: 10px; }

.tw-sheet .tw-tag, .tw-sheet .tw-replyto button { color: var(--tw-blue); }
.tw-sheet .tw-act.like.on { color: var(--tw-pink); }
.tw-sheet .tw-act.rt.on { color: var(--tw-green); }

/* «مشعل وانتا» supporter tick: our blue tick, coloured by the author's tier (static, no animation) */
.tw-torch { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  margin-inline-start: 1px; background: var(--tk-bg); color: var(--tk); box-shadow: 0 0 0 1px var(--tk-ring); }
.tw-torch svg { width: 11px; height: 11px; display: block; }
.tw-torch.t-match { --tk: #f0b183; --tk-bg: rgba(184, 115, 58, .28); --tk-ring: rgba(205, 133, 72, .6); }
.tw-torch.t-wood { --tk: rgb(var(--sk-eef3fa, 238, 243, 250)); --tk-bg: rgba(var(--sk-aab6c8, 170, 182, 200), .26); --tk-ring: rgba(var(--sk-d6e0ee, 214, 224, 238), .65); }
.tw-torch.t-oil { --tk: rgb(var(--sk-ffe08a, 255, 224, 138)); --tk-bg: rgba(var(--sk-e6b422, 230, 180, 34), .3); --tk-ring: rgba(var(--sk-ffd25a, 255, 210, 90), .7); }
.tw-torch.t-volcano { --tk: rgb(var(--sk-ffd34d, 255, 211, 77)); --tk-bg: linear-gradient(160deg, #ff7a1a, #c4241a); --tk-ring: rgba(255, 140, 50, .8); }
.tw-quote .tw-torch { width: 14px; height: 14px; }
.tw-quote .tw-torch svg { width: 9px; height: 9px; }
.tw-pin-by { display: flex; align-items: center; gap: 6px; margin: -2px 30px 6px 0; color: #ffb066; font-size: 12.5px; font-weight: 700; }
.tw-pin-by .ic { width: 16px; height: 16px; }
