/* Launch mobile dock — mesmo modelo do Comandatuba Prime */
.cp-dock { display: none; }

@media (max-width: 920px) {
  .mk-subnav {
    display: none !important;
  }

  body.has-cp-dock {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.has-cp-dock .wa-float,
  body.has-cp-dock a.wa-float {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .cp-dock {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    pointer-events: none;
  }

  .cp-dock__inner {
    pointer-events: auto;
    display: flex;
    align-items: stretch;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px;
    border-radius: 22px;
    background: rgba(8, 22, 28, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(242, 169, 0, 0.08) inset;
  }

  .cp-dock__inner::-webkit-scrollbar { display: none; }

  .cp-dock a {
    flex: 0 0 auto;
    min-width: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 16px;
    text-decoration: none;
    color: rgba(220, 234, 238, 0.78);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color .25s ease, background .25s ease, transform .25s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .cp-dock a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .cp-dock a:active { transform: scale(0.96); }

  .cp-dock a.active {
    color: #08141a;
    background: linear-gradient(145deg, #f2a900, #e08a3c);
    box-shadow: 0 8px 18px rgba(242, 169, 0, 0.28);
  }

  .cp-dock a.active svg { stroke: #08141a; }
}

@media (max-width: 540px) {
  .cp-dock {
    left: 8px;
    right: 8px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }
  .cp-dock a {
    min-width: 62px;
    padding: 9px 10px;
    font-size: 9.5px;
  }
}
