/* ===========================================================
   1xbet Affiliate Login - theme.css
   Mobile-first HTML5 gaming portal stylesheet.
   All custom classes use the "pgcb-" prefix.
   Color palette: #141414 | #87CEFA | #FF8C00 | #FFEB3B | #00BFFF
   =========================================================== */

:root {
  --pgcb-bg: #141414;
  --pgcb-bg-soft: #1d1d1f;
  --pgcb-bg-card: #202124;
  --pgcb-bg-deep: #0d0d0f;
  --pgcb-sky: #87CEFA;
  --pgcb-orange: #FF8C00;
  --pgcb-yellow: #FFEB3B;
  --pgcb-blue: #00BFFF;
  --pgcb-text: #f3f6fb;
  --pgcb-text-mute: #a7b0bd;
  --pgcb-border: rgba(135, 206, 250, 0.18);
  --pgcb-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  --pgcb-radius: 14px;
  --pgcb-header-h: 60px;
  --pgcb-nav-h: 62px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
  background:
    radial-gradient(1100px 540px at 80% -10%, rgba(255, 140, 0, 0.12), transparent 60%),
    radial-gradient(900px 480px at 0% 8%, rgba(0, 191, 255, 0.10), transparent 60%),
    var(--pgcb-bg);
  color: var(--pgcb-text);
  line-height: 1.5;
  font-size: 1.6rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--pgcb-sky);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
}

p {
  line-height: 1.5;
}

/* ===================== Header ===================== */
.pgcb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(13, 13, 15, 0.96), rgba(20, 20, 20, 0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pgcb-border);
}

.pgcb-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pgcb-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pgcb-orange), var(--pgcb-yellow));
  color: #1a1206;
  font-weight: 900;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.pgcb-logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pgcb-logo-text span {
  color: var(--pgcb-orange);
}

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

.pgcb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 9px 14px;
  border-radius: 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 38px;
}

.pgcb-btn-login {
  background: transparent;
  color: var(--pgcb-sky);
  border: 1px solid var(--pgcb-sky);
}

.pgcb-btn-login:hover {
  background: rgba(135, 206, 250, 0.12);
}

.pgcb-btn-register {
  background: linear-gradient(135deg, var(--pgcb-orange), #ff6a00);
  color: #1a1206;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.35);
}

.pgcb-btn-register:hover {
  transform: translateY(-1px);
}

.pgcb-menu-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--pgcb-border);
  background: var(--pgcb-bg-card);
  color: var(--pgcb-text);
  cursor: pointer;
}

/* ===================== Hero / Carousel ===================== */
.pgcb-hero {
  position: relative;
  padding: 18px 14px 6px;
}

.pgcb-carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--pgcb-shadow);
}

.pgcb-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.pgcb-slides::-webkit-scrollbar {
  display: none;
}

.pgcb-slide {
  min-width: 100%;
  scroll-snap-align: center;
  position: relative;
  padding: 22px 18px 26px;
  min-height: 188px;
  background: linear-gradient(135deg, #1a2a40 0%, #1c1c22 60%, #2a1d0a 100%);
  border: 1px solid var(--pgcb-border);
}

.pgcb-slide::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.35), transparent 70%);
  filter: blur(8px);
}

.pgcb-slide-tag {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pgcb-yellow);
  background: rgba(255, 235, 59, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  position: relative;
}

.pgcb-slide-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 6px;
  position: relative;
}

.pgcb-slide-text {
  color: var(--pgcb-text-mute);
  font-size: 1.32rem;
  margin-bottom: 12px;
  position: relative;
  max-width: 86%;
}

.pgcb-slide-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--pgcb-orange), var(--pgcb-yellow));
  color: #1a1206;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 1.32rem;
  cursor: pointer;
  border: none;
}

.pgcb-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.pgcb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.pgcb-dot.is-active {
  background: var(--pgcb-yellow);
  width: 16px;
  border-radius: 4px;
}

/* ===================== Stats ===================== */
.pgcb-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}

.pgcb-stat {
  background: var(--pgcb-bg-card);
  border: 1px solid var(--pgcb-border);
  border-radius: var(--pgcb-radius);
  padding: 14px 8px;
  text-align: center;
}

.pgcb-stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--pgcb-blue);
}

.pgcb-stat-label {
  font-size: 1.15rem;
  color: var(--pgcb-text-mute);
  margin-top: 4px;
}

/* ===================== Section ===================== */
.pgcb-section {
  padding: 18px 14px 6px;
}

.pgcb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pgcb-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgcb-section-title i {
  color: var(--pgcb-orange);
}

