/* PhPlus Core Stylesheet */
/* Prefix: s545- | All classes use s545- prefix for namespace isolation */
/* Color palette: #FFB3FF | #32CD32 | #008000 | #1A1A1A */

/* CSS Variables */
:root {
    --s545-primary: #32CD32;
    --s545-secondary: #FFB3FF;
    --s545-dark: #1A1A1A;
    --s545-green-deep: #008000;
    --s545-bg: #0d0d0d;
    --s545-text: #f0f0f0;
    --s545-muted: #aaaaaa;
    --s545-accent: #FFB3FF;
    --s545-card-bg: #1e1e1e;
    --s545-border: #2a2a2a;
    --s545-gradient: linear-gradient(135deg, #008000 0%, #32CD32 100%);
    --s545-gradient-pink: linear-gradient(135deg, #FFB3FF 0%, #ff8ce0 100%);
    --s545-radius: 8px;
    --s545-radius-lg: 14px;
    --s545-shadow: 0 4px 15px rgba(0,0,0,0.4);
    --s545-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: var(--s545-font);
    background: var(--s545-bg);
    color: var(--s545-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--s545-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--s545-secondary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* Header */
.s545-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(13,13,13,0.96); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--s545-border);
    padding: 0 1rem; height: 5.4rem;
}
.s545-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 430px; margin: 0 auto; height: 100%;
}
.s545-logo-area { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.s545-logo-area img { width: 3rem; height: 3rem; border-radius: 6px; }
.s545-logo-text { font-size: 1.8rem; font-weight: 800; color: var(--s545-primary); letter-spacing: -0.5px; }
.s545-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s545-btn-register {
    background: var(--s545-gradient); color: #fff; border: none;
    padding: 0.6rem 1.4rem; border-radius: 20px; font-size: 1.2rem;
    font-weight: 700; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s;
}
.s545-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 12px rgba(50,205,50,0.4); }
.s545-btn-login {
    background: transparent; color: var(--s545-secondary); border: 1.5px solid var(--s545-secondary);
    padding: 0.55rem 1.3rem; border-radius: 20px; font-size: 1.2rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.s545-btn-login:hover { background: rgba(255,179,255,0.12); }
.s545-menu-btn {
    background: none; border: none; color: var(--s545-text);
    font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
    display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.s545-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 9998;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.s545-overlay-active { opacity: 1; visibility: visible; }
.s545-mobile-menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
    background: #151515; z-index: 9999; transition: right 0.3s ease;
    padding: 2rem 1.5rem; overflow-y: auto;
}
.s545-menu-active { right: 0 !important; }
.s545-mobile-menu .s545-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--s545-border);
}
.s545-mobile-menu .s545-menu-title { font-size: 1.6rem; font-weight: 700; color: var(--s545-primary); }
.s545-menu-close { background: none; border: none; color: var(--s545-muted); font-size: 2rem; cursor: pointer; }
.s545-mobile-menu nav a {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.1rem 0.8rem; color: var(--s545-text); font-size: 1.4rem;
    border-radius: var(--s545-radius); transition: background 0.2s; font-weight: 500;
}
.s545-mobile-menu nav a:hover { background: rgba(50,205,50,0.1); color: var(--s545-primary); }
.s545-mobile-menu nav a .material-symbols-outlined { font-size: 2rem; }

/* Carousel */
.s545-carousel { position: relative; overflow: hidden; border-radius: var(--s545-radius-lg); margin-top: 0.5rem; }
.s545-slide {
    display: none; width: 100%; aspect-ratio: 16/9; object-fit: cover; cursor: pointer; border-radius: var(--s545-radius-lg);
}
.s545-slide-active { display: block; }
.s545-carousel-dots {
    display: flex; justify-content: center; gap: 0.6rem;
    padding: 0.8rem 0;
}
.s545-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #444; cursor: pointer; transition: all 0.3s; border: none;
}
.s545-dot-active { background: var(--s545-primary); transform: scale(1.3); }

