/* =========================================================
   Meet Me - master.css (CLEANED + CURRENT)
   - Swipe + Tabbar + Toast + Full-screen profile overlay
   ========================================================= */

/* -------------------------
   Shared icon buttons (swipe + profile overlay)
-------------------------- */
.meet-iconbtn{
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  color: rgba(0,0,0,.78);
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.20);
  pointer-events: auto;
}
.meet-iconbtn--overlay:hover{ background:#fff; }
.meet-iconbtn.dropdown-toggle::after{ display:none !important; }

/* -------------------------
   Swipe top-right actions
-------------------------- */
.meet-swipe-top-actions{
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 20;
  display: flex;
  gap: .45rem;
}

/* -------------------------
   Swipe action row
   (Go Back shrink-to-fit; other two share space)
-------------------------- */
.meet-swipe-actions{
  display: flex;
  gap: .5rem;
  align-items: stretch;
}
.meet-swipe-actions .btnMeetRewind{
  flex: 0 0 auto;
  white-space: nowrap;
}
.meet-swipe-actions .btnSwipe{
  flex: 1 1 0;
  min-width: 0;
}

/* -------------------------
   Swipe card (Owl-safe)
-------------------------- */
.meet-swipe-wrap{
  width: min(600px, 100%);
  margin: 0 auto;
}
.meet-swipe-card{
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .5rem;
  overflow: hidden;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}
.meet-swipe-media{
  position: relative;
  overflow: hidden;
  background: #000;
}
.meet-swipe-ratio{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.meet-swipe-ratio img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.meet-swipe-overlay{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  padding: 14px 14px 12px 14px;
  color: #fff;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.15), rgba(0,0,0,0));
}
.meet-swipe-overlay .meet-swipe-name,
.meet-swipe-overlay .meet-swipe-sub{
  text-shadow: 0 2px 10px rgba(0,0,0,.85);
}
.meet-swipe-media .owl-dots{ display: none !important; }

/* -------------------------
   Empty swipe state
-------------------------- */
.meet-empty-swipe{
  max-width: 520px;
  margin: 0 auto;
}

/* -------------------------
   Custom tab bar (no nav-tabs)
-------------------------- */
.meet-tabbar{
  display: flex;
  align-items: center;
  gap: .6rem;
  overflow: visible;
  margin-bottom: .75rem;
  position: relative;
  z-index: 5;
}
.meet-tabbar-scroll{
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.meet-tabbar-scroll::-webkit-scrollbar{ display:none; }
.meet-tablist{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .45rem;
  padding: .65rem .35rem;
  position: relative;
}

/* Tab buttons (white pills + subtle 1px border) */
.meet-tabbtn{
  border-radius: 999px;
  padding: .58rem .98rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
  line-height: 1.1;
  box-sizing: border-box;
  text-decoration: none !important;
  font-weight: 700;
  transform: none !important;

  background: #fff !important;
  color: rgba(0,0,0,.82) !important;
  border: 1px solid rgba(0,0,0,.14) !important;

  box-shadow:
    0 1px 0 rgba(255,255,255,.65) inset,
    0 2px 10px rgba(0,0,0,.06);

  transition: background .12s ease, color .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.meet-tabbtn:hover{
  transform: none !important;
  background: #fff !important;
  border-color: rgba(0,0,0,.22) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.65) inset,
    0 4px 14px rgba(0,0,0,.08);
}
.meet-tabbtn.active{
  background: #fff !important;
  color: rgba(0,0,0,.88) !important;
  border-color: rgba(0,0,0,.14) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.65) inset,
    0 2px 10px rgba(0,0,0,.06),
    inset 0 0 0 1px var(--bs-primary, #0d6efd);
}
.meet-tabbtn i{
  width: 1.1rem;
  text-align: center;
  opacity: .9;
}
.meet-tabbtn:focus,
.meet-tabbtn:focus-visible{
  outline: none;
  box-shadow:
    0 1px 0 rgba(255,255,255,.65) inset,
    0 2px 10px rgba(0,0,0,.06),
    inset 0 0 0 1px var(--bs-primary, #0d6efd);
}

/* More dropdown */
.meet-more{
  flex: 0 0 auto;
  position: relative;
  z-index: 9999;
}
.meet-more .dropdown-toggle::after{ margin-left: .35rem; }
.meet-more-menu{
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.10);
  padding: .4rem;
  z-index: 99999;
}
.meet-more-menu .dropdown-item{
  border-radius: 10px;
  padding: .55rem .65rem;
  font-weight: 600;
}
.meet-more-menu .dropdown-item:hover{ background: rgba(13,110,253,.10); }
.meet-more-menu .dropdown-item i{ width: 1.1rem; text-align:center; opacity:.9; }

/* Dark mode (theme uses html.dark) */
html.dark .meet-tabbtn{
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.86) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.10) inset,
    0 2px 10px rgba(0,0,0,.25);
}
html.dark .meet-tabbtn:hover{
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.24) !important;
}
html.dark .meet-tabbtn.active{
  color: rgba(255,255,255,.92) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.10) inset,
    0 2px 10px rgba(0,0,0,.25),
    inset 0 0 0 1px var(--bs-primary, #0d6efd);
}
html.dark .meet-more-menu{
  background: #15171a;
  border-color: rgba(255,255,255,.10);
}
html.dark .meet-more-menu .dropdown-item{ color: rgba(255,255,255,.86); }
html.dark .meet-more-menu .dropdown-item:hover{ background: rgba(13,110,253,.18); }

