/**
 * KG 999 Price - Core Stylesheet
 * All classes use prefix "pgd0-" for namespace isolation
 * Color palette: #40E0D0 #FA8072 #212F3D #B2DFDB #EE82EE #999999
 * Mobile-first design, max-width: 430px
 */

:root {
    --pgd0-primary: #40E0D0;
    --pgd0-accent: #FA8072;
    --pgd0-bg: #212F3D;
    --pgd0-bg-light: #2C3E50;
    --pgd0-text: #B2DFDB;
    --pgd0-highlight: #EE82EE;
    --pgd0-muted: #999999;
    --pgd0-white: #ffffff;
    --pgd0-dark: #1a252f;
    --pgd0-card-bg: #283848;
    --pgd0-border: #3a5068;
    font-size: 62.5%;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--pgd0-bg);
    color: var(--pgd0-text);
    font-size: 1.6rem;
    line-height: 1.5;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.pgd0-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 56px;
    background: var(--pgd0-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
    border-bottom: 2px solid var(--pgd0-primary);
}

.pgd0-logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.pgd0-logo-area img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.pgd0-logo-area span {
    color: var(--pgd0-primary);
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
}

.pgd0-header-btns {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pgd0-btn-register {
    background: var(--pgd0-primary);
    color: var(--pgd0-dark);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.pgd0-btn-register:hover {
    background: #5aeee0;
    transform: scale(1.05);
}

.pgd0-btn-login {
    background: transparent;
    color: var(--pgd0-primary);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 0.8rem;
    border: 1.5px solid var(--pgd0-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.pgd0-btn-login:hover {
    background: rgba(64, 224, 208, 0.1);
}

.pgd0-menu-toggle {
    background: none;
    border: none;
    color: var(--pgd0-primary);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
}

/* ===== MOBILE MENU ===== */
.pgd0-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100%;
    background: var(--pgd0-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.pgd0-mobile-menu.pgd0-menu-active {
    right: 0;
}

.pgd0-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.pgd0-menu-overlay.pgd0-overlay-active {
    opacity: 1;
    pointer-events: auto;
}

.pgd0-menu-close {
    background: none;
    border: none;
    color: var(--pgd0-accent);
    font-size: 2.4rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.pgd0-menu-links {
    list-style: none;
    margin-top: 3rem;
}

.pgd0-menu-links li {
    border-bottom: 1px solid var(--pgd0-border);
}

.pgd0-menu-links a {
    display: block;
    padding: 1.2rem 0.5rem;
    color: var(--pgd0-text);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.pgd0-menu-links a:hover {
    color: var(--pgd0-primary);
}

/* ===== MAIN CONTENT ===== */
.pgd0-main {
    padding-top: 56px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* ===== CAROUSEL ===== */
.pgd0-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.pgd0-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.pgd0-slide.pgd0-slide-active {
    opacity: 1;
}

.pgd0-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.pgd0-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
}

.pgd0-slide-dot.pgd0-dot-active {
    background: var(--pgd0-primary);
}

/* ===== SECTIONS ===== */
.pgd0-section {
    padding: 1.5rem 1rem;
}

.pgd0-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pgd0-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pgd0-primary);
}

.pgd0-section-title i {
    margin-right: 0.5rem;
}

/* ===== GAME GRID ===== */
.pgd0-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pgd0-highlight);
    margin: 1.5rem 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pgd0-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.pgd0-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.pgd0-game-item:hover {
    transform: scale(1.05);
}

.pgd0-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid var(--pgd0-border);
    object-fit: cover;
}

.pgd0-game-item span {
    display: block;
    font-size: 1.1rem;
    color: var(--pgd0-text);
    margin-top: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== CONTENT BLOCKS ===== */
.pgd0-content-block {
    background: var(--pgd0-card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--pgd0-border);
}

.pgd0-content-block h2 {
    font-size: 1.8rem;
    color: var(--pgd0-primary);
    margin-bottom: 1rem;
}

.pgd0-content-block h3 {
    font-size: 1.5rem;
    color: var(--pgd0-highlight);
    margin: 0.8rem 0 0.5rem;
}

.pgd0-content-block p {
    color: var(--pgd0-text);
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.pgd0-content-block ul {
    padding-left: 2rem;
    margin-bottom: 0.8rem;
}

.pgd0-content-block li {
    color: var(--pgd0-text);
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.pgd0-promo-text {
    color: var(--pgd0-accent);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.pgd0-promo-text:hover {
    color: var(--pgd0-primary);
}

.pgd0-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--pgd0-primary), var(--pgd0-highlight));
    color: var(--pgd0-dark);
    font-weight: 700;
    font-size: 1.4rem;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0.5rem 0;
}

.pgd0-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
}

/* ===== WINNER SHOWCASE ===== */
.pgd0-winners {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pgd0-winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--pgd0-bg-light);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 1.3rem;
}

.pgd0-winner-name {
    color: var(--pgd0-primary);
    font-weight: 600;
}

.pgd0-winner-amount {
    color: var(--pgd0-accent);
    font-weight: 700;
}

/* ===== PAYMENT METHODS ===== */
.pgd0-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.pgd0-payment-item {
    background: var(--pgd0-bg-light);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: var(--pgd0-text);
    font-size: 1.3rem;
    border: 1px solid var(--pgd0-border);
}

/* ===== FOOTER ===== */
.pgd0-footer {
    background: var(--pgd0-dark);
    padding: 2rem 1rem;
    border-top: 2px solid var(--pgd0-primary);
}

.pgd0-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pgd0-footer-brand p {
    color: var(--pgd0-muted);
    font-size: 1.3rem;
    line-height: 1.5;
}

.pgd0-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.pgd0-footer-links a {
    color: var(--pgd0-text);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    background: var(--pgd0-bg-light);
    border-radius: 6px;
    transition: background 0.2s;
}

.pgd0-footer-links a:hover {
    background: var(--pgd0-primary);
    color: var(--pgd0-dark);
}

.pgd0-footer-copy {
    text-align: center;
    color: var(--pgd0-muted);
    font-size: 1.2rem;
}

/* ===== BOTTOM NAV ===== */
.pgd0-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: var(--pgd0-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 2px solid var(--pgd0-primary);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
}

.pgd0-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 52px;
    background: none;
    border: none;
    color: var(--pgd0-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    padding: 0.3rem;
}

.pgd0-nav-btn i,
.pgd0-nav-btn .material-icons {
    font-size: 22px;
    transition: transform 0.2s;
}

.pgd0-nav-btn span {
    font-size: 1rem;
    margin-top: 2px;
    white-space: nowrap;
}

.pgd0-nav-btn:hover,
.pgd0-nav-btn.pgd0-nav-active {
    color: var(--pgd0-primary);
}

.pgd0-nav-btn:hover i,
.pgd0-nav-btn.pgd0-nav-active i {
    transform: scale(1.15);
}

/* ===== DESKTOP HIDE BOTTOM NAV ===== */
@media (min-width: 769px) {
    .pgd0-bottom-nav {
        display: none;
    }
}

/* ===== MOBILE PADDING ===== */
@media (max-width: 768px) {
    .pgd0-main {
        padding-bottom: 80px;
    }
}

/* ===== UTILITIES ===== */
.pgd0-text-center { text-align: center; }
.pgd0-mt-1 { margin-top: 1rem; }
.pgd0-mb-1 { margin-bottom: 1rem; }
.pgd0-mb-2 { margin-bottom: 2rem; }

/* ===== INTERNAL LINK ===== */
.pgd0-internal-link {
    color: var(--pgd0-highlight);
    text-decoration: underline;
    transition: color 0.2s;
}

.pgd0-internal-link:hover {
    color: var(--pgd0-primary);
}

/* ===== TESTIMONIALS ===== */
.pgd0-testimonial {
    background: var(--pgd0-bg-light);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--pgd0-primary);
}

.pgd0-testimonial p {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.pgd0-testimonial-author {
    color: var(--pgd0-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

/* ===== APP DOWNLOAD CTA ===== */
.pgd0-app-cta {
    background: linear-gradient(135deg, var(--pgd0-bg-light), var(--pgd0-card-bg));
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--pgd0-primary);
}

.pgd0-app-cta h3 {
    color: var(--pgd0-primary);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.pgd0-app-cta p {
    color: var(--pgd0-text);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ===== RTP TABLE ===== */
.pgd0-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
}

.pgd0-rtp-table th {
    background: var(--pgd0-primary);
    color: var(--pgd0-dark);
    padding: 0.6rem;
    text-align: left;
    font-weight: 600;
}

.pgd0-rtp-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--pgd0-border);
    color: var(--pgd0-text);
}

.pgd0-rtp-table tr:hover td {
    background: rgba(64, 224, 208, 0.05);
}
