/* 888phl Layout CSS - v895- prefix namespace */
/* Color palette: #FFD700 #FF7F50 #F08080 #FFF176 #1C2833 */
/* Mobile-first design, max-width 430px */

:root {
    --v895-primary: #FFD700;
    --v895-accent: #FF7F50;
    --v895-soft: #F08080;
    --v895-light: #FFF176;
    --v895-bg: #1C2833;
    --v895-bg-dark: #141D26;
    --v895-bg-card: #22303F;
    --v895-text: #FFFFFF;
    --v895-text-muted: #B0BEC5;
    --v895-border: #2C3E50;
    --v895-gold: #FFD700;
    --v895-success: #4CAF50;
    --v895-radius: 10px;
    --v895-radius-sm: 6px;
    --v895-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--v895-bg);
    color: var(--v895-text);
    line-height: 1.5rem;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ========== HEADER ========== */
.v895-header {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 430px; height: 56px;
    background: var(--v895-bg-dark);
    border-bottom: 2px solid var(--v895-primary);
    z-index: 1000; display: flex; align-items: center;
    justify-content: space-between; padding: 0 1rem;
}
.v895-header-logo {
    display: flex; align-items: center; gap: 0.6rem;
    text-decoration: none; color: var(--v895-primary);
}
.v895-header-logo img { width: 28px; height: 28px; border-radius: 50%; }
.v895-header-logo span { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.5px; }
.v895-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v895-btn-register {
    background: var(--v895-primary); color: var(--v895-bg-dark);
    border: none; padding: 0.5rem 1.2rem; border-radius: var(--v895-radius-sm);
    font-size: 1.2rem; font-weight: 700; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.v895-btn-register:active { transform: scale(0.95); }
.v895-btn-login {
    background: transparent; color: var(--v895-primary);
    border: 1.5px solid var(--v895-primary); padding: 0.5rem 1.2rem;
    border-radius: var(--v895-radius-sm); font-size: 1.2rem;
    font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.v895-btn-login:active { background: var(--v895-primary); color: var(--v895-bg-dark); }
.v895-menu-toggle {
    background: none; border: none; color: var(--v895-primary);
    font-size: 2rem; cursor: pointer; padding: 0.4rem;
    display: flex; align-items: center;
}

/* ========== MOBILE MENU ========== */
.v895-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 9998; display: none;
}
.v895-overlay-active { display: block; }
.v895-mobile-menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background: var(--v895-bg-dark); z-index: 9999;
    transition: right 0.3s ease; padding: 6rem 1.5rem 2rem;
    border-left: 2px solid var(--v895-primary);
}
.v895-menu-active { right: 0; }
.v895-mobile-menu a {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.2rem 1rem; color: var(--v895-text);
    text-decoration: none; font-size: 1.4rem;
    border-bottom: 1px solid var(--v895-border);
    transition: background 0.15s, color 0.15s;
}
.v895-mobile-menu a:hover, .v895-mobile-menu a:active {
    background: var(--v895-bg-card); color: var(--v895-primary);
}
.v895-mobile-menu .v895-menu-icon { font-size: 1.8rem; color: var(--v895-accent); min-width: 24px; text-align: center; }
.v895-menu-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; color: var(--v895-text);
    font-size: 2.4rem; cursor: pointer; line-height: 1;
}

/* ========== MAIN CONTENT ========== */
.v895-main { padding-top: 56px; min-height: 100vh; }
@media (max-width: 768px) { .v895-main { padding-bottom: 80px; } }

/* ========== CAROUSEL ========== */
.v895-carousel {
    position: relative; width: 100%; overflow: hidden;
    margin-top: 56px; border-radius: 0;
}
.v895-carousel-track {
    display: flex; transition: transform 0.5s ease; width: 100%;
}
.v895-carousel-slide {
    min-width: 100%; cursor: pointer; position: relative;
}
.v895-carousel-slide img {
    width: 100%; height: 200px; object-fit: cover; display: block;
}
.v895-carousel-dots {
    position: absolute; bottom: 10px; left: 50%;
    transform: translateX(-50%); display: flex; gap: 8px;
}
.v895-carousel-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer;
    transition: background 0.3s; border: none;
}
.v895-dot-active { background: var(--v895-primary); width: 20px; border-radius: 4px; }

