/* OrbitPay primary interior navigation */
.op-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .op-bottom-nav {
  background: rgba(255, 255, 255, 0.94);
  border-top-color: rgba(11, 31, 74, 0.08);
}
.op-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 2px;
  border-radius: 12px;
  min-height: 48px;
}
[data-theme="light"] .op-bottom-nav a { color: rgba(11, 31, 74, 0.4); }
.op-bottom-nav a.on {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .op-bottom-nav a.on {
  color: #0B1F4A;
  background: rgba(11, 31, 74, 0.06);
}
.op-bottom-nav a svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.op-bottom-nav a.on svg { stroke-width: 2; }

/* Room for fixed nav */
body.has-op-nav .phone,
body.has-op-nav .flow-shell,
body.has-op-nav .bm-shell,
body.has-op-nav .auth-shell {
  padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
}
body.has-op-nav { padding-bottom: 0; }

/* More sheet */
.op-more-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}
.op-more-sheet.open { display: flex; }
.op-more-panel {
  width: 100%;
  max-width: 430px;
  max-height: 78dvh;
  overflow-y: auto;
  background: var(--op-bg-sheet, #16161a);
  color: var(--op-text, #fff);
  border-radius: 22px 22px 0 0;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  animation: moreUp 0.28s ease;
}
[data-theme="light"] .op-more-panel {
  background: #fff;
  color: #0A0A0B;
}
@keyframes moreUp {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
.op-more-handle {
  width: 40px; height: 4px; border-radius: 4px;
  background: rgba(127, 127, 127, 0.35);
  margin: 4px auto 14px;
}
.op-more-panel h3 {
  margin: 0 0 12px;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.op-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.op-more-grid a {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--op-border, rgba(255,255,255,0.1));
  border-radius: 14px;
  padding: 14px 12px;
  background: var(--op-surface, rgba(255,255,255,0.05));
  font-size: 13px;
  font-weight: 600;
}
.op-more-grid a span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--op-text-secondary, rgba(255,255,255,0.5));
  line-height: 1.35;
}
.op-more-close {
  margin-top: 14px;
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--op-border, rgba(255,255,255,0.12));
  background: transparent;
  color: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

/* Hide legacy incomplete docks when unified nav is present */
body.has-op-nav .bottom-nav,
body.has-op-nav .nav-dock { display: none !important; }