/* -------------------------
   Toast overlay (match + message sent)
   JS toggles: .is-show
-------------------------- */
.meet-match-toast{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease;
  z-index: 10650;
}
.meet-match-toast.is-show{
  opacity: 1;
  pointer-events: auto;
}
.meet-match-toast__card{
  width: min(360px, 100%);
  text-align: center;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0,0,0,.25);
  padding: 16px 18px;
}
.meet-match-toast__title{
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: .25rem;
}
.meet-match-toast__sub{
  font-weight: 600;
  opacity: .75;
}
html.dark .meet-match-toast__card{
  background: rgba(20,22,25,.96);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
}

/* =========================================================
   Full-screen profile overlay (REQUIRED)
   - If missing, overlay appears at page bottom.
   ========================================================= */

.meet-profile-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.50);
  display: none;
  z-index: 20000;

  overflow: hidden;               /* prevent page behind scrolling */
  overscroll-behavior: contain;   /* reduce scroll chaining */
  touch-action: pan-y;            /* helps mobile scrolling */
}
.meet-profile-overlay.is-open{ display: block; }

.meet-profile-shell{
  position: absolute;
  inset: 16px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;

  display: flex;                  /* needed for internal scrolling */
  flex-direction: column;
}

.meet-profile-content{
  flex: 1 1 auto;
  min-height: 0;                  /* CRITICAL for flex scrolling */
  overflow: hidden;               /* contain scroll to inner areas */
}

/* Lock background scroll while overlay open */
body.meet-overlay-open{
  overflow: hidden;
  height: 100vh;                  /* helps iOS/Safari */
}

/* Mobile: full-screen shell */
@media (max-width: 991.98px){
  .meet-profile-shell{
    inset: 0;
    border-radius: 0;
  }

  /* On mobile, make the overlay content itself the single scroll container */
  .meet-profile-content{
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================================
   Meet profile overlay v3 layout (content)
   ========================================================= */

.meet-profile-v3{
  display:flex;
  height:100%;
  width:100%;
  background:#fff;
}

.meet-profile-v3-left{
  flex:0 0 50%;
  min-width:0;
  background:#000;
  display:flex;
  flex-direction:column;
}

.meet-profile-left-head{
  padding:14px 14px 10px 14px;
  background:#000;
  color:#fff;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.meet-profile-name{
  font-weight:900;
  font-size:28px;
  line-height:1.1;
}
.meet-profile-age{
  font-weight:800;
  opacity:.92;
}
.meet-profile-meta{
  margin-top:6px;
  opacity:.85;
  font-size:16px;
  line-height:1.25;
}
.meet-profile-close{
  width:40px;
  height:40px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.92);
  color:#111;
  text-decoration:none !important;
  flex:0 0 auto;
}

.meet-profile-photoWrap{
  flex:1 1 auto;
  min-height:0;
  background:#000;
}

.meet-profile-carousel,
.meet-profile-carousel .owl-stage-outer,
.meet-profile-carousel .owl-stage,
.meet-profile-carousel .owl-item{
  height:100%;
}
.meet-profile-carousel .owl-item img{
  height:100%;
  width:100%;
  object-fit:cover;
  display:block;
}

.meet-profile-left-foot{
  padding:12px 14px 14px 14px;
  background:#000;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.meet-profile-actions{
  display:flex;
  gap:.45rem;
  flex-wrap:wrap;
}

.meet-profile-badges{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
}

/* Desktop: right side scrolls */
.meet-profile-v3-right{
  flex:1 1 50%;
  min-width:0;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  min-height:0;
  padding:16px 18px;
  background:#fff;
}

/* Mobile: stack in normal flow; photo clamped; ONE scroll (on .meet-profile-content) */
@media (max-width: 991.98px){
  .meet-profile-v3{
    flex-direction:column;
    height:auto;            /* prevent overlap */
    min-height:100%;
  }

  .meet-profile-v3-left{
    flex:0 0 auto;
  }

  .meet-profile-photoWrap{
    flex:0 0 auto;
    height:clamp(260px, 46vh, 420px);
  }

  .meet-profile-v3-right{
    overflow:visible;       /* flow inside .meet-profile-content scroll */
    padding:14px 14px;
  }
}