/* ==========================================================================
   pk7 login - design-56ee.css
   All custom classes use the pg56- prefix to avoid collisions.
   Mobile-first layout, max content width 430px.
   Palette: #9370DB (primary) / #0A0A0A (bg) / #9932CC (accent)
   ========================================================================== */

:root {
  --pg56-primary: #9370DB;
  --pg56-accent: #9932CC;
  --pg56-bg: #0A0A0A;
  --pg56-bg-soft: #141019;
  --pg56-bg-card: #1b1426;
  --pg56-text: #f3eefa;
  --pg56-text-soft: #c3b6d8;
  --pg56-text-muted: #8b7da3;
  --pg56-border: rgba(147, 112, 219, 0.25);
  --pg56-gold: #ffcf5c;
  --pg56-radius: 14px;
  --pg56-radius-lg: 22px;
  --pg56-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --pg56-shadow-glow: 0 0 24px rgba(153, 50, 204, 0.45);
  --pg56-header-h: 60px;
  --pg56-bottomnav-h: 62px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% -10%, rgba(153, 50, 204, 0.18), transparent 55%),
              radial-gradient(circle at 100% 0%, rgba(147, 112, 219, 0.16), transparent 45%),
              var(--pg56-bg);
  color: var(--pg56-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--pg56-primary);
  text-decoration: none;
}

a:hover {
  color: var(--pg56-accent);
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.65rem; }

p { margin: 0 0 1em; }

/* Layout helpers */
.pg56-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.pg56-wrapper {
  padding: 18px 14px;
}

.pg56-section {
  padding: 22px 0;
}

.pg56-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.8rem;
  color: var(--pg56-text);
}

.pg56-section-title::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--pg56-primary), var(--pg56-accent));
}

/* Header */
.pg56-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pg56-border);
}

.pg56-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--pg56-header-h);
  padding: 0 12px;
}

.pg56-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--pg56-text);
  flex: 1;
  min-width: 0;
}

.pg56-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.pg56-logo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg56-logo span em {
  font-style: normal;
  color: var(--pg56-primary);
}

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

.pg56-menu-btn {
  background: transparent;
  border: 1px solid var(--pg56-border);
  color: var(--pg56-text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

/* Buttons */
.pg56-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
  min-height: 40px;
  line-height: 1;
}

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

.pg56-btn-primary {
  background: linear-gradient(135deg, var(--pg56-primary), var(--pg56-accent));
  color: #fff;
  box-shadow: 0 8px 22px rgba(153, 50, 204, 0.4);
}

.pg56-btn-ghost {
  background: rgba(147, 112, 219, 0.12);
  color: var(--pg56-text);
  border: 1px solid var(--pg56-border);
}

.pg56-btn-gold {
  background: linear-gradient(135deg, #ffcf5c, #ff9b3d);
  color: #2a1a00;
  box-shadow: 0 8px 22px rgba(255, 155, 61, 0.35);
}

.pg56-btn-block {
  width: 100%;
}

/* Expandable nav menu */
.pg56-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--pg56-bg-soft);
  border-left: 1px solid var(--pg56-border);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  z-index: 9999;
  padding: 70px 18px 24px;
  overflow-y: auto;
  box-shadow: var(--pg56-shadow);
}

.pg56-menu.pg56-open {
  transform: translateX(0);
}

.pg56-menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--pg56-text);
  font-size: 22px;
  cursor: pointer;
}

.pg56-menu h4 {
  font-size: 1.3rem;
  color: var(--pg56-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 16px 4px 8px;
}

.pg56-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pg56-menu-list li {
  margin-bottom: 6px;
}

.pg56-menu-list a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--pg56-text);
  font-size: 1.45rem;
  background: rgba(147, 112, 219, 0.06);
  border: 1px solid transparent;
}

.pg56-menu-list a:hover {
  background: rgba(147, 112, 219, 0.18);
  border-color: var(--pg56-border);
}

.pg56-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
}

.pg56-overlay.pg56-open {
  opacity: 1;
  visibility: visible;
}

/* Hero / Carousel */
.pg56-hero {
  position: relative;
  border-radius: var(--pg56-radius-lg);
  overflow: hidden;
  margin: 14px;
  box-shadow: var(--pg56-shadow);
}

.pg56-hero-slide {
  position: relative;
  display: none;
}

.pg56-hero-slide.pg56-active {
  display: block;
  animation: pg56fade 0.6s ease;
}

@keyframes pg56fade {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.pg56-hero-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.pg56-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.85));
}

.pg56-hero-caption h2 {
  margin: 0 0 4px;
  font-size: 1.8rem;
}

.pg56-hero-caption p {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: var(--pg56-text-soft);
}

.pg56-hero-dots {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.pg56-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}

.pg56-hero-dot.pg56-active {
  background: var(--pg56-primary);
  width: 22px;
  border-radius: 6px;
}

/* Games grid */
.pg56-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

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

.pg56-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pg56-shadow-glow);
}

