/* explore.css  */

    /* =========================================================
       RESET
       ========================================================= */
    *{
      margin:0;
      padding:0;
      box-sizing:border-box;
    }

    :root{
      --bg:#ffffff;
      --muted:#94a3b8;
      --muted-2:#64748b;
      --border:#e8edf3;
      --active:#0f172a;
      --accent:#0ea5e9;
      --accent-2:#ebf8ff;
      --shadow:0 10px 30px rgba(15,23,42,.05);
      --radius:18px;
      --sidebar-w:255px;
      --page-pad:32px;
      --danger:#ef4444;
      --soft-pink:#fff1f2;
      --soft-red:#fecdd3;
      --text-light:#6b7280;
      --heading:#0b1220;
      --body:#4b5563;
      --soft-bg:#fcfcfd;

      --font-main: Inter, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
      --fw-thin: 300;
      --fw-light: 400;
      --fw-regular: 400;
      --fw-medium: 500;
      --fw-semibold: 600;
      --fw-bold: 700;
      --tracking-tight: -0.02em;
      --tracking-soft: -0.01em;
      --tracking-wide: 0.12em;

      /* UPDATED 👍 much narrower like Instagram */
  --content-max:860px;

  /* UPDATED 👍 strong left-right breathing */
  --content-gutter:120px;
    }

    html{
      scroll-behavior:smooth;
    }

    body{
      font-family:var(--font-main);
      color:var(--heading);
      background:var(--soft-bg);
      font-size:15px;
      line-height:1.75;
      font-weight:var(--fw-regular);
      letter-spacing:var(--tracking-soft);
      -webkit-font-smoothing:antialiased;
      -moz-osx-font-smoothing:grayscale;
      text-rendering:optimizeLegibility;
    }

    /* =========================================================
       SIDEBAR
       ========================================================= */
    .sidebar{
      width:var(--sidebar-w);
      background:var(--bg);
      border-right:1px solid var(--border);
      height:100vh;
      position:fixed;
      left:0;
      top:0;
      display:flex;
      flex-direction:column;
      padding:22px 14px 16px;
      gap:4px;
      z-index:2000;
    }

    .brand{
      display:flex;
      align-items:center;
      padding:2px 6px 12px;
      margin-bottom:6px;
    }

    .home-logo{
      display:flex;
      align-items:center;
      gap:12px;
      text-decoration:none;
      color:inherit;
      line-height:1.2;
      white-space:nowrap;
      border-radius:14px;
      padding:8px 8px;
      min-width:0;
      width:100%;
      background:transparent !important;
      transition:none !important;
      cursor:pointer;
    }

    .home-logo:hover,
    .home-logo:focus,
    .home-logo:active{
      background:transparent !important;
      box-shadow:none !important;
      transform:none !important;
    }

    .home-logo img{
      height:29px;
      width:auto;
      max-width:none;
      object-fit:contain;
      flex-shrink:0;
    }

    .brand-name{
      font-family:var(--font-main);
      font-weight:var(--fw-bold);
      font-size:18px;
      line-height:1.1;
      letter-spacing:-0.03em;
      color:#0b1220;
      white-space:nowrap;
      overflow:visible;
      text-overflow:clip;
    }

    .nav{
      display:flex;
      flex-direction:column;
      gap:2px;
      padding-top:0;
      flex:1;
    }

    /* Sidebar links ke beech tighter spacing */
    .nav-group{
      display:flex;
      flex-direction:column;
      gap:1px;
    }

    /* Sidebar link styling */
    .nav-link{
      display:flex;
      align-items:center;
      justify-content:flex-start;
      gap:5px;
      color:#8190a8;
      text-decoration:none;
      font-size:15px;
      font-weight:var(--fw-regular);
      padding:4px 10px;
      border-radius:16px;
      transition:background .15s ease, color .15s ease;
      position:relative;
      letter-spacing:-0.015em;
      line-height:1.2;
      min-height:44px;
    }

    .nav-link:hover{
      background:#f6f7f9;
      color:var(--active);
    }

    .nav-link > span:last-child{
      white-space:nowrap;
    }

    .icon{
      width:32px;
      height:32px;
      border-radius:10px;
      display:grid;
      place-items:center;
      background:transparent;
      flex:0 0 32px;
    }

    .icon svg,
    .icon i[data-lucide] svg{
      width:20px;
      height:20px;
      stroke:#71829d;
      stroke-width:1.7;
      stroke-linecap:round;
      stroke-linejoin:round;
      fill:none;
    }

    .nav-link.active{
      color:#8190a8;
      font-weight:var(--fw-regular);
      background:transparent;
    }

    .nav-link.active .icon{
      background:transparent;
    }

    .nav-link.active .icon svg,
    .nav-link.active .icon i[data-lucide] svg{
      stroke:#71829d;
    }

    .plus{
      margin-left:auto;
      height:28px;
      min-width:28px;
      padding:0 12px;
      border-radius:999px;
      border:1px solid #e6eaf0;
      background:#fff;
      display:flex;
      align-items:center;
      justify-content:center;
      font-weight:var(--fw-semibold);
      color:#ef4444;
      font-size:11px;
      line-height:1;
      font-family:inherit;
      flex-shrink:0;
    }

    .sidebar-footer{
      margin-top:auto;
      padding-top:8px;
      display:flex;
      flex-direction:column;
      gap:4px;
    }

    .sidebar-footer::before{
      content:"";
      height:1px;
      background:var(--border);
      margin:4px 6px 10px;
      border-radius:999px;
    }

    /* Settings trigger button ko link jaisa hi rakha gaya hai */
    .sidebar-settings-trigger{
      width:100%;
      border:none;
      background:transparent;
      cursor:pointer;
      text-align:left;
      font-family:var(--font-main);
    }

    /* =========================================================
       SETTINGS MODAL
       - Sidebar footer ke Settings button se open hoga
       - Sirf X button se close hoga
       - Overlay click se close nahi hoga
       - ESC se close nahi hoga
       ========================================================= */
    .settings-modal{
      position:fixed;
      inset:0;
      display:none;
      align-items:center;
      justify-content:center;
      padding:24px;
      background:rgba(15,23,42,.32);
      z-index:7200;
    }

    .settings-modal.is-visible{
      display:flex;
    }

    .settings-modal-dialog{
      width:min(860px, 100%);
      min-height:520px;
      max-height:min(82vh, 680px);
      background:var(--bg);
      border:1px solid var(--border);
      border-radius:26px;
      box-shadow:0 24px 70px rgba(15,23,42,.14);
      overflow:hidden;
      display:flex;
      flex-direction:column;
      animation:settingsModalFade .18s ease;
    }

    @keyframes settingsModalFade{
      from{
        opacity:0;
        transform:translateY(10px) scale(.985);
      }
      to{
        opacity:1;
        transform:translateY(0) scale(1);
      }
    }

    .settings-modal-top{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:16px;
      padding:18px 22px;
      border-bottom:1px solid var(--border);
      background:var(--bg);
    }

    .settings-modal-title{
      font-family:var(--font-main);
      font-size:20px;
      line-height:1.2;
      color:var(--heading);
      font-weight:var(--fw-semibold);
      letter-spacing:var(--tracking-tight);
    }

    .settings-modal-close{
      width:40px;
      height:40px;
      border:none;
      background:transparent;
      color:var(--muted-2);
      cursor:pointer;
      display:grid;
      place-items:center;
      border-radius:12px;
      transition:background .18s ease, color .18s ease;
      flex:0 0 40px;
    }

    .settings-modal-close:hover{
      background:#f8fafc;
      color:var(--heading);
    }

    .settings-modal-body{
      display:grid;
      grid-template-columns:240px 1fr;
      min-height:0;
      flex:1;
    }

    .settings-modal-sidebar{
      border-right:1px solid var(--border);
      background:#fbfcfe;
      padding:16px 12px;
      display:flex;
      flex-direction:column;
      gap:6px;
    }

    /* Left tabs ko sidebar typography jaisa rakha gaya hai */
    .settings-tab{
      width:100%;
      border:none;
      background:transparent;
      border-radius:16px;
      padding:9px 10px;
      display:flex;
      align-items:center;
      justify-content:flex-start;
      gap:10px;
      text-align:left;
      cursor:pointer;
      font-family:var(--font-main);
      font-size:15px;
      font-weight:var(--fw-regular);
      line-height:1.2;
      letter-spacing:-0.015em;
      color:#8190a8;
      min-height:46px;
      transition:background .15s ease, color .15s ease;
    }

    .settings-tab:hover{
      background:#f6f7f9;
      color:var(--active);
    }

    .settings-tab.is-active{
      background:transparent;
      color:#8190a8;
      font-weight:var(--fw-regular);
    }

    .settings-tab-icon{
      width:18px;
      height:18px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      color:var(--muted-2);
      flex:0 0 18px;
    }

    .settings-tab.is-active .settings-tab-icon{
      color:var(--heading);
    }

    .settings-modal-content{
      min-width:0;
      overflow-y:auto;
      padding:22px 24px;
      background:var(--bg);
    }

    .settings-panel{
      display:none;
    }

    .settings-panel.is-active{
      display:block;
    }

    .settings-panel-head{
      margin-bottom:18px;
    }

    .settings-panel-title{
      font-family:var(--font-main);
      font-size:18px;
      line-height:1.25;
      color:var(--heading);
      font-weight:var(--fw-semibold);
      letter-spacing:var(--tracking-tight);
    }

    .settings-info-list{
      display:flex;
      flex-direction:column;
      gap:0;
    }

    .settings-info-row{
      display:grid;
      grid-template-columns:140px 1fr;
      gap:16px;
      padding:12px 0;
      align-items:center;
    }

    .settings-info-label{
      font-size:14px;
      color:var(--body);
      font-weight:var(--fw-medium);
      font-family:var(--font-main);
    }

    .settings-info-value{
      font-size:14px;
      color:var(--heading);
      font-weight:var(--fw-light);
      font-family:var(--font-main);
    }

    .settings-section-divider{
      height:1px;
      background:var(--border);
      margin:4px 0;
      border-radius:999px;
    }

    .settings-action-block,
    .settings-toggle-row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:18px;
      padding:16px 0;
    }

    .settings-action-copy,
    .settings-toggle-copy{
      min-width:0;
      flex:1;
    }

    .settings-action-title{
      font-size:14px;
      line-height:1.35;
      color:var(--heading);
      font-weight:var(--fw-medium);
      font-family:var(--font-main);
    }

    .settings-action-text{
      margin-top:4px;
      font-size:13px;
      line-height:1.7;
      color:var(--muted-2);
      font-weight:var(--fw-light);
      font-family:var(--font-main);
    }

    .settings-pill-btn{
      height:38px;
      padding:0 16px;
      border-radius:999px;
      border:1px solid var(--border);
      background:var(--bg);
      color:var(--heading);
      font-family:var(--font-main);
      font-size:12px;
      font-weight:var(--fw-semibold);
      letter-spacing:.08em;
      text-transform:uppercase;
      cursor:pointer;
      transition:background .18s ease, transform .18s ease, border-color .18s ease;
      white-space:nowrap;
    }

    .settings-pill-btn:hover{
      background:#f8fafc;
      transform:translateY(-1px);
    }

    .settings-pill-btn-danger{
      border-color:#fecaca;
      color:#b91c1c;
      background:#fff;
    }

    .settings-pill-btn-danger:hover{
      background:#fff5f5;
    }

    /* Toggle switch */
    .settings-switch{
      position:relative;
      width:48px;
      height:28px;
      flex:0 0 48px;
      display:inline-block;
    }

    .settings-switch input{
      opacity:0;
      width:0;
      height:0;
    }

    .settings-switch-slider{
      position:absolute;
      inset:0;
      border-radius:999px;
      background:#e5e7eb;
      border:1px solid #dbe4ee;
      transition:.18s ease;
      cursor:pointer;
    }

    .settings-switch-slider::before{
      content:"";
      position:absolute;
      width:20px;
      height:20px;
      left:4px;
      top:3px;
      border-radius:50%;
      background:#ffffff;
      box-shadow:0 2px 8px rgba(15,23,42,.12);
      transition:.18s ease;
    }

    .settings-switch input:checked + .settings-switch-slider{
      background:#111827;
      border-color:#111827;
    }

    .settings-switch input:checked + .settings-switch-slider::before{
      transform:translateX(20px);
    }

    .settings-modal-close:focus-visible,
    .settings-tab:focus-visible,
    .settings-pill-btn:focus-visible,
    .settings-switch input:focus-visible + .settings-switch-slider,
    .sidebar-settings-trigger:focus-visible,
    .mobile-topbar-more:focus-visible,
    .mobile-topbar-menu-btn:focus-visible{
      outline:2px solid #cbd5e1;
      outline-offset:2px;
    }

    /* =========================================================
       MOBILE / TABLET NAVIGATION
       - Desktop par hidden
       - 768px and below par visible
       ========================================================= */
    .mobile-topbar,
    .mobile-topbar-menu,
    .mobile-bottom-nav{
      display:none;
    }

    /* =========================================================
       TABLET + MOBILE
       ========================================================= */
    @media (max-width: 768px){
      .sidebar{
        display:none !important;
      }

      /* Top mobile header */
      .mobile-topbar{
        position:fixed;
        top:0;
        left:0;
        right:0;
        height:68px;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        padding:0 18px;
        background:var(--bg);
        border-bottom:1px solid var(--border);
        z-index:3000;
      }

      .mobile-topbar-brand{
        min-width:0;
        display:flex;
        align-items:center;
        gap:10px;
        text-decoration:none;
        color:inherit;
      }

      .mobile-topbar-brand img{
        height:26px;
        width:auto;
        object-fit:contain;
        display:block;
        flex-shrink:0;
      }

      .mobile-topbar-brand-text{
        font-family:var(--font-main);
        font-size:18px;
        line-height:1;
        font-weight:var(--fw-bold);
        letter-spacing:-0.03em;
        color:var(--heading);
        white-space:nowrap;
      }

      .mobile-topbar-more{
        width:42px;
        height:42px;
        border:none;
        background:transparent;
        color:var(--muted-2);
        display:inline-flex;
        align-items:center;
        justify-content:center;
        cursor:pointer;
        border-radius:12px;
        flex:0 0 42px;
        transition:background .18s ease, color .18s ease;
      }

      .mobile-topbar-more:hover{
        background:#f8fafc;
        color:var(--heading);
      }

      .mobile-topbar-more.is-open{
        background:#f8fafc;
        color:var(--heading);
      }

      .mobile-topbar-menu{
        position:fixed;
        top:76px;
        right:18px;
        width:200px;
        background:var(--bg);
        border:1px solid var(--border);
        border-radius:18px;
        box-shadow:0 18px 40px rgba(15,23,42,.10);
        padding:8px;
        z-index:3050;
      }

      .mobile-topbar-menu.is-visible{
        display:block;
      }

      .mobile-topbar-menu-btn{
        width:100%;
        border:none;
        background:transparent;
        display:flex;
        align-items:center;
        gap:12px;
        padding:12px 14px;
        border-radius:12px;
        cursor:pointer;
        text-align:left;
        font-family:var(--font-main);
        font-size:14px;
        color:var(--heading);
        transition:background .18s ease;
      }

      .mobile-topbar-menu-btn:hover{
        background:#f8fafc;
      }

      .mobile-topbar-menu-btn i{
        width:18px;
        height:18px;
        color:var(--muted-2);
        flex:0 0 18px;
      }

      /* Bottom nav */
      .mobile-bottom-nav{
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        height:74px;
        display:grid;
        grid-template-columns:repeat(5, 1fr);
        align-items:stretch;
        background:var(--bg);
        border-top:1px solid var(--border);
        z-index:3000;
        padding-bottom:env(safe-area-inset-bottom, 0);
      }

      .mobile-bottom-link{
        text-decoration:none;
        color:var(--muted-2);
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:4px;
        font-family:var(--font-main);
        font-size:11px;
        font-weight:var(--fw-medium);
        line-height:1.1;
        transition:color .18s ease, background .18s ease;
      }

      .mobile-bottom-link:hover{
        color:var(--heading);
        background:#fcfcfd;
      }

      .mobile-bottom-link i{
        width:20px;
        height:20px;
        display:flex;
        align-items:center;
        justify-content:center;
      }

      .mobile-bottom-link i svg{
        width:20px;
        height:20px;
        stroke-width:1.8;
      }

      .mobile-bottom-link.is-active{
        color:var(--heading);
      }

      /* Settings modal tablet adjustments */
      .settings-modal{
        padding:14px;
      }

      .settings-modal-dialog{
        width:100%;
        min-height:480px;
        max-height:calc(100vh - 28px);
        border-radius:22px;
      }

      .settings-modal-body{
        grid-template-columns:1fr;
      }

      .settings-modal-sidebar{
        border-right:none;
        border-bottom:1px solid var(--border);
        padding:12px;
      }

      .settings-info-row{
        grid-template-columns:1fr;
        gap:6px;
      }
    }

    /* =========================================================
       MOBILE
       ========================================================= */
    @media (max-width: 448px){
      .mobile-topbar{
        height:64px;
        padding:0 14px;
      }

      .mobile-topbar-brand img{
        height:24px;
      }

      .mobile-topbar-brand-text{
        font-size:17px;
      }

      .mobile-topbar-menu{
        top:72px;
        right:14px;
        width:190px;
      }

      .mobile-bottom-nav{
        height:70px;
      }

      .mobile-bottom-link{
        font-size:10.5px;
      }

      .settings-modal{
        padding:10px;
      }

      .settings-modal-dialog{
        min-height:460px;
        max-height:calc(100vh - 20px);
        border-radius:20px;
      }

      .settings-modal-top{
        padding:14px 16px;
      }

      .settings-modal-content{
        padding:18px 16px;
      }

      .settings-action-block,
      .settings-toggle-row{
        flex-direction:column;
        align-items:flex-start;
      }

      /* Mobile me toggle ko forced pill shape diya gaya hai */
      .settings-toggle-row .settings-switch{
        position:relative !important;
        display:block !important;
        width:48px !important;
        min-width:48px !important;
        max-width:48px !important;
        height:28px !important;
        min-height:28px !important;
        max-height:28px !important;
        flex:0 0 48px !important;
        border-radius:999px !important;
        align-self:flex-start !important;
        overflow:visible !important;
        aspect-ratio:auto !important;
      }

      .settings-toggle-row .settings-switch input{
        position:absolute !important;
        opacity:0 !important;
        width:0 !important;
        height:0 !important;
      }

      .settings-toggle-row .settings-switch .settings-switch-slider{
        position:absolute !important;
        top:0 !important;
        right:0 !important;
        bottom:0 !important;
        left:0 !important;
        display:block !important;
        width:48px !important;
        height:28px !important;
        border-radius:999px !important;
        background:#e5e7eb !important;
        border:1px solid #dbe4ee !important;
      }

      .settings-toggle-row .settings-switch .settings-switch-slider::before{
        content:"" !important;
        position:absolute !important;
        width:20px !important;
        height:20px !important;
        left:4px !important;
        top:3px !important;
        border-radius:50% !important;
        background:#ffffff !important;
        box-shadow:0 2px 8px rgba(15,23,42,.12) !important;
        transform:none !important;
      }

      .settings-toggle-row .settings-switch input:checked + .settings-switch-slider{
        background:#111827 !important;
        border-color:#111827 !important;
      }

      .settings-toggle-row .settings-switch input:checked + .settings-switch-slider::before{
        transform:translateX(20px) !important;
      }
    }

 /* =========================================================
   MAIN CONTENT
   - Sidebar ke neeche / right side layout
   - Fixed search bar
   - Ads section with bg image
   - Heading + 4-column image grid
   ========================================================= */

