/* ================== TC MegaMenu CLEAN (Apple-style distribution) ================== */

.tc-megamenu{
  position:absolute;
  left:0;
  top:calc(100% - 6px);
  z-index:9999;
  min-width:520px;
  max-width:90vw;
  margin-top:8px;

  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity .18s cubic-bezier(.4,0,.2,1),
             transform .18s cubic-bezier(.4,0,.2,1);
}

.tc-megamenu.is-open{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

/* ===== Glass box ===== */

.tc-megamenu__box{
  position:relative;
  overflow:hidden;
  padding:4px 14px 12px;
  border-radius:18px;

  background:linear-gradient(
    180deg,
    rgba(255,255,255,.22),
    rgba(255,255,255,.12) 50%,
    rgba(255,255,255,.18)
  );

  backdrop-filter:blur(22px) saturate(140%);
  -webkit-backdrop-filter:blur(22px) saturate(140%);

  border:1px solid rgba(255,255,255,.28);

  box-shadow:
    0 25px 60px rgba(0,0,0,.12),
    0 8px 20px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.35);
}

.tc-megamenu__box::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,.55),
    rgba(255,255,255,.25) 20%,
    transparent 55%
  );
  pointer-events:none;
}

.tc-megamenu__box::after{
  content:"";
  position:absolute;
  inset:-1px;
  background:radial-gradient(
    120% 90% at 50% 10%,
    rgba(255,255,255,.35),
    transparent 60%
  );
  pointer-events:none;
}

/* ===== Layout ===== */

.tc-megamenu__main{
  display:flex;
  gap:6px;
  margin-bottom:6px;
  justify-content:space-between; /* Apple-style distribution */
}

.tc-megamenu__main .tc-megamenu__link{
  flex:0 0 auto; /* IMPORTANT: no stretch */
  text-align:left;
}

.tc-megamenu__secondary{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:2px 8px;
}

/* ===== Links ===== */

.tc-megamenu__link{
  display:block;
  padding:2px 6px;
  border-radius:6px;
  text-decoration:none;
  white-space:nowrap;
  color:inherit;
  font-size:14px;
  line-height:1;
  opacity:.92;
  transition:all .18s cubic-bezier(.4,0,.2,1);
}

.tc-megamenu__link:hover{
  background:rgba(0,0,0,.04);
  transform:translateY(-1px);
  opacity:1;
}

/* Main links (pill) */

.tc-megamenu__link--main{
  font-size:15px;
  font-weight:600;
  letter-spacing:.2px;
}

.tc-megamenu__main .tc-megamenu__link--main{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.06);
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.04),
    rgba(0,0,0,.02)
  );
  opacity:1;
}

.tc-megamenu__main .tc-megamenu__link--main:hover{
  background:rgba(0,0,0,.06);
}

/* Secondary smaller */

.tc-megamenu__secondary .tc-megamenu__link{
  font-size:13px;
}

/* Mobile off */

@media (max-width:960px){
  .tc-megamenu{display:none;}
}

.tc-megamenu .tc-megamenu__main{
  justify-content:space-between !important;
}