/* App nav chrome for vanilla view.html — matches the SPA nav. */

.ep-nav-create-paste {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.ep-nav-create-paste.hidden,
#epNavMobileProfile.hidden {
  display: none !important;
}

.ep-nav-create-paste__orb {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background:
    linear-gradient(180deg, rgba(187, 247, 208, 0.42), rgba(34, 197, 94, 0.22) 42%, rgba(16, 185, 129, 0.34));
  border: 1px solid rgba(134, 239, 172, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(6, 95, 70, 0.28),
    0 0 16px rgba(74, 222, 128, 0.38);
  color: #ecfdf5;
}

.ep-nav-create-paste__orb svg {
  width: 58%;
  height: 58%;
  display: block;
}

.ep-nav-create-paste--desktop {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.15rem;
  padding: 0.28rem 0.75rem 0.28rem 0.32rem;
  border-radius: 9999px;
  background:
    linear-gradient(180deg, rgba(74, 222, 128, 0.22), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(74, 222, 128, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 22px rgba(16, 185, 129, 0.12);
  color: #bbf7d0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ep-nav-create-paste--desktop.hidden {
  display: none !important;
}

.ep-nav-create-paste--desktop .ep-nav-create-paste__orb {
  width: 1.55rem;
  height: 1.55rem;
}

#mobileBottomNav .ep-nav-create-paste--mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 0;
}

#mobileBottomNav .ep-nav-create-paste--mobile.hidden {
  display: none !important;
}

#mobileBottomNav .ep-nav-create-paste--mobile .ep-nav-create-paste__orb {
  width: 36px;
  height: 36px;
}

#mobileBottomNav .ep-nav-create-paste--mobile .ep-nav-create-paste__orb svg {
  width: 22px !important;
  height: 22px !important;
}

#mobileBottomNav .ep-nav-create-paste__label {
  display: block;
  margin-top: 2px;
  color: #4ade80 !important;
  font-weight: 700;
  font-size: 9px !important;
}

#mobileBottomNav .ep-nav-mobile-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 0;
}

#epNavMobileProfilePhoto {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  display: block;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 2px solid #4ade80;
  object-fit: cover;
  object-position: center;
}

#epNavMobileProfile .relative,
#epNavMobileProfile .ep-nav-mobile-profile__orb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

#epNavMobilePremiumBadge:not(.hidden),
#epNavMobileProfile .ep-nav-mobile-premium:not(.hidden) {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -0.15rem;
  right: -0.2rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 9999px;
  background-image: linear-gradient(to right, #facc15, #ca8a04);
  box-shadow: 0 0 0 1.5px #0a0a0f;
}

#epNavMobilePremiumBadge svg,
#epNavMobileProfile .ep-nav-mobile-premium svg {
  width: 0.625rem;
  height: 0.625rem;
  color: #713f12;
}

#epNavMobileProfile.premium-user #epNavMobileProfilePhoto {
  border-color: #fbbf24;
}

.ep-nav-extra-mobile,
.ep-nav-extra-desktop {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.35rem;
}

.ep-nav-extra-mobile a,
.ep-nav-extra-desktop a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 0.6rem;
  color: #e5e7eb;
  font-size: 0.875rem;
  text-decoration: none;
}

body.ep-app #mobileBottomNav #mobileUserSection,
body.ep-nav-create-paste #mobileBottomNav #mobileUserSection,
body.ep-nav-create-paste #mobileBottomNav #mobileAuthSection {
  display: none !important;
}

body.ep-app #mobileBottomNav #mobilePremiumIndicator,
body.ep-app #mobileBottomNav #mobilePremiumIndicator:not(.hidden) {
  display: none !important;
  visibility: hidden !important;
}

body.ep-app #mobileBottomNav [data-ep-nav="dms"],
body.ep-app #mobileBottomNav [data-ep-nav="dms"]:not(.ep-nav-slot-hidden) {
  display: none !important;
}

body.ep-app #startpaste-site-nav a.nav-link[data-ep-nav="payoutrates"],
body.ep-app #startpaste-site-nav a.nav-link[data-ep-nav="payoutrates"]:not(.ep-nav-slot-hidden) {
  display: inline-flex !important;
}

body.ep-app #startpaste-site-nav a.nav-link[data-ep-nav="dms"].ep-nav-slot-hidden {
  display: none !important;
}

#mobileBottomNav .ep-nav-center-create {
  position: relative;
  justify-content: center;
  padding-top: 0.18rem;
  padding-bottom: 0.18rem;
}