/* Universal matching approach 👍 */
*,
*::before,
*::after{
  box-sizing:border-box;
}

.main-content{
  position:relative;
  margin-left:calc(var(--sidebar-w) + 0px);
  min-height:100vh;
  padding:
    28px
    clamp(20px, 4vw, var(--content-gutter))
    48px;
  background:var(--soft-bg);
}

/* ✅ NEW: fixed top cover so content scroll hoke search ke peeche visible na ho */
.main-content::before{
  content:"";
  position:fixed;
  top:0;
  left:var(--sidebar-w);
  right:0;
  height:108px; /* desktop top safe area */
  background:var(--soft-bg);
  z-index:1390;
  pointer-events:none;
}

/* Inner container jo aapke root vars ko respect kare */
.main-content-inner{
  width:100%;
  max-width:var(--content-max);
  margin:0 auto;
}

/* Fixed search wrapper */
.search-shell{
  position:fixed;
  top:20px;
  left:calc(var(--sidebar-w) + clamp(20px, 4vw, var(--content-gutter)));
  right:clamp(20px, 4vw, var(--content-gutter));
  z-index:1400;
  pointer-events:none;
}

/* ✅ NEW: search shell ke neeche bhi solid background rahe */
.search-shell::before{
  content:"";
  position:absolute;
  inset:-12px -8px;
  border-radius:28px;
  background:var(--soft-bg);
  z-index:0;
  pointer-events:none;
}

