/* ph96 - Main Stylesheet */
/* All classes use gfd5- prefix for namespace isolation */
/* Color palette: #2C2C2C | #A9A9A9 | #E91E63 | #D3D3D3 | #BAE1FF | #FF91A4 */

:root {
    --gfd5-primary: #E91E63;
    --gfd5-secondary: #FF91A4;
    --gfd5-bg-dark: #2C2C2C;
    --gfd5-bg-card: #3a3a3a;
    --gfd5-text-light: #D3D3D3;
    --gfd5-text-muted: #A9A9A9;
    --gfd5-accent-blue: #BAE1FF;
    --gfd5-accent-pink: #FF91A4;
    --gfd5-gradient-start: #E91E63;
    --gfd5-gradient-end: #FF91A4;
    --gfd5-radius: 0.8rem;
    --gfd5-shadow: 0 2px 12px rgba(0,0,0,0.3);
    font-size: 62.5%;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gfd5-bg-dark);
    color: var(--gfd5-text-light);
    line-height: 1.5rem;
    font-size: 1.6rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

a {
    color: var(--gfd5-accent-blue);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* === Header === */
.gfd5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 56px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2C2C2C 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    z-index: 1000;
    border-bottom: 2px solid var(--gfd5-primary);
    box-shadow: 0 2px 10px rgba(233,30,99,0.2);
}

.gfd5-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gfd5-logo img {
    width: 28px;
    height: 28px;
}

.gfd5-logo span {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gfd5-primary), var(--gfd5-accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gfd5-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gfd5-btn-register {
    background: linear-gradient(135deg, var(--gfd5-primary), var(--gfd5-accent-pink));
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 36px;
}

.gfd5-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(233,30,99,0.4);
}

.gfd5-btn-login {
    background: transparent;
    color: var(--gfd5-accent-blue);
    border: 1.5px solid var(--gfd5-accent-blue);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 36px;
}

.gfd5-btn-login:hover {
    background: rgba(186,225,255,0.1);
}

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

/* === Mobile Menu === */
.gfd5-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}

.gfd5-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: linear-gradient(180deg, #1a1a1a, #2C2C2C);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 2rem 0;
    overflow-y: auto;
}

.gfd5-mobile-menu-header {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.gfd5-mobile-menu-header span {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gfd5-primary), var(--gfd5-accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gfd5-mobile-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--gfd5-text-light);
    font-size: 1.5rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.gfd5-mobile-menu a:hover {
    background: rgba(233,30,99,0.15);
    border-left-color: var(--gfd5-primary);
    color: #fff;
}

.gfd5-menu-close {
    background: none;
    border: none;
    color: var(--gfd5-text-muted);
    font-size: 2.8rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    line-height: 1;
}

/* === Main Content === */
.gfd5-main {
    padding-top: 56px;
    min-height: 100vh;
}

/* === Carousel === */
.gfd5-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16/8;
}

.gfd5-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.gfd5-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    cursor: pointer;
}

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

.gfd5-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.gfd5-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gfd5-carousel-dot.gfd5-active {
    background: var(--gfd5-primary);
    width: 20px;
    border-radius: 4px;
}

.gfd5-carousel-prev,
.gfd5-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gfd5-carousel-prev { left: 8px; }
.gfd5-carousel-next { right: 8px; }

/* === Section === */
.gfd5-section {
    padding: 2rem 1.2rem;
}

.gfd5-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--gfd5-primary);
    color: #fff;
}

.gfd5-section-title i {
    margin-right: 0.5rem;
    color: var(--gfd5-primary);
}

/* === Game Grid === */
.gfd5-game-category-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--gfd5-accent-pink);
    margin: 1.5rem 0 0.8rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--gfd5-primary);
}

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

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

.gfd5-game-item:hover {
    transform: scale(1.06);
}

.gfd5-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--gfd5-radius);
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.08);
}

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

/* === Promo Banner === */
.gfd5-promo-banner {
    background: linear-gradient(135deg, var(--gfd5-primary), var(--gfd5-accent-pink));
    border-radius: var(--gfd5-radius);
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gfd5-promo-banner:hover {
    transform: scale(1.02);
}

.gfd5-promo-banner h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.gfd5-promo-banner p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
}

/* === Features === */
.gfd5-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gfd5-feature-card {
    background: var(--gfd5-bg-card);
    border-radius: var(--gfd5-radius);
    padding: 1.2rem;
    text-align: center;
    border: 1px solid rgba(233,30,99,0.15);
    transition: all 0.3s ease;
}

.gfd5-feature-card:hover {
    border-color: var(--gfd5-primary);
    box-shadow: 0 0 15px rgba(233,30,99,0.2);
}

.gfd5-feature-card i {
    font-size: 2.4rem;
    color: var(--gfd5-primary);
    margin-bottom: 0.6rem;
}

.gfd5-feature-card h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.gfd5-feature-card p {
    font-size: 1.2rem;
    color: var(--gfd5-text-muted);
}

