 
/* ═══════════════════════════════════════════════════════
   APP-LIKE GLOBAL STYLES
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #ffffff;
  --bg:         #ffffff;
  --surface:    #f7f7f7;
  --surface2:   #efefef;
  --border:     #ebebeb;
  --border2:    #d9d9d9;
  --text:       #0f1419;
  --text2:      #536471;
  --text3:      #8899a6;
  --blue:       #1d9bf0;
  --blue-bg:    #e8f5fe;
  --blue-dark:  #1a8cd8;
  --green:      #00ba7c;
  --green-bg:   #e6f7f2;
  --red:        #f4212e;
  --orange:     #fd7e14;
  --art:        #b45309;  --art-bg: #fef9ee;
  --sto:        #0e7490;  --sto-bg: #f0fbfd;
  --opi:        #1d9bf1;  --opi-bg: #faf5ff;
  --urd:        #10b981;  --urd-bg: #ecfdf5;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

html, body { height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior-y: none; width: 100%; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ══ SHELL ══ */
.shell { display: grid; grid-template-columns: 275px minmax(0, 600px) 350px; height: 100vh; max-width: 1265px; margin: 0 auto; overflow: hidden; }
.left-col { display: flex; flex-direction: column; border-right: 1px solid var(--border); height: 100vh; overflow: hidden; justify-content: space-between; }
.feed-col { height: 100vh; overflow-y: auto; overflow-x: hidden; border-right: 1px solid var(--border); overscroll-behavior-y: contain; }
.feed-col::-webkit-scrollbar { width: 0; }
.right-col { height: 100vh; padding: 5px; overflow: hidden; overflow-y: auto; overscroll-behavior-y: contain; }
.right-col::-webkit-scrollbar { width: 0; }

@media(max-width: 1100px) { 
  .shell { grid-template-columns: 88px minmax(0, 600px) 320px; } 
  .nav-label, .nav-brand-text, .nav-write-text { display: none; } 
  .nav-item { justify-content: center; padding: 10px; } 
  .nav-brand { justify-content: center; } 
  .nav-write-btn { width: 48px; height: 48px; border-radius: 50%; justify-content: center; padding: 0; } 
}
@media(max-width: 880px) { 
  .shell { grid-template-columns: minmax(0, 1fr); } 
  .left-col, .right-col { display: none; } 
  .feed-col { height: 100dvh; padding-bottom: 60px; } 
}

/* ══ NAV ══ */
.nav-brand { display: flex; align-items: center; gap: 10px; padding: 12px 12px 6px; margin-bottom: 4px; }
.nav-brand-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--text); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.nav-brand-text { font-size: 19px; font-weight: 700; } 
.nav-brand-text em { color: var(--blue); font-style: normal; }
.nav-items { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.nav-item { display: flex; align-items: center; gap: 18px; padding: 11px 14px; border-radius: 99px; font-size: 19px; font-weight: 400; transition: background .15s; width: 100%; }
.nav-item:hover { background: var(--surface); } 
.nav-item.active { font-weight: 700; }
.nav-item i { font-size: 22px; width: 26px; text-align: center; } 
.nav-label { font-size: 19px; line-height: 1; }

/* ══ COMPACT FEED HEADER ══ */
.feed-hdr-wrap { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow 0.2s; }
.feed-hdr-combined { display: flex; align-items: center; justify-content: space-between; height: 53px; padding: 0 16px; }

.m-menu-btn { display: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); font-size: 14px; align-items: center; justify-content: center; flex-shrink: 0; }
@media(max-width: 880px) { .m-menu-btn { display: flex; } }

/* INLINE TABS */
.feed-tabs-inline { display: flex; flex: 1; height: 100%; justify-content: center; }
.feed-tab { display: flex; align-items: center; justify-content: center; flex: 1; max-width: 250px; height: 100%; font-size: 15px; font-weight: 600; color: var(--text2); cursor: pointer; position: relative; transition: background 0.2s; }
.feed-tab:hover { background: var(--surface); }
.feed-tab.active { color: var(--text); font-weight: 800; }
.feed-tab.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 56px; height: 4px; background: var(--blue); border-radius: 4px 4px 0 0; }

.hdr-spacer { display: none; width: 36px; flex-shrink: 0; }
@media(max-width: 880px) { .hdr-spacer { display: block; } }