/* ========== SECTIONS ========== */
.v895-section { padding: 2rem 0; }
.v895-section-title {
    font-size: 1.6rem; font-weight: 700; color: var(--v895-primary);
    margin-bottom: 1.2rem; padding: 0 1.2rem;
    display: flex; align-items: center; gap: 0.8rem;
}
.v895-section-title i { font-size: 2rem; }
.v895-section-subtitle {
    font-size: 1.3rem; color: var(--v895-text-muted);
    margin-bottom: 1.5rem; padding: 0 1.2rem; line-height: 1.6;
}

/* ========== GAME GRID ========== */
.v895-game-category { margin-bottom: 2rem; }
.v895-category-label {
    font-size: 1.3rem; font-weight: 600; color: var(--v895-accent);
    margin-bottom: 0.8rem; padding: 0 1.2rem;
    text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; gap: 0.5rem;
}
.v895-game-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem; padding: 0 1.2rem;
}
.v895-game-item {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; cursor: pointer;
    transition: transform 0.15s;
}
.v895-game-item:active { transform: scale(0.93); }
.v895-game-item img {
    width: 72px; height: 72px; border-radius: var(--v895-radius-sm);
    object-fit: cover; border: 2px solid var(--v895-border);
    transition: border-color 0.2s;
}
.v895-game-item:hover img { border-color: var(--v895-primary); }
.v895-game-item span {
    font-size: 1rem; color: var(--v895-text-muted);
    text-align: center; margin-top: 0.3rem;
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; width: 100%;
}

/* ========== CONTENT CARDS ========== */
.v895-card {
    background: var(--v895-bg-card); border-radius: var(--v895-radius);
    padding: 1.5rem; margin: 1rem 1.2rem;
    border: 1px solid var(--v895-border);
}
.v895-card h3 {
    font-size: 1.4rem; color: var(--v895-primary); margin-bottom: 0.8rem;
}
.v895-card p {
    font-size: 1.2rem; color: var(--v895-text-muted); line-height: 1.6;
}
.v895-card-highlight {
    background: linear-gradient(135deg, var(--v895-bg-card), #2A3A4A);
    border-color: var(--v895-primary);
    border-width: 1.5px;
}

/* ========== CTA BUTTONS ========== */
.v895-cta-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.6rem; padding: 1rem 2rem; border-radius: var(--v895-radius);
    font-size: 1.4rem; font-weight: 700; cursor: pointer;
    text-decoration: none; border: none;
    transition: transform 0.15s, box-shadow 0.2s;
}
.v895-cta-btn:active { transform: scale(0.96); }
.v895-cta-primary {
    background: linear-gradient(135deg, var(--v895-primary), var(--v895-accent));
    color: var(--v895-bg-dark); box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}
.v895-cta-accent {
    background: linear-gradient(135deg, var(--v895-accent), var(--v895-soft));
    color: var(--v895-bg-dark);
}
.v895-cta-text {
    background: none; color: var(--v895-primary);
    padding: 0.5rem 0; font-size: 1.3rem;
    text-decoration: underline;
}

/* ========== RTP BAR ========== */
.v895-rtp-bar { margin: 0.5rem 0; }
.v895-rtp-label {
    display: flex; justify-content: space-between;
    font-size: 1.1rem; margin-bottom: 0.3rem;
}
.v895-rtp-label span:first-child { color: var(--v895-text-muted); }
.v895-rtp-label span:last-child { color: var(--v895-primary); font-weight: 600; }
.v895-rtp-track {
    height: 6px; background: var(--v895-bg);
    border-radius: 3px; overflow: hidden;
}
.v895-rtp-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, var(--v895-accent), var(--v895-primary));
}

