/* ============================================================
   365 Casino Login - Core Stylesheet
   All custom classes use the "pgd0-" prefix.
   Palette: #BDB76B (gold) | #DA70D6 (orchid) | #FAFAD2 (light)
           #2D2D2D (dark bg) | #9400D3 (purple) | #808080 (gray)
   ============================================================ */

:root {
    --pgd0-primary: #9400D3;
    --pgd0-accent: #DA70D6;
    --pgd0-gold: #BDB76B;
    --pgd0-bg: #2D2D2D;
    --pgd0-bg-2: #1c1c1c;
    --pgd0-bg-3: #3a3a3a;
    --pgd0-text: #FAFAD2;
    --pgd0-muted: #808080;
    --pgd0-card: #353535;
    --pgd0-radius: 14px;
    --pgd0-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
    --pgd0-shadow-glow: 0 0 18px rgba(218, 112, 214, 0.55);
}

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

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

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--pgd0-bg);
    color: var(--pgd0-text);
    line-height: 1.5;
    font-size: 1.5rem;
    overflow-x: hidden;
}

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

a { color: var(--pgd0-gold); text-decoration: none; }
a:hover { color: var(--pgd0-accent); }

.pgd0-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; position: relative; }
.pgd0-wrapper { width: 100%; }

/* ===================== Header ===================== */
.pgd0-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(45,45,45,0.98), rgba(28,28,28,0.95));
    border-bottom: 2px solid var(--pgd0-primary);
    box-shadow: var(--pgd0-shadow);
}
.pgd0-header-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; max-width: 430px; margin: 0 auto;
}
.pgd0-logo {
    display: flex; align-items: center; gap: 8px;
    color: var(--pgd0-text); font-weight: 700; font-size: 1.6rem;
}
.pgd0-logo-img { width: 30px; height: 30px; border-radius: 8px; }
.pgd0-logo-text { line-height: 1.1; }
.pgd0-logo-text small { color: var(--pgd0-gold); font-size: 1rem; display: block; font-weight: 400; }

.pgd0-header-actions { display: flex; align-items: center; gap: 8px; }
.pgd0-icon-btn {
    background: transparent; border: none; color: var(--pgd0-text);
    font-size: 2rem; cursor: pointer; padding: 6px; border-radius: 8px;
}
.pgd0-icon-btn:hover { color: var(--pgd0-accent); background: rgba(218,112,214,0.12); }

