/* ===== DESKTOP DROPDOWN MENUS ===== */
.ni {
  padding: 10px 0;
  /* Add padding to nav item to create a safe hover bridge */
}

.nd {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 260px;
  background: var(--white);
  /* White background so gaps are invisible until hover */
  border: 1px solid var(--border-light);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: all .2s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-shadow: none;
  /* Removed shadow */
  overflow: hidden;
}

.ni:hover .nd {
  opacity: 1;
  visibility: visible
}

.nd a {
  display: block;
  padding: 12px 20px;
  /* Reduced padding */
  font-size: 14.5px;
  font-weight: 500;
  color: var(--dark);
  background: var(--white);
  transition: background-color .15s, color .15s;
  text-decoration: none;
}

.nd a:hover {
  background: var(--gold);
  color: var(--dark)
}

.nd a.nd-active {
  background: var(--gold);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nd a.nd-active:hover {
  background: var(--gold)
}

.nd .df {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column
}

.nd .df a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  /* Reduced padding */
}

.nd .df a:hover {
  background: #c89b3e
}

.nd .ic {
  background: #111;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.nd .ic svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  stroke-width: 2;
  fill: none
}

/* ===== MOBILE OVERLAY ===== */
.mm-o {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.mm-o.active {
  opacity: 1;
  visibility: visible
}

/* ===== MOBILE MENU ===== */
.mm {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 999;
  padding: 0;
  overflow-y: auto;
  max-height: 85vh;
  border-radius: 0 0 16px 16px;
  box-shadow: none;
  border-bottom: 1px solid var(--border-light);
  transform: translateY(-110%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.mm.active {
  transform: translateY(var(--hdr-h, 54px))
}

.mm-c {
  display: none
}

.mm-l {
  padding: 8px 0
}

/* Direct links in mobile menu */
.mm-l>a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid var(--border-light);
  transition: color .2s;
}

.mm-l>a:hover {
  color: var(--gold)
}

.mm-l>a.mm-active {
  color: var(--gold);
  font-weight: 600
}

/* Accordion items */
.mm-item {
  border-bottom: 1px solid var(--border-light)
}

.mm-head {
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  color: var(--dark);
  transition: color .2s;
}

.mm-head:hover {
  color: var(--gold)
}

.mm-head.mm-active {
  color: var(--gold);
  font-weight: 600
}

.mm-head .lucide {
  width: 16px;
  height: 16px;
  transition: transform .25s ease;
  color: var(--text-tertiary)
}

.mm-head.open .lucide {
  transform: rotate(180deg)
}

.mm-body {
  display: none;
  flex-direction: column;
  background: var(--surface-cool);
  padding: 4px 0;
  border-top: 1px solid var(--border-light);
}

.mm-body.open {
  display: flex
}

.mm-body a {
  padding: 10px 24px 10px 36px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  transition: all .15s;
}

.mm-body a:hover {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(210, 169, 86, .04);
}

.mm-body a.mm-active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(210, 169, 86, .04);
  font-weight: 500;
}

/* Auth section at bottom */
.mm-auth {
  border-top: 1px solid var(--border-light);
  padding: 8px 0;
  margin-top: 4px;
}

.mm-auth a {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition: color .2s;
}

.mm-auth a:not(.btn):hover {
  color: var(--gold)
}

.mm-auth .hdr-auth-btn {
  box-shadow: none
}

.mm-auth .btn {
  margin: 8px 24px 12px;
  width: calc(100% - 48px);
  justify-content: center;
  text-align: center;
}

.mm-auth .btn.btn-p {
  background: var(--dark);
  color: var(--gold)
}

.mm-auth .btn.btn-p:hover {
  background: var(--gold);
  color: var(--dark) !important
}