.site-header {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  width: min(1180px, calc(100% - 48px));
  height: 70px;
  box-sizing: border-box;

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

  padding: 0 18px 0 22px;

  background: rgba(20, 23, 34, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body {
  padding-top: 112px;
}

.site-header__left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo__img {
  height: 25px;
  width: auto;
  display: block;
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.site-header__right {
  display: flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 13px;

  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.07),
      rgba(255,255,255,0.03)
    );

  color: #f2f5f8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05);

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

.site-btn:hover {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.11),
      rgba(255,255,255,0.05)
    );

  border-color: rgba(255,255,255,0.16);

  transform: translateY(-1px);
}

.site-btn.site-btn-premium {
  color: var(--dm-accent);
}

.platform-card .site-btn,
.site-btn {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.035)
    );

  border-color: rgba(255,255,255,0.10);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05);
}


.site-btn-primary {
  background: linear-gradient(
    180deg,
    var(--dm-accent),
    var(--dm-accent-2)
  );

  border: 1px solid rgba(255,255,255,0.10);

  color: #fff;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18);

  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    opacity 0.16s ease;
}

.site-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}



.user-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  height: auto;              /* 👈 allow natural height */
  padding: 4px 6px;          /* 👈 small breathing room */

  border: none;
  background: transparent;
  cursor: pointer;
}

.site-header .site-btn {
  margin-top: 0;
}

.user-menu:hover {
  background: transparent;
  opacity: 0.85;
}

.user-menu:hover {
  transform: scale(1.05);
  transition: transform 0.15s ease;
}

.user-menu__avatar {
  height: 28px;              /* 👈 slightly larger than logo */
  width: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-menu__avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px;
  isolation: isolate;
}

.user-menu__avatar-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
}

/* Tier 1 - clean white */
.user-menu__avatar-wrap.tier-1::before {
  background: rgba(255, 255, 255, 0.7);
}

/* Tier 2 - gold premium */
.user-menu__avatar-wrap.tier-2::before {
  background: linear-gradient(135deg, #fff4b0, #ffcf4d, #b7791f, #ffe08a);
  box-shadow: 0 0 8px rgba(255, 207, 77, 0.45);
}

/* Tier 3 - animated purple founder glow */
.user-menu__avatar-wrap.tier-3::before {
  background: conic-gradient(
    from 0deg,
    #7c3aed,
    #a855f7,
    #ec4899,
    #60a5fa,
    #a855f7,
    #7c3aed
  );
  animation: dmTierGlowSpin 2.8s linear infinite;
  box-shadow:
    0 0 8px rgba(168, 85, 247, 0.7),
    0 0 18px rgba(236, 72, 153, 0.35);
}

.user-menu__plus-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
  z-index: 2;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.65));
}

.user-menu__avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  background: #0b1220;
  z-index: 1;
}

@keyframes dmTierGlowSpin {
  to {
    transform: rotate(360deg);
  }
}

.user-menu__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

.user-menu__label {
  display: flex;
  align-items: center;
  line-height: 1;
}

.user-menu span {
  font-weight: 800;
}

.user-menu__arrow {
  font-size: 10px;
  opacity: 0.75;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* Dropdowns: slide + fade */
.dropdown,
.nav-dropdown-menu {
  position: absolute;
  top: 52px;
  right: 0;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(15, 17, 25, 0.96);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.42);
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 2000;
}

.dropdown.show,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown a,
.dropdown button,
.nav-dropdown-menu a {
  padding: 12px 14px;
  text-align: left;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.dropdown a:hover,
.dropdown button:hover,
.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
}

.nav-dropdown {
  position: relative;
}

/* Hamburger */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 auto;
}

.hamburger:hover {
  background: rgba(255,255,255,0.12);
}

/* Collapse earlier, before the header can overflow. */
@media (max-width: 1250px) {
  .site-header {
    width: calc(100% - 24px);
    top: 12px;
    height: auto;
    min-height: 64px;
    padding: 12px;

    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas:
      "logo spacer auth hamburger"
      "nav nav nav nav";
    gap: 0 12px;
  }

  body {
    padding-top: 92px;
  }

  .site-header__left {
    grid-area: logo;
  }

  .site-header__right {
    grid-area: auth;
    display: flex;
    align-items: center;
    justify-self: end;
  }

  .hamburger {
    grid-area: hamburger;
    display: inline-flex;
    justify-self: end;
  }

  .site-header__nav {
    display: none;
  }

  .site-header.mobile-menu-open .site-header__nav {
    grid-area: nav;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding-top: 12px;
  }

  .site-header.mobile-menu-open .site-btn {
    width: 100%;
    justify-content: space-between;
  }

  
  .site-header .dropdown {
    position: absolute;
    top: 52px;
    right: 0;
  }

  .site-header .nav-dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    transform: none;
    box-shadow: none;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
  }

  .site-header .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    max-height: 400px;
  }
}

@media (max-width: 600px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "logo auth hamburger"
      "nav nav nav";
    column-gap: 8px;
  }

  .site-header__left,
  .site-logo {
    min-width: 0;
  }

  .site-logo__img {
    width: min(100%, 190px);
    height: auto;
    max-height: 25px;
  }

  .site-header__right,
  .header-actions {
    min-width: 0;
    gap: 7px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header icons */
.notif-bell,
.header-help {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  box-sizing: border-box;
  border-radius: 50%;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background-color .18s ease, color .18s ease;
}

.header-help {
  font-weight: 900;
}

.notif-bell:hover,
.header-help:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.notif-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #ff4d4d;
  border-radius: 50%;
}

/* Dropdown */
.notif-dropdown {
  position: absolute;
  top: 52px;
  right: 60px;
  width: 300px;

  display: flex;
  flex-direction: column;

  background: rgba(15,17,25,0.96);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.42);

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.2s;

  z-index: 2000;
}

.notif-dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.notif-item {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
}

.notif-item.read {
  opacity: 0.6;
}

.notif-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.notif-body {
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.notif-meta {
  margin-bottom: 4px;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  text-transform: capitalize;
}

.notif-action {
  display: inline-block;
  margin-top: 7px;
  color: var(--accent, #60a5fa);
  font-size: 12px;
  font-weight: 800;
}

.notif-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
}

.notif-view-all,
.notif-mark-all {
  font-size: 12px;
  font-weight: 800;
}

.notif-mark-all {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
}

.notif-empty {
  padding: 12px;
  text-align: center;
  opacity: 0.6;
}