/* === Info Cards === */
.gfd5-info-card {
    background: var(--gfd5-bg-card);
    border-radius: var(--gfd5-radius);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border-left: 3px solid var(--gfd5-primary);
}

.gfd5-info-card h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.gfd5-info-card p {
    font-size: 1.3rem;
    color: var(--gfd5-text-muted);
    line-height: 1.6;
}

/* === Play Now Button === */
.gfd5-play-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gfd5-primary), var(--gfd5-accent-pink));
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.gfd5-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(233,30,99,0.5);
}

/* === Text Link === */
.gfd5-text-link {
    color: var(--gfd5-accent-blue);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.gfd5-text-link:hover {
    color: var(--gfd5-primary);
}

/* === Footer === */
.gfd5-footer {
    background: #1a1a1a;
    padding: 2rem 1.2rem 8rem;
    border-top: 2px solid var(--gfd5-primary);
}

.gfd5-footer-desc {
    font-size: 1.3rem;
    color: var(--gfd5-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.gfd5-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.gfd5-footer-links a {
    background: var(--gfd5-bg-card);
    color: var(--gfd5-text-light);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.gfd5-footer-links a:hover {
    background: var(--gfd5-primary);
    color: #fff;
}

.gfd5-footer-copy {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gfd5-text-muted);
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* === Bottom Navigation === */
.gfd5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 60px;
    background: linear-gradient(180deg, #1a1a1a, #111);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1.5px solid rgba(233,30,99,0.3);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.4);
}

.gfd5-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--gfd5-text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0.4rem;
    position: relative;
}

.gfd5-bottom-nav-btn i,
.gfd5-bottom-nav-btn .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
    transition: all 0.25s ease;
}

.gfd5-bottom-nav-btn span {
    font-size: 1rem;
    white-space: nowrap;
}

.gfd5-bottom-nav-btn:hover,
.gfd5-bottom-nav-btn.gfd5-active {
    color: var(--gfd5-primary);
    transform: scale(1.1);
}

.gfd5-bottom-nav-btn:hover i,
.gfd5-bottom-nav-btn.gfd5-active i,
.gfd5-bottom-nav-btn:hover .material-icons,
.gfd5-bottom-nav-btn.gfd5-active .material-icons {
    color: var(--gfd5-primary);
}

.gfd5-bottom-nav-btn::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--gfd5-primary);
    transition: width 0.25s ease;
    border-radius: 1px;
}

.gfd5-bottom-nav-btn:hover::after,
.gfd5-bottom-nav-btn.gfd5-active::after {
    width: 24px;
}

/* === Winners Table === */
.gfd5-winners-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gfd5-winner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gfd5-bg-card);
    padding: 0.8rem 1rem;
    border-radius: 0.6rem;
    font-size: 1.3rem;
}

.gfd5-winner-name {
    color: var(--gfd5-accent-blue);
    font-weight: 600;
}

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

.gfd5-winner-game {
    color: var(--gfd5-text-muted);
    font-size: 1.2rem;
}

/* === Testimonials === */
.gfd5-testimonial {
    background: var(--gfd5-bg-card);
    border-radius: var(--gfd5-radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.gfd5-testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.gfd5-testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gfd5-primary), var(--gfd5-accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
}

.gfd5-testimonial-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
}

.gfd5-testimonial-stars {
    color: #FFD700;
    font-size: 1.2rem;
}

.gfd5-testimonial p {
    font-size: 1.3rem;
    color: var(--gfd5-text-muted);
    line-height: 1.5;
}

/* === Payment Methods === */
.gfd5-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.gfd5-payment-item {
    background: var(--gfd5-bg-card);
    border-radius: 0.6rem;
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
    color: var(--gfd5-text-light);
    border: 1px solid rgba(255,255,255,0.08);
}

/* === Help Page Content === */
.gfd5-help-section {
    padding: 2rem 1.2rem;
}

.gfd5-help-section h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    border-left: 3px solid var(--gfd5-primary);
    padding-left: 0.8rem;
}

.gfd5-help-section p {
    font-size: 1.4rem;
    color: var(--gfd5-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.gfd5-help-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.gfd5-help-section li {
    font-size: 1.4rem;
    color: var(--gfd5-text-muted);
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.gfd5-faq-item {
    background: var(--gfd5-bg-card);
    border-radius: 0.6rem;
    padding: 1.2rem;
    margin-bottom: 0.8rem;
}

.gfd5-faq-item h4 {
    font-size: 1.4rem;
    color: var(--gfd5-accent-blue);
    margin-bottom: 0.4rem;
}

.gfd5-faq-item p {
    font-size: 1.3rem;
    color: var(--gfd5-text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

/* === Responsive === */
@media (min-width: 769px) {
    .gfd5-bottom-nav {
        display: none;
    }
    .gfd5-menu-toggle {
        display: none;
    }
    body {
        max-width: 430px;
    }
    .gfd5-footer {
        padding-bottom: 2rem;
    }
}

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

@media (max-width: 360px) {
    .gfd5-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gfd5-features-grid {
        grid-template-columns: 1fr;
    }
}
