/**
 * PHP365 Layout Stylesheet
 * Class prefix: wc78e-
 * Color palette: #FF7F50 #FAFAFA #4682B4 #FFBF00 #AFEEEE #2D2D2D
 * Root font: 62.5% for rem-based sizing
 */

/* === CSS Variables === */
:root {
    --wc78e-primary: #FF7F50;
    --wc78e-primary-dark: #E5673D;
    --wc78e-bg: #2D2D2D;
    --wc78e-bg-light: #3A3A3A;
    --wc78e-bg-card: #353535;
    --wc78e-text: #FAFAFA;
    --wc78e-text-muted: #C0C0C0;
    --wc78e-accent: #FFBF00;
    --wc78e-accent2: #4682B4;
    --wc78e-accent3: #AFEEEE;
    --wc78e-border: #4A4A4A;
    --wc78e-radius: 1.2rem;
    --wc78e-radius-sm: 0.8rem;
    --wc78e-shadow: 0 2px 12px rgba(0,0,0,0.3);
    --wc78e-transition: all 0.3s ease;
}

/* === Reset & Base === */
html { font-size: 62.5%; scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--wc78e-bg);
    color: var(--wc78e-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--wc78e-primary); text-decoration: none; transition: var(--wc78e-transition); }
a:hover { color: var(--wc78e-accent); }
img { max-width: 100%; height: auto; display: block; }

/* === Header === */
.wc78e-header {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 430px; height: 56px;
    background: linear-gradient(135deg, var(--wc78e-bg) 0%, #1A1A1A 100%);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.2rem; z-index: 1000;
    border-bottom: 2px solid var(--wc78e-primary);
    box-shadow: 0 2px 16px rgba(255,127,80,0.15);
}
.wc78e-logo-area {
    display: flex; align-items: center; gap: 0.8rem; cursor: pointer;
}
.wc78e-logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.wc78e-logo-text {
    font-size: 1.8rem; font-weight: 800; color: var(--wc78e-accent);
    letter-spacing: -0.5px;
}
.wc78e-logo-text span { color: var(--wc78e-primary); }
.wc78e-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.wc78e-btn-register, .wc78e-btn-login {
    padding: 0.5rem 1.2rem; border-radius: var(--wc78e-radius-sm);
    font-size: 1.2rem; font-weight: 700; border: none; cursor: pointer;
    transition: var(--wc78e-transition); text-transform: uppercase;
}
.wc78e-btn-register {
    background: linear-gradient(135deg, var(--wc78e-primary), var(--wc78e-accent));
    color: var(--wc78e-bg);
}
.wc78e-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(255,127,80,0.5); }
.wc78e-btn-login {
    background: transparent; color: var(--wc78e-accent);
    border: 1.5px solid var(--wc78e-accent);
}
.wc78e-btn-login:hover { background: var(--wc78e-accent); color: var(--wc78e-bg); }
.wc78e-menu-toggle {
    background: none; border: none; color: var(--wc78e-text);
    font-size: 2rem; cursor: pointer; padding: 0.4rem;
    display: flex; align-items: center; justify-content: center;
}

/* === Mobile Menu Overlay === */
.wc78e-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 9998;
    opacity: 0; visibility: hidden; transition: var(--wc78e-transition);
}
.wc78e-overlay-active { opacity: 1; visibility: visible; }

/* === Mobile Slide Menu === */
.wc78e-mobile-menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background: linear-gradient(180deg, #1A1A1A, var(--wc78e-bg));
    z-index: 9999; transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    padding: 2rem 1.5rem; overflow-y: auto;
}
.wc78e-menu-active { right: 0; }
.wc78e-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wc78e-border);
}
.wc78e-menu-title { font-size: 2rem; font-weight: 800; color: var(--wc78e-accent); }
.wc78e-menu-close {
    background: none; border: none; color: var(--wc78e-text);
    font-size: 2.2rem; cursor: pointer;
}
.wc78e-menu-nav { list-style: none; }
.wc78e-menu-nav li {
    margin-bottom: 0.5rem;
}
.wc78e-menu-nav a {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.2rem 1rem; color: var(--wc78e-text);
    border-radius: var(--wc78e-radius-sm); transition: var(--wc78e-transition);
    font-size: 1.4rem; font-weight: 500;
}
.wc78e-menu-nav a:hover, .wc78e-menu-nav a:focus {
    background: rgba(255,127,80,0.15); color: var(--wc78e-primary);
}
.wc78e-menu-nav .wc78e-menu-icon { font-size: 2rem; width: 28px; text-align: center; }