.pg56-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pg56-game-card-name {
  padding: 6px 8px;
  font-size: 1.15rem;
  text-align: center;
  color: var(--pg56-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg56-game-card-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, var(--pg56-primary), var(--pg56-accent));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Category section */
.pg56-category {
  margin-bottom: 26px;
}

/* Info / feature cards */
.pg56-card {
  background: var(--pg56-bg-card);
  border: 1px solid var(--pg56-border);
  border-radius: var(--pg56-radius);
  padding: 16px;
  margin-bottom: 12px;
}

.pg56-card h3 {
  color: var(--pg56-primary);
}

.pg56-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pg56-feature-item {
  background: rgba(147, 112, 219, 0.08);
  border: 1px solid var(--pg56-border);
  border-radius: var(--pg56-radius);
  padding: 14px;
  text-align: center;
}

.pg56-feature-item .pg56-feature-icon {
  font-size: 26px;
  color: var(--pg56-primary);
  margin-bottom: 6px;
}

.pg56-feature-item h4 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.pg56-feature-item p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--pg56-text-soft);
}

/* Steps */
.pg56-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pg56-steps li {
  position: relative;
  padding: 12px 12px 12px 48px;
  margin-bottom: 8px;
  background: rgba(147, 112, 219, 0.06);
  border-radius: var(--pg56-radius);
  border: 1px solid var(--pg56-border);
  counter-increment: step;
}

.pg56-steps li::before {
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--pg56-primary), var(--pg56-accent));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
}

/* Testimonials */
.pg56-testimonial {
  background: var(--pg56-bg-card);
  border-left: 3px solid var(--pg56-primary);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.pg56-testimonial-stars {
  color: var(--pg56-gold);
  margin-bottom: 4px;
}

.pg56-testimonial p {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: var(--pg56-text-soft);
}

.pg56-testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--pg56-text);
}

/* Payment / winners compact rows */
.pg56-row-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pg56-row-list .pg56-pill {
  background: rgba(147, 112, 219, 0.1);
  border: 1px solid var(--pg56-border);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  font-size: 1.15rem;
  color: var(--pg56-text-soft);
}

.pg56-winners {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pg56-winners li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px dashed var(--pg56-border);
  font-size: 1.3rem;
}

.pg56-winners li:last-child {
  border-bottom: none;
}

.pg56-winners .pg56-amount {
  color: var(--pg56-gold);
  font-weight: 700;
}

/* Promo CTA */
.pg56-cta {
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.25), rgba(153, 50, 204, 0.25));
  border: 1px solid var(--pg56-border);
  border-radius: var(--pg56-radius-lg);
  padding: 20px;
  text-align: center;
  margin: 16px 0;
}

.pg56-cta h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* FAQ */
.pg56-faq-item {
  background: var(--pg56-bg-card);
  border: 1px solid var(--pg56-border);
  border-radius: var(--pg56-radius);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.pg56-faq-item h3 {
  font-size: 1.4rem;
  color: var(--pg56-primary);
  margin: 0 0 6px;
}

.pg56-faq-item p {
  margin: 0;
  font-size: 1.25rem;
  color: var(--pg56-text-soft);
}

/* Footer */
.pg56-footer {
  background: var(--pg56-bg-soft);
  border-top: 1px solid var(--pg56-border);
  padding: 24px 14px 100px;
  margin-top: 24px;
}

.pg56-footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.pg56-footer-brand em {
  font-style: normal;
  color: var(--pg56-primary);
}

.pg56-footer-desc {
  font-size: 1.2rem;
  color: var(--pg56-text-muted);
  margin-bottom: 14px;
}

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

.pg56-footer-links {
  columns: 2;
  column-gap: 12px;
  margin-bottom: 16px;
}

.pg56-footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 1.2rem;
  color: var(--pg56-text-soft);
  break-inside: avoid;
}

.pg56-footer-copy {
  font-size: 1.1rem;
  color: var(--pg56-text-muted);
  text-align: center;
  border-top: 1px solid var(--pg56-border);
  padding-top: 12px;
}

/* Bottom nav */
.pg56-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: var(--pg56-bottomnav-h);
  background: rgba(10, 10, 10, 0.97);
  border-top: 1px solid var(--pg56-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.pg56-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  color: var(--pg56-text-muted);
  font-size: 1.05rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pg56-bottomnav a .pg56-bn-icon {
  font-size: 22px;
}

.pg56-bottomnav a.active,
.pg56-bottomnav a:hover {
  color: var(--pg56-primary);
  transform: translateY(-1px);
}

.pg56-bottomnav a.pg56-bn-promo {
  color: var(--pg56-gold);
}

/* Desktop */
@media (min-width: 769px) {
  .pg56-bottomnav {
    display: none;
  }

  body {
    max-width: 430px;
  }

  .pg56-footer {
    padding-bottom: 40px;
  }
}

/* Mobile bottom padding */
@media (max-width: 768px) {
  main {
    padding-bottom: calc(var(--pg56-bottomnav-h) + 16px);
  }
}

/* Utility */
.pg56-text-center { text-align: center; }
.pg56-mt-8 { margin-top: 8px; }
.pg56-mt-16 { margin-top: 16px; }
.pg56-hidden { display: none !important; }
.pg56-text-muted { color: var(--pg56-text-muted); }
