html,body{overflow-x:visible}.main,.content,.admin-shell,.settings-shell{min-width:0}.topbar{min-width:0}.topbar h1,.topbar-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar h1 span,.topbar-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search{min-width:0}.search input{min-width:0}.top-actions{min-width:0}.top-actions .avatar{flex:0 0 auto}.panel,.card,.management-panel,.settings-card,.profile-hero-card,.profile-details-card{min-width:0;max-width:100%}input,select,textarea,button{max-width:100%}
@media (max-width: 700px){
  html,body{overflow-x:hidden}
  html{scroll-padding-bottom:120px}
  body{
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .content,
  .payment-shell,
  .settings-shell,
  .referral-content,
  .notification-shell,
  .profile-content,
  .signal-page-shell,
  .dashboard-shell,
  .main,
  .workspace,
  .payment-main,
  .app,
  .layout,
  .admin-shell,
  .page-shell,
  main{
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .content{padding:20px 14px 110px!important}
  .topbar{height:68px!important;padding:0 14px!important;gap:10px!important}
  .topbar h1{font-size:14px!important;flex:1}
  .topbar h1 span{font-size:9px!important}
  .topbar .search{flex:1;width:auto;margin:0!important;padding:8px 10px!important}
  .topbar .search input{font-size:11px}
  .top-actions{gap:7px!important}
  .top-actions .user-chip span{display:none}
  .top-actions .referral-credit{display:inline-flex!important;min-width:0;max-width:72px;padding-left:6px;font-size:7px;letter-spacing:.35px;overflow:hidden;white-space:nowrap}
  .top-actions .referral-credit strong{font-size:10px}
  .metrics,.stats-grid,.trade-summary-grid,.withdrawal-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dashboard-grid,.lower-grid,.analysis-grid,.signal-list,.insights-grid,.management-grid,.form-grid{grid-template-columns:1fr!important}
  .panel-head,.section-heading,.users-heading,.settings-intro{align-items:flex-start!important;flex-direction:column!important;gap:10px!important}
  .panel-head>*:last-child,.section-heading>*:last-child{align-self:stretch}
  .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .sidebar.open,
  .sidebar.mobile-open {
    position: fixed !important;
    display: block !important;
    inset: 0 auto 0 0 !important;
    width: min(78vw, 250px) !important;
    height: 100vh !important;
    z-index: 40 !important;
    background: rgba(7, 15, 23, 0.98) !important;
    border-right: 1px solid rgba(117, 166, 197, 0.24) !important;
    box-shadow: 20px 0 45px rgba(0, 0, 0, 0.7) !important;
    overflow-y: auto !important;
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .sidebar,
  .payment-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    width: min(78vw, 250px) !important;
    height: 100vh !important;
    z-index: 40 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(-108%, 0, 0) !important;
    opacity: .45 !important;
    border-right: 1px solid rgba(117, 166, 197, 0.24) !important;
    background: rgba(5, 17, 29, .98) !important;
    box-shadow: 20px 0 45px rgba(0, 0, 0, .7) !important;
    transition: transform .42s cubic-bezier(.22, 1, .36, 1), opacity .28s ease, visibility 0s linear .42s !important;
  }

  .sidebar::before,
  .payment-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 0 34%, rgba(54, 220, 255, .1) 46%, transparent 58%), linear-gradient(rgba(82, 191, 229, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(82, 191, 229, .045) 1px, transparent 1px);
    background-size: 180% 100%, 100% 34px, 34px 100%;
    mask-image: linear-gradient(135deg, #000, transparent 82%);
    animation: member-nav-scan 5.5s ease-in-out infinite;
  }

  .sidebar.open,
  .sidebar.mobile-open,
  .payment-sidebar.open,
  .payment-sidebar.mobile-open {
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    transition-delay: 0s !important;
    animation: member-nav-arrive .46s cubic-bezier(.22, 1, .36, 1) both;
  }

  .sidebar.open::after,
  .sidebar.mobile-open::after,
  .payment-sidebar.open::after,
  .payment-sidebar.mobile-open::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 1px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, #25dfff 24%, #89f3ff 50%, #25dfff 76%, transparent);
    box-shadow: 0 0 14px #20d9ff, 0 0 28px #087fca;
    animation: member-nav-edge 1.4s ease-out both;
  }

  .mobile-nav,
  .member-mobile-nav,
  .payment-mobile-nav {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 30 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 2px !important;
    align-items: end !important;
    min-height: 86px !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: visible !important;
    border: 1px solid rgba(41, 69, 103, .92) !important;
    border-bottom: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    background: linear-gradient(180deg, rgba(7, 25, 45, .94), rgba(2, 10, 22, .99)) !important;
    box-shadow: 0 -12px 35px rgba(0, 0, 0, .72), 0 -2px 28px rgba(15, 133, 213, .22), inset 0 1px 0 rgba(108, 220, 255, .16) !important;
    backdrop-filter: blur(18px) !important;
  }

  .mobile-nav::before,
  .member-mobile-nav::before,
  .payment-mobile-nav::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 8%;
    width: 84%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #20d9ff 22%, #8eeeff 50%, #20d9ff 78%, transparent);
    box-shadow: 0 0 12px #20d9ff, 0 0 26px #087fca;
    animation: member-dock-scan 3.8s ease-in-out infinite;
  }

  .mobile-nav::after,
  .member-mobile-nav::after,
  .payment-mobile-nav::after {
    content: '';
    position: absolute;
    inset: 10px 14px auto;
    height: 30px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(40, 198, 255, .07), transparent);
    transform: translateX(-110%);
    animation: member-dock-sheen 6s ease-in-out infinite;
  }

  .mobile-nav a,
  .member-mobile-nav a,
  .payment-mobile-nav a {
    position: relative;
    display: grid !important;
    justify-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
    padding: 7px 3px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: #7890aa !important;
    background: transparent !important;
    font-size: 8px !important;
    line-height: 1 !important;
    transition: color .2s ease, background .2s ease, transform .2s ease, border-color .2s ease !important;
  }

  .mobile-nav a:hover,
  .member-mobile-nav a:hover,
  .payment-mobile-nav a:hover { transform: translateY(-2px); color: #dffaff !important; }

  .mobile-nav a svg,
  .member-mobile-nav a svg,
  .payment-mobile-nav a svg { width: 18px !important; height: 18px !important; color: #91a9c9 !important; stroke-width: 1.8 !important; }

  .mobile-nav a span,
  .member-mobile-nav a span,
  .payment-mobile-nav a span { color: inherit !important; font: 8px Manrope, sans-serif !important; }

  .mobile-nav a.active,
  .member-mobile-nav a.active,
  .payment-mobile-nav a.active { border-color: rgba(34, 215, 255, .28) !important; color: #6ce3ff !important; background: rgba(18, 112, 153, .2) !important; box-shadow: inset 0 0 14px rgba(34, 215, 255, .08), 0 0 14px rgba(34, 215, 255, .08) !important; }

  .mobile-nav a.active svg,
  .member-mobile-nav a.active svg,
  .payment-mobile-nav a.active svg { color: #6ce3ff !important; filter: drop-shadow(0 0 5px rgba(34, 215, 255, .7)); }

  .mobile-nav a.mobile-dock-center,
  .member-mobile-nav a.mobile-dock-center { min-height: 62px !important; margin: -30px 2px 0 !important; padding: 16px 5px 8px !important; border: 1px solid rgba(31, 173, 255, .72) !important; border-radius: 50% !important; background: radial-gradient(circle at 50% 35%, #1765da, #063f9c 65%, #031e56) !important; color: #e7f8ff !important; box-shadow: 0 0 0 5px rgba(4, 14, 28, .96), 0 0 22px rgba(17, 113, 255, .9), inset 0 0 16px rgba(72, 219, 255, .6) !important; transform: translateY(-5px); animation: member-center-pulse 2.8s ease-in-out infinite; }

  .mobile-nav a.mobile-dock-center svg,
  .member-mobile-nav a.mobile-dock-center svg { width: 25px !important; height: 25px !important; color: #fff !important; }

  .mobile-nav a.mobile-dock-center span,
  .member-mobile-nav a.mobile-dock-center span { color: #fff !important; }

  @keyframes member-nav-arrive { from { transform: translate3d(-108%, 0, 0); opacity: .4; } 70% { transform: translate3d(2%, 0, 0); } to { transform: translate3d(0, 0, 0); opacity: 1; } }
  @keyframes member-nav-edge { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: scaleY(1); } }
  @keyframes member-nav-scan { 0%, 100% { background-position: 110% 0, 0 0, 0 0; opacity: .35; } 50% { background-position: -20% 0, 0 17px, 17px 0; opacity: .8; } }
  @keyframes member-dock-scan { 0%, 100% { opacity: .45; transform: scaleX(.72); } 50% { opacity: 1; transform: scaleX(1); } }
  @keyframes member-dock-sheen { 0%, 35% { transform: translateX(-110%); } 65%, 100% { transform: translateX(110%); } }
  @keyframes member-center-pulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(4, 14, 28, .96), 0 0 18px rgba(17, 113, 255, .72), inset 0 0 16px rgba(72, 219, 255, .5); } 50% { box-shadow: 0 0 0 5px rgba(4, 14, 28, .96), 0 0 30px rgba(17, 176, 255, 1), inset 0 0 22px rgba(72, 219, 255, .8); } }

  @media (prefers-reduced-motion: reduce) {
    .sidebar::before, .payment-sidebar::before, .mobile-nav::before, .member-mobile-nav::before, .payment-mobile-nav::before, .mobile-nav::after, .member-mobile-nav::after, .payment-mobile-nav::after, .mobile-nav a.mobile-dock-center, .member-mobile-nav a.mobile-dock-center { animation: none !important; }
    .sidebar, .payment-sidebar { transition: none !important; }
  }

  .admin-nav.is-open {
    z-index: 40 !important;
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-nav,
  .member-mobile-nav,
  .payment-mobile-nav,
  .admin-bottom-nav {
    right:0!important;
    bottom:0!important;
    left:0!important;
    z-index:30!important;
    border-radius:0!important;
    border: 1px solid rgba(90, 148, 182, 0.42) !important;
    background: rgba(9, 17, 26, 0.98) !important;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.38) !important;
  }

  .mobile-nav a,
  .member-mobile-nav a,
  .payment-mobile-nav a,
  .admin-bottom-nav a {
    color: #90a9ba !important;
    background: transparent !important;
  }

  .mobile-nav a.active,
  .member-mobile-nav a.active,
  .payment-mobile-nav a.active,
  .admin-bottom-nav a.active {
    color: #6ce3ff !important;
    background: rgba(18, 112, 153, 0.22) !important;
  }
  .profile-identity{align-items:flex-start!important;flex-wrap:wrap;padding-inline:16px!important}
  .profile-copy{min-width:calc(100% - 94px)!important}
  .profile-identity-actions{width:100%;align-items:flex-start!important;flex-direction:row!important;flex-wrap:wrap}
  .profile-form{grid-template-columns:1fr!important}
}
@media (max-width: 420px){
  .content{padding-inline:12px!important}
  .topbar .search{display:none}
  .metrics,.stats-grid,.trade-summary-grid,.withdrawal-overview{grid-template-columns:1fr!important}
  .metric strong{font-size:19px!important}
  .notification-shell{padding:15px!important;border-radius:12px!important}
  .notification-action-group,.notification-summary{width:100%}
  .notification-action-group .button{width:100%}
  .form-actions,.modal-actions{flex-direction:column!important;align-items:stretch!important}
  .form-actions button,.modal-actions button{width:100%}
}

@media (max-width: 700px) {
  body[data-theme="dark"] .mobile-nav,
  body[data-theme="dark"] .member-mobile-nav,
  body[data-theme="dark"] .payment-mobile-nav,
  body[data-theme="dark"] .admin-bottom-nav {
    min-height: 86px !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    border: 1px solid rgba(72, 151, 194, .52) !important;
    border-bottom: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    background: linear-gradient(180deg, rgba(7, 25, 45, .96), rgba(2, 10, 22, .99)) !important;
    box-shadow: 0 -12px 35px rgba(0, 0, 0, .72), 0 -2px 28px rgba(15, 133, 213, .22), inset 0 1px 0 rgba(108, 220, 255, .16) !important;
  }

  body[data-theme="light"] .mobile-nav,
  body[data-theme="light"] .member-mobile-nav,
  body[data-theme="light"] .payment-mobile-nav,
  body[data-theme="light"] .admin-bottom-nav,
  body[data-theme="system"] .mobile-nav,
  body[data-theme="system"] .member-mobile-nav,
  body[data-theme="system"] .payment-mobile-nav,
  body[data-theme="system"] .admin-bottom-nav {
    min-height: 86px !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    border: 1px solid #b9d4df !important;
    border-bottom: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(235, 246, 250, .98)) !important;
    box-shadow: 0 -12px 35px rgba(31, 75, 97, .16), inset 0 1px 0 rgba(255, 255, 255, .95) !important;
  }

  body[data-theme="dark"] .mobile-nav a,
  body[data-theme="dark"] .member-mobile-nav a,
  body[data-theme="dark"] .payment-mobile-nav a,
  body[data-theme="dark"] .admin-bottom-nav a { color: #7890aa !important; }

  body[data-theme="light"] .mobile-nav a,
  body[data-theme="light"] .member-mobile-nav a,
  body[data-theme="light"] .payment-mobile-nav a,
  body[data-theme="light"] .admin-bottom-nav a,
  body[data-theme="system"] .mobile-nav a,
  body[data-theme="system"] .member-mobile-nav a,
  body[data-theme="system"] .payment-mobile-nav a,
  body[data-theme="system"] .admin-bottom-nav a { color: #547181 !important; }

  body[data-theme="dark"] .mobile-nav a.active,
  body[data-theme="dark"] .member-mobile-nav a.active,
  body[data-theme="dark"] .payment-mobile-nav a.active,
  body[data-theme="dark"] .admin-bottom-nav a.active {
    border: 1px solid rgba(34, 215, 255, .3) !important;
    background: rgba(18, 112, 153, .22) !important;
    color: #6ce3ff !important;
  }

  body[data-theme="light"] .mobile-nav a.active,
  body[data-theme="light"] .member-mobile-nav a.active,
  body[data-theme="light"] .payment-mobile-nav a.active,
  body[data-theme="light"] .admin-bottom-nav a.active,
  body[data-theme="system"] .mobile-nav a.active,
  body[data-theme="system"] .member-mobile-nav a.active,
  body[data-theme="system"] .payment-mobile-nav a.active,
  body[data-theme="system"] .admin-bottom-nav a.active {
    border: 1px solid rgba(16, 141, 190, .3) !important;
    background: rgba(34, 174, 202, .12) !important;
    color: #087ca8 !important;
  }

  body[data-theme="light"] .mobile-nav a.mobile-dock-center,
  body[data-theme="light"] .member-mobile-nav a.mobile-dock-center,
  body[data-theme="system"] .mobile-nav a.mobile-dock-center,
  body[data-theme="system"] .member-mobile-nav a.mobile-dock-center {
    border-color: #168df0 !important;
    background: radial-gradient(circle at 50% 35%, #2b8feb, #1263c6 65%, #08428f) !important;
    color: #fff !important;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .98), 0 0 22px rgba(22, 141, 240, .5), inset 0 0 18px rgba(109, 226, 255, .55) !important;
  }

  body[data-theme="dark"] .mobile-nav a.mobile-dock-center,
  body[data-theme="dark"] .member-mobile-nav a.mobile-dock-center {
    color: #fff !important;
  }
}
