:root {
  --gp-header-h: 64px;
  --gp-text-dark: #111111;
  --gp-accent: #ff4747;
}
html,
body {
  min-height: 100%;
  margin: 0;
  background: #d8f5ef !important;
}
body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 0;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif !important;
  color: var(--gp-text-dark) !important;
  background: transparent !important;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      650px 650px at 8% 16%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.88) 24%,
      rgba(255, 255, 255, 0) 62%
    ),
    radial-gradient(
      760px 760px at 92% 12%,
      rgba(255, 190, 90, 0.6) 0%,
      rgba(255, 190, 90, 0.38) 24%,
      rgba(255, 190, 90, 0) 62%
    ),
    radial-gradient(
      820px 820px at 88% 82%,
      rgba(255, 95, 160, 0.36) 0%,
      rgba(255, 95, 160, 0.2) 22%,
      rgba(255, 95, 160, 0) 62%
    ),
    radial-gradient(
      760px 760px at 10% 86%,
      rgba(86, 146, 255, 0.36) 0%,
      rgba(86, 146, 255, 0.2) 22%,
      rgba(86, 146, 255, 0) 62%
    ),
    radial-gradient(
      520px 520px at 54% 38%,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.16) 22%,
      rgba(255, 255, 255, 0) 58%
    ),
    linear-gradient(135deg, #dff8f3 0%, #cdeee8 46%, #def4fb 100%);
}
body > * {
  position: relative;
  z-index: 1;
}
.gp-header {
  position: relative;
  width: 100%;
  min-height: var(--gp-header-h);
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.gp-header-inner {
  width: 100%;
  max-width: 1600px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  position: relative;
  overflow: visible;
}
.gp-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.gp-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.gp-nav {
  flex: 1 1 auto;
  min-width: 0;
}
.gp-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}
.gp-nav li {
  margin: 0;
  padding: 0;
}
.gp-nav a {
  text-decoration: none;
  color: var(--gp-text-dark) !important;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}
.gp-nav a:hover {
  color: var(--gp-accent) !important;
}
.gp-mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
  color: var(--gp-text-dark);
  padding: 8px 10px;
  border-radius: 10px;
  flex: 0 0 auto;
}
.gp-mobile-menu-btn:hover {
  background: #f5f7fa;
}
@media (max-width: 900px) {
  .gp-header-inner {
    gap: 12px;
    min-height: var(--gp-header-h);
  }
  .gp-logo img {
    height: 32px;
  }
  .gp-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .gp-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 15px;
    right: 15px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    padding: 12px;
    display: none;
    z-index: 2000;
  }
  .gp-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .gp-nav li + li {
    border-top: 1px solid #eef1f5;
  }
  .gp-nav a {
    display: block;
    padding: 14px 10px;
    font-size: 15px;
  }
  .gp-header.menu-open .gp-nav {
    display: block;
  }
}
.gp-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}
.gp-favorites-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #f4f6f8;
  color: #222;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.12s ease;
}
.gp-favorites-btn:hover {
  background: #eceff4;
}
.gp-favorites-btn:active {
  transform: translateY(1px);
}
.gp-favorites-btn {
  line-height: 0;
}
.gp-favorites-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
  fill: none;
  stroke: #2b2b2b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gp-favorites-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4d6d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  display: none;
}
.gp-favorites-count.has-items {
  display: inline-block;
}
.gp-favorites-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}
.gp-favorites-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.gp-favorites-modal {
  position: fixed;
  top: 88px;
  right: 20px;
  width: min(560px, calc(100vw - 24px));
  max-height: min(78vh, 720px);
  background: #161a2f;
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  z-index: 3001;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}
.gp-favorites-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.gp-favorites-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gp-favorites-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}
.gp-favorites-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.gp-favorites-body {
  padding: 18px 18px 20px;
  max-height: calc(78vh - 80px);
  overflow: auto;
}
.gp-favorites-empty {
  padding: 40px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.6;
}
.gp-favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.gp-favorites-card {
  position: relative;
  display: block;
  background: #212642;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff;
}
.gp-favorites-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #2a3154;
}
.gp-favorites-name {
  padding: 12px 14px 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}
.gp-favorites-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 2px solid #121629;
  border-radius: 999px;
  background: #ff4d6d;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
@media (max-width: 900px) {
  .gp-header-actions {
    margin-left: 0;
    order: 3;
  }
  .gp-favorites-modal {
    top: 78px;
    right: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 96px);
  }
  .gp-favorites-body {
    max-height: calc(100vh - 180px);
  }
  .gp-favorites-grid {
    grid-template-columns: 1fr;
  }
}
body.gp-fs-open::before {
  display: none !important;
}