/* === Main Content === */
main {
    padding-top: 64px; min-height: 100vh;
}
@media (max-width: 768px) {
    main { padding-bottom: 80px; }
}

/* === Carousel === */
.wc78e-carousel {
    position: relative; width: 100%; overflow: hidden;
    border-radius: 0 0 var(--wc78e-radius) var(--wc78e-radius);
}
.wc78e-slide {
    display: none; width: 100%; cursor: pointer;
}
.wc78e-slide img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.wc78e-slide-active { display: block; animation: wc78eFadeIn 0.6s ease; }
@keyframes wc78eFadeIn { from { opacity: 0; } to { opacity: 1; } }
.wc78e-carousel-dots {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px;
}
.wc78e-carousel-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.4); border: none; cursor: pointer;
}
.wc78e-dot-active { background: var(--wc78e-accent); }

/* === Section Layout === */
.wc78e-section {
    padding: 2rem 1.2rem;
}
.wc78e-section-title {
    font-size: 1.8rem; font-weight: 800; margin-bottom: 1.2rem;
    color: var(--wc78e-accent); position: relative; padding-left: 1.2rem;
}
.wc78e-section-title::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%); width: 4px; height: 70%;
    background: var(--wc78e-primary); border-radius: 2px;
}
.wc78e-container { width: 100%; padding: 0 1.2rem; }
.wc78e-wrapper { max-width: 430px; margin: 0 auto; }