.search-shell-inner{
  position:relative;
  z-index:1;
  width:100%;
  max-width:var(--content-max);
  margin:0 auto;
  pointer-events:auto;
}

/* Search bar */
.search-bar{
  width:100%;
  height:56px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 18px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#ffffff; /* ✅ opaque rakho */
  backdrop-filter:none; /* ✅ blur hata do */
  -webkit-backdrop-filter:none;
  box-shadow:0 8px 30px rgba(15,23,42,.05);
  position:relative;
  z-index:2;
}

.search-bar i,
.search-bar svg{
  width:18px;
  height:18px;
  color:var(--muted-2);
  flex:0 0 18px;
}

.search-input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  color:var(--heading);
  font-family:var(--font-main);
  font-size:15px;
  font-weight:var(--fw-regular);
  letter-spacing:var(--tracking-soft);
}

.search-input::placeholder{
  color:var(--muted);
}

/* Search fixed hone ki wajah se neeche breathing space */
.main-content-body{
  padding-top:96px;
}

/* Display ad / hero block */
.display-ad{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 340px;
  background:
    linear-gradient(rgba(15,23,42,.18), rgba(15,23,42,.18)),
    url("/static/images/COVER-PAGE-01.8dd895784ba8.png") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.display-ad::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,0.04) 0%,
    rgba(15,23,42,0.12) 100%
  );
  pointer-events:none;
}

