
/* =====================================================
   Theme: Black / White / #bff747
   System width: 1500px
   Keeps vertical hover text animation + intro motion
===================================================== */

html,
body {
  overflow-x: hidden !important;
}

.rk-full-header-shell {
  --rk-accent: #bff747;
  --rk-white: #ffffff;
  --rk-muted: rgba(255,255,255,0.62);
  --rk-page-max: 1500px;
  --rk-page-gutter: 96px;
  --rk-header-top: 18px;

  position: fixed;
  top: var(--rk-header-top);
  left: 0;
  right: 0;
  z-index: 99999;
  width: 100%;
  max-width: 100%;
  padding: 0;
  font-family: var(--font-body, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  pointer-events: none;
}

body.admin-bar .rk-full-header-shell {
  top: 50px;
}

.rk-full-header-shell,
.rk-full-header-shell * {
  box-sizing: border-box;
}

.rk-full-header {
  position: relative;
  width: min(var(--rk-page-max), calc(100vw - var(--rk-page-gutter)));
  max-width: var(--rk-page-max);
  min-height: 58px;
  margin: 0 auto;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

/* Logo - left side like Galxe */
.rk-header-logo {
  position: relative;
  z-index: 4;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  pointer-events: auto;
  overflow: visible;
  opacity: 0;
  transform: translate3d(-10px, -8px, 0);
  animation: rkHeaderItemIntro 0.72s cubic-bezier(.22,.61,.36,1) 0.08s both;
}

.rk-header-logo img {
  display: block;
  width: 178px;
  height: auto;
  max-width: 100%;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.rk-header-logo:hover img {
  transform: none;
  filter: drop-shadow(0 0 16px rgba(191,247,71,0.16));
}

/* Center nav pill */
.rk-header-nav {
  position: relative;
  z-index: 4;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.55vw, 28px);
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  pointer-events: auto;
  overflow: hidden;

  background:
    radial-gradient(circle at 16% 18%, rgba(191,247,71,0.09), transparent 36%),
    rgba(0,0,0,0.86);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 46px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transform-origin: center top;
  animation: rkHeaderPillIntro 0.84s cubic-bezier(.22,.61,.36,1) both;
}

.rk-header-nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(191,247,71,0.11), transparent 24%, transparent 76%, rgba(255,255,255,0.06));
  opacity: 0.42;
}

.rk-header-nav::after {
  content: "";
  position: absolute;
  left: -24%;
  top: 0;
  width: 28%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(191,247,71,0.12), transparent);
  transform: skewX(-18deg) translateX(-140%);
  animation: rkHeaderSweep 4.8s ease-in-out infinite 1.1s;
}

.rk-header-nav-link {
  position: relative !important;
  z-index: 2;
  height: 24px;
  overflow: hidden !important;
  display: inline-block !important;
  color: rgba(255,255,255,0.72) !important;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 24px;
  font-weight: 780;
  letter-spacing: -0.015em;
  transform: translateZ(0);
}

.rk-header-nav-link .rk-nav-default,
.rk-header-nav-link .rk-nav-hover {
  display: block !important;
  height: 24px;
  line-height: 24px;
  white-space: nowrap;
  transition:
    transform 0.34s cubic-bezier(.22,.61,.36,1),
    color 0.34s ease !important;
  will-change: transform;
}

.rk-header-nav-link .rk-nav-default {
  color: rgba(255,255,255,0.72);
  transform: translate3d(0, 0, 0);
}

.rk-header-nav-link .rk-nav-hover {
  position: absolute;
  left: 0;
  top: 24px;
  color: var(--rk-accent);
  transform: translate3d(0, 0, 0);
}

.rk-header-nav-link:hover .rk-nav-default {
  transform: translate3d(0, -24px, 0) !important;
}

.rk-header-nav-link:hover .rk-nav-hover {
  transform: translate3d(0, -24px, 0) !important;
}

.rk-header-nav-link.is-active .rk-nav-default {
  color: var(--rk-accent) !important;
  text-shadow: 0 0 12px rgba(191,247,71,0.22);
}

.rk-header-nav-link.is-active .rk-nav-hover {
  color: var(--rk-accent) !important;
}