/* === Game Grid === */
.wc78e-category-title {
    font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 1rem;
    color: var(--wc78e-primary); display: flex; align-items: center; gap: 0.6rem;
}
.wc78e-game-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.wc78e-game-card {
    display: flex; flex-direction: column; align-items: center;
    background: var(--wc78e-bg-card); border-radius: var(--wc78e-radius-sm);
    padding: 0.6rem; cursor: pointer; transition: var(--wc78e-transition);
    border: 1px solid transparent;
}
.wc78e-game-card:hover {
    transform: translateY(-2px); border-color: var(--wc78e-primary);
    box-shadow: 0 4px 16px rgba(255,127,80,0.2);
}
.wc78e-game-card img {
    width: 100%; aspect-ratio: 1; border-radius: 6px; object-fit: cover;
    margin-bottom: 0.4rem;
}
.wc78e-game-card span {
    font-size: 1rem; color: var(--wc78e-text-muted); text-align: center;
    line-height: 1.2rem; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* === Content Cards === */
.wc78e-card {
    background: var(--wc78e-bg-card); border-radius: var(--wc78e-radius);
    padding: 1.5rem; margin-bottom: 1.2rem;
    border: 1px solid var(--wc78e-border);
}
.wc78e-card h3 {
    font-size: 1.5rem; font-weight: 700; margin-bottom: 0.8rem;
    color: var(--wc78e-accent);
}
.wc78e-card p {
    font-size: 1.3rem; line-height: 1.6rem; color: var(--wc78e-text-muted);
    margin-bottom: 0.8rem;
}

/* === Promo CTA === */
.wc78e-cta-box {
    background: linear-gradient(135deg, var(--wc78e-primary), #FF9966);
    border-radius: var(--wc78e-radius); padding: 2rem 1.5rem;
    text-align: center; margin: 1.5rem 0;
}
.wc78e-cta-box h3 {
    font-size: 1.8rem; color: var(--wc78e-bg); margin-bottom: 0.8rem; font-weight: 800;
}
.wc78e-cta-box p { color: rgba(45,45,45,0.85); font-size: 1.3rem; margin-bottom: 1.2rem; }
.wc78e-cta-btn {
    display: inline-block; padding: 1rem 2.5rem;
    background: var(--wc78e-bg); color: var(--wc78e-accent);
    border-radius: var(--wc78e-radius-sm); font-weight: 800;
    font-size: 1.4rem; cursor: pointer; border: none;
    transition: var(--wc78e-transition);
}
.wc78e-cta-btn:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

/* === Promo Link Styling === */
.wc78e-promo-link {
    color: var(--wc78e-primary); font-weight: 700; cursor: pointer;
    border-bottom: 1px dashed var(--wc78e-primary);
    transition: var(--wc78e-transition);
}
.wc78e-promo-link:hover { color: var(--wc78e-accent); border-color: var(--wc78e-accent); }

/* === Footer === */
.wc78e-footer {
    background: linear-gradient(180deg, #1A1A1A, #111);
    padding: 2rem 1.2rem 1rem; border-top: 2px solid var(--wc78e-primary);
}
.wc78e-footer-brand { margin-bottom: 1.5rem; }
.wc78e-footer-brand p { font-size: 1.2rem; color: var(--wc78e-text-muted); line-height: 1.6rem; }
.wc78e-footer-links {
    display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem;
}
.wc78e-footer-link {
    padding: 0.5rem 1rem; background: var(--wc78e-bg-light);
    border-radius: var(--wc78e-radius-sm); font-size: 1.1rem;
    color: var(--wc78e-text-muted); cursor: pointer; transition: var(--wc78e-transition);
}
.wc78e-footer-link:hover { color: var(--wc78e-primary); background: rgba(255,127,80,0.1); }
.wc78e-footer-site-links {
    display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem;
    justify-content: center;
}
.wc78e-footer-site-links a {
    font-size: 1.1rem; color: var(--wc78e-accent2);
}
.wc78e-footer-site-links a:hover { color: var(--wc78e-accent); }
.wc78e-copyright {
    text-align: center; font-size: 1.1rem; color: var(--wc78e-text-muted);
    padding-top: 1rem; border-top: 1px solid var(--wc78e-border);
}

/* === Bottom Navigation === */
.wc78e-bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 430px; height: 60px;
    background: linear-gradient(180deg, #1A1A1A, #111);
    display: flex; justify-content: space-around; align-items: center;
    z-index: 1000; border-top: 2px solid var(--wc78e-primary);
    box-shadow: 0 -2px 16px rgba(255,127,80,0.1);
}
.wc78e-bottom-nav-item {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-width: 60px; min-height: 60px;
    cursor: pointer; color: var(--wc78e-text-muted); transition: var(--wc78e-transition);
    background: none; border: none; font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.wc78e-bottom-nav-item:active { transform: scale(0.92); }
.wc78e-bottom-nav-item .wc78e-bnav-icon { font-size: 2.2rem; margin-bottom: 2px; }
.wc78e-bottom-nav-item .wc78e-bnav-text { font-size: 1rem; font-weight: 600; }
.wc78e-nav-active { color: var(--wc78e-primary) !important; }
.wc78e-nav-active .wc78e-bnav-icon { text-shadow: 0 0 10px rgba(255,127,80,0.5); }
@media (min-width: 769px) {
    .wc78e-bottom-nav { display: none; }
    main { padding-bottom: 0; }
}

/* === Utility === */
.wc78e-text-center { text-align: center; }
.wc78e-mb-1 { margin-bottom: 1rem; }
.wc78e-mb-2 { margin-bottom: 2rem; }
.wc78e-hidden { display: none !important; }
.wc78e-divider {
    height: 1px; background: var(--wc78e-border); margin: 1.5rem 0;
}

/* === Testimonial === */
.wc78e-testimonial {
    background: var(--wc78e-bg-card); border-radius: var(--wc78e-radius);
    padding: 1.2rem; margin-bottom: 1rem; border-left: 3px solid var(--wc78e-primary);
}
.wc78e-testimonial p { font-style: italic; font-size: 1.2rem; color: var(--wc78e-text-muted); }
.wc78e-testimonial cite {
    display: block; margin-top: 0.5rem; font-size: 1.1rem;
    color: var(--wc78e-accent); font-style: normal; font-weight: 600;
}

/* === Winner Display === */
.wc78e-winner-item {
    display: flex; align-items: center; gap: 1rem; padding: 0.8rem;
    background: var(--wc78e-bg-card); border-radius: var(--wc78e-radius-sm);
    margin-bottom: 0.6rem;
}
.wc78e-winner-item img { width: 36px; height: 36px; border-radius: 50%; }
.wc78e-winner-info { flex: 1; }
.wc78e-winner-name { font-size: 1.2rem; font-weight: 600; color: var(--wc78e-accent); }
.wc78e-winner-amount { font-size: 1.1rem; color: var(--wc78e-primary); font-weight: 700; }

/* === Payment Icons === */
.wc78e-payment-row {
    display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0;
}
.wc78e-payment-item {
    background: var(--wc78e-bg-light); border-radius: var(--wc78e-radius-sm);
    padding: 0.6rem 1.2rem; font-size: 1.1rem; color: var(--wc78e-accent3);
    border: 1px solid var(--wc78e-border);
}

/* === FAQ Section === */
.wc78e-faq-item {
    border-bottom: 1px solid var(--wc78e-border); padding: 1.2rem 0;
}
.wc78e-faq-item h3 {
    font-size: 1.3rem; color: var(--wc78e-accent); margin-bottom: 0.5rem;
}
.wc78e-faq-item p { font-size: 1.2rem; color: var(--wc78e-text-muted); line-height: 1.6rem; }

/* === Feature Grid === */
.wc78e-feature-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.wc78e-feature-item {
    background: var(--wc78e-bg-card); border-radius: var(--wc78e-radius-sm);
    padding: 1.2rem; text-align: center;
    border: 1px solid var(--wc78e-border);
}
.wc78e-feature-item .wc78e-feat-icon { font-size: 2.4rem; margin-bottom: 0.5rem; }
.wc78e-feature-item h4 { font-size: 1.2rem; color: var(--wc78e-accent); margin-bottom: 0.3rem; }
.wc78e-feature-item p { font-size: 1rem; color: var(--wc78e-text-muted); }

/* === RTP Table === */
.wc78e-rtp-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 0; border-bottom: 1px solid var(--wc78e-border);
}
.wc78e-rtp-name { font-size: 1.2rem; color: var(--wc78e-text); flex: 1; }
.wc78e-rtp-bar {
    flex: 2; height: 8px; background: var(--wc78e-bg-light);
    border-radius: 4px; overflow: hidden; margin: 0 0.8rem;
}
.wc78e-rtp-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.wc78e-rtp-value { font-size: 1.2rem; color: var(--wc78e-accent); font-weight: 700; min-width: 42px; text-align: right; }

/* === App Download === */
.wc78e-app-dl {
    background: linear-gradient(135deg, #1A1A1A, var(--wc78e-bg));
    border-radius: var(--wc78e-radius); padding: 2rem 1.5rem;
    text-align: center; border: 2px solid var(--wc78e-accent2);
}
.wc78e-app-dl h3 { font-size: 1.6rem; color: var(--wc78e-accent2); margin-bottom: 1rem; }
.wc78e-app-dl p { font-size: 1.2rem; color: var(--wc78e-text-muted); margin-bottom: 1.5rem; }
.wc78e-dl-btn {
    display: inline-block; padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--wc78e-accent2), #5A9ECF);
    color: var(--wc78e-bg); border-radius: var(--wc78e-radius-sm);
    font-weight: 800; font-size: 1.4rem; cursor: pointer; border: none;
    transition: var(--wc78e-transition);
}
.wc78e-dl-btn:hover { transform: scale(1.05); }
