/* GOTO77 Premium Header */
:root {
  --g77-header-height: 72px;
  --g77-green-1: #39e079;
  --g77-green-2: #1fbd61;
  --g77-green-3: #128842;
  --g77-bg: #030303;
  --g77-text: #f7f7f7;
  --g77-muted: #aaa;
  --g77-border: rgba(255,255,255,.15);
}

* { box-sizing: border-box; }

.g77-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  min-height: var(--g77-header-height);
  background: linear-gradient(180deg, #70ff49 0%, #1ee01c 42%, #06a710 51%, #007b09 100%);
  border-top: 3px solid #eef5e8;
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  font-family: Arial, Helvetica, sans-serif;
  transition: background .25s ease, box-shadow .25s ease;
}

.g77-header.is-scrolled {
  background: linear-gradient(180deg, #70ff49 0%, #1ee01c 42%, #06a710 51%, #007b09 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 32px rgba(0,0,0,.5);
}

.g77-header__inner {
  width: min(1180px, calc(100% - 28px));
  min-height: var(--g77-header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.g77-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.g77-logo__img {
  display: block;
  width: 160px;
  max-height: 58px;
  object-fit: contain;
}

.g77-logo__fallback {
  display: none;
  align-items: center;
  color: #ffa500 ;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -2px;
  text-shadow: 0 0 10px rgba(68,255,76,.35);
}

.g77-logo__fallback span { color: #363232; }

.g77-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.g77-nav > a,
.g77-nav__dropdown-toggle {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--g77-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}

.g77-nav > a:hover,
.g77-nav__dropdown-toggle:hover,
.g77-nav__item.is-open > .g77-nav__dropdown-toggle {
  color: #58ec8d;
  background: rgba(255,255,255,.06);
}

.g77-nav__item { position: relative; }

.g77-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

.g77-nav__item.is-open .g77-chevron,
.g77-language.is-open .g77-chevron {
  transform: rotate(225deg) translate(-1px,-1px);
}

.g77-submenu,
.g77-language__menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--g77-border);
  border-radius: 14px;
  background: rgba(12,12,12,.98);
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.g77-submenu { left: 0; right: auto; }

.g77-nav__item.is-open .g77-submenu,
.g77-language.is-open .g77-language__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.g77-submenu a,
.g77-language__menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.g77-submenu a:hover,
.g77-language__menu button:hover,
.g77-language__menu button.is-active {
  background: rgba(39,205,101,.17);
  color: #62ef94;
}

.g77-language__menu img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.g77-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.g77-register {
  min-width: 136px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(180deg,var(--g77-green-1),var(--g77-green-2) 55%,var(--g77-green-3));
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 13px;
  box-shadow: 0 4px 0 #0c7436, inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px rgba(0,0,0,.35);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 800;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.g77-register:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #0c7436, inset 0 1px 0 rgba(255,255,255,.4), 0 10px 24px rgba(31,189,97,.25);
}

.g77-register:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0c7436, inset 0 1px 0 rgba(255,255,255,.25);
}

.g77-sites {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #28ca07;
  background: #974905;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

.g77-language { position: relative; }

.g77-language__button {
  height: 44px;
  min-width: 96px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 24px;
  background: #080808;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.g77-language__button:hover { border-color: rgba(74,222,128,.7); }
.g77-globe { font-size: 14px; }

.g77-burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--g77-border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.g77-burger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

.g77-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.g77-burger.is-active span:nth-child(2) { opacity: 0; }
.g77-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .g77-header__inner { gap: 14px; }
  .g77-nav > a,
  .g77-nav__dropdown-toggle { padding: 0 8px; font-size: 13px; }
  .g77-logo__img { width: 145px; }
  .g77-register { min-width: 118px; padding-inline: 16px; }
}

@media (max-width: 900px) {
  .g77-header__inner {
    min-height: 66px;
    justify-content: space-between;
  }

  .g77-burger {
    display: block;
    order: 3;
  }

  .g77-nav {
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 69px);
    overflow-y: auto;
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(5,5,5,.98);
    border-top: 1px solid var(--g77-border);
    box-shadow: 0 18px 35px rgba(0,0,0,.5);
  }

  .g77-nav.is-open { display: flex; }

  .g77-nav > a,
  .g77-nav__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0 14px;
  }

  .g77-nav__item { width: 100%; }

  .g77-submenu {
    position: static;
    display: none;
    min-width: 0;
    margin: 4px 0 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,.035);
  }

  .g77-nav__item.is-open .g77-submenu { display: block; }

  .g77-actions {
    margin-left: auto;
    gap: 8px;
  }

  .g77-sites { display: none; }
  .g77-register { min-width: 98px; height: 40px; font-size: 13px; }
  .g77-language__button { min-width: 78px; height: 40px; padding-inline: 11px; }
}

@media (max-width: 560px) {
  .g77-header__inner { width: min(100% - 18px, 1180px); gap: 8px; }
  .g77-logo__img { width: 118px; max-height: 48px; }
  .g77-logo__fallback { font-size: 27px; }
  .g77-register { display: none; }
  .g77-language__button { min-width: 74px; }
  .g77-language__menu { right: -46px; }
}


.g77-menu-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  object-fit: contain;
  opacity: .95;
  transition: transform .2s ease, filter .2s ease;
}
.g77-nav > a:hover .g77-menu-icon,
.g77-nav__dropdown-toggle:hover .g77-menu-icon {
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 0 5px rgba(74,222,128,.45));
}
.demo-hero__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 12px rgba(73,225,125,.55));
}
.demo-hero h1 span {
  color: #49df79;
}
