:root{
    /* Dark-first palette (TikTok-style redesign) — everything used to be built on a
       cream/white palette; since almost every component below is themed through
       these custom properties rather than hardcoded colors, flipping the roots
       here cascades the whole app to the new look with very few component-level
       overrides needed. --sheet-* stays light on purpose: the filter sheet is
       the one surface in the new design that's deliberately still cream-colored,
       floating over the dark app like a paper sheet. */
    --bg: #0A0A0C;
    --bg-alt: #14151A;
    --card: rgba(255,255,255,0.06);
    --card-line: rgba(255,255,255,0.12);
    --ink: #FFFFFF;
    --ink-soft: rgba(255,255,255,0.68);
    --ink-faint: rgba(255,255,255,0.46);
    --green: #0F5C4E;
    --green-dark: #0A3E34;
    --green-tint: rgba(15,92,78,0.30);
    --gold: #C1892F;
    --gold-tint: rgba(193,137,47,0.24);
    --brick: #FF7A5C;
    --brick-tint: rgba(255,122,92,0.20);
    --line: rgba(255,255,255,0.14);
    --accent-mint: #6FE3C6;
    --accent-gold-bright: #F0C878;
    --accent-coral: #FFB39E;
    --tabbar-h: 64px;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 9px;
    --shadow: 0 8px 24px rgba(0,0,0,0.35);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Feed accents — deliberately close to the short-video app workers already know */
    --feed-bg: #0A0A0C;
    --feed-cyan: #23F1EA;
    --feed-pink: #FE2C55;
    --feed-ink: #FFFFFF;
    --feed-ink-soft: rgba(255,255,255,0.72);
    /* The filter sheet is the one deliberately light surface in the app. */
    --sheet-bg: #F3F1E6;
    --sheet-bg-alt: #EAE5D3;
    --sheet-ink: #1F2A24;
    --sheet-ink-soft: #58635B;
    --sheet-ink-faint: #8A9189;
    --sheet-line: #DDD6C2;
  }
  html[dir="rtl"]{
    --font-display: 'Noto Kufi Arabic', sans-serif;
    --font-body: 'Noto Sans Arabic', sans-serif;
  }
  html[dir="rtl"][data-lang="ur"]{
    --font-display: 'Noto Nastaliq Urdu', serif;
    --font-body: 'Noto Nastaliq Urdu', serif;
  }
  *{box-sizing:border-box;}
  body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);-webkit-font-smoothing:antialiased;}
  h1,h2,h3,h4,button,.display{font-family:var(--font-display);}
  a{color:inherit;}
  button{font-family:var(--font-body);cursor:pointer;}
  :focus-visible{outline:2.5px solid var(--gold);outline-offset:2px;}

  /* ---------- Shell ---------- */
  .app{
    max-width:480px;margin:0 auto;min-height:100vh;background:var(--bg);position:relative;
    padding-bottom:calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom));
  }
  @media (min-width:760px){
    .app{max-width:900px;padding-bottom:40px;}
  }

  /* ---------- Header ---------- */
  header.topbar{
    position:sticky;top:0;z-index:40;
    background:var(--green-dark);
    color:#F3F1E6;
    padding:14px 18px;
    display:flex;align-items:center;justify-content:space-between;
    gap:10px;
  }
  .brand{display:flex;align-items:center;gap:10px;}
  .brand-mark{
    width:38px;height:38px;border-radius:50%;
    border:1.5px dashed rgba(243,241,230,0.55);
    display:flex;align-items:center;justify-content:center;
    flex:none;
  }
  .brand-mark svg{width:20px;height:20px;}
  .brand-text .name{font-size:16px;font-weight:700;line-height:1.1;letter-spacing:0.2px;}
  .brand-text .tag{font-size:10.5px;color:#C9D9D2;margin-top:2px;font-family:var(--font-body);}
  .lang-switch{display:flex;background:rgba(243,241,230,0.12);border-radius:999px;padding:3px;gap:2px;}
  .lang-switch button{
    border:none;background:transparent;color:#C9D9D2;
    font-size:11.5px;font-weight:600;padding:6px 9px;border-radius:999px;
    transition:background .15s,color .15s;
  }
  .lang-switch button.active{background:var(--gold);color:#2A1D08;}
  /* Floating variant used on top of the dark Feed itself (glass pill over video). */
  .lang-switch--floating{
    background:rgba(0,0,0,0.45);border:1px solid rgba(255,255,255,0.22);
    -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  }
  .lang-switch--floating button{color:#fff;}
  .lang-switch--floating button.active{background:var(--gold);color:#2A1D08;}

  /* ---------- Tabs: bottom nav with a raised center "post" button ---------- */
  nav.tabbar{
    position:fixed;bottom:0;left:0;right:0;z-index:50;
    background:rgba(10,10,12,0.92);
    -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
    border-top:1px solid rgba(255,255,255,0.12);
    display:flex;align-items:stretch;
    max-width:480px;margin:0 auto;overflow:visible;
    height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom);
  }
  @media (min-width:760px){
    nav.tabbar{max-width:900px;}
  }
  nav.tabbar button[data-tab]{
    flex:1;border:none;background:transparent;padding:10px 4px 12px;
    display:flex;flex-direction:column;align-items:center;gap:4px;
    color:rgba(255,255,255,0.55);font-size:10.5px;font-weight:700;line-height:1.15;
  }
  nav.tabbar button[data-tab] svg{width:22px;height:22px;stroke:rgba(255,255,255,0.55);transition:stroke .15s;}
  nav.tabbar button[data-tab].active{color:var(--feed-cyan);}
  nav.tabbar button[data-tab].active svg{stroke:var(--feed-cyan);}
  html[dir="rtl"] nav.tabbar button[data-tab]{font-size:12.5px;}
  html[dir="rtl"][data-lang="ur"] nav.tabbar button[data-tab]{font-size:14px;font-weight:700;line-height:1.3;}
  html[dir="rtl"][data-lang="ur"]{--tabbar-h:70px;}
  .tabbar-post{
    flex:none;align-self:flex-start;margin-top:-22px;
    display:flex;align-items:center;justify-content:center;
    width:60px;height:60px;border-radius:20px;border:none;
    background:var(--green);color:#fff;
    box-shadow:0 8px 22px rgba(15,92,78,0.55);
  }
  .tabbar-post svg{width:26px;height:26px;}
  .tabbar-post:active{transform:scale(0.94);}

  main{padding:20px 18px 8px;}
  @media (max-width:759px){
    #view-housing{padding:0;}
  }
  section.view{display:none;}
  section.view.active{display:block;animation:fadeUp .35s ease;}
  @keyframes fadeUp{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}

  /* ---------- Common bits ---------- */
  .eyebrow{
    font-size:11px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;
    color:var(--gold);margin:0 0 6px;
  }
  html[dir="rtl"] .eyebrow{letter-spacing:0;}
  h1.page-title{font-size:23px;margin:0 0 4px;color:var(--ink);}
  p.page-sub{color:var(--ink-soft);font-size:14px;margin:0 0 18px;line-height:1.5;}

  /* ---------- Guide Hub ---------- */
  .guide-grid{display:grid;grid-template-columns:1fr;gap:10px;}
  .guide-card{
    background:var(--card);border:1px solid var(--line);border-radius:var(--radius-md);
    overflow:hidden;
  }
  .guide-head{
    width:100%;display:flex;align-items:center;gap:12px;padding:14px 16px;
    background:transparent;border:none;text-align:start;
  }
  .guide-head .ic{width:38px;height:38px;border-radius:11px;background:var(--green-tint);color:var(--accent-mint);
    display:flex;align-items:center;justify-content:center;flex:none;}
  .guide-head .ic svg{width:19px;height:19px;}
  .guide-head .tt{flex:1;}
  .guide-head .tt h3{margin:0;font-size:14.5px;color:var(--ink);}
  .guide-head .tt span{font-size:11.5px;color:var(--ink-faint);}
  .chev{width:16px;height:16px;flex:none;transition:transform .2s;color:var(--ink-faint);}
  .guide-card.open .chev{transform:rotate(180deg);}
  .guide-body{max-height:0;overflow:hidden;transition:max-height .25s ease;}
  .guide-card.open .guide-body{max-height:900px;}
  .guide-body-inner{padding:0 16px 18px 16px;font-size:13px;color:var(--ink-soft);line-height:1.65;border-top:1px dashed var(--line);margin-top:2px;padding-top:14px;}
  .guide-body-inner ul{margin:6px 0;padding-inline-start:18px;}
  .guide-body-inner li{margin-bottom:5px;}
  .emergency-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px;}
  .em-item{background:var(--brick-tint);border-radius:var(--radius-sm);padding:10px 12px;}
  .em-item .num{font-family:var(--font-display);font-weight:700;font-size:17px;color:var(--accent-coral);}
  .em-item .lbl{font-size:11px;color:rgba(255,255,255,0.75);}

  /* ---------- Housing/Feed: filters (light sheet on the dark app) ---------- */
  .filter-scrim{display:none;}
  .filter-bar{
    background:var(--sheet-bg);border:1px solid var(--sheet-line);border-radius:var(--radius-md);
    padding:14px 16px;margin-bottom:16px;color:var(--sheet-ink);
  }
  .filter-sheet-head,.filter-apply{display:none;}
  .filter-group-label{margin:0 0 10px;font-family:var(--font-display);font-size:14.5px;font-weight:700;color:var(--sheet-ink);}
  .filter-option-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:22px;}
  .filter-option{
    border:2px solid var(--sheet-line);background:#fff;border-radius:16px;padding:16px 12px;
    font-family:var(--font-display);font-size:15px;font-weight:700;color:var(--sheet-ink-soft);text-align:center;
  }
  .filter-option.active{border-color:var(--green);background:rgba(15,92,78,0.12);color:var(--green-dark);}
  .filter-icon-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:22px;}
  .filter-icon-option{
    border:1.5px solid var(--sheet-line);background:#fff;border-radius:16px;padding:12px 6px;
    display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--sheet-ink-soft);
  }
  .filter-icon-option svg{width:24px;height:24px;}
  .filter-icon-option span{font-family:var(--font-display);font-size:12px;font-weight:700;}
  .filter-icon-option.active{border-color:var(--green);border-width:2px;background:rgba(15,92,78,0.12);color:var(--green-dark);}
  .filter-chip-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px;}
  .filter-chip{
    padding:10px 15px;border-radius:999px;background:#fff;border:1.5px solid var(--sheet-line);
    color:var(--sheet-ink-soft);font-family:var(--font-display);font-size:13.5px;font-weight:700;
  }
  .filter-chip.active{background:var(--green-dark);border-color:var(--green-dark);color:#fff;}
  .fab-badge{display:none;}
  .sheet-grabber,.sheet-close{display:none;}

  /* ---------- Forms ---------- */
  .panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-md);padding:18px;margin-bottom:20px;}
  .panel h3{margin:0 0 4px;font-size:15px;color:var(--ink);}
  .panel .hint{font-size:12px;color:var(--ink-faint);margin:0 0 14px;}
  .field{margin-bottom:12px;}
  .field label{display:block;font-size:11.5px;font-weight:600;color:var(--ink-soft);margin-bottom:5px;}
  .field-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:5px;}
  .field-label-row label{margin-bottom:0;}
  .field-req-tag{font-size:10.5px;font-weight:600;color:var(--ink-faint);flex:none;}
  .field-req-tag--required{color:var(--accent-mint);}
  .field input,.field select,.field textarea{
    width:100%;border:1px solid var(--line);background:rgba(255,255,255,0.04);border-radius:var(--radius-sm);
    padding:10px 12px;font-size:13px;color:var(--ink);font-family:var(--font-body);
  }
  .field textarea{resize:vertical;min-height:64px;}
  .field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
  .toggle-row{display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,0.04);border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 12px;margin-bottom:12px;}
  .toggle-row span{font-size:12.5px;color:var(--ink-soft);font-weight:600;}
  .switch{position:relative;width:38px;height:22px;flex:none;}
  .switch input{opacity:0;width:0;height:0;}
  .switch .track{position:absolute;inset:0;background:var(--line);border-radius:999px;transition:.15s;}
  .switch .track::before{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.15s;}
  .switch input:checked + .track{background:var(--green);}
  .switch input:checked + .track::before{transform:translateX(16px);}
  html[dir="rtl"] .switch input:checked + .track::before{transform:translateX(-16px);}
  .btn-primary{
    width:100%;background:var(--green);color:#fff;border:none;padding:12px;border-radius:999px;
    font-size:13.5px;font-weight:700;margin-top:4px;
  }
  .btn-primary:hover{background:var(--green-dark);}
  .toggle-open{
    display:flex;align-items:center;justify-content:center;gap:8px;
    width:100%;border:1.5px dashed var(--accent-mint);background:var(--green-tint);color:var(--ink);
    padding:12px;border-radius:var(--radius-md);font-size:13px;font-weight:700;margin-bottom:16px;
  }
  .toggle-open svg{width:15px;height:15px;}

  /* ---------- Forum / category chips ---------- */
  .cat-chip-row{display:flex;gap:7px;overflow-x:auto;padding-bottom:8px;margin-bottom:16px;}
  .cat-chip{
    flex:none;border:1px solid var(--line);background:var(--card);border-radius:999px;
    padding:7px 13px;font-size:11.5px;font-weight:600;color:var(--ink-soft);
  }
  .cat-chip.active{background:var(--green);border-color:var(--green);color:#fff;}

  /* ---------- Quick composer: full-screen 2-step wizard ---------- */
  .quick-composer-scrim{display:none;}
  .composer{display:none;}
  .composer.open{
    display:flex;flex-direction:column;position:fixed;z-index:96;inset:0;
    background:linear-gradient(170deg,#12201C,#0A0A0C 55%);color:#fff;
    overflow-y:auto;
  }
  .quick-composer-scrim.open{display:block;position:fixed;inset:0;z-index:95;background:rgba(0,0,0,0.6);}
  .composer-step{padding:24px 20px 12px;flex:1;}
  .composer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;}
  .composer-close,.composer-back{
    width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,0.22);
    background:rgba(255,255,255,0.08);color:#fff;display:flex;align-items:center;justify-content:center;
  }
  .composer-close svg,.composer-back svg{width:22px;height:22px;}
  html[dir="rtl"] .composer-back svg{transform:scaleX(-1);}
  .composer-dots{display:flex;gap:6px;align-items:center;}
  .composer-dots .dot{width:34px;height:6px;border-radius:999px;background:rgba(255,255,255,0.22);}
  .composer-dots .dot.active{background:var(--feed-cyan);}
  .composer-step h2{margin:0 0 8px;font-size:25px;line-height:1.4;color:#fff;}
  .composer-sub{margin:0 0 24px;font-size:14px;line-height:1.7;color:rgba(255,255,255,0.62);}
  .composer-options{display:flex;flex-direction:column;gap:14px;}
  .composer-option{
    display:flex;align-items:center;gap:14px;width:100%;text-align:start;
    border:2px solid rgba(255,255,255,0.14);background:rgba(255,255,255,0.05);
    border-radius:20px;padding:18px;color:#fff;
  }
  .composer-option.active{border-color:var(--feed-cyan);background:rgba(35,241,234,0.10);}
  .composer-option-ic{
    flex:none;width:54px;height:54px;border-radius:16px;display:flex;align-items:center;justify-content:center;
  }
  .composer-option-ic svg{width:27px;height:27px;}
  .composer-option-ic--cyan{background:var(--feed-cyan);color:#08201C;}
  .composer-option-ic--blue{background:#5E7CFF;color:#08111F;}
  .composer-option-ic--gold{background:var(--gold);color:#2A1D08;}
  .composer-option-body{flex:1;display:flex;flex-direction:column;gap:3px;}
  .composer-option-body strong{font-family:var(--font-display);font-size:17px;font-weight:700;}
  .composer-option-body span{font-size:13px;line-height:1.5;color:rgba(255,255,255,0.65);}
  .composer-option-check{width:22px;height:22px;flex:none;opacity:0;color:var(--feed-cyan);}
  .composer-option.active .composer-option-check{opacity:1;}

  .composer-field-label{margin:0 0 10px;font-family:var(--font-display);font-size:14px;font-weight:700;color:#fff;}
  .composer-field-card{border:1px solid rgba(255,255,255,0.14);background:rgba(255,255,255,0.05);border-radius:18px;padding:16px;margin-bottom:14px;}
  .composer-field-head{display:flex;align-items:center;gap:10px;margin-bottom:12px;font-family:var(--font-display);font-size:15px;font-weight:700;color:#fff;}
  .composer-field-ic{width:32px;height:32px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:none;}
  .composer-field-ic svg{width:17px;height:17px;}
  .composer-field-head--cyan .composer-field-ic{background:rgba(35,241,234,0.16);color:var(--feed-cyan);}
  .composer-field-head--gold .composer-field-ic{background:var(--gold-tint);color:var(--accent-gold-bright);}
  .composer-field-head--green .composer-field-ic{background:rgba(18,140,74,0.22);color:#3AD37E;}
  .composer-rent-row{display:flex;align-items:baseline;gap:8px;background:#0A0A0C;border:1.5px solid var(--feed-cyan);border-radius:14px;padding:12px 14px;}
  .composer-rent-row input{flex:1;border:none;background:transparent;color:#fff;font-family:var(--font-display);font-size:22px;font-weight:700;min-width:0;}
  .composer-rent-row input:focus{outline:none;}
  .composer-rent-row span{font-size:13px;color:rgba(255,255,255,0.55);}
  .composer-plain-input{
    width:100%;background:#0A0A0C;border:1px solid rgba(255,255,255,0.18);border-radius:14px;
    padding:12px 14px;font-family:var(--font-display);font-size:15px;color:#fff;
  }
  .composer-chip-row{display:flex;flex-wrap:wrap;gap:8px;}
  .composer-chip{
    padding:10px 15px;border-radius:999px;background:rgba(255,255,255,0.09);border:none;
    color:#fff;font-family:var(--font-display);font-size:13px;font-weight:700;
  }
  .composer-chip.active{background:var(--feed-cyan);color:#08201C;}
  .composer-advanced-toggle{
    display:flex;align-items:center;justify-content:space-between;width:100%;
    border:none;background:none;color:var(--feed-cyan);font-family:var(--font-display);
    font-size:13.5px;font-weight:700;padding:10px 2px;margin-bottom:6px;
  }
  .composer-advanced-toggle svg{width:18px;height:18px;transition:transform .15s;}
  .composer-advanced-toggle.open svg{transform:rotate(180deg);}
  .composer-footer{position:sticky;bottom:0;padding:14px 20px calc(18px + env(safe-area-inset-bottom));background:linear-gradient(180deg, rgba(10,10,12,0), rgba(10,10,12,0.96) 35%);}
  .composer-cta{height:58px;border-radius:18px;background:var(--feed-cyan);color:#08201C;font-size:17px;display:flex;align-items:center;justify-content:center;gap:8px;}
  .composer-cta:hover{background:#3EF5EE;}
  @media (min-width:760px){
    .composer.open{max-width:480px;left:50%;right:auto;transform:translateX(-50%);border-inline:1px solid rgba(255,255,255,0.1);}
  }

  /* ---- Feed type chips + language pill, floating over the Feed on mobile ---- */
  .explore-chip-bar{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
  .explore-chip-row{flex:1;min-width:0;margin-bottom:0;padding-bottom:0;}
  .explore-nat-filter{
    flex:none;position:relative;width:34px;height:34px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    border:1px solid var(--line);background:var(--card);color:var(--ink-soft);
  }
  .explore-nat-filter:active{transform:scale(0.92);}
  .explore-nat-filter svg{width:16px;height:16px;}
  @media (max-width:759px){
    body.feed-mode .explore-chip-bar{
      position:fixed;z-index:55;left:0;right:0;margin:0;
    }
    body.feed-mode #view-housing .explore-chip-bar:not(.explore-chip-bar--cats){
      top:calc(14px + env(safe-area-inset-top));
      padding-inline:14px;
    }
    body.feed-mode #view-housing .explore-chip-bar--cats{
      top:calc(64px + env(safe-area-inset-top));
      padding-inline-start:14px;padding-inline-end:68px;
    }
    #view-housing .explore-chip-row .cat-chip{
      background:rgba(12,18,15,0.55);border-color:rgba(255,255,255,0.22);color:#fff;
      -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
    }
    #view-housing .explore-chip-row .cat-chip.active{background:var(--green);border-color:rgba(255,255,255,0.30);}
    #view-housing .explore-nat-filter{
      background:rgba(12,18,15,0.55);border-color:rgba(255,255,255,0.22);color:#fff;
      -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
    }
  }
  .q-cat{font-size:10px;font-weight:700;color:var(--gold);text-transform:uppercase;letter-spacing:0.05em;}
  html[dir="rtl"] .q-cat{letter-spacing:0;}
  .replies{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line);display:none;}
  .replies.open{display:block;}
  .reply{
    display:flex;gap:8px;align-items:flex-start;
    background:rgba(255,255,255,0.05);border-radius:var(--radius-sm);padding:10px 12px;margin-bottom:8px;
  }
  .reply .who{flex:none;font-weight:700;color:var(--accent-mint);font-size:12px;line-height:1.5;}
  .reply-body{flex:1;min-width:0;}
  .reply-body > p{margin:0;font-size:12.5px;color:var(--ink-soft);line-height:1.5;}
  .reply-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;}
  .reply-by{
    border:none;background:none;padding:0;font-size:11px;font-weight:700;color:var(--accent-mint);
    text-align:start;
  }
  .reply-by:disabled{cursor:default;color:var(--ink-faint);}
  .reply-vote{
    flex:none;display:flex;align-items:center;gap:4px;
    border:1px solid var(--line);background:var(--card);border-radius:999px;
    padding:3px 9px;font-size:11px;font-weight:700;color:var(--ink-soft);
  }
  .reply-vote:hover{border-color:var(--accent-mint);color:var(--accent-mint);}
  .reply-vote.voted{border-color:var(--accent-mint);background:var(--green-tint);color:var(--accent-mint);}
  .reply-vote:disabled{cursor:default;}
  .reply-compose{display:flex;gap:8px;margin-top:10px;}
  .reply-compose input{
    flex:1;min-width:0;border:1px solid var(--line);background:rgba(255,255,255,0.05);border-radius:999px;
    padding:9px 14px;font-size:12.5px;color:var(--ink);font-family:var(--font-body);
  }
  .reply-compose button{
    flex:none;border:none;background:var(--green);color:#fff;border-radius:999px;
    padding:9px 16px;font-size:12px;font-weight:700;
  }
  .reply-compose button:hover{background:var(--green-dark);}
  .reply-signin-hint{margin:10px 0 0;font-size:11.5px;text-decoration:underline;cursor:pointer;}

  footer.appfoot{text-align:center;padding:18px 20px 6px;font-size:11px;color:var(--ink-faint);line-height:1.6;}

  /* ---------- Page head row (title + share) ---------- */
  .page-head-row{display:flex;align-items:center;justify-content:space-between;gap:10px;}
  .share-btn{
    display:flex;align-items:center;gap:6px;background:var(--card);border:1px solid var(--line);
    border-radius:999px;padding:6px 12px;font-size:11.5px;font-weight:700;color:var(--ink);flex:none;
  }
  .share-btn svg{width:14px;height:14px;}
  .share-btn:hover{border-color:var(--accent-mint);}

  /* ---------- Modals (sign-in / share) ---------- */
  .modal-overlay{
    position:fixed;inset:0;z-index:100;background:rgba(0,0,0,0.65);
    display:flex;align-items:center;justify-content:center;padding:20px;
  }
  .modal-box{
    background:#14151A;border:1px solid var(--line);border-radius:var(--radius-lg);padding:22px;
    width:100%;max-width:380px;box-shadow:0 20px 50px rgba(0,0,0,0.5);
  }
  .modal-box h3{margin:0 0 6px;font-size:16px;color:var(--ink);}
  .modal-box .hint{font-size:12px;color:var(--ink-faint);margin:0 0 14px;line-height:1.5;}
  #shareLinkInput{font-size:12px;}

  /* ---------- TikTok-style video feed (Feed + Community Q&A) ---------- */
  .feed-scroll{
    height:calc(100vh - 300px); min-height:420px; max-height:640px;
    overflow-y:auto; scroll-snap-type:y mandatory; overscroll-behavior:contain;
    border-radius:var(--radius-lg); background:var(--feed-bg);
  }

  /* ---------- Mobile: the Feed tab becomes an edge-to-edge feed ---------- */
  @media (max-width:759px){
    /* Cancel main's padding so the feed is truly full-bleed — no frame. */
    #view-housing{margin:-20px -18px -8px;}
    body.feed-mode{overflow:hidden;}
    /* The fade-up transform would briefly re-anchor the fixed FABs — skip it here. */
    body.feed-mode section.view.active{animation:none;}
    body.feed-mode header.topbar{display:none;}
    body.feed-mode .app{padding-bottom:0;}
    body.feed-mode footer.appfoot{display:none;}

    #view-housing .page-head-row,
    #view-housing .page-title,
    #view-housing .page-sub{
      display:none;
    }

    #view-housing .feed-scroll{
      height:calc(100vh - var(--tabbar-h) - env(safe-area-inset-bottom));
      height:calc(100dvh - var(--tabbar-h) - env(safe-area-inset-bottom));
      min-height:0; max-height:none; border-radius:0; margin:0;
    }

    /* ---- Filters: proper bottom sheet ---- */
    body.feed-mode .filter-sheet{
      position:fixed;inset:0;z-index:90;margin:0;
      visibility:hidden;transition:visibility 0s linear .26s;
    }
    body.feed-mode .filter-sheet.open{visibility:visible;transition-delay:0s;}
    body.feed-mode .filter-scrim{
      display:block;position:absolute;inset:0;
      background:rgba(0,0,0,0.6);opacity:0;transition:opacity .26s ease;
    }
    body.feed-mode .filter-sheet.open .filter-scrim{opacity:1;}
    body.feed-mode .filter-bar{
      position:absolute;left:0;right:0;bottom:0;margin:0 auto;
      width:100%;max-width:480px;max-height:82vh;overflow-y:auto;
      border:none;border-radius:22px 22px 0 0;
      padding:10px 18px calc(18px + env(safe-area-inset-bottom));
      box-shadow:0 -14px 40px rgba(0,0,0,0.5);
      transform:translateY(101%);
      transition:transform .26s cubic-bezier(.22,.85,.3,1);
    }
    body.feed-mode .filter-sheet.open .filter-bar{transform:translateY(0);}
    .filter-sheet-head{
      position:relative;display:flex;align-items:center;justify-content:space-between;
      gap:10px;padding:16px 0 14px;
    }
    body.feed-mode .sheet-grabber{
      display:block;position:absolute;top:0;left:50%;transform:translateX(-50%);
      width:38px;height:4px;border-radius:999px;background:var(--sheet-line);
    }
    .filter-sheet-head h3{margin:0;font-size:16px;color:var(--sheet-ink);}
    .filter-reset{
      border:none;background:none;padding:4px 2px;flex:none;
      font-size:12.5px;font-weight:700;color:var(--green);font-family:var(--font-display);
    }
    body.feed-mode .filter-apply{
      display:flex;align-items:center;justify-content:center;gap:6px;
      margin-top:6px;
    }
    .filter-count{opacity:0.85;font-weight:600;}
  }
  /* Filters open the same way on desktop too — no separate static-panel mode, since
     the sheet itself already reads fine as a centered card at any width. */
  .filter-sheet{
    position:fixed;inset:0;z-index:90;margin:0;
    visibility:hidden;transition:visibility 0s linear .26s;
  }
  .filter-sheet.open{visibility:visible;transition-delay:0s;}
  .filter-scrim{
    display:block;position:absolute;inset:0;
    background:rgba(0,0,0,0.6);opacity:0;transition:opacity .26s ease;
  }
  .filter-sheet.open .filter-scrim{opacity:1;}
  .filter-bar{
    position:absolute;left:0;right:0;bottom:0;margin:0 auto;
    width:100%;max-width:480px;max-height:82vh;overflow-y:auto;
    border:none;border-radius:22px 22px 0 0;
    padding:10px 18px calc(18px + env(safe-area-inset-bottom));
    box-shadow:0 -14px 40px rgba(0,0,0,0.5);
    transform:translateY(101%);
    transition:transform .26s cubic-bezier(.22,.85,.3,1);
  }
  .filter-sheet.open .filter-bar{transform:translateY(0);}
  .sheet-grabber{
    display:block;position:absolute;top:0;left:50%;transform:translateX(-50%);
    width:38px;height:4px;border-radius:999px;background:var(--sheet-line);
  }
  .filter-apply{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:6px;}

  .feed-card{
    scroll-snap-align:start; position:relative; height:100%; width:100%;
    display:flex; align-items:flex-end; overflow:hidden; background:var(--feed-bg);
  }
  .feed-card-wrap{position:relative;height:100%;width:100%;scroll-snap-align:start;}
  .feed-card-wrap .feed-card{scroll-snap-align:none;}
  .feed-card + .feed-card, .feed-card-wrap + .feed-card-wrap{border-top:1px solid rgba(255,255,255,0.06);}
  .feed-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
  .feed-placeholder{
    position:absolute;inset:0;
    background:
      radial-gradient(circle at 30% 20%, rgba(35,241,234,0.18), transparent 55%),
      radial-gradient(circle at 75% 80%, rgba(254,44,85,0.20), transparent 50%),
      linear-gradient(160deg, #101013, #0A0A0C 70%);
    display:flex;align-items:center;justify-content:center;
  }
  .feed-placeholder svg{width:56px;height:56px;stroke:rgba(255,255,255,0.35);}
  .feed-placeholder--inquiry{
    background:
      radial-gradient(circle at 25% 25%, rgba(35,241,234,0.28), transparent 55%),
      radial-gradient(circle at 80% 75%, rgba(94,124,255,0.22), transparent 50%),
      linear-gradient(160deg, #0B1420, #0A0A0C 72%);
  }
  .feed-placeholder--inquiry svg{width:72px;height:72px;stroke:rgba(35,241,234,0.55);}
  .feed-placeholder--guide{
    background:
      radial-gradient(circle at 25% 25%, rgba(255,196,74,0.28), transparent 55%),
      radial-gradient(circle at 80% 75%, rgba(254,44,85,0.16), transparent 50%),
      linear-gradient(160deg, #1A140A, #0A0A0C 72%);
  }
  .feed-placeholder--guide svg{width:72px;height:72px;stroke:rgba(255,196,74,0.65);}
  .feed-scrim{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.75) 100%);}
  .feed-mute{
    position:absolute;top:calc(14px + env(safe-area-inset-top));inset-inline-start:14px;
    width:32px;height:32px;border-radius:50%;z-index:3;
    background:rgba(0,0,0,0.4);border:1px solid rgba(255,255,255,0.25);
    display:flex;align-items:center;justify-content:center;color:#fff;
  }
  .feed-mute svg{width:16px;height:16px;}
  /* ---- Action rail: avatar · like · WhatsApp · save · share ---- */
  .feed-rail{
    position:absolute;inset-inline-end:12px;bottom:128px;display:flex;flex-direction:column;gap:14px;align-items:center;z-index:3;
  }
  .feed-avatar-wrap{
    margin-bottom:2px;padding:0;border:none;background:none;border-radius:50%;
    transition:transform .12s ease;
  }
  .feed-avatar-wrap[data-view-profile]{cursor:pointer;}
  .feed-avatar-wrap[data-view-profile]:active{transform:scale(0.9);}
  .feed-avatar-wrap:disabled{cursor:default;}
  .feed-avatar{
    width:44px;height:44px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    background:linear-gradient(145deg, var(--feed-cyan), var(--green));
    color:#0A0A0C;font-family:var(--font-display);font-weight:700;font-size:16px;
    border:2.5px solid var(--feed-ink);
  }
  .feed-rail button{
    width:52px;height:52px;border-radius:50%;border:none;
    display:flex;align-items:center;justify-content:center;color:#fff;
    transition:transform .12s ease;
  }
  .feed-rail button:active{transform:scale(0.88);}
  .feed-rail button svg{width:23px;height:23px;}
  .feed-rail .lk{background:rgba(254,44,85,0.20);}
  .feed-rail .lk svg{fill:none;stroke:#fff;stroke-width:1.6;transition:fill .15s,stroke .15s;}
  .feed-rail .lk.active{background:rgba(254,44,85,0.30);}
  .feed-rail .lk.active svg{fill:var(--feed-pink);stroke:var(--feed-pink);animation:likePop .35s ease;}
  .feed-rail .wa{background:#128C4A;}
  .feed-rail .ans{background:linear-gradient(145deg, #5E7CFF, #23F1EA);}
  .feed-rail .sv{background:rgba(255,255,255,0.16);}
  .feed-rail .sv svg{fill:none;stroke:#fff;stroke-width:1.9;}
  .feed-rail .sv.active svg{fill:var(--feed-cyan);stroke:var(--feed-cyan);}
  .feed-rail .sh{background:linear-gradient(145deg, var(--feed-cyan), #0FBDB6);}
  .feed-rail .lbl{font-size:9px;color:var(--feed-ink-soft);text-align:center;margin-top:-6px;font-weight:600;}
  @keyframes likePop{0%{transform:scale(1);}35%{transform:scale(1.35);}100%{transform:scale(1);}}

  /* ---- Double-tap heart burst, dead center over the card ---- */
  .feed-heart-burst{
    position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;
    pointer-events:none; opacity:0;
  }
  .feed-heart-burst svg{width:96px;height:96px;fill:#fff;filter:drop-shadow(0 4px 18px rgba(0,0,0,0.35));transform:scale(0.5);}
  .feed-heart-burst.play{animation:heartBurst .7s ease forwards;}
  .feed-heart-burst.play svg{animation:heartBurstScale .7s cubic-bezier(.17,.89,.32,1.49) forwards;}
  @keyframes heartBurst{0%{opacity:0;}12%{opacity:1;}70%{opacity:1;}100%{opacity:0;}}
  @keyframes heartBurstScale{0%{transform:scale(0.4);}45%{transform:scale(1.15);}70%{transform:scale(0.95);}100%{transform:scale(1);}}

  .feed-content{
    position:relative;z-index:2;width:100%;color:var(--feed-ink);
    padding:18px 18px 20px;
    padding-inline-end:76px; /* clears the action rail — flips correctly in RTL */
  }
  .feed-handle{display:flex;align-items:center;gap:8px;margin-bottom:9px;}
  .feed-handle-link{
    display:flex;align-items:center;gap:8px;min-width:0;flex:1;
    border:none;background:none;padding:0;text-align:start;
  }
  .feed-handle-link[data-view-profile]{cursor:pointer;}
  .feed-handle-link[data-view-profile]:active .handle-name{opacity:0.75;}
  .feed-handle-link:disabled{cursor:default;}
  .feed-avatar-sm{
    width:24px;height:24px;border-radius:50%;flex:none;
    display:flex;align-items:center;justify-content:center;
    background:linear-gradient(145deg, var(--feed-cyan), var(--green));
    color:#0A0A0C;font-family:var(--font-display);font-weight:700;font-size:11px;
  }
  .handle-name{font-size:12.5px;font-weight:700;color:#fff;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .feed-price-pill{
    flex:none;font-family:var(--font-display);font-weight:700;color:#0A0A0C;font-size:11.5px;
    background:var(--feed-cyan);padding:3px 10px;border-radius:999px;
    display:flex;align-items:center;gap:4px;
  }
  .feed-price-pill--muted{background:rgba(255,255,255,0.16);color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
  .feed-price-pill--muted svg{width:11px;height:11px;}
  .feed-content h3{margin:0 0 6px;font-size:16px;color:#fff;font-weight:700;}
  .feed-tag-row{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;}
  .feed-tag{font-size:10.5px;font-weight:700;padding:3px 9px;border-radius:999px;background:rgba(255,255,255,0.14);color:var(--feed-cyan);backdrop-filter:blur(4px);}
  .feed-desc{font-size:12.5px;color:var(--feed-ink-soft);line-height:1.5;max-width:90%;}
  .feed-desc--quote{font-size:16.5px;font-weight:600;color:#fff;line-height:1.45;max-width:94%;}

  /* ---- Sound ticker ---- */
  .feed-sound{
    display:flex;align-items:center;gap:7px;margin-top:11px;
    max-width:220px;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent);
  }
  .feed-sound-ic{flex:none;display:flex;color:#fff;opacity:0.85;}
  .feed-sound-ic svg{width:13px;height:13px;}
  .feed-sound-track{
    display:flex;gap:28px;white-space:nowrap;font-size:11px;color:var(--feed-ink-soft);font-weight:600;
    animation:soundScroll 9s linear infinite;
  }
  @media (prefers-reduced-motion: reduce){ .feed-sound-track{animation:none;} }
  @keyframes soundScroll{from{transform:translateX(0);}to{transform:translateX(-50%);}}
  html[dir="rtl"] .feed-sound-track{animation-name:soundScrollRtl;}
  @keyframes soundScrollRtl{from{transform:translateX(0);}to{transform:translateX(50%);}}
  .feed-card--empty{align-items:center;justify-content:center;}
  .feed-empty{
    position:relative;z-index:2;
    display:flex;flex-direction:column;align-items:center;gap:6px;
    color:var(--feed-ink-soft);font-size:13px;text-align:center;padding:30px;
  }
  .feed-empty strong{font-family:var(--font-display);font-size:15.5px;color:#fff;}
  .feed-empty p{margin:0;line-height:1.5;max-width:28ch;font-size:12.5px;}
  .feed-empty button{
    margin-top:12px;padding:9px 20px;border-radius:999px;
    background:rgba(255,255,255,0.14);border:1px solid rgba(255,255,255,0.28);
    color:#fff;font-size:12.5px;font-weight:700;
    -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  }

  /* ---- Community Q&A: inline reply panel, slides over the question card ---- */
  .feed-replies-panel{
    position:absolute;inset:0;z-index:10;background:rgba(6,10,9,0.94);
    -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
    padding:60px 18px 20px;display:none;overflow-y:auto;color:#fff;
  }
  .feed-replies-panel.open{display:block;}
  .feed-replies-close{
    position:absolute;top:16px;inset-inline-end:16px;width:40px;height:40px;border-radius:50%;
    border:1px solid rgba(255,255,255,0.22);background:rgba(255,255,255,0.08);color:#fff;
    display:flex;align-items:center;justify-content:center;
  }
  .feed-replies-close svg{width:18px;height:18px;}
  .feed-replies-q{font-family:var(--font-display);font-size:17px;font-weight:700;margin:0 0 16px;line-height:1.4;}
  .feed-replies-list{display:flex;flex-direction:column;gap:8px;}

  /* ---------- Buddy cards ---------- */
  .buddy-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-md);padding:16px;margin-bottom:12px;}
  .buddy-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;}
  .buddy-top h3{margin:0;font-size:14.5px;color:var(--ink);}
  .buddy-desc{font-size:12.5px;color:var(--ink-soft);line-height:1.5;margin:6px 0 10px;}
  .tag-row{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 4px;}
  .tag{font-size:10.5px;font-weight:600;padding:4px 9px;border-radius:999px;background:var(--green-tint);color:var(--accent-mint);}
  .tag.alt{background:var(--gold-tint);color:var(--accent-gold-bright);}
  .wa-btn{
    display:flex;align-items:center;gap:7px;background:#128C4A;color:#fff;border:none;
    padding:9px 14px;border-radius:999px;font-size:12.5px;font-weight:700;
  }
  .wa-btn svg{width:15px;height:15px;fill:#fff;}

  /* ---------- Profile ---------- */
  .pf-back{
    display:flex;align-items:center;gap:6px;border:none;background:none;
    padding:4px 2px;margin-bottom:14px;color:var(--ink-soft);font-size:13px;font-weight:700;
  }
  .pf-back svg{width:17px;height:17px;}
  html[dir="rtl"] .pf-back svg{transform:scaleX(-1);}
  .pf-head{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding:6px 0 20px;}
  .pf-signout{
    position:absolute;top:0;inset-inline-end:0;
    display:flex;align-items:center;justify-content:center;
    width:36px;height:36px;border-radius:50%;
    border:1px solid var(--line);background:var(--card);color:var(--ink-soft);
  }
  .pf-signout:hover{border-color:var(--brick);color:var(--brick);}
  .pf-signout svg{width:16px;height:16px;}
  .pf-avatar-ring{
    padding:3px;border-radius:50%;
    background:conic-gradient(var(--feed-cyan), var(--gold), var(--brick), var(--feed-cyan));
    margin-bottom:12px;
  }
  .pf-avatar{
    width:84px;height:84px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    background:linear-gradient(145deg, var(--green), var(--green-dark));
    border:3px solid var(--bg);
    color:#fff;font-family:var(--font-display);font-weight:700;font-size:32px;
  }
  .pf-name{margin:0;font-size:19px;color:var(--ink);}
  .pf-handle{margin:2px 0 0;font-size:13px;color:var(--ink-faint);font-weight:600;direction:ltr;}
  .pf-since{margin:6px 0 0;font-size:11px;color:var(--ink-faint);}
  .pf-badge{
    display:inline-flex;align-items:center;gap:5px;margin-top:8px;
    padding:5px 12px;font-size:11px;
  }
  .pf-badge svg{width:12px;height:12px;}
  .pf-share-rank{width:auto;margin-top:12px;padding:9px 16px;}
  .pf-share-rank svg{width:14px;height:14px;}
  .pf-head-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap;justify-content:center;}
  .pf-head-actions .wa-btn{width:auto;padding:9px 16px;}
  .pf-head-actions .wa-btn svg{width:14px;height:14px;}

  .pf-stats-row{
    display:flex;justify-content:center;gap:0;
    border-top:1px solid var(--line);border-bottom:1px solid var(--line);
    padding:14px 0;margin-bottom:18px;
  }
  .pf-stat{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;position:relative;}
  .pf-stat + .pf-stat::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:1px;background:var(--line);}
  html[dir="rtl"] .pf-stat + .pf-stat::before{left:auto;right:0;}
  .pf-stat .n{font-family:var(--font-display);font-weight:700;font-size:19px;color:var(--accent-mint);}
  .pf-stat .lbl{font-size:10.5px;color:var(--ink-faint);font-weight:600;}

  .pf-tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:12px;}
  .pf-tab{
    flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;
    padding:10px 4px;border:none;border-bottom:2.5px solid transparent;
    background:transparent;color:var(--ink-faint);font-size:11px;font-weight:700;
    margin-bottom:-1px;
  }
  .pf-tab svg{width:19px;height:19px;stroke:var(--ink-faint);}
  .pf-tab.active{color:var(--ink);border-bottom-color:var(--accent-mint);}
  .pf-tab.active svg{stroke:var(--ink);}

  .pf-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-bottom:6px;}
  .pf-tile{
    position:relative;aspect-ratio:3/4;border-radius:8px;overflow:hidden;
    background:var(--feed-bg);display:flex;align-items:flex-end;
    cursor:pointer;transition:transform .12s ease;
  }
  .pf-tile:active{transform:scale(0.96);}
  .pf-tile-media{
    position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
    background:radial-gradient(circle at 30% 20%, rgba(35,241,234,0.16), transparent 55%),
               radial-gradient(circle at 75% 80%, rgba(254,44,85,0.18), transparent 50%),
               linear-gradient(160deg, #101013, #0A0A0C 70%);
  }
  .pf-tile-media svg{width:26px;height:26px;stroke:rgba(255,255,255,0.3);}
  .pf-tile-scrim{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.72) 100%);}
  .pf-tile-info{position:relative;z-index:2;width:100%;padding:7px 8px;color:#fff;line-height:1.25;}
  .pf-tile-info strong{display:block;font-family:var(--font-display);font-size:11.5px;}
  .pf-tile-info span{display:block;font-size:9.5px;color:rgba(255,255,255,0.75);}
  .pf-tile-snippet{
    display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;
    overflow:hidden;font-weight:600;font-size:10.5px!important;color:#fff!important;
  }
  .pf-grid-empty{
    grid-column:1/-1;padding:34px 20px;text-align:center;
    font-size:12.5px;color:var(--ink-faint);
    background:var(--card);border-radius:var(--radius-md);
  }
  .guest-inline-grid{margin-bottom:14px;}

  /* ---------- Guest (signed-out) profile ---------- */
  #profileSignedOut{padding-top:12px;text-align:center;}
  .guest-avatar{
    width:96px;height:96px;border-radius:50%;margin:0 auto 18px;
    background:rgba(255,255,255,0.06);border:2px dashed rgba(255,255,255,0.28);
    display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,0.6);
  }
  .guest-avatar svg{width:44px;height:44px;}
  .guest-title{margin:0 0 8px;font-size:22px;color:var(--ink);}
  .guest-sub{margin:0 auto 26px;font-size:14px;line-height:1.7;color:var(--ink-soft);max-width:34ch;}
  .guest-rows{display:flex;flex-direction:column;gap:10px;margin-bottom:22px;text-align:start;}
  .guest-row{
    display:flex;align-items:center;gap:14px;width:100%;
    background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px 16px;color:var(--ink);
  }
  .guest-row-ic{flex:none;width:44px;height:44px;border-radius:13px;display:flex;align-items:center;justify-content:center;}
  .guest-row-ic svg{width:22px;height:22px;}
  .guest-row-ic--pink{background:rgba(254,44,85,0.18);color:var(--feed-pink);}
  .guest-row-ic--cyan{background:rgba(35,241,234,0.16);color:var(--feed-cyan);}
  .guest-row-ic--gold{background:var(--gold-tint);color:var(--accent-gold-bright);}
  .guest-row-body{flex:1;text-align:start;display:flex;flex-direction:column;gap:2px;min-width:0;}
  .guest-row-body strong{font-family:var(--font-display);font-size:15px;}
  .guest-row-body span{font-size:12.5px;color:var(--ink-faint);}
  .guest-row-chev{flex:none;width:18px;height:18px;color:var(--ink-faint);}
  .guest-inline-lang{display:flex;gap:8px;padding:6px 4px 16px;}
  .guest-inline-lang button{
    flex:1;border:1px solid var(--line);background:var(--card);color:var(--ink-soft);
    border-radius:999px;padding:10px;font-size:13px;font-weight:700;
  }
  .guest-inline-lang button.active{background:var(--gold);border-color:var(--gold);color:#2A1D08;}
  .guest-signin-btn{display:flex;align-items:center;justify-content:center;gap:10px;height:58px;font-size:16px;background:var(--feed-cyan);color:#08201C;}
  .guest-signin-btn:hover{background:#3EF5EE;}
  .guest-signin-btn svg{width:20px;height:20px;}

  /* ---------- Top Helpers leaderboard ---------- */
  .lb-head-row{margin-bottom:14px;}
  .lb-month{
    font-family:var(--font-display);font-weight:700;font-size:15px;
    color:var(--ink);margin:0 0 10px;
  }
  .lb-row{
    display:flex;align-items:center;gap:10px;
    background:var(--card);border:1px solid var(--line);border-radius:var(--radius-md);
    padding:10px 12px;margin-bottom:8px;
  }
  .lb-rank{
    flex:none;width:22px;text-align:center;
    font-family:var(--font-display);font-weight:700;font-size:13px;color:var(--ink-faint);
  }
  .lb-row:nth-child(1) .lb-rank{color:var(--gold);}
  .lb-row:nth-child(2) .lb-rank{color:#C7CBD1;}
  .lb-row:nth-child(3) .lb-rank{color:#D6A97E;}
  .lb-identity{
    display:flex;align-items:center;gap:9px;flex:1;min-width:0;
    border:none;background:none;padding:0;text-align:start;
  }
  .lb-avatar{
    width:32px;height:32px;border-radius:50%;flex:none;
    display:flex;align-items:center;justify-content:center;
    background:linear-gradient(145deg, var(--green), var(--green-dark));
    color:#fff;font-family:var(--font-display);font-weight:700;font-size:13px;
  }
  .lb-name{font-size:13px;font-weight:700;color:var(--ink);display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .lb-badge{flex:none;width:15px;height:15px;color:var(--gold);}
  .lb-badge svg{width:100%;height:100%;}
  .lb-stats{flex:none;font-size:10.5px;color:var(--ink-faint);text-align:end;}
  .lb-contact{flex:none;width:36px;height:36px;padding:0;justify-content:center;}
  .lb-contact svg{width:16px;height:16px;}

  /* ---------- Auth modal (WhatsApp OTP) ---------- */
  .auth-error{
    font-size:12px;color:var(--accent-coral);background:var(--brick-tint);
    border-radius:var(--radius-sm);padding:8px 12px;margin:0 0 12px;
  }

  ::-webkit-scrollbar{height:0;width:0;}
