/* Navbar Builder Pro — Frontend CSS */
/* Root container — fixed bottom center on all pages */
#nbp-root {
  position: fixed !important;
  bottom: 18px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  justify-content: center !important;
  pointer-events: none !important;
  padding: 0 !important;
}
#nbp-root > * { pointer-events: all; }
.nbp-nav-wrap { position: relative; display: inline-flex; flex-direction: column; align-items: center; }

/* Bar */
.nbp-bar {
  display: inline-flex;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.07);
  overflow: visible;
}

/* Logo */
.nbp-logo {
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; text-decoration: none; flex-shrink: 0; font-weight: 800;
  transition: transform .2s, filter .2s;
}
.nbp-logo:hover { transform: scale(1.07); }
.nbp-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Items */
.nbp-item {
  border: none; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; text-decoration: none;
  transition: background .18s;
  overflow: visible; z-index: 1;
}
.nbp-item:hover { z-index: 999; }
.nbp-item-wrap { display: inline-flex; align-items: center; justify-content: center; }
.nbp-item-lbl { white-space: nowrap; line-height: 1; pointer-events: none; }

/* Tooltip */
.nbp-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) scale(.86) translateY(6px);
  background: rgba(255,255,255,.96); color: #111;
  font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 7px;
  white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity .15s, transform .15s, visibility .15s;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 100;
}
.nbp-tip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); border: 5px solid transparent;
  border-top-color: rgba(255,255,255,.96);
}
.nbp-item:hover .nbp-tip { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1) translateY(0); }

/* CTA */
.nbp-cta {
  border: none; cursor: pointer; font-weight: 700; color: #fff;
  flex-shrink: 0; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: filter .18s, transform .14s;
}
.nbp-cta:hover { filter: brightness(1.14); transform: scale(1.04); }

/* Divider */
.nbp-div { flex-shrink: 0; }

/* Submenu */
.nbp-sub {
  position: absolute; bottom: calc(100% + 14px); left: 50%;
  transform: translateX(-50%);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 16px; padding: 8px;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 16px 48px rgba(0,0,0,.65);
  opacity: 0; visibility: hidden; pointer-events: none;
  z-index: 1000; min-width: 240px;
  transition: opacity .22s, visibility .22s, transform .22s;
}
.nbp-sub::after {
  content: ''; position: absolute; bottom: -7px; left: 50%;
  transform: translateX(-50%); width: 14px; height: 7px;
  background: inherit; clip-path: polygon(0 0,100% 0,50% 100%);
}
.nbp-sub.open { opacity: 1; visibility: visible; pointer-events: all; }
.nbp-sub-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.2); padding: 4px 9px 6px;
}
.nbp-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.nbp-sub-item {
  padding: 10px 11px; border-radius: 11px; cursor: pointer; border: none;
  background: transparent; text-align: left;
  display: flex; flex-direction: column; gap: 3px;
  width: 100%; text-decoration: none; transition: background .15s;
}
.nbp-sub-item:hover { background: rgba(255,255,255,.07); }
.nbp-sub-item.feat { grid-column: span 2; flex-direction: row; align-items: center; gap: 10px; }
.sub-ico { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; flex-shrink: 0; font-size: 13px; }
.nbp-sub-item.feat .sub-ico { margin-bottom: 0; }
.sub-title { font-size: 11.5px; font-weight: 600; color: #fff; }
.sub-desc  { font-size: 10px; color: rgba(255,255,255,.35); }

/* Animation keyframes */
@keyframes nbp-pulse  { 0%,100%{transform:scale(1)} 50%{transform:scale(1.28)} }
@keyframes nbp-wobble { 0%,100%{transform:rotate(0)} 20%{transform:rotate(-10deg)} 40%{transform:rotate(8deg)} 60%{transform:rotate(-5deg)} 80%{transform:rotate(3deg)} }
@keyframes nbp-flip   { 0%{transform:rotateY(0)} 50%{transform:rotateY(180deg)} 100%{transform:rotateY(360deg)} }
@keyframes nbp-rubber { 0%,100%{transform:scale(1,1)} 20%{transform:scale(1.3,.7)} 40%{transform:scale(.8,1.2)} 60%{transform:scale(1.1,.9)} 80%{transform:scale(.95,1.05)} }
@keyframes nbp-swing  { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-12deg)} 75%{transform:rotate(8deg)} }

/* Mobile */
@media (max-width: 640px) {
  .nbp-bar { max-width: 96vw; overflow-x: auto; scrollbar-width: none; }
  .nbp-bar::-webkit-scrollbar { display: none; }
  .nbp-mobile-hide { display: none !important; }
}
