/**
 * PH365APP - Core Stylesheet
 * All classes use prefix "s53e-" for namespace isolation
 * Color palette: #1A1A2E | #2E8B57 | #000080 | #00FF7F | #F8F9FA
 * Mobile-first design, max-width: 430px
 */

/* CSS Variables */
:root {
    --s53e-primary: #2E8B57;
    --s53e-secondary: #000080;
    --s53e-accent: #00FF7F;
    --s53e-bg-dark: #1A1A2E;
    --s53e-bg-card: #16213E;
    --s53e-bg-section: #0F3460;
    --s53e-text-light: #F8F9FA;
    --s53e-text-muted: #B0B8C1;
    --s53e-border: #2C3E6B;
    --s53e-gold: #FFD700;
    --s53e-red: #E74C3C;
    --s53e-font-size: 62.5%;
}

/* Reset & Base */
html { font-size: var(--s53e-font-size); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--s53e-bg-dark);
    color: var(--s53e-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
}
a { color: var(--s53e-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #7FFFD4; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.s53e-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}
.s53e-wrapper {
    width: 100%;
    overflow: hidden;
}

/* ===== HEADER ===== */
.s53e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #0D1B2A 0%, var(--s53e-bg-dark) 100%);
    border-bottom: 2px solid var(--s53e-primary);
    max-width: 430px;
    margin: 0 auto;
}
.s53e-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    min-height: 5.2rem;
}
.s53e-logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}
.s53e-logo-area img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.6rem;
}
.s53e-logo-area span {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--s53e-accent);
    letter-spacing: 0.5px;
}
.s53e-header-btns {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.s53e-btn-register {
    background: linear-gradient(135deg, var(--s53e-primary), #3CB371);
    color: #fff;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    min-height: 3.6rem;
    min-width: 7rem;
}
.s53e-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.5);
}
.s53e-btn-login {
    background: transparent;
    color: var(--s53e-accent);
    border: 2px solid var(--s53e-accent);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 3.6rem;
}
.s53e-btn-login:hover {
    background: rgba(0, 255, 127, 0.1);
}
.s53e-menu-toggle {
    background: none;
    border: none;
    color: var(--s53e-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.s53e-mobile-menu {
    display: none;
    position: fixed;
    top: 5.2rem;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--s53e-bg-dark);
    border-bottom: 2px solid var(--s53e-primary);
    padding: 1rem 0;
    max-width: 430px;
    margin: 0 auto;
}
.s53e-mobile-menu.s53e-menu-active { display: block; }
.s53e-mobile-menu a {
    display: block;
    padding: 1.2rem 2rem;
    color: var(--s53e-text-light);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--s53e-border);
    transition: background 0.2s, color 0.2s;
}
.s53e-mobile-menu a:hover {
    background: var(--s53e-bg-card);
    color: var(--s53e-accent);
}

/* ===== CAROUSEL ===== */
.s53e-carousel {
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    margin-top: 5.2rem;
}
.s53e-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}
.s53e-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.s53e-slide-active { opacity: 1; }
.s53e-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 5;
}
.s53e-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(248, 249, 250, 0.4);
    cursor: pointer;
    transition: background 0.2s;
}
.s53e-dot-active { background: var(--s53e-accent); }

/* ===== MAIN CONTENT ===== */
main {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}
@media (max-width: 768px) {
    main { padding-bottom: 8rem; }
}

/* Section */
.s53e-section {
    padding: 2rem 1.2rem;
    border-bottom: 1px solid var(--s53e-border);
}
.s53e-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--s53e-accent);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--s53e-primary);
}
.s53e-section-subtitle {
    font-size: 1.4rem;
    color: var(--s53e-text-muted);
    margin-bottom: 1rem;
}

/* ===== GAME GRID ===== */
.s53e-game-section { padding: 1.5rem 1.2rem; }
.s53e-game-cat-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--s53e-accent);
    margin-bottom: 1rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--s53e-primary);
}
.s53e-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.s53e-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s;
    border-radius: 0.8rem;
    padding: 0.5rem;
    background: var(--s53e-bg-card);
}
.s53e-game-item:hover { transform: scale(1.05); }
.s53e-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.6rem;
    object-fit: cover;
    margin-bottom: 0.4rem;
}
.s53e-game-name {
    font-size: 1rem;
    color: var(--s53e-text-light);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== CONTENT BLOCKS ===== */
.s53e-content-block {
    background: var(--s53e-bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--s53e-border);
}
.s53e-content-block h2 {
    font-size: 1.7rem;
    color: var(--s53e-accent);
    margin-bottom: 1rem;
}
.s53e-content-block h3 {
    font-size: 1.4rem;
    color: var(--s53e-primary);
    margin: 0.8rem 0;
}
.s53e-content-block p {
    color: var(--s53e-text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}
.s53e-content-block ul, .s53e-content-block ol {
    padding-left: 2rem;
    color: var(--s53e-text-muted);
    margin-bottom: 1rem;
}
.s53e-content-block li { margin-bottom: 0.5rem; }

/* Promo text link */
.s53e-promo-text {
    color: var(--s53e-gold);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}
.s53e-promo-text:hover { color: #FFA500; }

/* Promo button inline */
.s53e-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--s53e-primary), var(--s53e-accent));
    color: var(--s53e-bg-dark);
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 1.3rem;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.2s;
    margin: 0.5rem 0;
}
.s53e-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 255, 127, 0.4);
}

/* Card grid */
.s53e-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.s53e-card {
    background: var(--s53e-bg-section);
    border-radius: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--s53e-border);
    text-align: center;
}
.s53e-card-title {
    font-size: 1.3rem;
    color: var(--s53e-accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Winner list */
.s53e-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--s53e-border);
}
.s53e-winner-name {
    color: var(--s53e-accent);
    font-weight: 600;
}
.s53e-winner-amount {
    color: var(--s53e-gold);
    font-weight: 800;
}

