/* ============================================================
   kuya-king.css - Core styles for kuyaking.cfd
   All custom classes use the pg2d- dynamic prefix.
   Mobile-first responsive design (max 430px base, scales up).
   Palette: #1A1A1A bg / #00B8D4 cyan / #006400 deep green /
           #00FFFF bright cyan / #40E0D0 turquoise
   ============================================================ */

:root {
  --pg2d-bg: #1A1A1A;
  --pg2d-bg-2: #0e0e0e;
  --pg2d-surface: #232323;
  --pg2d-surface-2: #2c2c2c;
  --pg2d-primary: #00B8D4;
  --pg2d-primary-2: #006400;
  --pg2d-accent: #00FFFF;
  --pg2d-turquoise: #40E0D0;
  --pg2d-gold: #FFD24A;
  --pg2d-text: #f4f7f9;
  --pg2d-text-dim: #a8b0b5;
  --pg2d-border: rgba(0, 184, 212, 0.25);
  --pg2d-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  --pg2d-radius: 14px;
  --pg2d-header-h: 60px;
  --pg2d-bottom-h: 62px;
  font-size: 62.5%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 700px at 50% -10%, rgba(0, 184, 212, 0.10), transparent 60%),
              linear-gradient(180deg, #111 0%, #1A1A1A 40%, #101010 100%);
  color: var(--pg2d-text);
  line-height: 1.5;
  font-size: 1.6rem;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
a { color: var(--pg2d-turquoise); text-decoration: none; }
a:hover { color: var(--pg2d-accent); }

.pg2d-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 14px;
}

.pg2d-wrapper { width: 100%; }

/* ============ HEADER ============ */
.pg2d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pg2d-header-h);
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pg2d-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.pg2d-header-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pg2d-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.pg2d-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pg2d-primary), var(--pg2d-turquoise));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06222a;
  font-weight: 800;
  font-size: 1.6rem;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.35);
}

.pg2d-brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--pg2d-text);
  white-space: nowrap;
}
.pg2d-brand-name span { color: var(--pg2d-accent); }

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

.pg2d-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 1.35rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.pg2d-btn:active { transform: scale(0.95); }

.pg2d-btn-register {
  background: linear-gradient(135deg, var(--pg2d-accent), var(--pg2d-primary));
  color: #04181c;
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.30);
}
.pg2d-btn-register:hover { box-shadow: 0 0 22px rgba(0, 255, 255, 0.55); }

.pg2d-btn-login {
  background: transparent;
  color: var(--pg2d-turquoise);
  border: 1.5px solid var(--pg2d-primary);
}

.pg2d-btn-ghost {
  background: var(--pg2d-surface);
  color: var(--pg2d-text);
  border: 1px solid var(--pg2d-border);
}

.pg2d-menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--pg2d-surface);
  border: 1px solid var(--pg2d-border);
  color: var(--pg2d-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 2rem;
}

/* ============ MOBILE MENU ============ */
.pg2d-mobile-menu {
  position: fixed;
  top: var(--pg2d-header-h);
  right: 0;
  width: 78%;
  max-width: 300px;
  background: #161616;
  border-left: 1px solid var(--pg2d-border);
  border-bottom: 1px solid var(--pg2d-border);
  transform: translateX(110%);
  transition: transform 0.28s ease;
  z-index: 9999;
  padding: 14px 14px 24px;
  border-radius: 0 0 0 16px;
}
.pg2d-menu-open { transform: translateX(0); }

.pg2d-mobile-menu a, .pg2d-mobile-menu button.pg2d-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 12px;
  color: var(--pg2d-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  border-left: 3px solid transparent;
  font-size: 1.5rem;
  cursor: pointer;
  text-align: left;
}
.pg2d-mobile-menu a:hover, .pg2d-mobile-menu button.pg2d-menu-link:hover {
  border-left-color: var(--pg2d-accent);
  color: var(--pg2d-accent);
  background: rgba(0, 255, 255, 0.05);
}
.pg2d-mobile-menu .pg2d-menu-icon { color: var(--pg2d-primary); }

.pg2d-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.pg2d-menu-open + .pg2d-overlay,
.pg2d-overlay.pg2d-show {
  opacity: 1;
  visibility: visible;
}

/* ============ HERO CAROUSEL ============ */
.pg2d-hero {
  margin-top: var(--pg2d-header-h);
  position: relative;
  overflow: hidden;
}