.rk-header-nav-link.is-active::after {
  content: none;
  display: none;
}

/* Right action buttons using the Hero CTA language */
.rk-header-actions {
  position: relative;
  z-index: 4;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: auto;
  overflow: visible;
  opacity: 0;
  transform: translate3d(10px, -8px, 0);
  animation: rkHeaderItemIntro 0.72s cubic-bezier(.22,.61,.36,1) 0.14s both;
}

.rk-header-btn {
  min-height: 46px;
  padding: 0 23px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transform: translateZ(0);
  transition:
    transform 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    color 0.24s ease;
}

.rk-header-btn-login {
  color: #ffffff !important;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    0 12px 30px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rk-header-btn-login:hover {
  transform: translateY(-2px);
  border-color: rgba(191,247,71,0.38);
  color: var(--rk-accent) !important;
  background: rgba(191,247,71,0.045);
}

.rk-header-btn-signup {
  color: #091108 !important;
  background: var(--rk-accent);
  border: 1px solid var(--rk-accent);
  gap: 10px;
  padding-inline: 26px;
  box-shadow:
    0 0 24px rgba(191,247,71,0.16),
    inset 0 1px 0 rgba(255,255,255,0.36);
}

.rk-header-btn-signup i {
  font-size: 20px;
  line-height: 1;
}

.rk-header-btn-signup:hover {
  transform: translateY(-2px);
  background: #caff62;
  border-color: #caff62;
  box-shadow:
    0 18px 44px rgba(191,247,71,0.26),
    inset 0 1px 0 rgba(255,255,255,0.38);
}


/* Logged-in profile control */
.rk-header-account-wrap {
  position: relative;
  z-index: 999999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.rk-header-account-wrap::after {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  top: 100%;
  height: 18px;
  pointer-events: auto;
}

.rk-header-profile-btn {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 36% 18%, rgba(191,247,71,0.13), transparent 42%),
    rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    0 12px 30px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: none !important;
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    color 0.24s ease;
}

.rk-header-profile-btn:hover,
.rk-header-account-wrap:focus-within .rk-header-profile-btn {
  transform: none !important;
  border-color: rgba(191,247,71,0.44);
  background:
    radial-gradient(circle at 36% 18%, rgba(191,247,71,0.18), transparent 44%),
    rgba(191,247,71,0.052);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.065),
    0 18px 42px rgba(0,0,0,0.32),
    0 0 28px rgba(191,247,71,0.08);
}

.rk-header-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #081007;
  background: var(--rk-accent);
  border: 1px solid rgba(191,247,71,0.84);
  box-shadow:
    0 0 18px rgba(191,247,71,0.18),
    inset 0 1px 0 rgba(255,255,255,0.34);
  font-size: 13px;
  font-weight: 880;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.rk-header-profile-avatar.has-image {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    0 0 18px rgba(191,247,71,0.10),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.rk-header-profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rk-header-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 999999;
  width: 312px;
  padding: 10px;
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -8px, 0) scale(0.985);
  transform-origin: top right;
  background:
    radial-gradient(circle at 18% 10%, rgba(191,247,71,0.11), transparent 40%),
    rgba(3,3,3,0.94);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    0 24px 62px rgba(0,0,0,0.46);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
}

.rk-header-account-wrap:hover .rk-header-account-menu,
.rk-header-account-wrap:focus-within .rk-header-account-menu,
.rk-header-account-wrap.is-menu-open .rk-header-account-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.rk-header-account-meta {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 7px;
}

.rk-header-menu-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #081007;
  background: var(--rk-accent);
  border: 1px solid rgba(191,247,71,0.78);
  font-size: 14px;
  font-weight: 880;
  line-height: 1;
  text-transform: uppercase;
}

.rk-header-menu-avatar.has-image {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.18);
}

.rk-header-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.rk-header-account-text {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-content: center;
  gap: 0;
}

