
  /* =========================
      Home — App-like (Nik)
      (Typography + Micro-UX polish)
     ========================= */

  .home{
    margin-top:10px;
    padding-bottom: 8px;

    /* Typography scale (local to this page; won't affect other pages) */
    --fs-xxs: 11px;
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-base: 14px;
    --fs-lg: 16px;
    --fs-xl: 18px;
    --fs-2xl: 20px;

    --lh-tight: 1.65;
    --lh-normal: 1.85;
    --lh-loose: 1.95;

    --fw-black: 950;
    --fw-bold: 900;
    --fw-semi: 850;
    --fw-med: 800;

    /* subtle interaction */
    --t-fast: .14s ease;
  }

  /* Reduce motion */
  @media (prefers-reduced-motion: reduce){
    .home *{ transition: none !important; }
  }

  /* ---- Search ---- */
  .top-search{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border:1px solid var(--line);
    background: var(--card);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  }
  .top-search .i{ color: var(--iconMuted); font-size:18px; }
  .top-search input{
    border:0; outline:0;
    background:transparent;
    width:100%;
    color: var(--text);
    font-weight: var(--fw-bold);
    font-size: var(--fs-base);
    line-height: var(--lh-tight);
  }
  .top-search input::placeholder{
    color: var(--muted2);
    font-weight: var(--fw-semi);
  }
  .top-search:focus-within{
    border-color: rgba(31,122,255,.35);
    box-shadow: 0 0 0 4px rgba(31,122,255,.12), var(--shadow);
  }
  .filter-btn{
    border:0;
    background:transparent;
    padding:6px;
    border-radius: 12px;
    color: var(--iconMuted);
    display:flex; align-items:center; justify-content:center;
    transition: background var(--t-fast), transform var(--t-fast);
  }
  .filter-btn:active{ transform: scale(.98); }
  .filter-btn:focus-visible{
    outline: 0;
    box-shadow: 0 0 0 4px rgba(31,122,255,.12);
  }

  /* ---- Hero ---- */
  .hero{
    margin-top:12px;
    border-radius: 18px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.10);
    box-shadow: var(--shadow);
    background:
      radial-gradient(520px 260px at 0% 85%, rgba(255,255,255,.16), transparent 60%),
      radial-gradient(520px 280px at 100% 0%, rgba(0,0,0,.12), transparent 58%),
      linear-gradient(90deg, #1dd6a9 0%, #0fc6a1 55%, #12d4a8 100%);
  }
  .hero-in{
    padding:18px;
    display:flex;
    align-items:stretch;
    justify-content:space-between;
    gap:14px;
  }
  .hero-t{
    min-width:0;
    flex: 1 1 auto;
    color:#fff;
    text-align:right;
  }
  .hero-title{
    margin:0;
    font-weight: var(--fw-black);
    font-size: clamp(16px, 2.3vw, 20px);
    line-height: var(--lh-loose);
    letter-spacing: 0;
  }
  .hero-sub{
    margin:8px 0 0;
    font-weight: var(--fw-semi);
    font-size: clamp(12px, 2vw, 14px);
    opacity:.92;
    line-height: var(--lh-normal);
  }
  .hero-actions{
    margin-top:12px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
  }
  .hero-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 12px;
    border-radius: 14px;
    background: rgba(0,0,0,.16);
    border:1px solid rgba(255,255,255,.22);
    color:#fff;
    text-decoration:none;
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    line-height: var(--lh-tight);
    -webkit-tap-highlight-color:transparent;
    white-space:nowrap;
    transition: transform var(--t-fast), background var(--t-fast);
  }
  .hero-btn.light{
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.22);
  }
  .hero-btn:active{ transform: scale(.99); }

  .hero-img{
    flex: 0 0 160px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius: 18px;
    overflow:hidden;
    background: rgba(255,255,255,.10);
  }
  .hero-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  .hero-img .ph{
    font-size: 28px;
    color: rgba(255,255,255,.92);
  }

  @media(max-width: 768px){
    .hero-in{ padding:14px; }
    .hero-img{ flex-basis: 120px; }
  }
  @media(max-width: 576px){
    .hero-in{ flex-direction:column; }
    .hero-img{ height: 92px; width:100%; flex-basis:auto; }
  }

  /* ---- Sections ---- */
  .sec{ margin-top:14px; }
  .sec-h{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
  }
  .sec-h .t{
    margin:0;
    font-weight: var(--fw-black);
    font-size: var(--fs-sm);
    color: var(--text);
    line-height: var(--lh-tight);
  }
  .sec-h .a{
    text-decoration:none;
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    color: var(--blue);
    white-space:nowrap;
  }

  /* ---- Chips row (quick nav) ---- */
  .chips{
    margin-top:10px;
    display:flex;
    gap:8px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding-bottom:2px;
  }
  .chips::-webkit-scrollbar{ display:none; }
  .chip{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 10px;
    border-radius: 999px;
    border:1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    text-decoration:none;
    color: var(--text);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    line-height: var(--lh-tight);
    white-space:nowrap;
    -webkit-tap-highlight-color:transparent;
    transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  }
  .chip i{ color: var(--iconMuted); font-size:14px; }

  /* ---- Categories (4 icons like screenshot) ---- */
  .cat-wrap{
    border:1px solid var(--line);
    background: var(--card);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 12px;
  }
  .cat-grid{
    display:grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap:12px;
    align-items:start;
  }
  @media(max-width:576px){ .cat-grid{ gap:10px; } }

  .cat-item{
    text-decoration:none;
    color:inherit;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    min-width:0;
    -webkit-tap-highlight-color:transparent;
    transition: transform var(--t-fast);
  }
  .cat-ico{
    width:54px;
    height:54px;
    border-radius: 16px;
    display:grid;
    place-items:center;
    background: #fff;
    border:1px solid #eef1f6;
    box-shadow: 0 10px 18px rgba(15,23,42,.04);
    overflow:hidden;
    transition: transform var(--t-fast);
  }
  [data-bs-theme="dark"] .cat-ico{
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
  }
  .cat-ico img{ width:100%; height:100%; object-fit:cover; display:block; }
  .cat-ico i{ font-size:20px; color: var(--blue); }
  .cat-lbl{
    font-size: var(--fs-xs);
    font-weight: var(--fw-black);
    color: var(--text);
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width: 92px;
    line-height: var(--lh-tight);
  }

  /* ---- Featured (purple cards) ---- */
  .featured-wrap{
    border:1px solid var(--line);
    background: var(--card);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 12px;
  }
  .featured-grid{
    display:grid;
    grid-template-columns: 2fr 1fr;
    gap:12px;
  }
  @media(max-width: 768px){
    .featured-grid{ grid-template-columns: 1fr; }
  }

  .fcard{
    position:relative;
    border-radius: 16px;
    overflow:hidden;
    text-decoration:none;
    color:#fff;
    background: linear-gradient(90deg, #6f73ff 0%, #7b65ff 70%, #7b65ff 100%);
    border:1px solid rgba(255,255,255,.12);
    box-shadow: 0 14px 30px rgba(15,23,42,.10);
    min-height: 118px;
    -webkit-tap-highlight-color:transparent;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
  }
  .f-in{
    padding: 12px;
    display:flex;
    flex-direction:column;
    gap:8px;
    height:100%;
  }
  .f-title{
    margin:0;
    font-weight: var(--fw-black);
    font-size: var(--fs-sm);
    line-height: var(--lh-loose);
  }
  .f-tags{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
  }
  .ftag{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.18);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xxs);
    line-height: var(--lh-tight);
    white-space:nowrap;
  }
  .f-bottom{
    margin-top:auto;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:10px;
  }
  .f-price{
    font-weight: var(--fw-black);
    font-size: var(--fs-xs);
    opacity:.95;
    line-height: var(--lh-tight);
  }
  .f-cta{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:7px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,.14);
    border:1px solid rgba(255,255,255,.18);
    font-weight: var(--fw-black);
    font-size: var(--fs-xs);
    line-height: var(--lh-tight);
  }
  .f-book{
    position:absolute;
    left:10px; top:10px;
    width:30px; height:30px;
    border-radius: 12px;
    background: rgba(255,255,255,.18);
    border:1px solid rgba(255,255,255,.18);
    display:grid;
    place-items:center;
    color:#fff;
  }

  /* ---- Today list (rows) ---- */
  .list{
    border:1px solid var(--line);
    background: var(--card);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow:hidden;
  }
  .rowi{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding: 12px;
    border-bottom:1px solid var(--line);
    text-decoration:none;
    color:inherit;
    background: var(--card);
    -webkit-tap-highlight-color:transparent;
    transition: background var(--t-fast), transform var(--t-fast);
  }
  .rowi:last-child{ border-bottom:0; }
  .row-left{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
  }
  .kebab{
    width:34px; height:34px;
    border-radius: 12px;
    border:1px solid var(--line);
    background: var(--panel);
    display:grid;
    place-items:center;
    color: var(--iconMuted);
    flex:0 0 auto;
  }
  .row-mid{ min-width:0; text-align:right; }
  .row-title{
    margin:0;
    font-weight: var(--fw-black);
    font-size: var(--fs-sm);
    line-height: var(--lh-tight);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .row-meta{
    margin-top:6px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    color: var(--muted2);
    font-weight: var(--fw-semi);
    font-size: var(--fs-xxs);
    line-height: var(--lh-tight);
  }
  .row-meta span{
    display:inline-flex;
    align-items:center;
    gap:6px;
    white-space:nowrap;
  }
  .row-right{
    width:40px; height:40px;
    border-radius: 14px;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    border:1px solid var(--line);
    background: var(--panel);
    color: var(--blue);
  }
  .row-right i{ font-size:18px; }

  /* ---- Horizontal mini cards (posts/people) ---- */
  .hscroll{
    display:flex;
    gap:10px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding-bottom:2px;
  }
  .hscroll::-webkit-scrollbar{ display:none; }

  .pchip{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 10px;
    border-radius: 999px;
    border:1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    text-decoration:none;
    color: var(--text);
    min-width: 0;
    transition: transform var(--t-fast), border-color var(--t-fast);
  }
  .pchip img{
    width:30px; height:30px;
    border-radius: 12px;
    border:1px solid var(--line);
    object-fit:cover;
    background: rgba(15,23,42,.06);
  }
  .pchip .n{
    font-weight: var(--fw-black);
    font-size: var(--fs-xs);
    line-height: var(--lh-tight);
    max-width: 160px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .post-mini{
    flex:0 0 auto;
    width: 240px;
    border-radius: 16px;
    border:1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    overflow:hidden;
    text-decoration:none;
    color: inherit;
    -webkit-tap-highlight-color:transparent;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
  }
  .post-mini .ph{
    width:100%;
    height:120px;
    background: rgba(15,23,42,.05);
    border-bottom:1px solid var(--line);
    overflow:hidden;
  }
  .post-mini .ph img{
    width:100%; height:100%;
    object-fit:cover;
    display:block;
  }
  .post-mini .b{
    padding:10px;
    display:flex;
    flex-direction:column;
    gap:6px;
  }
  .post-mini .tt{
    margin:0;
    font-weight: var(--fw-black);
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .post-mini .dd{
    margin:0;
    font-weight: var(--fw-semi);
    font-size: var(--fs-xs);
    color: var(--muted2);
    line-height: var(--lh-normal);
    height: 44px;
    overflow:hidden;
  }
  .muted{ color: var(--muted2); }

  /* ---- FAQ (Bootstrap accordion polish) ---- */
  #faqHome .accordion-item{ border:0; background:transparent; }
  #faqHome .accordion-button{
    border-radius:14px !important;
    margin-bottom:8px;
    font-weight: var(--fw-black) !important;
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    background: var(--card);
    border:1px solid var(--line);
    box-shadow: var(--shadow);
  }
  #faqHome .accordion-button:focus{
    box-shadow: 0 0 0 4px rgba(31,122,255,.12), var(--shadow);
  }
  #faqHome .accordion-body{
    background: var(--card);
    border:1px solid var(--line);
    border-radius:14px;
    line-height: var(--lh-loose);
    font-size: var(--fs-sm);
    font-weight: var(--fw-med);
    color: var(--text);
  }

  /* ---- Hover micro-interactions (desktop only) ---- */
  @media (hover:hover){
    .chip:hover{ transform: translateY(-1px); border-color: rgba(31,122,255,.25); }
    .cat-item:hover .cat-ico{ transform: translateY(-1px); }
    .rowi:hover{ background: rgba(15,23,42,.02); }
    [data-bs-theme="dark"] .rowi:hover{ background: rgba(255,255,255,.03); }
    .fcard:hover, .post-mini:hover{ transform: translateY(-1px); }
    .pchip:hover{ transform: translateY(-1px); }
  }