.pg2d-slider {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}
@media (min-width: 600px) { .pg2d-slider { height: 300px; } }
@media (min-width: 900px) { .pg2d-slider { height: 380px; } }

.pg2d-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  cursor: pointer;
}
.pg2d-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pg2d-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(10,10,10,0.85));
}
.pg2d-slide-active { opacity: 1; z-index: 2; }

.pg2d-slide-caption {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 3;
  color: #fff;
}
.pg2d-slide-caption h2 {
  font-size: 2.2rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  line-height: 1.2;
}
.pg2d-slide-caption p {
  font-size: 1.3rem;
  color: var(--pg2d-turquoise);
  margin-top: 4px;
}
@media (min-width: 700px) {
  .pg2d-slide-caption h2 { font-size: 3rem; }
  .pg2d-slide-caption p { font-size: 1.6rem; }
}

.pg2d-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.pg2d-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pg2d-dot-active {
  background: var(--pg2d-accent);
  transform: scale(1.3);
}

/* ============ SECTION TITLES ============ */
.pg2d-section {
  padding: 24px 0;
}
.pg2d-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg2d-text);
  position: relative;
  padding-left: 14px;
  margin-bottom: 14px;
}
@media (min-width: 700px) { .pg2d-section-title { font-size: 2.4rem; } }

.pg2d-section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 0.75em;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--pg2d-accent), var(--pg2d-primary));
  border-radius: 3px;
}
.pg2d-section-title .pg2d-hl { color: var(--pg2d-accent); }

.pg2d-subtitle {
  color: var(--pg2d-text-dim);
  font-size: 1.45rem;
  margin-bottom: 16px;
}

/* ============ CATEGORY CHIPS ============ */
.pg2d-cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.pg2d-cat-chips::-webkit-scrollbar { display: none; }
.pg2d-cat-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--pg2d-surface);
  border: 1px solid var(--pg2d-border);
  color: var(--pg2d-text-dim);
  font-size: 1.3rem;
  cursor: pointer;
  white-space: nowrap;
}
.pg2d-cat-chip-active {
  background: linear-gradient(135deg, var(--pg2d-primary), var(--pg2d-accent));
  color: #04181c;
  border-color: transparent;
  font-weight: 700;
}

/* ============ GAME GRID (compact) ============ */
.pg2d-cat-block { margin-bottom: 22px; }

.pg2d-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.pg2d-cat-head h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pg2d-turquoise);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pg2d-cat-head .pg2d-cat-icon {
  color: var(--pg2d-accent);
  font-size: 2rem;
}
.pg2d-cat-link {
  font-size: 1.3rem;
  color: var(--pg2d-primary);
  font-weight: 600;
}

.pg2d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 520px) { .pg2d-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) { .pg2d-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .pg2d-grid { grid-template-columns: repeat(6, 1fr); } }

.pg2d-game-card {
  background: var(--pg2d-surface);
  border: 1px solid var(--pg2d-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.pg2d-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--pg2d-accent);
  box-shadow: 0 8px 22px rgba(0, 255, 255, 0.15);
}
.pg2d-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.pg2d-game-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pg2d-text);
  padding: 6px 7px 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ INFO / FEATURE CARDS ============ */
.pg2d-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 620px) { .pg2d-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .pg2d-cards { grid-template-columns: repeat(3, 1fr); } }

.pg2d-card {
  background: linear-gradient(180deg, var(--pg2d-surface), #181818);
  border: 1px solid var(--pg2d-border);
  border-radius: var(--pg2d-radius);
  padding: 16px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pg2d-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pg2d-shadow);
}
.pg2d-card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 184, 212, 0.12);
  color: var(--pg2d-accent);
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.pg2d-card h4 {
  font-size: 1.55rem;
  color: var(--pg2d-text);
  margin-bottom: 6px;
}
.pg2d-card p {
  font-size: 1.35rem;
  color: var(--pg2d-text-dim);
  line-height: 1.55;
}

