/* ==========================================================
   OG Platform — Native Mobile Menu
========================================================== */

body.og-menu-open {
    overflow: hidden !important;
    touch-action: none;
  }
  
  .og-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    visibility: hidden;
  }
  
  .og-mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
  }
  
  .og-mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 30, 0.58);
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  
  .og-mobile-menu.is-open .og-mobile-menu-backdrop {
    opacity: 1;
  }
  
  .og-mobile-menu-panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(88vw, 390px);
    max-width: 390px;
    background: #ffffff;
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-105%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 24px 0 70px rgba(0, 0, 0, 0.22);
    border-radius: 0 24px 24px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .og-mobile-menu-panel::-webkit-scrollbar {
    display: none;
  }
  
  .og-mobile-menu.is-open .og-mobile-menu-panel {
    transform: translateX(0);
  }
  
  /* Header */
  .og-mobile-menu-top {
    position: relative;
    height: 210px;
    min-height: 210px;
    padding: 18px 18px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background:
      radial-gradient(circle at 85% 20%, rgba(255,255,255,.22), transparent 30%),
      linear-gradient(135deg, #005bea 0%, #0878ff 55%, #00a3ff 100%);
  }
  
  .og-mobile-menu-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 4px;
    margin: 0;
  }
  
  .og-mobile-menu-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .og-mobile-menu-logo-icon {
    display: block;
    width: 132px;
    height: auto;
    margin: 0 auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    transform: translateY(-10px) scale(.96);
    transition: .35s;
  }
  
  .og-mobile-menu.is-open .og-mobile-menu-logo-icon {
    opacity: 1;
    transform: none;
  }
  
  .og-mobile-menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 48, 130, .32);
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
  }
  
  /* Search */
  .og-mobile-menu-search {
    position: relative;
    z-index: 5;
    height: 52px;
    margin: -70px 28px 34px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow:
      0 12px 30px rgba(0,0,0,.12),
      0 2px 8px rgba(0,0,0,.05);
    overflow: hidden;
  }
  
  .og-mobile-menu-search span {
    position: static;
    flex: 0 0 auto;
    color: #64748b;
    font-size: 23px;
    line-height: 1;
  }
  
  .og-mobile-menu-search input {
    flex: 1;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
  }
  
  /* Content */
  .og-mobile-menu-content {
    overflow: visible;
    height: auto;
    max-height: none;
    padding: 0 0 96px;
    background: #ffffff;
  }
  
  .og-mobile-menu-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px 4px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: none;
  }
  
  .og-mobile-menu-section span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #0878ff;
    font-size: 18px;
    line-height: 1;
  }
  
  .og-mobile-menu-content a {
    min-height: 34px;
    padding: 0 26px 0 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #4b5563;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 0;
    transition:
      background .18s ease,
      color .18s ease,
      padding-left .18s ease;
  }
  
  .og-mobile-menu-content a span {
    color: #111827;
    font-size: 20px;
    line-height: 1;
  }
  
  .og-mobile-menu-section + a {
    margin-top: 4px;
  }
  
  .og-mobile-menu-content a:hover,
  .og-mobile-menu-content a:active {
    background: #f6f9fd;
    padding-left: 78px;
    color: #0878ff;
  }
  
  /* Search results */
  .og-mobile-search-results-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 70px 18px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  
  .og-mobile-search-results-title strong {
    display: inline-block;
    white-space: nowrap;
    font: inherit;
  }
  
  .og-mobile-search-results-title em {
    margin-left: auto;
    font-style: normal;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    color: #0ea5ff;
  }
  
  .og-mobile-search-results-title .og-search-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    flex: 0 0 auto;
    background: currentColor;
    opacity: 0.9;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.8 18.1C6.8 18.1 3.6 14.9 3.6 10.9C3.6 6.9 6.8 3.7 10.8 3.7C14.8 3.7 18 6.9 18 10.9C18 14.9 14.8 18.1 10.8 18.1ZM10.8 15.7C13.5 15.7 15.6 13.6 15.6 10.9C15.6 8.2 13.5 6.1 10.8 6.1C8.1 6.1 6 8.2 6 10.9C6 13.6 8.1 15.7 10.8 15.7Z' fill='black'/%3E%3Cpath d='M16.2 16.3L20.2 20.3' stroke='black' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.8 18.1C6.8 18.1 3.6 14.9 3.6 10.9C3.6 6.9 6.8 3.7 10.8 3.7C14.8 3.7 18 6.9 18 10.9C18 14.9 14.8 18.1 10.8 18.1ZM10.8 15.7C13.5 15.7 15.6 13.6 15.6 10.9C15.6 8.2 13.5 6.1 10.8 6.1C8.1 6.1 6 8.2 6 10.9C6 13.6 8.1 15.7 10.8 15.7Z' fill='black'/%3E%3Cpath d='M16.2 16.3L20.2 20.3' stroke='black' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  
  /* Bottom actions */
  .og-mobile-menu-bottom {
    position: sticky;
    top: calc(100vh - 92px);
    bottom: auto;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 14px 14px;
    border-top: 1px solid #e7eef8;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
  }
  
  .og-mobile-menu-bottom a,
  .og-mobile-menu-bottom button {
    min-height: 60px;
    padding: 7px 6px;
    border: 0;
    border-radius: 17px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: #0f172a;
    background: #f3f7fc;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.05;
  }
  
  .og-mobile-menu-bottom a span,
  .og-mobile-menu-bottom button span {
    display: block;
    font-size: 22px;
    line-height: 1;
  }
  
  .og-mobile-menu-bottom a:first-child {
    color: #ffffff;
    background: linear-gradient(135deg, #006dff, #00a3ff);
    box-shadow: 0 10px 24px rgba(8, 120, 255, .22);
  }
  
  /* Open animations */
  .og-mobile-menu-section,
  .og-mobile-menu-content a {
    opacity: 0;
    transform: translateX(-14px);
    transition:
      opacity .28s ease,
      transform .28s ease,
      background .18s ease,
      color .18s ease,
      padding-left .18s ease;
  }
  
  .og-mobile-menu.is-open .og-mobile-menu-section,
  .og-mobile-menu.is-open .og-mobile-menu-content a {
    opacity: 1;
    transform: none;
  }
  
  /* Bottom nav cleanup */
  @media (max-width: 782px) {
    .og-mobile-bottom-nav {
      grid-template-columns: repeat(5, 1fr) !important;
    }
  
    .og-mobile-bottom-nav a,
    .og-mobile-bottom-nav button {
      min-width: 0 !important;
    }
  
    .og-bottom-nav-icon {
      display: block;
      font-size: 24px;
      line-height: 1;
      margin-bottom: 5px;
    }
  
    .og-bottom-nav-label {
      display: block;
      font-size: 13px;
      font-weight: 800;
      line-height: 1;
    }
  
    .og-mobile-bottom-nav [data-og-bottom-nav="menu"] {
      color: #0878ff !important;
    }
  
    #og-chat-widget,
    .og-chat-widget,
    .og-assistant-widget {
      display: none !important;
    }
  
    body.og-mobile-chat-open #og-chat-widget,
    body.og-mobile-chat-open .og-chat-widget,
    body.og-mobile-chat-open .og-assistant-widget {
      display: block !important;
    }
  }
  
  @media (min-width: 783px) {
    .og-mobile-menu {
      display: none !important;
    }
  }