/* ══ NEW POSTS PILL ══ */
.new-pill { position: sticky; top: 65px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 7px; background: var(--blue); color: #fff; border: none; border-radius: 99px; padding: 10px 20px; font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 24px rgba(29, 155, 240, 0.4); z-index: 9; margin: 8px auto; width: fit-content; transition: background .15s, transform .1s; }
.new-pill.show { display: flex; }
.new-pill:hover { background: var(--blue-dark); transform: translateX(-50%) scale(1.02); }

/* ══ POST CARD ══ */
.post { position: relative; display: flex; gap: 12px; padding: 12px 16px 0; border-bottom: 1px solid var(--border); transition: background .12s; cursor: pointer; animation: fadeIn .25s ease both; content-visibility: auto; contain-intrinsic-size: 400px; }
.post:hover { background: #f7f9f9; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.post__av-col { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.post__av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--surface); transition: box-shadow 0.15s; }
.post__av-wrap { position: relative; }
.post:hover .post__av { box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.12); }
.post__av-badge { position: absolute; bottom: -1px; right: -1px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 7.5px; color: #fff; border: 2px solid var(--white); }
.post__av-badge--article { background: var(--art); } 
.post__av-badge--story { background: var(--sto); } 
.post__av-badge--opinion { background: var(--opi); } 
.post__av-badge--urdu { background: var(--urd); }

.post__body { flex: 1; min-width: 0; padding-bottom: 12px; }
.post__meta { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 1px; gap: 6px; row-gap: 4px; }
.post__meta-left { display: flex; align-items: center; gap: 4px; min-width: 0; flex-shrink: 1; overflow: hidden; }
.post__name { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; color: var(--text); transition: color .12s; }
.post__name:hover { text-decoration: underline; color: var(--blue); }
.post__verified { width: 16px; height: 16px; flex-shrink: 0; }
.post__journalist { background: #1d9bf136; color: #1d9bf1; border-radius: 50%; font-size: 7.5px; width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.post__sep { color: var(--text3); font-size: 13px; margin: 0 1px; flex-shrink: 0; }
.post__time { font-size: 14px; color: var(--text2); white-space: nowrap; flex-shrink: 0; }

.post__meta-right { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
@media(max-width: 520px) { .post__meta-right { flex-basis: 100%; justify-content: flex-start; margin-left: 0; margin-top: 2px; } }

.tl-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; white-space: nowrap; letter-spacing: .01em; line-height: 1; border: 1px solid transparent; transition: transform 0.12s; }
.post:hover .tl-badge { transform: translateY(-1px); }
.tl-badge i { font-size: 8px; }
.tl-badge--article { background: var(--art-bg); color: var(--art); border-color: rgba(180, 83, 9, 0.14); } 
.tl-badge--story { background: var(--sto-bg); color: var(--sto); border-color: rgba(14, 116, 144, 0.14); } 
.tl-badge--opinion { background: var(--opi-bg); color: var(--opi); border-color: rgba(29, 155, 241, 0.14); } 
.tl-badge--urdu { background: var(--urd-bg); color: var(--urd); border-color: rgba(16, 185, 129, 0.14); }

.cat-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; padding: 3px 9px 3px 7px; border-radius: 99px; background: var(--surface); color: var(--text2); border: 1px solid var(--border); white-space: nowrap; line-height: 1; transition: transform 0.12s; }
.post:hover .cat-pill { transform: translateY(-1px); }
.cat-pill-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.post__content { display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; flex-direction: column; }
.post__text { flex: 1; min-width: 0; }
.post__title { font-size: 16px; font-weight: 800; line-height: 1.3; margin-bottom: 4px; word-break: break-word; }
.post__excerpt { font-size: 15px; line-height: 1.55; color: var(--text2); white-space: pre-wrap; word-break: break-word; }
.post.is-opinion .post__title { display: none; }
.post.is-opinion .post__excerpt { font-size: 16px; color: var(--text); line-height: 1.6; }
.post__excerpt .p-hashtag { color: var(--blue); font-weight: 600; text-decoration: none; }
.post__excerpt .p-hashtag:hover { text-decoration: underline; }

.post__thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-top: 10px; border: 1px solid var(--border); background: var(--surface); transition: filter 0.2s; }
.post:hover .post__thumb { filter: brightness(0.98); }

.post__stats { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.post-stat { display: flex; align-items: center; gap: 4px; color: var(--text2); font-size: 13px; }
.post__actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--border); gap: 10px; }
.act { position: relative; display: flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer; color: var(--text2); font-size: 20px; font-weight: 500; padding: 7px 8px; border-radius: 99px; transition: 0.14s; }
.act i { font-size: 16px; }
.act--rxn:hover { color: var(--blue); background: var(--blue-bg); }