/* ============ RTP TABLE ============ */
.pg2d-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pg2d-surface);
  border-radius: var(--pg2d-radius);
  overflow: hidden;
  border: 1px solid var(--pg2d-border);
}
.pg2d-rtp-table th, .pg2d-rtp-table td {
  padding: 9px 12px;
  font-size: 1.35rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pg2d-rtp-table th {
  background: rgba(0, 184, 212, 0.15);
  color: var(--pg2d-accent);
  font-weight: 700;
}
.pg2d-rtp-table tr:last-child td { border-bottom: none; }
.pg2d-rtp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
}
.pg2d-rtp-h { background: rgba(0, 100, 0, 0.35); color: #7CFC8A; }
.pg2d-rtp-m { background: rgba(0, 184, 212, 0.2); color: var(--pg2d-turquoise); }
.pg2d-rtp-l { background: rgba(180, 120, 0, 0.2); color: #FFC97A; }

/* ============ VIP / TIER ============ */
.pg2d-tier {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.pg2d-tier::-webkit-scrollbar { display: none; }
.pg2d-tier-card {
  flex: 0 0 140px;
  background: linear-gradient(160deg, #2a2118, #1a1a1a);
  border: 1px solid rgba(255, 210, 74, 0.35);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.pg2d-tier-card h5 {
  color: var(--pg2d-gold);
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.pg2d-tier-card p {
  font-size: 1.25rem;
  color: var(--pg2d-text-dim);
}

/* ============ TESTIMONIALS ============ */
.pg2d-testi {
  background: var(--pg2d-surface);
  border: 1px solid var(--pg2d-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.pg2d-testi-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.pg2d-testi-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg2d-primary), var(--pg2d-turquoise));
  display: flex; align-items: center; justify-content: center;
  color: #04181c; font-weight: 800;
}
.pg2d-testi-name { font-weight: 700; color: var(--pg2d-text); font-size: 1.4rem; }
.pg2d-testi-stars { color: var(--pg2d-gold); font-size: 1.3rem; }
.pg2d-testi p { color: var(--pg2d-text-dim); font-size: 1.35rem; }

/* ============ PAYMENT METHODS ============ */
.pg2d-pay {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 600px) { .pg2d-pay { grid-template-columns: repeat(6, 1fr); } }
.pg2d-pay-item {
  background: var(--pg2d-surface);
  border: 1px solid var(--pg2d-border);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  color: var(--pg2d-text-dim);
  font-size: 1.2rem;
  font-weight: 600;
}
.pg2d-pay-item .pg2d-pay-ico {
  font-size: 2.4rem; color: var(--pg2d-accent); margin-bottom: 6px; display: block;
}

/* ============ WINNERS ============ */
.pg2d-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 600px) { .pg2d-winners { grid-template-columns: repeat(4, 1fr); } }
.pg2d-winner {
  background: var(--pg2d-surface);
  border: 1px solid var(--pg2d-border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.pg2d-winner .pg2d-w-name { color: var(--pg2d-turquoise); font-weight: 700; font-size: 1.3rem; }
.pg2d-winner .pg2d-w-amount { color: var(--pg2d-gold); font-size: 1.6rem; font-weight: 800; margin: 2px 0; }
.pg2d-winner .pg2d-w-game { color: var(--pg2d-text-dim); font-size: 1.2rem; }

/* ============ FAQ ============ */
.pg2d-faq-item {
  background: var(--pg2d-surface);
  border: 1px solid var(--pg2d-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.pg2d-faq-q {
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  background: transparent;
  color: var(--pg2d-text);
  font-size: 1.45rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
}
.pg2d-faq-icon {
  color: var(--pg2d-accent);
  transition: transform 0.25s ease;
}
.pg2d-faq-icon-open { transform: rotate(180deg); }
.pg2d-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
  color: var(--pg2d-text-dim);
  font-size: 1.35rem;
  line-height: 1.55;
}
.pg2d-faq-open .pg2d-faq-a {
  max-height: 320px;
  padding: 0 14px 13px;
}

/* ============ CTA / APP ============ */
.pg2d-cta {
  background: linear-gradient(135deg, rgba(0, 184, 212, 0.18), rgba(0, 100, 0, 0.18));
  border: 1px solid var(--pg2d-border);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
}
.pg2d-cta h3 {
  font-size: 2rem; color: var(--pg2d-accent); margin-bottom: 8px;
}
.pg2d-cta p { color: var(--pg2d-text-dim); font-size: 1.4rem; margin-bottom: 14px; }
.pg2d-cta .pg2d-btn-row {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.pg2d-btn-big {
  padding: 12px 22px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--pg2d-accent), var(--pg2d-primary));
  color: #04181c;
  border: none; border-radius: 999px; font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.35);
}
.pg2d-btn-big:active { transform: scale(0.96); }

/* Inline promotional text link */
.pg2d-promo-link {
  color: var(--pg2d-accent);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed rgba(0, 255, 255, 0.45);
}
.pg2d-promo-link:hover { color: var(--pg2d-turquoise); }

/* ============ SECURITY / FEATURES list ============ */
.pg2d-bullets {
  list-style: none;
  margin-top: 6px;
}
.pg2d-bullets li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--pg2d-text-dim);
  font-size: 1.4rem;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.pg2d-bullets li::before {
  content: "\2714";
  position: absolute;
  left: 0; top: 6px;
  color: var(--pg2d-turquoise);
  font-weight: 800;
}

/* ============ FOOTER ============ */
.pg2d-footer {
  background: #0c0c0c;
  border-top: 1px solid var(--pg2d-border);
  padding: 24px 0 90px;
  margin-top: 24px;
}
.pg2d-footer .pg2d-container { padding: 0 14px; }
.pg2d-footer-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.pg2d-footer-brand .pg2d-brand-logo { width: 34px; height: 34px; }
.pg2d-footer-desc {
  color: var(--pg2d-text-dim);
  font-size: 1.35rem;
  max-width: 620px;
  margin-bottom: 16px;
  line-height: 1.55;
}
.pg2d-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (min-width: 620px) { .pg2d-footer-links { grid-template-columns: repeat(4, 1fr); } }

.pg2d-footer-link {
  display: inline-block;
  color: var(--pg2d-text-dim);
  font-size: 1.3rem;
  padding: 6px 4px;
}
.pg2d-footer-link:hover { color: var(--pg2d-accent); }

.pg2d-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px;
}
.pg2d-footer-promo-btn {
  background: linear-gradient(135deg, rgba(0, 184, 212, 0.18), rgba(0, 100, 0, 0.18));
  color: var(--pg2d-accent);
  border: 1px solid var(--pg2d-border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 1.25rem;
  cursor: pointer;
  font-weight: 600;
}
.pg2d-footer-promo-btn:hover { background: linear-gradient(135deg, var(--pg2d-primary), var(--pg2d-accent)); color: #04181c; }

.pg2d-copyright {
  color: var(--pg2d-text-dim);
  font-size: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
  text-align: center;
}

/* ============ MOBILE BOTTOM NAV ============ */
.pg2d-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pg2d-bottom-h);
  background: rgba(15, 15, 15, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--pg2d-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.pg2d-bottom-nav-item {
  flex: 1;
  min-width: 60px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--pg2d-text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  font-size: 1.1rem;
  position: relative;
}
.pg2d-bottom-nav-item .pg2d-bn-icon { font-size: 22px; }
.pg2d-bottom-nav-item span { font-size: 1.05rem; font-weight: 600; }
.pg2d-bottom-nav-item:hover, .pg2d-bottom-nav-item.pg2d-bn-active {
  color: var(--pg2d-accent);
}
.pg2d-bottom-nav-item:active { transform: scale(0.92); }
.pg2d-bottom-nav a.pg2d-bottom-nav-item { text-decoration: none; }
.pg2d-bottom-nav-item:focus-visible {
  outline: 2px solid var(--pg2d-accent);
  outline-offset: -3px;
}
.pg2d-bottom-nav-item.pg2d-bn-active::before {
  content: "";
  position: absolute;
  top: 0; left: 30%; right: 30%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--pg2d-accent);
}
.pg2d-bn-badge {
  position: absolute;
  top: 6px; right: 22%;
  background: #ff4d4d;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 5px;
  min-width: 14px;
  text-align: center;
}

/* ============ BACK TO TOP ============ */
.pg2d-top-btn {
  position: fixed;
  right: 14px; bottom: calc(var(--pg2d-bottom-h) + 14px);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--pg2d-primary);
  color: #04181c;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.pg2d-top-btn-show { opacity: 1; visibility: visible; }

/* ============ DESKTOP NAV (hidden on mobile) ============ */
.pg2d-desktop-nav { display: none; }

/* ============ Desktop / tablet tuning ============ */
@media (min-width: 769px) {
  .pg2d-bottom-nav { display: none; }
  .pg2d-footer { padding-bottom: 24px; }
  .pg2d-menu-btn { display: none; }
  .pg2d-mobile-menu { display: none; }
  .pg2d-desktop-nav {
    display: flex;
    gap: 18px;
    align-items: center;
  }
  .pg2d-desktop-nav a {
    color: var(--pg2d-text-dim);
    font-size: 1.4rem;
    font-weight: 600;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
  }
  .pg2d-desktop-nav a:hover {
    color: var(--pg2d-accent);
    border-bottom-color: var(--pg2d-accent);
  }
  main { padding-bottom: 24px; }
}

/* Mobile main content padding to avoid bottom nav overlap */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}