

:root {
  --bg: #F3F5F8;
  --white: #FFFFFF;
  --border: #E3E6EE;

  --text-main: rgb(var(--main-text-color));
  --text-muted: rgba(var(--main-text-color), 0.78);

  --accent: #32AF36;
  --accent-dark: #2a9430;

  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);

  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
}

.pcg-header {
  position: relative;
  padding-top: 10px;
  z-index: 1100;
}

.pcg-topbar {
  height: 52px;
  background: transparent;
  border-bottom: 0;
  display: flex;
  align-items: center;
  border-radius: 0;
}

.pcg-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.pcg-topbar-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.pcg-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.pcg-topbar-left {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcg-topbar-left strong {
  font-weight: 700;
  color: #ff2d2d;
}

.pcg-top-search {
  display: flex;
  align-items: center;
  height: 36px;
  width: min(420px, 42vw);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.pcg-top-search input[type="search"] {
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-main);
  background: transparent;
}

.pcg-top-search input[type="search"]::placeholder {
  color: #98A3AF;
}

.pcg-top-search button {
  height: 100%;
  width: 38px;
  border: 0;
  background: #111418;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pcg-top-search svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  opacity: 1;
}

.pcg-top-search button:hover svg {
  fill: var(--accent-dark);
}

body.theme-dark .pcg-topbar-left {
  color: rgba(230, 237, 243, 0.82);
}

body.theme-dark .pcg-top-search {
  background: #111418;
  border-color: transparent;
  border-width: 0;
}

body.theme-dark .pcg-top-search input[type="search"] {
  color: #e6edf3;
}

body.theme-dark .pcg-top-search input[type="search"]::placeholder {
  color: rgba(230, 237, 243, 0.62);
}

body.theme-dark .pcg-top-pill {
  background: #2a2f36;
}

body.theme-dark .pcg-top-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .pcg-auth a {
  color: #e6edf3;
}

.pcg-top-pill {
  height: 30px;
  border-radius: 999px;
  background: #E6E9EE;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  position: relative;
}

.pcg-top-pill::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 28px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
  transform: translateX(0);
  transition: transform 0.18s ease;
}

body.theme-dark .pcg-top-pill::before {
  transform: translateX(30px);
}

.pcg-top-pill-btn {
  width: 28px;
  height: 26px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.pcg-top-pill-btn svg {
  width: 14px;
  height: 14px;
  fill: #5F6368;
}

body:not(.theme-dark) .pcg-top-pill-btn[data-pcg-theme-mode="light"] svg {
  fill: var(--accent);
}

body.theme-dark .pcg-top-pill-btn[data-pcg-theme-mode="dark"] svg {
  fill: var(--accent);
}

.pcg-top-pill-btn:hover {
  background: rgba(255,255,255,0.65);
}

.pcg-top-circle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: #0F1114;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.pcg-top-circle svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.pcg-top-circle:hover {
  background: #171A1F;
}

.pcg-top-circle .pcg-icon-badge {
  top: -6px;
  right: -6px;
  box-shadow: 0 0 0 3px rgba(243,245,248,1);
}

.pcg-mainnav {
 
  background: transparent;
  box-shadow: none;
}

.pcg-mainnav-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.pcg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  flex: 0 0 auto;
}

.pcg-brand img.pcg-logo {
  height: 34px;
  width: auto;
}

.pcg-brand img.pcg-logo--light {
  display: inline-block;
}

.pcg-brand img.pcg-logo--dark {
  display: none;
}

.pcg-brand .pcg-brand-text {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text-main);
}

.pcg-logo--dark {
  display: none;
}

body.theme-dark .pcg-brand img.pcg-logo--light {
  display: none;
}

body.theme-dark .pcg-brand img.pcg-logo--dark {
  display: block;
}

.pcg-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.pcg-menu,
.pcg-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pcg-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.pcg-menu > li {
  position: relative;
}

.pcg-menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 26px 0;
  color: var(--text-main);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s ease;
}

body.theme-dark .pcg-menu > li > a {
  color: rgb(var(--dark-main-text-color)) !important;
}

body.theme-dark .pcg-menu .sub-menu {
  background: #111418;
  border-color: #21262d;
}

body.theme-dark .pcg-menu .sub-menu li a {
  color: rgba(230, 237, 243, 0.78);
}

body.theme-dark .pcg-menu .sub-menu li a:hover {
  color: rgb(var(--main-color));
  background: rgba(var(--main-color), 0.12);
}

.pcg-menu > li.current-menu-item > a,
.pcg-menu > li.current-menu-ancestor > a {
  color: var(--accent);
}

.pcg-menu > li > a:hover {
  color: var(--accent-dark);
}

.pcg-menu-badge {
  position: absolute;
  top: 10px;
  right: -12px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  pointer-events: none;
}

.pcg-menu-badge--muted {
  background: #32AF36;
}

.pcg-menu .menu-item-has-children > a::after {
  content: none;
}

.pcg-menu .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pcg-menu-chevron {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.pcg-menu li.is-open > a .pcg-menu-chevron {
  transform: rotate(180deg);
}

.pcg-menu .sub-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  min-width: 220px;
  padding: 10px 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 1200;
}

.pcg-menu li.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pcg-menu .sub-menu li a {
  display: block;
  padding: 6px 18px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s ease, background-color 0.12s ease;
}

.pcg-menu .sub-menu li a:hover {
  color: var(--accent);
  background: rgba(255, 108, 55, 0.08);
}

.pcg-menu-item--mega > .sub-menu {
  width: 900px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border-bottom-width: 1px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 22px;
}

.pcg-menu-item--mega > .sub-menu li a {
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
}

.pcg-menu-item--mega > .sub-menu li a:hover {
  background: rgba(255, 108, 55, 0.10);
}