@media (min-width: 768px) {
  body.ep-app.ep-desktop-sidenav {
    --ep-sidenav-w: 17.25rem;
    --ep-sidenav-dead: clamp(2.75rem, 7vw, 11rem);
    --ep-sidenav-offset: calc(var(--ep-sidenav-dead) + var(--ep-sidenav-w));
    --ep-profile-top-h: 3.75rem;
  }

  body.ep-app.ep-desktop-sidenav.ep-has-profile-desktop-side.ep-globalnav-active,
  body.ep-app.ep-desktop-sidenav.ep-has-profile-desktop-side.ep-globalnav-active.ep-no-desktop-nav-pad {
    padding-top: var(--ep-profile-top-h) !important;
  }

  body.ep-app.ep-desktop-sidenav.ep-globalnav-active,
  body.ep-app.ep-desktop-sidenav.ep-globalnav-active.ep-no-desktop-nav-pad {
    padding-top: 0 !important;
    padding-left: var(--ep-sidenav-offset) !important;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav,
  body.ep-app.ep-desktop-sidenav #startpaste-site-nav.nav-enhanced-desktop,
  body.ep-app.ep-desktop-sidenav #startpaste-site-nav.nav-translucent,
  body.ep-app.ep-desktop-sidenav #startpaste-site-nav.startpaste-site-nav {
    position: fixed !important;
    top: 0 !important;
    left: var(--ep-sidenav-dead) !important;
    right: auto !important;
    bottom: 0 !important;
    width: var(--ep-sidenav-w) !important;
    min-width: var(--ep-sidenav-w) !important;
    max-width: var(--ep-sidenav-w) !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav::before,
  body.ep-app.ep-desktop-sidenav #startpaste-site-nav::after {
    display: none !important;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav .ep-nav-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
    min-height: 100%;
    padding: 0.65rem 0.35rem 1.15rem 0.15rem !important;
    gap: 0;
    overflow: auto;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav .ep-nav-brand-wrap {
    height: auto;
    width: 100%;
    padding: 0.55rem 0.85rem 1.15rem;
    flex-shrink: 0;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav .ep-nav-brand {
    font-size: 1.5rem;
    line-height: 1;
    transform: none !important;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav .ep-sidenav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    margin: 0;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav .ep-sidenav-links > * + * {
    margin-left: 0 !important;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav .nav-link {
    display: flex !important;
    align-items: center;
    gap: 1.15rem;
    width: 100%;
    min-height: 2.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 9999px;
    color: rgba(161, 161, 170, 0.96);
    font-size: 1.2rem;
    font-weight: 600;
    transform: none !important;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav .nav-link:hover {
    color: rgba(244, 244, 245, 0.96);
    background: rgba(255, 255, 255, 0.04);
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav .nav-link.active {
    color: #86efac;
    background: transparent;
    font-weight: 700;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav .nav-link svg,
  body.ep-app.ep-desktop-sidenav #startpaste-site-nav .nav-link .ep-dms-nav-icon-wrap,
  body.ep-app.ep-desktop-sidenav #startpaste-site-nav .nav-link .ep-dms-nav-icon-wrap svg {
    width: 1.7rem !important;
    height: 1.7rem !important;
    min-width: 1.7rem !important;
    min-height: 1.7rem !important;
    flex-shrink: 0;
    transform: none !important;
  }

  body.ep-app.ep-desktop-sidenav #epNavCreatePasteDesktop,
  body.ep-app.ep-desktop-sidenav #epNavCreatePasteDesktop.ep-nav-create-paste--desktop,
  body.ep-app.ep-desktop-sidenav #epNavCreatePasteDesktop.hidden,
  body.ep-app.ep-desktop-sidenav #epNavCreatePasteDesktop.ep-nav-create-paste--desktop.hidden {
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem;
    width: calc(100% - 0.3rem);
    min-height: 3.35rem;
    margin: 2.75rem 0.15rem 0 !important;
    padding: 0.62rem 1rem;
    border-radius: 9999px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.34);
  }

  body.ep-app.ep-desktop-sidenav #epNavCreatePasteDesktop .ep-nav-create-paste__orb {
    width: 36px;
    height: 36px;
  }

  body.ep-app.ep-desktop-sidenav #epNavCreatePasteDesktop .ep-nav-create-paste__orb svg {
    width: 22px !important;
    height: 22px !important;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav .ep-nav-auth {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: auto;
    padding: 0.35rem 0.35rem 0;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav #authButtons:not(.hidden),
  body.ep-app.ep-desktop-sidenav #startpaste-site-nav #userSection:not(.hidden) {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav #authButtons button {
    width: 100%;
    justify-content: center;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav #userSection > .flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.45rem 0.5rem;
    border-radius: 9999px;
  }

  body.ep-app.ep-desktop-sidenav #startpaste-site-nav #userSection > .flex > #userPhoto {
    display: block !important;
    width: 2.35rem !important;
    height: 2.35rem !important;
  }

  body.ep-app.ep-desktop-sidenav #premiumBadge {
    display: none !important;
  }

  body.ep-app.ep-desktop-sidenav #userSection:not(.hidden) #userDropdown,
  body.ep-app.ep-desktop-sidenav #userSection:not(.hidden) #userDropdown.hidden {
    display: flex !important;
    flex-direction: column;
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: auto;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
  }

  body.ep-app.ep-desktop-sidenav #userSection #userPhotoDropdown {
    display: none !important;
  }

  body.ep-app.ep-desktop-sidenav .ep-nav-extra-desktop {
    display: none !important;
  }

  body.ep-app.ep-desktop-sidenav .pt-3.md\:pt-16,
  body.ep-app.ep-desktop-sidenav .md\:pt-16 {
    padding-top: 1.25rem !important;
  }

  body.ep-app.ep-desktop-sidenav.sp-view > .pt-3 {
    padding-left: 0.5rem !important;
  }

  body.ep-app.ep-desktop-sidenav.ep-has-profile-desktop-side.sp-view > .pt-3 {
    padding-left: 0.5rem !important;
  }

  body.ep-app.ep-desktop-sidenav #profileDesktopSide.profile-desktop-side,
  body.ep-app.ep-desktop-sidenav #profileDesktopSide {
    position: fixed !important;
    top: 0 !important;
    left: var(--ep-sidenav-offset) !important;
    right: 0 !important;
    bottom: auto !important;
    width: auto !important;
    height: var(--ep-profile-top-h) !important;
    min-height: var(--ep-profile-top-h);
    flex-direction: row !important;
    justify-content: center !important;
    gap: 0.45rem;
    padding: 0 0.9rem !important;
    background:
      radial-gradient(ellipse 80% 50% at 20% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
      linear-gradient(180deg, rgba(2, 2, 2, 0.72) 0%, rgba(6, 6, 8, 0.62) 100%) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3) !important;
    overflow: visible;
    display: flex !important;
    z-index: 10950;
  }

  body.ep-app.ep-desktop-sidenav #profileDesktopSide .profile-desktop-side__nav {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    gap: 0.2rem;
    padding: 0;
    min-height: 0;
    overflow: visible;
  }

  body.ep-app.ep-desktop-sidenav #profileDesktopSide .profile-desktop-side__self {
    display: none !important;
  }

  body.ep-app.ep-desktop-sidenav #profileDesktopSide .profile-desktop-side__item {
    width: auto;
    padding: 0.5rem 0.8rem;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0.75rem;
    white-space: nowrap;
  }

  body.ep-app.ep-desktop-sidenav #profileDesktopSide .profile-desktop-side__item.is-active {
    border-left-color: transparent;
    border-bottom-color: #86efac;
  }

  body.ep-app.ep-desktop-sidenav #profileDesktopSide .profile-desktop-side__item--create {
    display: none !important;
  }

  body.ep-app.ep-desktop-sidenav #profileDesktopSide .profile-desktop-side__profiles-wrap {
    position: relative;
    flex-direction: row;
    align-items: center;
  }

  body.ep-app.ep-desktop-sidenav #profileDesktopSide .profile-following-picker--desktop {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 16rem;
    margin: 0;
    z-index: 20;
  }

  body.ep-app.ep-desktop-sidenav.ep-has-profile-desktop-side.sp-view > .pt-3 {
    padding-left: 0.5rem !important;
  }
}