.pgd0-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: none; cursor: pointer; font-weight: 600; font-size: 1.35rem;
    padding: 8px 14px; border-radius: 24px; transition: transform .15s ease, box-shadow .2s ease;
    min-height: 36px; text-decoration: none;
}
.pgd0-btn:hover { transform: translateY(-1px); }
.pgd0-btn-register {
    background: linear-gradient(135deg, #DA70D6, #9400D3);
    color: #fff; box-shadow: 0 4px 14px rgba(148,0,211,0.4);
}
.pgd0-btn-login {
    background: transparent; color: var(--pgd0-gold);
    border: 2px solid var(--pgd0-gold);
}

/* ===================== Mobile menu ===================== */
.pgd0-menu-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    z-index: 9998; opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.pgd0-menu-backdrop.pgd0-backdrop-show { opacity: 1; visibility: visible; }

.pgd0-mobile-menu {
    position: fixed; top: 0; right: -82%; width: 80%; max-width: 320px;
    height: 100vh; z-index: 9999;
    background: linear-gradient(180deg, #1c1c1c, #2D2D2D);
    box-shadow: -8px 0 28px rgba(0,0,0,0.6);
    transition: right .3s ease; padding: 70px 16px 24px; overflow-y: auto;
}
.pgd0-mobile-menu.pgd0-menu-open { right: 0; }
.pgd0-mobile-menu h3 {
    color: var(--pgd0-gold); font-size: 1.4rem; margin: 14px 0 8px;
    text-transform: uppercase; letter-spacing: 1px;
}
.pgd0-mobile-menu a {
    display: block; padding: 10px 12px; border-radius: 8px;
    color: var(--pgd0-text); font-size: 1.4rem; margin-bottom: 4px;
    border-left: 3px solid transparent;
}
.pgd0-mobile-menu a:hover { background: rgba(218,112,214,0.12); border-left-color: var(--pgd0-accent); }
.pgd0-menu-close {
    position: absolute; top: 14px; right: 14px;
    background: transparent; border: none; color: var(--pgd0-text);
    font-size: 2.2rem; cursor: pointer;
}

/* ===================== Main layout ===================== */
.pgd0-main { padding-top: 64px; }
@media (max-width: 768px) {
    .pgd0-main { padding-bottom: 88px; }
}

/* ===================== Hero carousel ===================== */
.pgd0-hero {
    position: relative; margin: 10px 0 16px; border-radius: var(--pgd0-radius);
    overflow: hidden; box-shadow: var(--pgd0-shadow);
    aspect-ratio: 16 / 9; background: #000;
}
.pgd0-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
}
.pgd0-slide.pgd0-slide-active { opacity: 1; }
.pgd0-slide img { width: 100%; height: 100%; object-fit: cover; }
.pgd0-slide-overlay {
    position: absolute; inset: 0; padding: 18px;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(0deg, rgba(45,45,45,0.85) 0%, rgba(45,45,45,0.15) 60%);
}
.pgd0-slide-overlay h2 { color: var(--pgd0-gold); font-size: 1.9rem; margin-bottom: 4px; }
.pgd0-slide-overlay p { color: var(--pgd0-text); font-size: 1.25rem; }
.pgd0-carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.45); color: #fff; border: none; width: 36px; height: 36px;
    border-radius: 50%; font-size: 1.6rem; cursor: pointer; z-index: 2;
}
.pgd0-carousel-arrow:hover { background: var(--pgd0-primary); }
.pgd0-arrow-prev { left: 8px; }
.pgd0-arrow-next { right: 8px; }
.pgd0-carousel-dots {
    position: absolute; bottom: 8px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.pgd0-carousel-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer; transition: all .2s;
}
.pgd0-carousel-dot.pgd0-dot-active { background: var(--pgd0-gold); width: 22px; border-radius: 4px; }

/* ===================== Section ===================== */
.pgd0-section { margin: 24px 0; }
.pgd0-section-title {
    font-size: 1.7rem; color: var(--pgd0-text); margin-bottom: 12px;
    padding-left: 12px; border-left: 4px solid var(--pgd0-gold);
}
.pgd0-section-title em { color: var(--pgd0-accent); font-style: normal; }
.pgd0-section-sub { color: var(--pgd0-muted); font-size: 1.3rem; margin: -8px 0 12px; padding-left: 12px; }