.display-ad-content{
  position:relative;
  z-index:1;
  min-height:240px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:24px;
}

.display-ad-copy{
  max-width:460px;
  color:#fff;
}

.display-ad-kicker{
  display:inline-block;
  margin-bottom:8px;
  font-size:11px;
  line-height:1;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:var(--fw-semibold);
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
}

.display-ad-title{
  font-size:clamp(24px, 3vw, 34px);
  line-height:1.08;
  font-weight:var(--fw-bold);
  letter-spacing:-0.03em;
  margin-bottom:8px;
}

.display-ad-text{
  font-size:14px;
  line-height:1.7;
  color:rgba(255,255,255,.92);
}

.display-ad-avatars{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.display-ad-avatar,
.display-ad-avatar-ring{
  width:54px;
  height:54px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.75);
  background:rgba(255,255,255,.18);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.display-ad-avatar-ring{
  display:grid;
  place-items:center;
}

.display-ad-avatar-ring i,
.display-ad-avatar-ring svg{
  width:20px;
  height:20px;
  color:#fff;
}

/* Section divider */
.main-divider{
  height:1px;
  background:var(--border);
  margin:22px 0 18px;
  border-radius:999px;
}

/* Title */
.singles-section-head{
  margin-bottom:18px;
}

.singles-section-title{
  font-size:22px;
  line-height:1.2;
  font-weight:var(--fw-semibold);
  letter-spacing:-0.03em;
  color:var(--heading);
}

/* Grid  DYNAMIC IMAGES OF USER'S*/
.singles-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:2px;
}