.rk-header-account-name {
  display: block;
  color: rgba(255,255,255,0.94);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 820;
  letter-spacing: -0.015em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rk-header-account-email {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.48);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 640;
  letter-spacing: -0.012em;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rk-header-account-wallet {
  margin-top: 7px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(191,247,71,0.9);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 760;
  letter-spacing: -0.012em;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.rk-header-account-wallet i {
  font-size: 10px;
  flex: 0 0 auto;
}

.rk-header-account-wallet-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.rk-account-menu-link {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  color: rgba(255,255,255,0.76) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -0.015em;
  transition: background 0.22s ease, color 0.22s ease;
}

.rk-account-menu-link i {
  width: 18px;
  min-width: 18px;
  color: rgba(191,247,71,0.84);
  font-size: 14px;
  text-align: center;
  line-height: 1;
}

.rk-account-menu-link:hover {
  color: #ffffff !important;
  background: rgba(191,247,71,0.075);
}

.rk-account-menu-separator {
  height: 1px;
  margin: 7px 4px;
  background: rgba(255,255,255,0.10);
}

.rk-account-menu-link.is-danger {
  color: rgba(255,255,255,0.64) !important;
}

.rk-account-menu-link.is-danger i {
  color: rgba(255,255,255,0.62);
}

.rk-account-menu-link.is-danger:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,0.075);
}

/* Full header background after Hero ends */
.rk-full-header-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(-1 * var(--rk-header-top));
  width: 100vw;
  height: calc(100% + var(--rk-header-top) + 14px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: #050505;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 48px rgba(0,0,0,0.34);
  transition: opacity 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.rk-full-header-shell.is-after-hero::before {
  opacity: 1;
}

.rk-full-header {
  z-index: 2;
}

.rk-full-header-shell.is-after-hero .rk-header-nav {
  background:
    radial-gradient(circle at 16% 18%, rgba(191,247,71,0.08), transparent 36%),
    rgba(0,0,0,0.88);
  border-color: rgba(255,255,255,0.13);
}

.rk-full-header-shell.is-after-hero .rk-header-btn-login {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.28);
}

/* Scrolled state */
.rk-full-header-shell.is-scrolled .rk-header-nav {
  background:
    radial-gradient(circle at 16% 18%, rgba(191,247,71,0.11), transparent 36%),
    rgba(0,0,0,0.92);
  border-color: rgba(191,247,71,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.075),
    0 20px 58px rgba(0,0,0,0.44),
    0 0 28px rgba(191,247,71,0.040);
}

/* Mobile toggle */
.rk-header-toggle {
  display: none;
}

.rk-header-mobile-btn {
  position: relative;
  z-index: 5;
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  cursor: pointer;
  pointer-events: auto;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 14px 34px rgba(0,0,0,0.26);
}

.rk-header-mobile-btn span {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #ffffff;
  transition:
    transform 0.28s ease,
    top 0.28s ease,
    opacity 0.28s ease,
    background 0.28s ease;
}

.rk-header-mobile-btn span:nth-child(1) {
  top: 16px;
}

.rk-header-mobile-btn span:nth-child(2) {
  top: 23px;
}

.rk-header-mobile-btn span:nth-child(3) {
  top: 30px;
}

.rk-header-toggle:checked ~ .rk-full-header .rk-header-mobile-btn span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
  background: var(--rk-accent);
}

.rk-header-toggle:checked ~ .rk-full-header .rk-header-mobile-btn span:nth-child(2) {
  opacity: 0;
}

.rk-header-toggle:checked ~ .rk-full-header .rk-header-mobile-btn span:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
  background: var(--rk-accent);
}

/* Animations */
@keyframes rkHeaderPillIntro {
  0% {
    opacity: 0;
    transform: translate3d(0,-16px,0) scaleX(0.62);
  }

  42% {
    opacity: 1;
    transform: translate3d(0,0,0) scaleX(0.62);
  }

  100% {
    opacity: 1;
    transform: translate3d(0,0,0) scaleX(1);
  }
}

@keyframes rkHeaderItemIntro {
  0% {
    opacity: 0;
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0,0,0);
    filter: none;
  }
}

@keyframes rkHeaderSweep {
  0%, 58% {
    transform: skewX(-18deg) translateX(-140%);
    opacity: 0;
  }

  68% {
    opacity: 1;
  }

  86%, 100% {
    transform: skewX(-18deg) translateX(540%);
    opacity: 0;
  }
}