.pcg-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.pcg-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pcg-icon-btn:hover {
  border-color: rgba(255, 108, 55, 0.55);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.pcg-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text-main);
}

.pcg-icon-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #fff;
}

.pcg-auth {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
}

.pcg-auth a {
  color: var(--text-main);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.pcg-auth a:hover {
  color: var(--accent-dark);
}

.pcg-header-auth .pcg-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(var(--main-text-color));
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.pcg-header-auth .pcg-auth-link:hover {
  color: var(--color-accent);
  background: rgba(var(--main-color), 0.1);
}
.pcg-header-auth .pcg-auth-register {
  background: rgba(var(--main-color), 1);
  color: #fff;
}
.pcg-header-auth .pcg-auth-register:hover {
  background: var(--color-accent-dark);
  color: #fff;
}
.pcg-auth-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}

.pcg-user-menu-wrap {
  position: relative;
  margin-left: 6px;
}
.pcg-user-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.pcg-user-menu-trigger:hover {
  transform: scale(1.04);
}
.pcg-user-avatar-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(var(--main-color), 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: #fff;
}
.pcg-user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
body.theme-dark .pcg-user-avatar-wrap {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  background: #25282d;
}

.pcg-user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  z-index: 1100;
  display: flex;
  flex-direction: column;
}
.pcg-user-menu-dropdown[hidden] {
  display: none !important;
}
.pcg-user-menu-dropdown .pcg-user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: rgb(var(--main-text-color));
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.pcg-user-menu-dropdown .pcg-user-menu-item:hover {
  background: rgba(var(--main-color), 0.08);
  color: var(--color-accent);
}
.pcg-user-menu-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}
.pcg-user-menu-dropdown .pcg-user-menu-item:hover .pcg-user-menu-icon {
  opacity: 1;
}
body.theme-dark .pcg-user-menu-dropdown {
  background: #1a1d21;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}
body.theme-dark .pcg-user-menu-dropdown .pcg-user-menu-item {
  color: #e6edf3;
}
body.theme-dark .pcg-user-menu-dropdown .pcg-user-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-accent);
}

.pcg-theme-toggle {
  width: 58px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(95, 99, 104, 0.12);
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
}

.pcg-theme-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pcg-theme-knob {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #111418;
  box-shadow: 0 .15em .3em rgba(0,0,0,0.15);
  transform: translateX(28px);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.pcg-theme-toggle input:checked + .pcg-theme-knob {
  transform: translateX(0);
  background: #fff;
}

.pcg-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pcg-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #111418;
  position: relative;
}

.pcg-burger span::before,
.pcg-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111418;
}

.pcg-burger span::before { top: -6px; }
.pcg-burger span::after { top: 6px; }

.pcg-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

body.pcg-nav-open .pcg-scrim {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991px) {
  .pcg-top-search {
    width: min(360px, 58vw);
  }

  .pcg-burger { display: inline-flex; }

  .pcg-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(360px, 86vw);
    background: #fff;
    z-index: 1100;
    justify-content: flex-start;
    padding: 18px 14px;
    transform: translateX(-110%);
    transition: transform 0.2s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    overflow: auto;
  }

  body.pcg-nav-open .pcg-nav {
    transform: translateX(0);
  }

  .pcg-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .pcg-menu > li > a {
    width: 100%;
    padding: 12px 12px;
    border-radius: 10px;
    justify-content: space-between;
  }

  .pcg-menu > li > a:hover {
    background: rgba(255, 108, 55, 0.08);
  }

  .pcg-menu-badge {
    position: static;
    margin-left: auto;
  }

  .pcg-menu .sub-menu {
    position: static;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 6px 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    background: rgba(243,245,248,0.8);
    margin: 4px 0 10px;
  }

  .pcg-menu li.is-open > .sub-menu {
    display: block;
  }

  .pcg-menu-item--mega > .sub-menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
    gap: 8px;
  }

  .pcg-topbar-right .pcg-auth:not(.pcg-header-auth) { display: none; }
  .pcg-topbar-right .pcg-header-auth { display: inline-flex; }
}

@media (max-width: 520px) {
  .pcg-brand {
    min-width: auto;
  }

  .pcg-topbar-left {
    display: none;
  }

  .pcg-top-search {
    width: 100%;
  }
}

.pcg-announcements-bar {
  overflow: hidden;
}

.pcg-announcements-bar .container {
  overflow: hidden;
}

.announcements {
  padding-top: 0.32rem;
  padding-bottom: 0.32rem;
  min-height: 3rem;
  position: relative;
  box-shadow: 0 2px 2px -2px rgba(1, 12, 37, 0.2);
  border-top: 1px solid rgba(1, 12, 37, 0.08);
  border-bottom: 1px solid rgba(1, 12, 37, 0.08);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-dark .announcements {
  box-shadow: 0 2px 2px -2px rgba(0, 0, 0, 0.7);
  border-top-color: rgba(255, 255, 255, 0.06);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.announcements-icon {
  width: 1.2rem;
  height: 1.2rem;
  min-width: 1.2rem;
  line-height: 0;
  flex-shrink: 0;
}

.announcements-icon svg {
  width: 100%;
  height: 100%;
  fill: #32AF36;
  animation-name: fa-shake;
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-delay: 0;
  animation-direction: normal;
}

.announcements-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.marquee-content p {
  margin: 0 50px 0 0;
  padding: 0;
  display: inline-block;
}

.marquee-content .js-marquee p {
  opacity: 1;
}

.marquee-content .bg-main-5 {
  padding: 2px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border-radius: 4px;
}

.marquee-content {
  white-space: nowrap;
  padding-left: 50vw;
  width: fit-content;
}

.marquee-content.scroll {
  animation: 40s linear infinite marquee;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

