/* ============================================================
   TP PRODUCT SHELL v2
   Account + plan live in the shell, not in dashboard content.
   ============================================================ */

.tp-product-shell-v2-marker {
  display: none;
}


/* ------------------------------------------------------------
   REMOVE MVP NAV / BILLING SURFACES
   DOM remains alive for existing runtime dependencies.
   ------------------------------------------------------------ */

.desktop-nav [data-view="account"],
.mobile-nav [data-view="account"] {
  display: none !important;
}

#billingCard {
  display: none !important;
}

.public-auth-actions {
  display: none !important;
}


/* ------------------------------------------------------------
   PLANS NAVIGATION
   ------------------------------------------------------------ */

.tp-plans-nav-link {
  text-decoration: none;
}

.desktop-nav .tp-plans-nav-link {
  min-height: 42px;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 0 13px;

  border-radius: 11px;

  color: var(--muted, #89949d);

  transition:
    color .16s ease,
    background .16s ease,
    border-color .16s ease;
}

.desktop-nav .tp-plans-nav-link:hover {
  color: var(--text, #f4f7f8);

  background:
    rgba(255,255,255,.045);
}

.desktop-nav .tp-plans-nav-link svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;

  flex: 0 0 auto;
}


/* ------------------------------------------------------------
   ACCOUNT SHELL
   ------------------------------------------------------------ */

.tp-account-shell {
  position: relative;

  display: flex;
  align-items: center;
  gap: 9px;

  margin-left: auto;
}

.tp-shell-plan {
  min-height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 11px;

  border:
    1px solid
    rgba(94,186,226,.24);

  border-radius: 999px;

  color:
    #8dd4f2;

  background:
    rgba(94,186,226,.075);

  text-decoration: none;

  font-size: 10px;
  font-weight: 850;

  letter-spacing: .10em;
}

.tp-shell-plan:hover {
  border-color:
    rgba(94,186,226,.42);

  background:
    rgba(94,186,226,.11);
}

.tp-account-trigger {
  min-height: 40px;

  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 4px 10px 4px 5px;

  border:
    1px solid
    rgba(255,255,255,.10);

  border-radius: 999px;

  color:
    #e3eaed;

  background:
    rgba(255,255,255,.035);

  cursor: pointer;

  transition:
    background .16s ease,
    border-color .16s ease,
    transform .16s ease;
}

.tp-account-trigger:hover {
  transform:
    translateY(-1px);

  border-color:
    rgba(255,255,255,.17);

  background:
    rgba(255,255,255,.06);
}

.tp-account-avatar {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(94,186,226,.23);

  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      rgba(94,186,226,.18),
      rgba(94,186,226,.035)
    );

  color:
    #79c5e6;
}

.tp-account-avatar svg {
  width: 16px;
  height: 16px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-account-trigger-label {
  max-width: 130px;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 12px;
  font-weight: 720;
}


/* ------------------------------------------------------------
   DROPDOWN
   ------------------------------------------------------------ */

.tp-account-menu {
  position: absolute;

  top: calc(100% + 10px);
  right: 0;

  z-index: 200;

  width: 286px;

  padding: 8px;

  border:
    1px solid
    rgba(255,255,255,.11);

  border-radius: 17px;

  background:
    rgba(13,19,25,.98);

  box-shadow:
    0 22px 70px
    rgba(0,0,0,.45);

  backdrop-filter:
    blur(18px);
}

.tp-account-menu-head {
  padding:
    11px 11px
    12px;
}

.tp-account-menu-head small {
  display: block;

  margin-bottom: 4px;

  color:
    #75828b;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: .12em;
}

.tp-account-menu-head strong {
  display: block;

  overflow: hidden;

  color:
    #eef3f5;

  font-size: 13px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-account-menu-plan {
  margin-top: 8px;

  display: inline-flex;

  padding: 5px 8px;

  border-radius: 999px;

  color:
    #7dc9ea;

  background:
    rgba(94,186,226,.085);

  font-size: 9px;
  font-weight: 850;

  letter-spacing: .08em;
}

.tp-account-menu-divider {
  height: 1px;

  margin: 4px 3px;

  background:
    rgba(255,255,255,.075);
}

.tp-account-menu button,
.tp-account-menu a {
  width: 100%;
  min-height: 39px;

  display: flex;
  align-items: center;

  padding: 0 10px;

  border: 0;
  border-radius: 10px;

  color:
    #c8d0d5;

  background:
    transparent;

  text-decoration: none;

  cursor: pointer;

  font-size: 12px;

  text-align: left;
}

.tp-account-menu button:hover,
.tp-account-menu a:hover {
  color:
    #f5f8f9;

  background:
    rgba(255,255,255,.055);
}

.tp-account-menu .tp-menu-primary {
  color:
    #8cd2f0;
}

.tp-account-menu .tp-menu-danger {
  color:
    #f0a1a1;
}


/* ------------------------------------------------------------
   TOPBAR CLEANUP
   ------------------------------------------------------------ */

.app-topbar {
  gap: 18px;
}

.topbar-tools {
  margin-left: 0;
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

.mobile-nav .tp-plans-nav-link {
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  min-width: 0;

  color:
    inherit;

  text-decoration: none;
}

.mobile-nav .tp-plans-nav-link svg {
  width: 20px;
  height: 20px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-nav .tp-plans-nav-link span {
  margin-top: 3px;

  font-size: 9px;
}

@media (max-width: 760px) {

  .tp-shell-plan {
    display: none;
  }

  .tp-account-trigger {
    width: 38px;
    height: 38px;

    padding: 3px;

    justify-content: center;
  }

  .tp-account-trigger-label {
    display: none;
  }

  .tp-account-avatar {
    width: 30px;
    height: 30px;
  }

  .tp-account-menu {
    position: fixed;

    top: 66px;
    right: 12px;

    width:
      min(
        300px,
        calc(100vw - 24px)
      );
  }
}