/* ===================== Filter bar ===================== */
.pgd0-filter-bar {
    display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.pgd0-filter-bar::-webkit-scrollbar { display: none; }
.pgd0-filter-btn {
    flex: 0 0 auto; padding: 6px 14px; border-radius: 18px;
    background: var(--pgd0-card); color: var(--pgd0-text); border: 1px solid #444;
    font-size: 1.25rem; cursor: pointer; white-space: nowrap;
}
.pgd0-filter-btn.pgd0-filter-active {
    background: linear-gradient(135deg, #DA70D6, #9400D3); color: #fff; border-color: transparent;
}

/* ===================== Game grid ===================== */
.pgd0-game-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pgd0-game-card {
    background: var(--pgd0-card); border-radius: 12px; overflow: hidden;
    border: 1px solid #444; transition: transform .18s ease, box-shadow .2s ease;
    cursor: pointer; position: relative;
}
.pgd0-game-card:hover { transform: translateY(-3px); box-shadow: var(--pgd0-shadow-glow); border-color: var(--pgd0-accent); }
.pgd0-game-thumb { aspect-ratio: 1 / 1; background: #000; }
.pgd0-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pgd0-game-name {
    padding: 6px 8px; font-size: 1.15rem; text-align: center; color: var(--pgd0-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pgd0-game-hot {
    position: absolute; top: 6px; right: 6px;
    background: linear-gradient(135deg, #ff5e62, #ff9966); color: #fff;
    font-size: 0.95rem; padding: 2px 7px; border-radius: 8px; font-weight: 700;
}
.pgd0-game-tag {
    position: absolute; top: 6px; left: 6px;
    background: rgba(148,0,211,0.85); color: #fff;
    font-size: 0.95rem; padding: 2px 7px; border-radius: 8px;
}

/* ===================== Feature blocks ===================== */
.pgd0-feature-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pgd0-feature-card {
    background: linear-gradient(135deg, rgba(148,0,211,0.15), rgba(218,112,214,0.08));
    border: 1px solid rgba(218,112,214,0.35); border-radius: 12px; padding: 14px;
}
.pgd0-feature-card h3 { color: var(--pgd0-gold); font-size: 1.45rem; margin-bottom: 6px; }
.pgd0-feature-card p { color: var(--pgd0-text); font-size: 1.3rem; line-height: 1.55; }
.pgd0-feature-icon { font-size: 2.2rem; color: var(--pgd0-accent); margin-bottom: 6px; }

/* ===================== Promo CTA ===================== */
.pgd0-promo-cta {
    background: linear-gradient(135deg, #9400D3, #DA70D6);
    border-radius: 14px; padding: 16px; text-align: center; margin: 18px 0;
    color: #fff; box-shadow: var(--pgd0-shadow);
}
.pgd0-promo-cta h3 { font-size: 1.6rem; margin-bottom: 6px; }
.pgd0-promo-cta p { font-size: 1.25rem; margin-bottom: 12px; opacity: 0.95; }
.pgd0-promo-cta .pgd0-btn {
    background: var(--pgd0-gold); color: #2D2D2D; font-weight: 700;
}

/* ===================== Text content ===================== */
.pgd0-prose { color: var(--pgd0-text); font-size: 1.35rem; line-height: 1.7; }
.pgd0-prose h2 { color: var(--pgd0-gold); font-size: 1.7rem; margin: 16px 0 8px; }
.pgd0-prose h3 { color: var(--pgd0-accent); font-size: 1.45rem; margin: 12px 0 6px; }
.pgd0-prose p { margin-bottom: 10px; }
.pgd0-prose ul { padding-left: 18px; margin-bottom: 10px; }
.pgd0-prose li { margin-bottom: 4px; }
.pgd0-prose strong { color: var(--pgd0-gold); }

/* ===================== FAQ ===================== */
.pgd0-faq-item {
    background: var(--pgd0-card); border: 1px solid #444; border-radius: 10px;
    margin-bottom: 8px; overflow: hidden;
}
.pgd0-faq-q {
    padding: 12px 14px; cursor: pointer; font-weight: 600; color: var(--pgd0-text);
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    font-size: 1.35rem;
}
.pgd0-faq-q .pgd0-faq-icon { color: var(--pgd0-accent); transition: transform .2s; }
.pgd0-faq-a {
    max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
    padding: 0 14px; color: var(--pgd0-text); font-size: 1.25rem; line-height: 1.6;
}
.pgd0-faq-item.pgd0-faq-open .pgd0-faq-a { max-height: 400px; padding: 0 14px 12px; }
.pgd0-faq-item.pgd0-faq-open .pgd0-faq-icon { transform: rotate(45deg); }

/* ===================== Testimonial ===================== */
.pgd0-testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pgd0-testimonial {
    background: var(--pgd0-card); border-left: 4px solid var(--pgd0-gold);
    padding: 12px 14px; border-radius: 10px;
}
.pgd0-testimonial-stars { color: #FFD700; font-size: 1.2rem; margin-bottom: 4px; }
.pgd0-testimonial p { font-size: 1.25rem; margin-bottom: 6px; }
.pgd0-testimonial cite { color: var(--pgd0-muted); font-style: normal; font-size: 1.15rem; }

/* ===================== Payment methods ===================== */
.pgd0-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pgd0-pay-item {
    background: var(--pgd0-card); border-radius: 10px; padding: 12px 6px; text-align: center;
    border: 1px solid #444;
}
.pgd0-pay-icon { font-size: 2rem; color: var(--pgd0-accent); }
.pgd0-pay-name { font-size: 1.15rem; margin-top: 4px; color: var(--pgd0-text); }

/* ===================== Winners ===================== */
.pgd0-winner-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--pgd0-card); padding: 10px 12px; border-radius: 10px; margin-bottom: 8px;
}
.pgd0-winner-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #DA70D6, #9400D3); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto;
}
.pgd0-winner-info { flex: 1; min-width: 0; }
.pgd0-winner-name { font-size: 1.25rem; color: var(--pgd0-text); }
.pgd0-winner-game { font-size: 1.1rem; color: var(--pgd0-muted); }
.pgd0-winner-amount { color: var(--pgd0-gold); font-weight: 700; font-size: 1.35rem; }

/* ===================== Footer ===================== */
.pgd0-footer {
    background: #1c1c1c; border-top: 3px solid var(--pgd0-primary);
    padding: 22px 14px 30px; margin-top: 24px; color: var(--pgd0-text);
}
.pgd0-footer h4 { color: var(--pgd0-gold); font-size: 1.4rem; margin: 14px 0 8px; }
.pgd0-footer p { font-size: 1.25rem; color: var(--pgd0-text); line-height: 1.6; margin-bottom: 8px; }
.pgd0-footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.pgd0-footer-links a { color: var(--pgd0-text); font-size: 1.2rem; }
.pgd0-footer-links a:hover { color: var(--pgd0-accent); }
.pgd0-footer-buttons {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0;
}
.pgd0-footer-buttons .pgd0-btn { flex: 1 1 auto; }
.pgd0-footer-copy {
    text-align: center; color: var(--pgd0-muted); font-size: 1.15rem;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid #333;
}

/* ===================== Bottom nav ===================== */
.pgd0-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    height: 62px; background: linear-gradient(180deg, rgba(45,45,45,0.98), rgba(20,20,20,0.98));
    border-top: 2px solid var(--pgd0-gold);
    display: flex; justify-content: space-around; align-items: stretch;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.5);
}
.pgd0-bottom-nav-btn {
    flex: 1; background: transparent; border: none; color: var(--pgd0-text);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; cursor: pointer; padding: 4px 2px; min-width: 60px; min-height: 60px;
    transition: color .2s ease, transform .15s ease; position: relative;
}
.pgd0-bottom-nav-btn .pgd0-nav-icon { font-size: 2.2rem; line-height: 1; }
.pgd0-bottom-nav-btn .pgd0-nav-label { font-size: 1rem; line-height: 1.1; }
.pgd0-bottom-nav-btn:hover { color: var(--pgd0-accent); transform: translateY(-2px); }
.pgd0-bottom-nav-btn.pgd0-nav-current { color: var(--pgd0-gold); }
.pgd0-bottom-nav-btn.pgd0-nav-current::after {
    content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px;
    background: var(--pgd0-gold); border-radius: 0 0 4px 4px;
}
.pgd0-nav-promo .pgd0-nav-icon { color: var(--pgd0-accent); }

/* ===================== Reveal animation ===================== */
.pgd0-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.pgd0-reveal.pgd0-revealed { opacity: 1; transform: translateY(0); }

/* ===================== Desktop ===================== */
@media (min-width: 769px) {
    .pgd0-bottom-nav { display: none; }
    .pgd0-container { max-width: 760px; }
    .pgd0-game-grid { grid-template-columns: repeat(5, 1fr); }
    .pgd0-feature-row { grid-template-columns: repeat(2, 1fr); }
    .pgd0-testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .pgd0-pay-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ===================== Small phones ===================== */
@media (max-width: 360px) {
    .pgd0-game-grid { grid-template-columns: repeat(2, 1fr); }
    .pgd0-logo-text { font-size: 1.4rem; }
}