/* RTP bar */
.s53e-rtp-bar {
    background: var(--s53e-bg-section);
    border-radius: 0.5rem;
    height: 1.2rem;
    overflow: hidden;
    margin: 0.3rem 0;
}
.s53e-rtp-fill {
    height: 100%;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, var(--s53e-primary), var(--s53e-accent));
}

/* Testimonial */
.s53e-testimonial {
    background: var(--s53e-bg-section);
    border-radius: 1rem;
    padding: 1.2rem;
    margin: 0.8rem 0;
    border-left: 3px solid var(--s53e-accent);
}
.s53e-testimonial-text {
    font-style: italic;
    color: var(--s53e-text-muted);
    margin-bottom: 0.5rem;
}
.s53e-testimonial-author {
    color: var(--s53e-accent);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Payment icons */
.s53e-payment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 1rem 0;
}
.s53e-pay-icon {
    background: var(--s53e-bg-section);
    border: 1px solid var(--s53e-border);
    border-radius: 0.6rem;
    padding: 0.6rem 1rem;
    font-size: 1.1rem;
    color: var(--s53e-text-muted);
}

/* ===== FOOTER ===== */
.s53e-footer {
    background: linear-gradient(180deg, var(--s53e-bg-dark), #0D1B2A);
    padding: 2rem 1.2rem 1.5rem;
    border-top: 2px solid var(--s53e-primary);
}
.s53e-footer-brand {
    font-size: 1.3rem;
    color: var(--s53e-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.s53e-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.s53e-footer-link {
    background: var(--s53e-bg-card);
    color: var(--s53e-accent);
    padding: 0.6rem 1.2rem;
    border-radius: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid var(--s53e-border);
    cursor: pointer;
    transition: all 0.2s;
}
.s53e-footer-link:hover {
    background: var(--s53e-primary);
    color: #fff;
}
.s53e-footer-promos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.s53e-footer-promo-btn {
    background: linear-gradient(135deg, var(--s53e-primary), var(--s53e-accent));
    color: var(--s53e-bg-dark);
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.15s;
}
.s53e-footer-promo-btn:hover { transform: scale(1.05); }
.s53e-site-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}
.s53e-site-links a {
    color: var(--s53e-text-muted);
    font-size: 1.1rem;
    transition: color 0.2s;
}
.s53e-site-links a:hover { color: var(--s53e-accent); }
.s53e-copyright {
    text-align: center;
    color: var(--s53e-text-muted);
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--s53e-border);
}

/* ===== BOTTOM NAV ===== */
.s53e-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #0D1B2A, #0A1628);
    border-top: 2px solid var(--s53e-primary);
    height: 6rem;
    max-width: 430px;
    margin: 0 auto;
}
.s53e-bnav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 0.3rem;
}
.s53e-bnav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s;
    color: var(--s53e-text-muted);
    position: relative;
}
.s53e-bnav-btn:active { transform: scale(0.92); }
.s53e-bnav-btn i, .s53e-bnav-btn .material-icons {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
    transition: color 0.2s;
}
.s53e-bnav-label {
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.2s;
}
.s53e-bnav-active {
    color: var(--s53e-accent);
}
.s53e-bnav-active i, .s53e-bnav-active .material-icons {
    color: var(--s53e-accent);
}
.s53e-bnav-active .s53e-bnav-label {
    color: var(--s53e-accent);
}
.s53e-bnav-dot {
    position: absolute;
    top: 0.3rem;
    right: 1rem;
    width: 0.6rem;
    height: 0.6rem;
    background: var(--s53e-red);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .s53e-bottom-nav { display: block; }
}
@media (min-width: 769px) {
    .s53e-bottom-nav { display: none; }
}

/* ===== UTILITIES ===== */
.s53e-text-center { text-align: center; }
.s53e-text-gold { color: var(--s53e-gold); }
.s53e-text-accent { color: var(--s53e-accent); }
.s53e-mt-1 { margin-top: 0.5rem; }
.s53e-mt-2 { margin-top: 1rem; }
.s53e-mb-1 { margin-bottom: 0.5rem; }
.s53e-mb-2 { margin-bottom: 1rem; }
.s53e-p-1 { padding: 0.5rem; }
.s53e-p-2 { padding: 1rem; }
.s53e-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.s53e-badge {
    display: inline-block;
    background: var(--s53e-primary);
    color: #fff;
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-weight: 700;
}

/* CTA Download Section */
.s53e-cta-download {
    background: linear-gradient(135deg, var(--s53e-bg-section), var(--s53e-primary));
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin: 1rem 0;
}
.s53e-cta-download h3 {
    color: var(--s53e-accent);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}
.s53e-cta-download p {
    color: var(--s53e-text-muted);
    margin-bottom: 1rem;
}

/* FAQ section */
.s53e-faq-item {
    border-bottom: 1px solid var(--s53e-border);
    padding: 1rem 0;
}
.s53e-faq-q {
    font-weight: 700;
    color: var(--s53e-accent);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}
.s53e-faq-a {
    color: var(--s53e-text-muted);
    line-height: 1.6;
    padding-left: 1rem;
}

/* Achievements */
.s53e-achieve-row {
    display: flex;
    gap: 1rem;
    margin: 0.8rem 0;
    align-items: center;
}
.s53e-achieve-icon {
    font-size: 2rem;
    min-width: 3rem;
    text-align: center;
}
.s53e-achieve-text {
    flex: 1;
}
.s53e-achieve-title {
    font-weight: 700;
    color: var(--s53e-text-light);
}
.s53e-achieve-desc {
    font-size: 1.1rem;
    color: var(--s53e-text-muted);
}