.pgcb-section-link {
  font-size: 1.22rem;
  color: var(--pgcb-sky);
  font-weight: 600;
}

/* ===================== Category filter ===================== */
.pgcb-cat-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}

.pgcb-cat-filter::-webkit-scrollbar {
  display: none;
}

.pgcb-cat-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 22px;
  background: var(--pgcb-bg-card);
  border: 1px solid var(--pgcb-border);
  color: var(--pgcb-text-mute);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pgcb-cat-chip.is-active,
.pgcb-cat-chip:hover {
  background: linear-gradient(135deg, var(--pgcb-orange), var(--pgcb-yellow));
  color: #1a1206;
  border-color: transparent;
}

/* ===================== Game Grid ===================== */
.pgcb-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pgcb-game-card {
  position: relative;
  border-radius: var(--pgcb-radius);
  overflow: hidden;
  background: var(--pgcb-bg-card);
  border: 1px solid var(--pgcb-border);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pgcb-game-card:hover,
.pgcb-game-card:active {
  transform: translateY(-2px);
  box-shadow: var(--pgcb-shadow);
}

.pgcb-game-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #2a2a30, #141414);
}

.pgcb-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgcb-game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 13, 15, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pgcb-game-card:hover .pgcb-game-overlay,
.pgcb-game-card:active .pgcb-game-overlay {
  opacity: 1;
}

.pgcb-game-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pgcb-orange), var(--pgcb-yellow));
  color: #1a1206;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.pgcb-game-name {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--pgcb-text);
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pgcb-game-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 140, 0, 0.92);
  color: #1a1206;
}

/* ===================== Featured ===================== */
.pgcb-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pgcb-featured-card {
  display: flex;
  gap: 12px;
  background: linear-gradient(135deg, #1c2230, #1a1a1f);
  border: 1px solid var(--pgcb-border);
  border-radius: var(--pgcb-radius);
  padding: 12px;
  align-items: center;
}

.pgcb-featured-thumb {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.pgcb-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgcb-featured-info h3 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.pgcb-featured-info p {
  font-size: 1.2rem;
  color: var(--pgcb-text-mute);
  margin-bottom: 8px;
}

.pgcb-featured-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pgcb-blue);
  color: #06121b;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.18rem;
  cursor: pointer;
  border: none;
}

/* ===================== SEO Content ===================== */
.pgcb-seo {
  padding: 16px 14px;
  background: var(--pgcb-bg-soft);
  border-top: 1px solid var(--pgcb-border);
  border-bottom: 1px solid var(--pgcb-border);
  margin-top: 10px;
}

.pgcb-seo h2 {
  font-size: 1.7rem;
  margin: 16px 0 8px;
  color: var(--pgcb-yellow);
}

.pgcb-seo h2:first-child {
  margin-top: 0;
}

.pgcb-seo h3 {
  font-size: 1.4rem;
  margin: 12px 0 6px;
  color: var(--pgcb-blue);
}

.pgcb-seo p {
  font-size: 1.32rem;
  color: var(--pgcb-text-mute);
  margin-bottom: 10px;
}

.pgcb-seo ul,
.pgcb-seo ol {
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--pgcb-text-mute);
  font-size: 1.32rem;
}

.pgcb-seo li {
  margin-bottom: 6px;
}

.pgcb-seo strong {
  color: var(--pgcb-text);
}

/* ===================== FAQ ===================== */
.pgcb-faq-item {
  background: var(--pgcb-bg-card);
  border: 1px solid var(--pgcb-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.pgcb-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.35rem;
}

.pgcb-faq-q i {
  color: var(--pgcb-orange);
  transition: transform 0.2s ease;
}

.pgcb-faq-item.is-open .pgcb-faq-q i {
  transform: rotate(180deg);
}

.pgcb-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 14px;
  color: var(--pgcb-text-mute);
  font-size: 1.28rem;
}

.pgcb-faq-item.is-open .pgcb-faq-a {
  max-height: 320px;
  padding: 0 14px 14px;
}

/* ===================== Promo Banner ===================== */
.pgcb-promo-banner {
  margin: 14px;
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2a1a05 0%, #3a2300 50%, #14304a 100%);
  border: 1px solid var(--pgcb-border);
  position: relative;
  overflow: hidden;
}

.pgcb-promo-banner h3 {
  font-size: 1.7rem;
  color: var(--pgcb-yellow);
  margin-bottom: 6px;
}

.pgcb-promo-banner p {
  font-size: 1.28rem;
  color: var(--pgcb-text-mute);
  margin-bottom: 12px;
}

