/*!
 * filbet casino login - design.css
 * Mobile-first HTML5 casino styles, max-width 430px
 * All custom classes use the pgd5- prefix for namespace isolation
 * Palette: #B22222 | #262626 | #7B68EE | #FA8072 | #FF6347
 * Comments in English per project convention
 */

:root {
  --pgd5-primary: #B22222;
  --pgd5-bg: #262626;
  --pgd5-accent: #7B68EE;
  --pgd5-soft: #FA8072;
  --pgd5-warm: #FF6347;
  --pgd5-text: #f5f5f5;
  --pgd5-muted: #c9c9c9;
  --pgd5-card: #303030;
  --pgd5-card2: #3a3a3a;
  --pgd5-border: rgba(255, 255, 255, 0.08);
  --pgd5-gold: #ffd479;
  --pgd5-radius: 14px;
  --pgd5-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  font-size: 62.5%;
}

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

html, body {
  background: var(--pgd5-bg);
  color: var(--pgd5-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body { max-width: 430px; margin: 0 auto; position: relative; overflow-x: hidden; }

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

a { color: var(--pgd5-soft); text-decoration: none; }

.pgd5-wrapper { width: 100%; max-width: 430px; margin: 0 auto; padding: 0; }

.pgd5-container { padding: 0 14px; }

/* ===== Header ===== */
.pgd5-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(135deg, #1f1f1f 0%, #2e2e2e 100%);
  border-bottom: 2px solid var(--pgd5-primary);
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.pgd5-logo { display: flex; align-items: center; gap: 8px; color: var(--pgd5-text); }
.pgd5-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pgd5-logo .pgd5-brand { font-size: 1.5rem; font-weight: 700; color: var(--pgd5-gold); letter-spacing: 0.3px; }

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

.pgd5-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: none; cursor: pointer;
  padding: 8px 14px; border-radius: 20px;
  font-size: 1.3rem; font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  min-height: 36px; line-height: 1;
}
.pgd5-btn:active { transform: scale(0.94); }

.pgd5-btn-register {
  background: linear-gradient(135deg, var(--pgd5-warm), var(--pgd5-primary));
  color: #fff; box-shadow: 0 3px 10px rgba(178, 34, 34, 0.45);
}
.pgd5-btn-login {
  background: linear-gradient(135deg, var(--pgd5-accent), #5b4dc4);
  color: #fff; box-shadow: 0 3px 10px rgba(123, 104, 238, 0.4);
}

.pgd5-menu-btn {
  background: transparent; border: 1px solid var(--pgd5-border);
  color: var(--pgd5-text); width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.8rem;
}

/* ===== Mobile menu (slide-down) ===== */
.pgd5-mobile-menu {
  position: fixed; top: 56px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: #1c1c1c; border-bottom: 1px solid var(--pgd5-border);
  max-height: 0; overflow: hidden; transition: max-height 0.28s ease;
  z-index: 9999;
}
.pgd5-mobile-menu.pgd5-menu-open { max-height: 420px; }
.pgd5-mobile-menu ul { list-style: none; padding: 8px 14px; }
.pgd5-mobile-menu li { border-bottom: 1px solid var(--pgd5-border); }
.pgd5-mobile-menu li:last-child { border-bottom: none; }
.pgd5-mobile-menu a {
  display: block; padding: 12px 6px; color: var(--pgd5-text); font-size: 1.4rem;
}
.pgd5-mobile-menu a:hover { color: var(--pgd5-soft); }

/* ===== Main / hero ===== */
main { padding-top: 64px; padding-bottom: 80px; }

.pgd5-hero { position: relative; margin: 8px 0 14px; }
.pgd5-carousel { position: relative; width: 100%; border-radius: var(--pgd5-radius); overflow: hidden; box-shadow: var(--pgd5-shadow); }
.pgd5-carousel-track { position: relative; width: 100%; height: 200px; }
.pgd5-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.pgd5-carousel-slide.pgd5-active { opacity: 1; }
.pgd5-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pgd5-carousel-caption {
  position: absolute; left: 14px; bottom: 18px; right: 14px;
  color: #fff; font-size: 1.5rem; font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.pgd5-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.pgd5-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); cursor: pointer; border: none;
}
.pgd5-carousel-dot.pgd5-active { background: var(--pgd5-warm); }

/* ===== Section headings ===== */
.pgd5-section { margin: 18px 0; }
.pgd5-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--pgd5-gold);
  margin: 14px 0 10px; padding-left: 10px;
  border-left: 4px solid var(--pgd5-warm);
}
.pgd5-section-sub {
  font-size: 1.4rem; color: var(--pgd5-muted); margin: 6px 0 12px;
}

/* H1 main title */
.pgd5-h1 {
  font-size: 2.1rem; font-weight: 900; line-height: 1.3;
  background: linear-gradient(135deg, var(--pgd5-warm), var(--pgd5-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 14px 0 8px;
}

/* ===== Category filter tabs ===== */
.pgd5-cat-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 10px;
  scrollbar-width: none;
}
.pgd5-cat-tabs::-webkit-scrollbar { display: none; }
.pgd5-cat-tab {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 18px;
  background: var(--pgd5-card); color: var(--pgd5-text);
  font-size: 1.3rem; font-weight: 600; border: 1px solid var(--pgd5-border);
  cursor: pointer; white-space: nowrap;
}
.pgd5-cat-tab-active {
  background: linear-gradient(135deg, var(--pgd5-primary), var(--pgd5-warm));
  border-color: transparent; color: #fff;
}

/* ===== Game grid ===== */
.pgd5-game-section h3 {
  font-size: 1.5rem; color: var(--pgd5-soft); margin: 12px 0 8px;
  display: flex; align-items: center; gap: 6px;
}
.pgd5-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 10px;
}
.pgd5-game-card {
  background: var(--pgd5-card); border: 1px solid var(--pgd5-border);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block; text-align: center;
}
.pgd5-game-card:active { transform: scale(0.95); }
.pgd5-game-card img { width: 100%; height: 86px; object-fit: cover; }
.pgd5-game-card .pgd5-game-name {
  font-size: 1.1rem; color: var(--pgd5-text); padding: 4px 2px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Cards / panels ===== */
.pgd5-card {
  background: var(--pgd5-card); border: 1px solid var(--pgd5-border);
  border-radius: var(--pgd5-radius); padding: 14px; margin: 10px 0;
  box-shadow: var(--pgd5-shadow);
}
.pgd5-card h3 { color: var(--pgd5-gold); font-size: 1.6rem; margin-bottom: 8px; }
.pgd5-card p { color: var(--pgd5-muted); font-size: 1.35rem; margin-bottom: 8px; }
.pgd5-card ul { padding-left: 18px; color: var(--pgd5-muted); }
.pgd5-card li { font-size: 1.3rem; margin-bottom: 4px; }

.pgd5-promo-link {
  color: var(--pgd5-warm); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--pgd5-warm);
}
.pgd5-promo-btn {
  display: inline-block; margin: 10px 0; padding: 10px 18px;
  background: linear-gradient(135deg, var(--pgd5-primary), var(--pgd5-warm));
  color: #fff; border-radius: 24px; font-weight: 700; font-size: 1.35rem;
  cursor: pointer; border: none; box-shadow: 0 4px 12px rgba(178, 34, 34, 0.4);
}

/* ===== Features list ===== */
.pgd5-feature-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pgd5-feature-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--pgd5-card2); border-radius: 10px; padding: 10px;
}
.pgd5-feature-item .pgd5-icon { font-size: 2.2rem; color: var(--pgd5-accent); }
.pgd5-feature-item h4 { font-size: 1.4rem; color: var(--pgd5-text); margin-bottom: 4px; }
.pgd5-feature-item p { font-size: 1.25rem; color: var(--pgd5-muted); margin: 0; }