@media (max-width: 767px) {
  body.ep-app #profileMobileTop .profile-mobile-top__avatar,
  body.ep-app #profileMobileTopAvatar {
    width: 2rem !important;
    height: 2rem !important;
    max-width: 2rem !important;
    max-height: 2rem !important;
    object-fit: cover !important;
    object-position: center !important;
    flex-shrink: 0;
  }

  body.ep-app #profileMobileTop .profile-tabs--mobile-top .profile-tabs__tab[data-profile-nav="create"] {
    display: none !important;
  }

  body.ep-app #profileMobileTop .profile-tabs--mobile-top .profile-tabs__tab[data-profile-nav="posts"] {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    flex: 0 1 auto;
    width: auto;
    max-width: calc(50% - 5.5rem);
    justify-content: flex-start;
    padding-left: 0.1rem;
    padding-right: 0.35rem;
    z-index: 1;
    overflow: hidden;
  }

  body.ep-app #profileMobileTop .profile-tabs--mobile-top .profile-tabs__tab[data-profile-nav="posts"]::after {
    left: 50%;
  }

  body.ep-app #profileMobileTop .profile-tabs--mobile-top .profile-tabs__tab[data-ep-nav="dms"] {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: max-content;
    max-width: min(42%, 9.5rem);
    z-index: 2;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    overflow: visible;
  }
}