/* ===================== Footer ===================== */
.pgcb-footer {
  background: var(--pgcb-bg-deep);
  border-top: 1px solid var(--pgcb-border);
  padding: 22px 14px 90px;
}

.pgcb-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.pgcb-footer-col h4 {
  font-size: 1.35rem;
  color: var(--pgcb-yellow);
  margin-bottom: 10px;
}

.pgcb-footer-col a {
  display: block;
  font-size: 1.2rem;
  color: var(--pgcb-text-mute);
  margin-bottom: 7px;
}

.pgcb-footer-col a:hover {
  color: var(--pgcb-sky);
}

.pgcb-footer-desc {
  font-size: 1.22rem;
  color: var(--pgcb-text-mute);
  margin-bottom: 12px;
}

.pgcb-footer-bottom {
  border-top: 1px solid var(--pgcb-border);
  padding-top: 14px;
  font-size: 1.15rem;
  color: var(--pgcb-text-mute);
  text-align: center;
}

.pgcb-disclaimer {
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid rgba(255, 140, 0, 0.25);
  border-radius: 10px;
  padding: 12px;
  font-size: 1.15rem;
  color: var(--pgcb-text-mute);
  margin-top: 12px;
}

/* ===================== Mobile menu ===================== */
.pgcb-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pgcb-mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pgcb-mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 84%;
  max-width: 340px;
  height: 100%;
  background: var(--pgcb-bg-soft);
  border-left: 1px solid var(--pgcb-border);
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}

.pgcb-mobile-menu.is-open .pgcb-mobile-menu-panel {
  transform: translateX(0);
}

.pgcb-mobile-menu-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.pgcb-mobile-menu-close button {
  background: var(--pgcb-bg-card);
  border: 1px solid var(--pgcb-border);
  color: var(--pgcb-text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
}

.pgcb-mobile-menu h4 {
  color: var(--pgcb-yellow);
  font-size: 1.3rem;
  margin: 14px 0 8px;
}

.pgcb-mobile-menu a,
.pgcb-mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--pgcb-text);
  font-size: 1.32rem;
  padding: 10px 6px;
  border-bottom: 1px solid var(--pgcb-border);
  cursor: pointer;
}

.pgcb-mobile-menu a:hover {
  color: var(--pgcb-orange);
}

/* ===================== Mobile bottom nav ===================== */
.pgcb-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pgcb-nav-h);
  background: linear-gradient(180deg, rgba(20, 20, 22, 0.98), rgba(13, 13, 15, 1));
  border-top: 1px solid var(--pgcb-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 4px 0 calc(env(safe-area-inset-bottom, 0px) + 4px);
}

.pgcb-bottom-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 56px;
  background: transparent;
  border: none;
  color: var(--pgcb-text-mute);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pgcb-bottom-btn i,
.pgcb-bottom-btn span.material-icons-outlined,
.pgcb-bottom-btn ion-icon {
  font-size: 22px;
}

.pgcb-bottom-btn ion-icon {
  font-size: 24px;
}

.pgcb-bottom-btn span:not(.pgcb-bottom-label) {
  display: contents;
}

.pgcb-bottom-label {
  font-size: 1rem;
  font-weight: 600;
}

.pgcb-bottom-btn.is-active {
  color: var(--pgcb-yellow);
}

.pgcb-bottom-btn:hover {
  color: var(--pgcb-orange);
  transform: translateY(-1px);
}

.pgcb-bottom-btn-promo {
  position: relative;
}

.pgcb-bottom-btn-promo::before {
  content: "";
  position: absolute;
  top: -8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pgcb-orange), var(--pgcb-yellow));
  z-index: -1;
}

.pgcb-bottom-btn-promo i {
  color: #1a1206;
}

/* ===================== Utilities ===================== */
.pgcb-container {
  padding: 0 14px;
}

.pgcb-hide-mobile {
  display: none;
}

/* ===================== Responsive / Desktop ===================== */
@media (min-width: 768px) {
  body {
    max-width: 960px;
  }

  .pgcb-bottom-nav {
    display: none;
  }

  .pgcb-hide-mobile {
    display: inline-flex;
  }

  .pgcb-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .pgcb-featured {
    grid-template-columns: repeat(2, 1fr);
  }

  .pgcb-footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }

  main {
    padding-bottom: 30px !important;
  }
}

@media (max-width: 768px) {
  main {
    padding-bottom: calc(var(--pgcb-nav-h) + 20px);
  }
}

/* ===================== Inline text promo link ===================== */
.pgcb-text-link {
  color: var(--pgcb-yellow);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pgcb-text-link:hover {
  color: var(--pgcb-orange);
}