/* ===== RTP compact table ===== */
.pgd5-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.pgd5-rtp-table th, .pgd5-rtp-table td {
  padding: 6px 8px; border-bottom: 1px solid var(--pgd5-border); text-align: left;
}
.pgd5-rtp-table th { color: var(--pgd5-gold); }
.pgd5-rtp-table td.pgd5-rtp-val { color: var(--pgd5-soft); font-weight: 700; }

/* ===== Testimonials ===== */
.pgd5-testimonials { display: grid; gap: 10px; }
.pgd5-testimonial {
  background: var(--pgd5-card2); border-left: 3px solid var(--pgd5-accent);
  border-radius: 10px; padding: 10px 12px;
}
.pgd5-testimonial .pgd5-t-name { color: var(--pgd5-gold); font-size: 1.35rem; font-weight: 700; }
.pgd5-testimonial .pgd5-t-text { color: var(--pgd5-muted); font-size: 1.3rem; margin-top: 4px; }
.pgd5-testimonial .pgd5-t-stars { color: var(--pgd5-warm); font-size: 1.3rem; margin-top: 4px; }

/* ===== Payment / winners ===== */
.pgd5-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pgd5-chip {
  background: var(--pgd5-card2); border: 1px solid var(--pgd5-border);
  border-radius: 20px; padding: 6px 12px; font-size: 1.2rem; color: var(--pgd5-text);
  display: inline-flex; align-items: center; gap: 6px;
}