/* ========== TESTIMONIAL ========== */
.v895-testimonial {
    background: var(--v895-bg-card); border-radius: var(--v895-radius);
    padding: 1.2rem; margin: 0.6rem 1.2rem;
    border-left: 3px solid var(--v895-primary);
}
.v895-testimonial-author {
    font-size: 1.1rem; color: var(--v895-primary); font-weight: 600;
}
.v895-testimonial-text {
    font-size: 1.15rem; color: var(--v895-text-muted); margin-top: 0.4rem;
    line-height: 1.5; font-style: italic;
}

/* ========== WINNER SHOWCASE ========== */
.v895-winner {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--v895-border);
}
.v895-winner-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--v895-bg-card); display: flex;
    align-items: center; justify-content: center;
    color: var(--v895-primary); font-size: 1.4rem;
}
.v895-winner-info { flex: 1; }
.v895-winner-name { font-size: 1.15rem; font-weight: 600; }
.v895-winner-game { font-size: 1rem; color: var(--v895-text-muted); }
.v895-winner-amount {
    font-size: 1.3rem; font-weight: 700; color: var(--v895-primary);
}

/* ========== FOOTER ========== */
.v895-footer {
    background: var(--v895-bg-dark); padding: 2rem 1.2rem 1rem;
    border-top: 2px solid var(--v895-primary);
}
.v895-footer-brand {
    font-size: 1.2rem; color: var(--v895-text-muted);
    line-height: 1.6; margin-bottom: 1.5rem;
}
.v895-footer-links {
    display: flex; flex-wrap: wrap; gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.v895-footer-links a {
    padding: 0.5rem 1rem; background: var(--v895-bg-card);
    border-radius: var(--v895-radius-sm); font-size: 1.1rem;
    color: var(--v895-text-muted); text-decoration: none;
    border: 1px solid var(--v895-border); transition: all 0.15s;
}
.v895-footer-links a:hover { color: var(--v895-primary); border-color: var(--v895-primary); }
.v895-footer-copy {
    text-align: center; font-size: 1rem;
    color: var(--v895-text-muted); padding-top: 1rem;
    border-top: 1px solid var(--v895-border);
}

/* ========== BOTTOM NAV ========== */
.v895-bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 430px; height: 60px;
    background: var(--v895-bg-dark); z-index: 1000;
    display: flex; justify-content: space-around; align-items: center;
    border-top: 2px solid var(--v895-primary);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.v895-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(--v895-text-muted);
    cursor: pointer; transition: all 0.2s; padding: 0.4rem;
    text-decoration: none; position: relative;
}
.v895-bottom-nav-btn:active { transform: scale(0.9); }
.v895-bottom-nav-btn .v895-nav-icon { font-size: 2.2rem; line-height: 1; }
.v895-bottom-nav-btn .v895-nav-label { font-size: 1rem; margin-top: 0.2rem; }
.v895-bottom-nav-btn.v895-nav-active {
    color: var(--v895-primary);
}
.v895-bottom-nav-btn.v895-nav-active::after {
    content: ''; position: absolute; top: -2px;
    left: 25%; right: 25%; height: 3px;
    background: var(--v895-primary); border-radius: 0 0 3px 3px;
}
@media (min-width: 769px) { .v895-bottom-nav { display: none; } }

/* ========== UTILITIES ========== */
.v895-text-center { text-align: center; }
.v895-text-gold { color: var(--v895-primary); }
.v895-text-accent { color: var(--v895-accent); }
.v895-mt-1 { margin-top: 0.8rem; }
.v895-mt-2 { margin-top: 1.6rem; }
.v895-mb-1 { margin-bottom: 0.8rem; }
.v895-mb-2 { margin-bottom: 1.6rem; }
.v895-py-1 { padding: 0.8rem 0; }
.v895-py-2 { padding: 1.6rem 0; }
.v895-hidden { display: none; }
.v895-divider {
    height: 1px; background: var(--v895-border);
    margin: 1.5rem 1.2rem;
}