.single-card{
  display:block;
  text-decoration:none;
  color:inherit;
}

.single-card-media{
  position:relative;
  width:100%;
/* Dating profile style (zyada tall) */
aspect-ratio: 1 / 1.6;
  overflow:hidden;
  border-radius:2px;
  background:#eef2f7;
  border:1px solid var(--border);
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.single-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .28s ease;
}

.single-card:hover .single-card-media img{
  transform:scale(1.03);
}

.single-card-caption{
  padding-top:8px;
}

.single-card-name{
  font-size:14px;
  line-height:1.3;
  font-weight:var(--fw-medium);
  color:var(--heading);
}

.single-card-meta{
  margin-top:2px;
  font-size:13px;
  line-height:1.5;
  color:var(--muted-2);
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1024px){
  .main-content{
    padding:
      24px
      clamp(18px, 3.5vw, 32px)
      44px;
  }

  .main-content::before{
    height:100px;
  }

  .search-shell{
    top:16px;
    left:calc(var(--sidebar-w) + clamp(18px, 3.5vw, 32px));
    right:clamp(18px, 3.5vw, 32px);
  }

  .singles-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   MOBILE + TABLET (sidebar hidden already in your file)
   ========================================================= */
@media (max-width: 768px){
  .main-content{
    margin-left:0;
    padding:16px 16px 96px;
  }

  .main-content::before{
    left:0;
    height:142px; /* mobile topbar + search cover */
  }

  .search-shell{
    top:80px; /* mobile topbar ke neeche */
    left:16px;
    right:16px;
  }

  .main-content-body{
    padding-top:144px; /* fixed topbar + fixed search breathing space */
  }

  .search-bar{
    height:52px;
    padding:0 16px;
  }

  .display-ad{
    min-height:220px;
    border-radius:24px;
  }

  .display-ad-content{
    min-height:220px;
    padding:18px;
    align-items:flex-end;
  }

  .display-ad-title{
    font-size:24px;
  }

  .display-ad-avatars{
    gap:8px;
  }

  .display-ad-avatar,
  .display-ad-avatar-ring{
    width:46px;
    height:46px;
  }

  .singles-section-title{
    font-size:20px;
  }

  .singles-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:2px;
  }

  .single-card-media{
    border-radius:2px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */
@media (max-width: 448px){
  .main-content{
    padding:14px 14px 92px;
  }

  .main-content::before{
    height:132px;
  }

  .search-shell{
    top:74px;
    left:14px;
    right:14px;
  }

  .main-content-body{
    padding-top:132px;
  }

  .display-ad{
    min-height:200px;
    border-radius:20px;
  }

  .display-ad-content{
    min-height:200px;
    padding:16px;
    gap:12px;
  }

  .display-ad-title{
    font-size:21px;
  }

  .display-ad-text{
    font-size:13px;
  }

  .display-ad-avatars{
    display:none;
  }

  .singles-section-title{
    font-size:18px;
  }

  .singles-grid{
    gap:2px;
  }

  .single-card-name{
    font-size:13px;
  }

  .single-card-meta{
    font-size:12px;
  }
}


/* =========================================================
   LIVE SEARCH DROPDOWN
   - X / Twitter style compact result dropdown
   ========================================================= */

.search-dropdown-wrap{
  position:relative;
}

.search-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  right:0;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:0 18px 40px rgba(15,23,42,.08);
  overflow:hidden;
  z-index:1500;
}

.search-dropdown[hidden]{
  display:none !important;
}

.search-dropdown-list{
  padding:8px;
  max-height:320px;         /* dropdown ke andar fixed visible area */
  overflow-y:auto;          /* vertical scrollbar */
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;     /* Firefox */
  scrollbar-color:#cbd5e1 transparent;
}

.search-dropdown-list::-webkit-scrollbar{
  width:8px;
}

.search-dropdown-list::-webkit-scrollbar-track{
  background:transparent;
  border-radius:999px;
}

.search-dropdown-list::-webkit-scrollbar-thumb{
  background:#d7dee8;
  border-radius:999px;
}

.search-dropdown-list::-webkit-scrollbar-thumb:hover{
  background:#c2ccd8;
}

.search-result-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
  border-radius:18px;
  padding:10px 12px;
  transition:background .16s ease;
}