/* Width behavior: 100% keeps clean page gap, 90%/zoom-out locks to 1500px */
@media (min-width: 1800px) {
  .rk-full-header {
    width: var(--rk-page-max);
    max-width: var(--rk-page-max);
  }
}

/* Tablet: keep Galxe structure but reduce sizes */
@media (max-width: 1180px) {
  .rk-full-header-shell {
    --rk-page-gutter: 48px;
  }

  .rk-full-header {
    gap: 16px;
  }

  .rk-header-logo img {
    width: 160px;
  }

  .rk-header-nav {
    gap: 16px;
    padding-inline: 20px;
  }

  .rk-header-btn {
    padding-inline: 18px;
  }
}

/* Mobile dropdown */
@media (max-width: 980px) {
  .rk-full-header-shell {
    --rk-header-top: 12px;
    --rk-page-gutter: 24px;
  }

  body.admin-bar .rk-full-header-shell {
    top: 46px;
  }

  .rk-full-header {
    width: calc(100vw - 24px);
    max-width: none;
    min-height: 58px;
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 14px;
  }

  .rk-header-logo img {
    width: 156px;
  }

  .rk-header-mobile-btn {
    display: block;
    justify-self: end;
  }

  .rk-header-nav,
  .rk-header-actions {
    position: absolute;
    left: 0;
    right: 0;
    display: grid;
    justify-content: stretch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0,-10px,0);
    transition:
      opacity 0.24s ease,
      visibility 0.24s ease,
      transform 0.24s ease;
  }

  .rk-header-nav {
    top: calc(100% + 10px);
    gap: 0;
    min-height: auto;
    padding: 14px;
    border-radius: 24px;
    background:
      radial-gradient(circle at 16% 18%, rgba(191,247,71,0.10), transparent 38%),
      rgba(5,5,5,0.94);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.055),
      0 24px 58px rgba(0,0,0,0.44);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: none;
  }

  .rk-header-nav::after {
    display: none;
  }

  .rk-header-actions {
    top: calc(100% + 310px);
    grid-template-columns: 1fr;
    gap: 10px;
    animation: none;
  }

  .rk-header-toggle:checked ~ .rk-full-header .rk-header-nav,
  .rk-header-toggle:checked ~ .rk-full-header .rk-header-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0,0,0);
  }

  .rk-header-nav-link {
    width: 100%;
    height: 44px;
    line-height: 44px;
    padding: 0 12px;
    border-radius: 13px;
  }

  .rk-header-nav-link .rk-nav-default,
  .rk-header-nav-link .rk-nav-hover {
    height: 44px;
    line-height: 44px;
  }

  .rk-header-nav-link .rk-nav-hover {
    top: 44px;
    left: 12px;
  }

  .rk-header-nav-link:hover .rk-nav-default {
    transform: translate3d(0, -44px, 0) !important;
  }

  .rk-header-nav-link:hover .rk-nav-hover {
    transform: translate3d(0, -44px, 0) !important;
  }

  .rk-header-nav-link:hover,
  .rk-header-nav-link.is-active {
    background: rgba(191,247,71,0.075);
  }

  .rk-header-nav-link.is-active::after {
    display: none;
  }

  .rk-header-btn {
    min-height: 48px;
    width: 100%;
  }


  .rk-header-account-wrap {
    width: 100%;
  }

  .rk-header-profile-btn {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 14px;
    gap: 10px;
  }

  .rk-header-profile-btn::after {
    content: "Account";
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    font-weight: 780;
    letter-spacing: -0.015em;
  }

  .rk-header-account-menu {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .rk-header-account-wrap:hover .rk-header-account-menu,
  .rk-header-account-wrap:focus-within .rk-header-account-menu {
    display: block;
    transform: none;
  }
}

@media (max-width: 520px) {
  .rk-full-header-shell {
    --rk-header-top: 8px;
  }

  .rk-full-header {
    width: calc(100vw - 20px);
  }

  body.admin-bar .rk-full-header-shell {
    top: 46px;
  }

  .rk-header-logo img {
    width: 142px;
  }

  .rk-header-actions {
    grid-template-columns: 1fr;
    top: calc(100% + 310px);
  }

  .rk-header-btn {
    min-height: 46px;
  }
}
