/* ========================================================================== 
   Yondr Profile Fix Step 7 — Mobile Profile Action Menu
   Purpose: keep primary dating actions visible while moving secondary actions
   into a clean mobile-only More menu.
   -------------------------------------------------------------------------- */

.yondr-profile-more-shell {
  display: none;
}

@media (max-width: 768px) {
  .y8c-profile-page .dt_user_pro_info {
    overflow: visible !important;
    z-index: 12 !important;
  }

  .y8c-profile-page .dt_user_pro_info #like_btn,
  .y8c-profile-page .dt_user_pro_info #btn_open_private_conversation,
  .y8c-profile-page .dt_user_pro_info .js-yonder-call,
  .y8c-profile-page .dt_user_pro_info .yondr-profile-more-trigger {
    display: inline-flex !important;
  }

  .yondr-profile-more-shell {
    display: inline-flex !important;
    position: relative;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    z-index: 15;
  }

  .y8c-profile-page .dt_user_pro_info .yondr-profile-more-trigger {
    background: #ffffff !important;
    color: #2B2D42 !important;
    border: 1px solid rgba(43,45,66,.08) !important;
  }

  .y8c-profile-page .dt_user_pro_info .yondr-profile-more-trigger svg path {
    fill: currentColor !important;
  }

  .yondr-profile-more-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(278px, calc(100vw - 40px));
    max-height: min(68vh, 440px);
    overflow-y: auto;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(43,45,66,.10);
    box-shadow: 0 24px 60px rgba(29,31,68,.20);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(10px) scale(.98);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .yondr-profile-more-shell.is-open .yondr-profile-more-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
  }

  .yondr-profile-more-title {
    display: flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px 9px;
    color: #6b6f88;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
  }

  .yondr-profile-more-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px !important;
    margin: 0 0 6px !important;
    border-radius: 16px;
    background: rgba(43,45,66,.035);
    color: #2B2D42 !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none !important;
    border: 1px solid rgba(43,45,66,.045);
  }

  .yondr-profile-more-item:hover,
  .yondr-profile-more-item:focus {
    background: rgba(93,95,147,.10);
    color: #2B2D42 !important;
  }

  .yondr-profile-more-item.is-disabled {
    opacity: .62;
    pointer-events: none;
  }

  .yondr-profile-more-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    min-width: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(35,108,255,.12), rgba(108,59,255,.14));
    color: #5D5F93;
    font-size: 14px;
    font-weight: 900;
  }
}

@media (max-width: 390px) {
  .y8c-profile-page .dt_user_pro_info {
    gap: 6px !important;
    padding: 7px 7px !important;
  }

  .y8c-profile-page .dt_user_pro_info .btn,
  .y8c-profile-page .dt_user_pro_info .yondr-profile-more-trigger {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    border-radius: 16px !important;
  }

  .yondr-profile-more-menu {
    right: -6px;
    width: min(270px, calc(100vw - 28px));
  }
}

@media (min-width: 769px) {
  .yondr-profile-more-shell {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .y8c-profile-page .dt_user_pro_info .yondr-profile-more-menu a.yondr-profile-more-item,
  .y8c-profile-page .dt_user_pro_info .yondr-profile-more-menu a[data-ajax-post="/profile/open_gift_model"],
  .y8c-profile-page .dt_user_pro_info .yondr-profile-more-menu .block_text,
  .y8c-profile-page .dt_user_pro_info .yondr-profile-more-menu .report_text {
    display: flex !important;
  }
}
