/* Shared phone layout. */
#mobileBottomNav,.mobile-store-search,.wallet-mobile-actions { display:none; }
.custom-auth-dropdown .auth-menu-dropdown { right:auto; left:0; }
.login-trigger-btn.is-authenticated { width:44px; height:44px; padding:0; justify-content:center; border:1px solid var(--border-color); border-radius:13px; background:var(--bg-card,#fff); color:var(--text-main); box-shadow:0 3px 12px rgba(30,27,75,.04); }
.login-trigger-btn.is-authenticated>span,.login-trigger-btn.is-authenticated .login-chevron-icon { display:none; }
.login-trigger-btn.is-authenticated:hover { background:#fff0f0; color:var(--primary-red); border-color:rgba(255,22,22,.25); transform:none; }
.login-trigger-btn.is-authenticated .login-user-icon { width:21px; height:21px; }
@media(max-width:650px) {
  .container { width:100%; padding-inline:16px; }
  .header-container { height:76px; gap:12px; flex-wrap:nowrap; }
  .logo-area { min-width:0; flex-shrink:0; }
  .logo-img { width:108px; height:42px; }
  .header-actions { min-width:0; gap:8px; flex-wrap:nowrap; }
  .login-trigger-btn { width:44px; height:44px; padding:0; justify-content:center; border-radius:13px; }
  .login-trigger-btn>span,.login-trigger-btn .login-chevron-icon { display:none; }
  .login-trigger-btn .login-user-icon { width:21px; height:21px; }
  .header-wallet { min-height:44px; padding:7px; gap:5px; }
  .header-wallet-amount { font-size:11px; gap:3px; white-space:nowrap; }
  .header-wallet-amount>span { font-size:10px; }
  .header-wallet-plus { width:20px; height:20px; }
  .auth-menu-dropdown { right:auto; left:0; min-width:230px; max-width:calc(100vw - 32px); }
  .auth-provider-item { min-height:48px; }
  .account-back { max-width:175px; min-height:44px; font-size:11px; gap:6px; }
  .wallet-account-button { width:44px; height:44px; padding:0; justify-content:center; }
  .wallet-account-button span { display:none; }
  .omnex-slider { padding:24px 14px 64px; }
  .omnex-slider-frame { width:100%; border-radius:18px; box-shadow:0 10px 24px rgba(30,27,75,.12); }
  .omnex-slider-preview,.omnex-slider-arrow { display:none; }
  .omnex-slider-dots { bottom:-48px; }
  .omnex-slider-dots button { width:32px; height:32px; }
  .products-wrapper { padding:28px 0 36px; border-radius:22px 22px 0 0; }
  .section-header { margin-bottom:22px; }
  .section-title { font-size:25px; }
  .section-subtitle { font-size:13px; line-height:1.9; }
  .mobile-store-search { display:flex; align-items:center; gap:10px; padding:0 14px; min-height:52px; background:white; border:1px solid var(--border-color); border-radius:16px; margin-bottom:22px; }
  .mobile-store-search svg { width:22px; height:22px; flex-shrink:0; fill:none; stroke:var(--primary-red); stroke-width:1.8; }
  .mobile-store-search input { min-width:0; width:100%; height:52px; font:600 16px var(--font-family); color:var(--text-main); border:0; background:transparent; outline:0; }
  .mobile-store-search:focus-within { border-color:var(--primary-red); box-shadow:0 0 0 3px rgba(255,22,22,.08); }
  .home-page #storeSearchForm input { min-height:44px; font-size:16px; }
  .home-page #storeSearchForm > button { min-height:44px; }
  .filter-tabs { flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; padding:3px 2px 12px; margin-bottom:18px; gap:8px; scroll-padding-inline:16px; }
  .filter-btn { flex:0 0 auto; min-height:44px; font-size:12px; padding:9px 16px; box-shadow:none; }
  .products-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .product-card { min-width:0; border-radius:16px; }
  .card-body { padding:12px; }
  .card-title { font-size:14px; overflow-wrap:anywhere; }
  .btn-buy { min-height:44px; font-size:12px; }
  .no-results { grid-column:1/-1; padding:28px 12px; }
  .account-main { padding:22px 16px 36px; }
  .account-overview { padding:18px 14px; border-radius:20px; }
  .account-identity { gap:12px; padding-bottom:20px; }
  .account-avatar-wrap { width:64px; height:64px; padding:3px; }
  .account-identity-text { flex:1; }
  .account-identity-text h2 { font-size:18px; }
  .account-identity-text p { font-size:11px; }
  .account-identity-text p b { min-width:0; overflow-wrap:anywhere; }
  .account-summary { flex-direction:column; align-items:stretch; gap:16px; padding-top:18px; }
  .account-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .account-stat { min-width:0; padding:12px 9px; gap:7px; }
  .account-stat .account-icon { width:30px; height:34px; border-radius:10px; }
  .account-stat strong { font-size:18px; }
  .account-stat>div>span { font-size:10px; }
  .account-quick-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .account-quick-actions button { min-height:46px; padding:10px 6px; font-size:11px; }
  .account-links { grid-template-columns:1fr; gap:12px; }
  .account-link { padding:16px; min-height:76px; }
  .account-link strong { font-size:13px; }
  .account-dialog { max-height:calc(100dvh - 32px); overflow-y:auto; }
  .information-card { grid-template-columns:minmax(0,1fr); padding:20px 16px; gap:24px; }
  .information-fields { grid-template-columns:minmax(0,1fr); gap:18px; }
  .information-heading { font-size:20px; gap:8px; }
  .information-field input,.information-modal-input,.phone-edit-input input { font-size:16px; }
  .information-actions>button { min-width:0; flex:1 1 100%; min-height:46px; }
  .information-brand { min-height:180px; padding:24px; }
  .support-link { min-height:76px; gap:10px; padding:14px 12px; }
  .support-link strong { font-size:13px; line-height:1.8; }
  .support-brand-icon { width:40px; height:40px; }
  .support-intro h2 { font-size:22px; }
  .wallet-cards { grid-template-columns:minmax(0,1fr); }
  .wallet-overview { max-width:400px; }
  .wallet-topup-options { grid-template-columns:minmax(0,1fr); }
  .wallet-topup { flex-direction:row; flex-wrap:wrap; min-height:88px; gap:12px; }
  .wallet-topup span { flex-basis:100%; text-align:center; }
  .wallet-tabs button,.wallet-transactions-filters button { min-height:44px; }
  .wallet-transactions-filters { gap:6px; }
  .wallet-transactions-filters button { padding-inline:12px; }
  .wallet-empty { padding:38px 8px 20px; }
  .wallet-empty h3 { font-size:20px; }
  .wallet-empty p { line-height:1.9; }
  .wallet-success-toast { top:88px; }
  .wallet-page .wallet-return-row { margin-bottom:14px; }
  .wallet-page .wallet-mobile-actions { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
  .wallet-mobile-actions a { display:flex; align-items:center; justify-content:center; gap:7px; flex:1 1 auto; min-height:46px; padding:8px 10px; border:1px solid var(--border-color); border-radius:12px; background:var(--bg-card); color:var(--text-main); font-size:12px; font-weight:800; }
  .wallet-page .wallet-mobile-actions .wallet-mobile-topup { border-color:#86404b; background:#39212b; color:#ffd4d9; }
  .wallet-mobile-actions svg { width:18px; height:18px; }
  .wallet-mobile-actions a:focus-visible,.wallet-page .wallet-tabs button:focus-visible { outline:2px solid #ff8692; outline-offset:2px; }
  .wallet-page .wallet-overview .wallet-card-balance { font-size:clamp(30px,8.5vw,36px); font-variant-numeric:tabular-nums; line-height:1.35; }
  .wallet-page .wallet-tabs button:not(:disabled),.wallet-page .wallet-default-button,.wallet-page .wallet-transactions-filters button { min-height:44px; }
  .wallet-page #walletTransactions { scroll-margin-top:110px; }
  .product-purchase-card { padding:18px 14px; }
  .product-breadcrumb { flex-wrap:wrap; font-size:12px; }
  .modal-card { width:calc(100% - 24px); max-height:calc(100dvh - 24px); overflow-y:auto; }
  .faq-question { min-height:54px; }
  .omnex-footer { padding:30px 20px 26px; }
  .omnex-footer-layout { grid-template-columns:minmax(0,1fr); gap:26px; }
  .omnex-footer-nav a,.omnex-footer-contact { min-height:44px; }
  .omnex-footer-social-link { width:44px; height:44px; }
  .omnex-footer-links { padding-left:0; }
  .omnex-footer-support { border-right:0; border-top:1px solid rgba(255,22,22,.2); padding:24px 0 0; }
  .omnex-footer-support::before { top:-4px; right:24px; }
}

.mobile-viewport-edge {
  position:fixed;
  bottom:0;
  width:0;
  height:0;
  visibility:hidden;
  pointer-events:none;
}

@media (max-width:650px), (orientation:landscape) and (max-height:500px) and (pointer:coarse) {
  html {
    --mobile-dock-safe-bottom:env(safe-area-inset-bottom,0px);
    --mobile-visual-bottom:0px;
    --mobile-dock-bottom:calc(9px + var(--mobile-dock-safe-bottom));
    --mobile-dock-clearance:calc(76px + var(--mobile-dock-bottom));
    scroll-padding-bottom:var(--mobile-dock-clearance);
  }
  @supports (bottom:max(0px,1px)) {
    html {
      /* A transient viewport reading must never lower the dock past its safe position. */
      --mobile-dock-guard:max(var(--mobile-dock-safe-bottom),clamp(0px,var(--mobile-visual-bottom),96px));
      --mobile-dock-bottom:calc(9px + var(--mobile-dock-guard));
      --mobile-dock-clearance:calc(85px + var(--mobile-dock-guard));
    }
  }
  body { padding-bottom:var(--mobile-dock-clearance); }
  html.mobile-keyboard-open { --mobile-dock-clearance:0px; }

  #mobileBottomNav {
    position:fixed;
    left:10px;
    right:10px;
    left:max(10px,env(safe-area-inset-left,0px));
    right:max(10px,env(safe-area-inset-right,0px));
    bottom:9px;
    bottom:var(--mobile-dock-bottom);
    z-index:990;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    max-width:540px;
    margin-inline:auto;
    padding:5px;
    border:1px solid rgba(213,189,207,.30);
    border-radius:34px;
    background:linear-gradient(165deg,#302831,#201c27 65%,#211b24);
    box-shadow:0 8px 24px #0008,inset 0 1px 0 #ffffff24;
  }
  @supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    #mobileBottomNav {
      background:linear-gradient(165deg,rgba(50,39,49,.82),rgba(28,25,34,.89) 65%,rgba(44,29,38,.84));
      -webkit-backdrop-filter:blur(18px) saturate(140%);
      backdrop-filter:blur(18px) saturate(140%);
    }
  }
  #mobileBottomNav a {
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    min-height:54px;
    padding:2px;
    border-radius:28px;
    background:transparent;
    color:#c3bac8;
    font-size:12px;
    font-weight:700;
    line-height:1.35;
    white-space:nowrap;
    text-decoration:none;
    touch-action:manipulation;
    transition:color .17s ease,background-color .17s ease;
  }
  #mobileBottomNav a[aria-current] { color:#fff5f6; font-weight:900; }
  #mobileBottomNav a[data-pending],#mobileBottomNav a:active { background:#ff86921f; color:#fff5f6; }
  #mobileBottomNav svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; transition:transform .17s ease; }
  #mobileBottomNav a[aria-current] svg { color:#ffadb8; stroke-width:2.25; transform:scale(1.08); }
  #mobileBottomNav a:focus-visible { outline:2px solid #ffadb8; outline-offset:-2px; }
  .mobile-nav-indicator {
    position:absolute;
    inset-block:5px;
    inset-inline-start:5px;
    width:calc((100% - 10px) / 4);
    border:1px solid rgba(255,174,187,.56);
    border-radius:28px;
    background:linear-gradient(155deg,rgba(255,218,227,.26),rgba(243,112,134,.19) 63%,rgba(240,104,133,.14));
    box-shadow:inset 0 1px 0 #ffffff32,0 2px 10px #110c1690;
    pointer-events:none;
    transform:translateX(calc(var(--mobile-tab) * -100%));
  }
  @media (hover:hover) {
    #mobileBottomNav a:hover { color:#fff5f6; background:#ffffff0b; }
  }
  @media (prefers-reduced-motion:reduce) {
    #mobileBottomNav a,#mobileBottomNav svg { transition:none; }
  }
  .mobile-keyboard-open #mobileBottomNav { display:none; }
  .account-notice { bottom:max(16px,var(--mobile-dock-clearance)); }
}
@media(max-width:360px) {
  .header-container { gap:8px; }
  .logo-img { width:90px; }
  .header-wallet-plus { display:none; }
  .account-stat .account-icon { display:none; }
  #mobileBottomNav a { font-size:11px; }
}