/* Sections */
.s545-section { padding: 2rem 0; }
.s545-section-title {
    font-size: 1.8rem; font-weight: 800; margin-bottom: 1.2rem;
    padding-bottom: 0.6rem; border-bottom: 2px solid var(--s545-primary);
    display: inline-block;
}

/* Game Grid */
.s545-game-category-title {
    font-size: 1.5rem; font-weight: 700; color: var(--s545-secondary);
    margin: 1.5rem 0 0.8rem; padding-left: 0.4rem;
    border-left: 3px solid var(--s545-primary); padding-left: 0.8rem;
}
.s545-game-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
}
.s545-game-item { text-align: center; cursor: pointer; transition: transform 0.2s; }
.s545-game-item:hover { transform: translateY(-3px); }
.s545-game-item img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: var(--s545-radius); border: 1.5px solid var(--s545-border);
    transition: border-color 0.2s;
}
.s545-game-item:hover img { border-color: var(--s545-primary); }
.s545-game-name {
    font-size: 1.05rem; color: var(--s545-text); margin-top: 0.3rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-weight: 500;
}

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

/* Promo CTA */
.s545-cta {
    display: inline-block; background: var(--s545-gradient); color: #fff;
    padding: 1rem 2.4rem; border-radius: 30px; font-size: 1.5rem;
    font-weight: 700; cursor: pointer; border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.s545-cta:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(50,205,50,0.35); color: #fff; }
.s545-cta-pink {
    background: var(--s545-gradient-pink);
}
.s545-cta-pink:hover { box-shadow: 0 4px 20px rgba(255,179,255,0.35); }
.s545-text-link {
    color: var(--s545-secondary); font-weight: 600;
    text-decoration: underline; text-underline-offset: 2px;
}
.s545-text-link:hover { color: var(--s545-primary); }

/* Footer */
.s545-footer {
    background: #111; padding: 2.5rem 0 8rem; border-top: 1px solid var(--s545-border);
    margin-top: 2rem;
}
.s545-footer-brand { text-align: center; margin-bottom: 1.5rem; }
.s545-footer-brand p { font-size: 1.2rem; color: var(--s545-muted); line-height: 1.7rem; }
.s545-footer-links {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.s545-footer-links a {
    background: var(--s545-card-bg); padding: 0.5rem 1.2rem; border-radius: 20px;
    font-size: 1.1rem; color: var(--s545-text); border: 1px solid var(--s545-border);
    transition: all 0.2s;
}
.s545-footer-links a:hover { border-color: var(--s545-primary); color: var(--s545-primary); }
.s545-footer-copy { text-align: center; font-size: 1.1rem; color: #555; padding-top: 1rem; }

/* Bottom Navigation */
.s545-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(18,18,18,0.97); backdrop-filter: blur(12px);
    border-top: 1px solid var(--s545-border);
    display: flex; justify-content: space-around; align-items: center;
    height: 60px; padding: 0 0.4rem;
}
.s545-bottom-nav-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 58px; min-height: 56px; background: none; border: none;
    color: var(--s545-muted); cursor: pointer; transition: all 0.2s;
    gap: 0.2rem; position: relative;
}
.s545-bottom-nav-btn i,
.s545-bottom-nav-btn .material-symbols-outlined,
.s545-bottom-nav-btn ion-icon { font-size: 2.2rem; transition: all 0.2s; }
.s545-bottom-nav-btn span { font-size: 1rem; font-weight: 500; }
.s545-bottom-nav-btn:hover,
.s545-bottom-nav-btn.s545-nav-active {
    color: var(--s545-primary);
}
.s545-bottom-nav-btn.s545-nav-active::after {
    content: ''; position: absolute; top: -1px; left: 20%; right: 20%;
    height: 2px; background: var(--s545-primary); border-radius: 2px;
}
.s545-bottom-nav-btn:hover { transform: scale(1.08); }
.s545-bottom-nav-btn:active { transform: scale(0.95); }

/* Utility Classes */
.s545-text-center { text-align: center; }
.s545-text-pink { color: var(--s545-secondary); }
.s545-text-green { color: var(--s545-primary); }
.s545-mt-1 { margin-top: 1rem; }
.s545-mt-2 { margin-top: 2rem; }
.s545-mb-1 { margin-bottom: 1rem; }
.s545-mb-2 { margin-bottom: 2rem; }
.s545-py-2 { padding: 2rem 0; }

/* Content Modules */
.s545-faq-item { margin-bottom: 1rem; }
.s545-faq-q {
    font-size: 1.35rem; font-weight: 700; color: var(--s545-primary);
    margin-bottom: 0.4rem; padding-left: 1.2rem; position: relative;
}
.s545-faq-q::before { content: 'Q'; position: absolute; left: 0; color: var(--s545-secondary); font-weight: 800; }
.s545-faq-a { font-size: 1.25rem; color: var(--s545-muted); line-height: 1.7rem; padding-left: 1.2rem; }

.s545-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.s545-feature-item {
    background: var(--s545-card-bg); border-radius: var(--s545-radius);
    padding: 1.2rem; text-align: center; border: 1px solid var(--s545-border);
    transition: border-color 0.2s;
}
.s545-feature-item:hover { border-color: var(--s545-primary); }
.s545-feature-item i { font-size: 2.4rem; color: var(--s545-primary); margin-bottom: 0.5rem; }
.s545-feature-item h4 { font-size: 1.2rem; color: var(--s545-text); margin-bottom: 0.3rem; }
.s545-feature-item p { font-size: 1.05rem; color: var(--s545-muted); }

.s545-winner-ticker {
    display: flex; gap: 1rem; overflow-x: auto; padding: 0.5rem 0;
    scrollbar-width: none;
}
.s545-winner-ticker::-webkit-scrollbar { display: none; }
.s545-winner-item {
    flex-shrink: 0; background: var(--s545-card-bg); border-radius: var(--s545-radius);
    padding: 0.8rem 1.2rem; border: 1px solid var(--s545-border); min-width: 140px;
}
.s545-winner-name { font-size: 1.1rem; color: var(--s545-secondary); font-weight: 600; }
.s545-winner-game { font-size: 1rem; color: var(--s545-muted); }
.s545-winner-amount { font-size: 1.3rem; color: var(--s545-primary); font-weight: 800; }

.s545-payment-icons {
    display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
    padding: 1rem 0;
}
.s545-payment-icon {
    background: var(--s545-card-bg); padding: 0.6rem 1.2rem;
    border-radius: var(--s545-radius); border: 1px solid var(--s545-border);
    font-size: 1.2rem; color: var(--s545-text);
}

.s545-rtp-table { width: 100%; border-collapse: collapse; }
.s545-rtp-table th {
    background: var(--s545-green-deep); color: #fff; padding: 0.7rem 0.5rem;
    font-size: 1.15rem; text-align: left; font-weight: 600;
}
.s545-rtp-table td {
    padding: 0.6rem 0.5rem; font-size: 1.15rem; color: var(--s545-muted);
    border-bottom: 1px solid var(--s545-border);
}
.s545-rtp-table tr:hover td { color: var(--s545-text); }

.s545-testimonial {
    background: var(--s545-card-bg); border-radius: var(--s545-radius-lg);
    padding: 1.4rem; border-left: 3px solid var(--s545-primary); margin-bottom: 1rem;
}
.s545-testimonial-text { font-size: 1.2rem; color: var(--s545-muted); line-height: 1.6rem; font-style: italic; }
.s545-testimonial-author { font-size: 1.1rem; color: var(--s545-secondary); margin-top: 0.5rem; font-weight: 600; }

/* Responsive */
@media (min-width: 769px) {
    .s545-bottom-nav { display: none; }
    .s545-container { max-width: 430px; }
}
@media (max-width: 768px) {
    main { padding-bottom: 72px; }
    .s545-header { padding: 0 0.8rem; }
}