.pgd5-winners { display: grid; gap: 8px; }
.pgd5-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--pgd5-card2); border-radius: 10px; padding: 8px 12px; font-size: 1.3rem;
}
.pgd5-winner .pgd5-w-game { color: var(--pgd5-text); }
.pgd5-winner .pgd5-w-amount { color: var(--pgd5-gold); font-weight: 700; }

/* ===== FAQ ===== */
.pgd5-faq-item {
  background: var(--pgd5-card); border-radius: 10px; margin-bottom: 8px;
  border: 1px solid var(--pgd5-border); overflow: hidden;
}
.pgd5-faq-item summary {
  padding: 10px 12px; font-size: 1.35rem; color: var(--pgd5-gold); cursor: pointer; font-weight: 700;
}
.pgd5-faq-item p { padding: 0 12px 12px; color: var(--pgd5-muted); font-size: 1.3rem; }

/* ===== Footer ===== */
.pgd5-footer {
  background: #1c1c1c; border-top: 2px solid var(--pgd5-primary);
  padding: 18px 14px 24px; margin-top: 20px;
}
.pgd5-footer-brand { color: var(--pgd5-muted); font-size: 1.3rem; margin-bottom: 12px; }
.pgd5-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pgd5-footer-links a {
  background: var(--pgd5-card); border: 1px solid var(--pgd5-border);
  border-radius: 16px; padding: 5px 10px; font-size: 1.15rem; color: var(--pgd5-text);
}
.pgd5-footer-links a:hover { color: var(--pgd5-warm); }
.pgd5-footer-copy { color: #888; font-size: 1.1rem; border-top: 1px solid var(--pgd5-border); padding-top: 10px; }

/* ===== Mobile bottom navigation ===== */
.pgd5-bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-top: 2px solid var(--pgd5-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.5);
}
.pgd5-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--pgd5-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; transition: color 0.18s ease, transform 0.18s ease;
  font-size: 1.1rem;
}
.pgd5-bottomnav-btn .pgd5-bn-icon { font-size: 2.2rem; line-height: 1; }
.pgd5-bottomnav-btn .pgd5-bn-label { font-size: 1.05rem; }
.pgd5-bottomnav-btn:active { transform: scale(0.9); color: var(--pgd5-warm); }
.pgd5-bottomnav-btn.pgd5-bottomnav-active { color: var(--pgd5-warm); }
.pgd5-bottomnav-active .pgd5-bn-icon { color: var(--pgd5-gold); }

/* ===== Back to top ===== */
.pgd5-totop {
  position: fixed; right: 16px; bottom: 76px; width: 42px; height: 42px;
  border-radius: 50%; background: var(--pgd5-primary); color: #fff;
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease; z-index: 999;
}
.pgd5-totop.pgd5-totop-show { opacity: 1; pointer-events: auto; }

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  .pgd5-bottomnav { display: none; }
  body { max-width: 960px; }
  .pgd5-header, .pgd5-mobile-menu, .pgd5-footer { max-width: 960px; }
  .pgd5-game-grid { grid-template-columns: repeat(6, 1fr); }
  .pgd5-feature-list { grid-template-columns: repeat(2, 1fr); }
  main { padding-bottom: 30px; }
}

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* ===== Utility ===== */
.pgd5-text-center { text-align: center; }
.pgd5-mt-12 { margin-top: 12px; }
.pgd5-mb-12 { margin-bottom: 12px; }
.pgd5-hidden { display: none; }