.search-result-item:hover{
  background:#f8fafc;
}

.search-result-avatar{
  width:48px;
  height:48px;
  border-radius:3px; /* pehle 50% tha, ab halka rounded square */
  overflow:hidden;
  background:#eef2f7;
  border:1px solid var(--border);
  flex:0 0 48px;
}

.search-result-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.search-result-copy{
  min-width:0;
  flex:1;
}

.search-result-name{
  font-size:14px;
  line-height:1.25;
  font-weight:var(--fw-semibold);
  color:var(--heading);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.search-result-meta{
  margin-top:3px;
  font-size:13px;
  line-height:1.4;
  color:var(--muted-2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.search-result-empty{
  padding:18px 16px;
  text-align:left;
  color:var(--muted-2);
  font-size:14px;
  line-height:1.5;
}

.search-result-loading{
  padding:18px 16px;
  color:var(--muted-2);
  font-size:14px;
  line-height:1.5;
}

/* Mobile me dropdown thoda tighter */
@media (max-width: 768px){
  .search-dropdown{
    border-radius:20px;
  }

  .search-result-item{
    padding:10px;
    border-radius:16px;
  }

  .search-result-avatar{
    width:44px;
    height:44px;
    flex:0 0 44px;
  }
}

@media (max-width: 448px){
  .search-dropdown{
    border-radius:18px;
  }

  .search-result-name{
    font-size:13.5px;
  }

  .search-result-meta{
    font-size:12px;
  }
}

@media (max-width: 768px){
  .search-dropdown-list{
    max-height:260px;
  }
}