/* Make comment count and bookmark count number bigger and clean */
.act--cmt, .act--bookmark {
    display: inline-flex;
    align-items: center;
    gap: 6px; 
}
.act--cmt .cmt-n, .act--bookmark .bmk-n {
    font-size: 14px;      
    font-weight: 700;     
    color: var(--text2);  
    line-height: 1;
}
.act--cmt:hover { color: var(--blue); background: var(--blue-bg); }
.act--share:hover { color: var(--green); background: var(--green-bg); }
.act--copy:hover { color: #7856ff; background: #f3eeff; }
.act--bookmark:hover { color: var(--orange); background: #fff5eb; }
.act--bookmark.bookmarked { color: var(--orange); }

.rxn-chips { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rxn-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--text2); background: none; border: none; padding: 2px 6px; border-radius: 99px; cursor: pointer; }
.rxn-chip:hover { background: var(--blue-bg); color: var(--blue); }
.rxn-chip.mine { color: var(--blue); font-weight: 700; }

.rxn-wrap { position: relative; }
.act--rxn.reacted-like { color: var(--blue); } 
.act--rxn.reacted-love { color: var(--red); } 
.act--rxn.reacted-haha, .act--rxn.reacted-wow, .act--rxn.reacted-sad { color: var(--orange); } 
.act--rxn.reacted-angry { color: var(--red); }

.rxn-picker { position: absolute; bottom: calc(100% + 6px); left: 0; display: flex; gap: 2px; background: var(--white); border: 1px solid var(--border); border-radius: 99px; padding: 4px; box-shadow: 0 4px 24px rgba(0,0,0,0.15); opacity: 0; pointer-events: none; transform: translateY(4px) scale(0.9); transition: 0.13s; z-index: 40; }
.rxn-picker.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.rxn-opt { width: 36px; height: 36px; border-radius: 50%; border: none; background: none; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: transform 0.12s; }
.rxn-opt:hover { transform: scale(1.35) translateY(-4px); }

.follow-btn { background: var(--text); color: #fff; border: none; border-radius: 99px; padding: 5px 14px; font-size: 12.5px; font-weight: 800; flex-shrink: 0; display: flex; align-items: center; gap: 4px; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s; }
.follow-btn:hover { background: #333; }
.follow-btn:active { transform: scale(0.96); }
.follow-btn.following { background: var(--white); color: var(--text); border: 1.5px solid var(--border2); }
.follow-btn.following:hover { color: var(--red); border-color: #fca5a5; background: #fff5f5; }

/* ══ COMMENTS PANEL ══ */
.cmt-panel { display: none; background: linear-gradient(180deg, #fbfbfc 0%, var(--surface) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cmt-panel.open { display: block; animation: cmtSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes cmtSlideDown { 
  from { opacity: 0; transform: translateY(-8px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.cmt-inner { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; background: #f3f2f9; }
.cmt-loading, .cmt-empty { padding: 24px 0; text-align: center; color: var(--text2); font-size: 14px; font-weight: 500; }
.cmt-count { font-size: 12px; font-weight: 800; color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.cmt-count::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* ══ ENHANCED INPUT COMPOSER ══ */
.cmt-form { display: flex; gap: 12px; margin-bottom: 4px; }
.cmt-form__av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.06); background: var(--surface); }
.cmt-form__box { flex: 1; border: 1.5px solid var(--border); border-radius: 16px; padding: 12px 14px; background: var(--white); transition: all 0.2s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.cmt-form__box.focused { border-color: var(--blue); box-shadow: 0 4px 16px var(--blue-bg); transform: translateY(-1px); }
.cmt-form__box textarea { width: 100%; border: none; outline: none; background: none; font-family: var(--font); font-size: 14.5px; resize: none; min-height: 24px; color: var(--text); line-height: 1.5; }
.cmt-form__box textarea::placeholder { color: var(--text3); }
.cmt-form__toolbar { display: none; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--surface); }
.cmt-form__box.focused .cmt-form__toolbar { display: flex; }
.cmt-form__chars { font-size: 11.5px; color: var(--text3); font-weight: 600; }
.cmt-submit { background: var(--blue); color: #fff; border: none; border-radius: 99px; padding: 7px 18px; font-size: 13.5px; font-weight: 700; transition: all 0.15s ease; box-shadow: 0 2px 6px rgba(29, 155, 240, 0.2); }
.cmt-submit:not(:disabled):hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29, 155, 240, 0.35); }
.cmt-submit:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.cmt-login { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--white); border: 1px dashed var(--border2); border-radius: 14px; font-size: 14px; color: var(--text2); margin-bottom: 4px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.01); }
.cmt-login a { color: var(--blue); font-weight: 700; text-decoration: none; }
.cmt-login a:hover { text-decoration: underline; }

/* ══ SLEEK CARD-STYLE COMMENTS ══ */
.cmt-item { display: flex; gap: 12px; padding: 4px 0; position: relative; }
.cmt-item__av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface); border: 1.5px solid var(--white); box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.cmt-item__body { flex: 1; min-width: 0; }
.cmt-item__bubble { background: var(--white); border: 1px solid var(--border); border-radius: 4px 16px 16px 16px; padding: 10px 14px; box-shadow: 0 2px 6px rgba(0,0,0,0.015); transition: border-color 0.2s ease; }
.cmt-item:hover .cmt-item__bubble { border-color: var(--border2); }
.cmt-item__name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--text); }
.cmt-item__text { font-size: 14.5px; line-height: 1.55; color: var(--text); word-break: break-word; }
.cmt-item__foot { display: flex; align-items: center; gap: 16px; margin-top: 6px; padding-left: 4px; }
.cmt-item__time { font-size: 12px; color: var(--text3); font-weight: 500; }
.cmt-reply-btn { font-size: 12.5px; color: var(--text2); font-weight: 700; background: none; border: none; padding: 2px 4px; border-radius: 4px; transition: all 0.15s ease; display: inline-flex; align-items: center; gap: 4px; }
.cmt-reply-btn::before { content: '\f112'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; opacity: 0.6; }
.cmt-reply-btn:hover { color: var(--blue); background: var(--blue-bg); }

/* ══ NESTED REPLIES PIPELINE ══ */
.cmt-replies { margin-top: 10px; padding-left: 16px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.cmt-replies::before { content: ''; position: absolute; left: 0; top: 0; bottom: 18px; width: 2px; background: var(--border); border-radius: 2px; }
.cmt-item--reply { padding: 2px 0; }
.cmt-item--reply .cmt-item__av { width: 30px; height: 30px; }
.cmt-item--reply .cmt-item__bubble { border-radius: 4px 14px 14px 14px; padding: 8px 12px; background: rgba(255,255,255,0.7); }
.cmt-item--reply .cmt-item__text { font-size: 14px; }

/* ══ DYNAMIC INTERACTIVE COMPONENTS ══ */
.reply-slot:empty { display: none; } 
.reply-slot { margin-top: 10px; padding-left: 16px; position: relative; }
.reply-slot::before { content: ''; position: absolute; left: 0; top: -10px; bottom: 20px; width: 2px; background: var(--blue); opacity: 0.3; border-radius: 2px; }
.cmt-form--reply { padding-bottom: 0; margin-bottom: 0; }
.cmt-form--reply .cmt-form__av { width: 32px; height: 32px; }
.cmt-form--reply .cmt-form__box { padding: 10px 12px; border-radius: 14px; }
.cmt-cancel { background: none; border: none; color: var(--text2); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; transition: background 0.15s; }
.cmt-cancel:hover { background: var(--surface2); color: var(--text); }
.cmt-retry { margin-top: 10px; background: var(--blue); color: #fff; border: none; border-radius: 99px; padding: 7px 20px; font-size: 13px; font-weight: 700; transition: background 0.15s; box-shadow: 0 2px 6px rgba(29, 155, 240, 0.2); }
.cmt-retry:hover { background: var(--blue-dark); }

/* ══ UTILS ══ */
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.feed-loader { padding: 24px; text-align: center; }
.feed-end { padding: 28px; text-align: center; color: var(--text2); font-size: 14px; }
.feed-empty { padding: 48px 20px; text-align: center; color: var(--text2); }
.in-feed-ad { padding: 16px 20px; border-bottom: 1px solid var(--border); text-align: center; }

/* Right sidebar */
.rbar-card { border-radius: 16px; background: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,0.02); padding: 14px 16px; margin-bottom: 14px; }
.rbar-card__title { font-size: 18px; font-weight: 800; margin-bottom: 12px; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--blue); color: #fff; padding: 10px 22px; border-radius: 99px; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 1200; display: flex; align-items: center; gap: 7px; box-shadow: 0 4px 20px rgba(29, 155, 240, 0.35); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Drawers */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.22s; backdrop-filter: blur(2px); }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; width: 290px; max-width: 86vw; background: var(--white); z-index: 310; overflow-y: auto; padding: 18px 16px; transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1); box-shadow: 0 0 40px rgba(0,0,0,0.15); }
.drawer--l { left: 0; transform: translateX(-105%); }
.drawer--l.open { transform: translateX(0); }
.drawer__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer__title { font-size: 18px; font-weight: 800; }
.drawer__close { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ══ FLOATING COMPOSE FAB (speed-dial) ══ */
.fab-scrim { position: fixed; inset: 0; background: rgba(255,255,255,0.7); backdrop-filter: blur(4px); z-index: 2800; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.fab-scrim.show { opacity: 1; pointer-events: auto; }

.fab-wrap { position: fixed; bottom: 28px; right: 28px; z-index: 2900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
@media(max-width: 880px) { .fab-wrap { bottom: 76px; right: 18px; } }
.fab-menu { display: flex; flex-direction: column; gap: 10px; margin-bottom: 2px; }
.fab-option { display: flex; align-items: center; gap: 10px; background: var(--white); color: var(--text); border: 1px solid var(--border); border-radius: 99px; padding: 10px 16px 10px 14px; font-size: 14px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,0.12); opacity: 0; transform: translateY(8px) scale(0.9); pointer-events: none; transition: opacity 0.16s, transform 0.16s; white-space: nowrap; }
.fab-wrap.open .fab-option { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fab-wrap.open .fab-option:nth-child(1) { transition-delay: 0.02s; }
.fab-wrap.open .fab-option:nth-child(2) { transition-delay: 0.06s; }
.fab-wrap.open .fab-option:nth-child(3) { transition-delay: 0.1s; }
.fab-option i { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.fab-option--opinion { background: var(--opi-bg); color: var(--opi); border-color: rgba(29, 155, 241, 0.18); }
.fab-option--article { background: var(--art-bg); color: var(--art); border-color: rgba(180, 83, 9, 0.18); }
.fab-option--story { background: var(--sto-bg); color: var(--sto); border-color: rgba(14, 116, 144, 0.18); }
.fab-option:hover { filter: brightness(0.96); transform: translateY(-1px) scale(1.02); }

.fab-compose { width: 58px; height: 58px; border-radius: 50%; background: var(--blue); color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 8px 24px rgba(29, 155, 240, 0.45); transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s, box-shadow 0.18s; pointer-events: auto; }

/* ══ OPINION COMPOSE MODAL (Twitter-style) ══ */
.tlc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 3000; display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s; backdrop-filter: blur(2px); }
.tlc-overlay.open { opacity: 1; pointer-events: auto; }

.tlc-modal { background: var(--white); width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; max-height: 88vh; display: flex; flex-direction: column; transform: translateY(24px); transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1); box-shadow: 0 -8px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.03); overflow: visible; }
.tlc-overlay.open .tlc-modal { transform: translateY(0); }

@media(max-width: 880px) {
  .tlc-overlay { align-items: flex-start; padding: 0; }
  .tlc-modal { max-width: 100%; width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; box-shadow: none; }
  .tlc-hd { padding-top: calc(12px + env(safe-area-inset-top)); }
  .tlc-toolbar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

@media(min-width: 640px) { .tlc-overlay { align-items: center; } .tlc-modal { border-radius: 20px; max-height: 82vh; } }
.tlc-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; position: sticky; top: 0; z-index: 6; background: var(--white); border-radius: 20px 20px 0 0; }
.tlc-hd__title { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; }
.tlc-close { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; transition: background 0.12s, transform 0.12s; }
.tlc-close:hover { background: var(--surface2); transform: scale(1.05); }
.tlc-body { padding: 16px 18px 12px; overflow-y: auto; flex: 1; display: flex; gap: 12px; }
.tlc-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--surface); flex-shrink: 0; border: 1px solid var(--border); }
.tlc-form { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tlc-editor { width: 100%; outline: none; font-family: var(--font); font-size: 19px; line-height: 1.4; min-height: 110px; color: var(--text); white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.tlc-editor:empty::before { content: attr(data-placeholder); color: var(--text3); pointer-events: none; }
.tlc-editor .tlc-hl { color: var(--blue); font-weight: 600; }
.tlc-imgbox { position: relative; margin-top: 10px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); display: none; }
.tlc-imgbox img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.tlc-imgbox .tlc-imgclear { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.65); color: #fff; border: none; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; }

/* Trending hashtags strip while composing */
.tlc-trending { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); display: none; }
.tlc-trending__label { font-size: 10.5px; font-weight: 800; color: var(--text3); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.tlc-trending__list { display: flex; flex-wrap: wrap; gap: 6px; }
.tlc-trend-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--opi-bg); color: var(--opi); border: 1px solid rgba(29, 155, 241, 0.18); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: transform 0.12s, filter 0.12s; }
.tlc-trend-chip:hover { filter: brightness(0.95); transform: translateY(-1px); }
.tlc-trend-chip .cnt { color: var(--text3); font-weight: 600; font-size: 11.5px; }

.tlc-toolbar { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--border); gap: 10px; flex-wrap: wrap; }
.tlc-tools-left { display: flex; align-items: center; gap: 4px; }
.tlc-tool-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--blue); background: none; border: none; font-size: 16px; transition: background 0.12s; }
.tlc-tool-btn:hover { background: var(--blue-bg); }
.tlc-cat-wrap { position: relative; }
.tlc-cat-btn { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; color: var(--text2); }
.tlc-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tlc-cat-dropdown { position: fixed; background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 34px rgba(0,0,0,0.22); padding: 6px; width: min(240px, 86vw); max-height: min(280px, 60vh); overflow-y: auto; display: none; z-index: 3200; }
.tlc-cat-dropdown.open { display: block; }
.tlc-cat-item { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; cursor: pointer; color: var(--text); min-height: 22px; }
.tlc-cat-item:active { background: var(--surface2); }
.tlc-cat-item:hover { background: var(--surface); }
.tlc-cat-item .tlc-cat-dot { width: 10px; height: 10px; }
.tlc-cat-scrim { position: fixed; inset: 0; background: transparent; z-index: 3100; display: none; }
.tlc-cat-scrim.open { display: block; }
@media(max-width: 640px) { .tlc-cat-dropdown { width: min(280px, 90vw); } .tlc-cat-item { font-size: 15.5px; padding: 13px 12px; } }
.tlc-right { display: flex; align-items: center; gap: 12px; }
.tlc-charcount { font-size: 12.5px; color: var(--text3); font-weight: 600; }
.tlc-charcount.warning { color: var(--orange); }
.tlc-charcount.danger { color: var(--red); }
.tlc-submit { background: var(--blue); color: #fff; border: none; border-radius: 99px; padding: 9px 20px; font-size: 14.5px; font-weight: 800; opacity: 0.5; pointer-events: none; transition: opacity 0.15s, background 0.15s, transform 0.1s; }
.tlc-submit.ready { opacity: 1; pointer-events: auto; }
.tlc-submit:hover { background: var(--blue-dark); }
.tlc-submit:active { transform: scale(0.96); }

/* Reactions Modal */
.rxn-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.2s; display: flex; align-items: flex-end; justify-content: center; }
.rxn-overlay.open { opacity: 1; pointer-events: auto; }
.rxn-modal { background: var(--white); width: 100%; max-width: 440px; border-radius: 18px 18px 0 0; max-height: 66vh; overflow-y: auto; transform: translateY(16px); transition: transform 0.2s; border: 1px solid var(--border); }
.rxn-overlay.open .rxn-modal { transform: translateY(0); }
@media(min-width: 600px) { .rxn-overlay { align-items: center; } .rxn-modal { border-radius: 18px; max-height: 60vh; } }
.rxn-modal__hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 17px; font-weight: 800; position: sticky; top: 0; background: var(--white); }
.rxn-modal__close { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.rxn-modal__body { padding: 12px 16px 20px; color: var(--text); }
.rxn-modal__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.rxn-tab { display: inline-flex; align-items: center; gap: 5px; background: var(--surface); border-radius: 99px; padding: 5px 14px; font-size: 13px; font-weight: 700; color: var(--text2); }
.rxn-person { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rxn-person:last-child { border-bottom: none; }
.rxn-person img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.rxn-person__name { flex: 1; font-size: 14px; font-weight: 700; }
.rxn-person__emoji { font-size: 17px; }
 