/* ========== PAYMENT ICONS ========== */
.v895-payment-row {
    display: flex; justify-content: center; gap: 1rem;
    flex-wrap: wrap; padding: 1rem 0;
}
.v895-payment-icon {
    width: 48px; height: 32px; background: var(--v895-bg-card);
    border-radius: 4px; display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem; color: var(--v895-primary);
    border: 1px solid var(--v895-border);
}

/* ========== HELP PAGE STYLES ========== */
.v895-help-content {
    padding: 1.5rem 1.2rem;
}
.v895-help-content h2 {
    font-size: 1.5rem; color: var(--v895-primary);
    margin: 1.5rem 0 0.8rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--v895-border);
}
.v895-help-content h3 {
    font-size: 1.3rem; color: var(--v895-accent);
    margin: 1.2rem 0 0.6rem;
}
.v895-help-content p {
    font-size: 1.2rem; color: var(--v895-text-muted);
    line-height: 1.7; margin-bottom: 0.8rem;
}
.v895-help-content ul, .v895-help-content ol {
    padding-left: 1.5rem; margin-bottom: 1rem;
}
.v895-help-content li {
    font-size: 1.2rem; color: var(--v895-text-muted);
    line-height: 1.7; margin-bottom: 0.4rem;
}
.v895-faq-item {
    background: var(--v895-bg-card); border-radius: var(--v895-radius);
    padding: 1.2rem; margin-bottom: 0.8rem;
    border: 1px solid var(--v895-border);
}
.v895-faq-item h4 {
    font-size: 1.25rem; color: var(--v895-primary);
    margin-bottom: 0.5rem;
}
.v895-faq-item p {
    font-size: 1.15rem; color: var(--v895-text-muted); line-height: 1.6;
}

/* ========== APP DOWNLOAD CTA ========== */
.v895-app-cta {
    background: linear-gradient(135deg, var(--v895-bg-card), #1A2A3A);
    border-radius: var(--v895-radius); padding: 1.5rem;
    margin: 1rem 1.2rem; text-align: center;
    border: 1.5px solid var(--v895-primary);
}
.v895-app-cta h3 {
    font-size: 1.4rem; color: var(--v895-primary); margin-bottom: 0.5rem;
}
.v895-app-cta p {
    font-size: 1.15rem; color: var(--v895-text-muted); margin-bottom: 1rem;
}

/* ========== PROMO LINK IN TEXT ========== */
.v895-promo-link {
    color: var(--v895-primary); font-weight: 600;
    text-decoration: none; cursor: pointer;
    border-bottom: 1px dashed var(--v895-primary);
}
.v895-promo-link:hover { color: var(--v895-accent); }

/* Internal link style */
.v895-internal-link {
    color: var(--v895-accent); text-decoration: none;
    border-bottom: 1px dotted var(--v895-accent);
}
.v895-internal-link:hover { color: var(--v895-primary); }

/* ========== ACHIEVEMENT BADGE ========== */
.v895-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: var(--v895-bg-card); padding: 0.3rem 0.8rem;
    border-radius: 12px; font-size: 1rem; color: var(--v895-primary);
    border: 1px solid var(--v895-border);
}

/* ========== TRICKS LIST ========== */
.v895-trick-item {
    display: flex; gap: 0.8rem; padding: 0.8rem 0;
    border-bottom: 1px solid var(--v895-border);
}
.v895-trick-num {
    min-width: 28px; height: 28px; border-radius: 50%;
    background: var(--v895-primary); color: var(--v895-bg-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700;
}
.v895-trick-text { font-size: 1.15rem; color: var(--v895-text-muted); line-height: 1.5; }
