/* 38888 Layout Styles - Prefix: v8a8- */
/* Color Palette: #FFE135 | #333333 | #9400D3 | #D8BFD8 | #F4A460 */
/* Dark background, light text for mobile readability */

:root {
    --v8a8-primary: #9400D3;
    --v8a8-accent: #FFE135;
    --v8a8-bg-dark: #1a0a2e;
    --v8a8-bg-card: #2d1854;
    --v8a8-bg-section: #241045;
    --v8a8-text-light: #F4A460;
    --v8a8-text-white: #ffffff;
    --v8a8-text-muted: #D8BFD8;
    --v8a8-gold: #FFE135;
    --v8a8-purple: #9400D3;
    --v8a8-border: #3d2066;
    --v8a8-shadow: rgba(148, 0, 211, 0.3);
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
    background: var(--v8a8-bg-dark);
    color: var(--v8a8-text-white);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
}

a { color: var(--v8a8-gold); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* === HEADER === */
.v8a8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1854 100%);
    border-bottom: 2px solid var(--v8a8-gold);
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.v8a8-logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.v8a8-logo-area img { width: 30px; height: 30px; border-radius: 6px; }
.v8a8-logo-area span {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--v8a8-gold), #F4A460);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.v8a8-header-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.v8a8-btn-register, .v8a8-btn-login {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.v8a8-btn-register {
    background: linear-gradient(135deg, var(--v8a8-gold), #F4A460);
    color: #333;
}
.v8a8-btn-login {
    background: transparent;
    color: var(--v8a8-gold);
    border: 1.5px solid var(--v8a8-gold);
}
.v8a8-btn-register:hover, .v8a8-btn-login:hover { transform: scale(1.05); }

.v8a8-menu-toggle {
    background: none;
    border: none;
    color: var(--v8a8-gold);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
}

/* === MOBILE MENU === */
.v8a8-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}
.v8a8-overlay-active { display: block; }

.v8a8-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: var(--v8a8-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    border-left: 2px solid var(--v8a8-gold);
    overflow-y: auto;
}
.v8a8-menu-active { right: 0; }
.v8a8-mobile-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 0;
    color: var(--v8a8-text-white);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--v8a8-border);
    transition: color 0.2s;
}
.v8a8-mobile-menu a:hover { color: var(--v8a8-gold); }
.v8a8-mobile-menu .material-icons,
.v8a8-mobile-menu .fas,
.v8a8-mobile-menu .bi { font-size: 20px; color: var(--v8a8-gold); }

.v8a8-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--v8a8-text-white);
    font-size: 2.4rem;
    cursor: pointer;
}

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

/* === CAROUSEL === */
.v8a8-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 4px;
}
.v8a8-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}
.v8a8-slide img { width: 100%; height: auto; border-radius: 0 0 8px 8px; }
.v8a8-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 0;
}
.v8a8-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--v8a8-border);
    cursor: pointer;
    transition: background 0.3s;
}
.v8a8-dot-active { background: var(--v8a8-gold); }

/* === SECTION === */
.v8a8-section {
    padding: 1.5rem 1rem;
}
.v8a8-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--v8a8-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.v8a8-section-title i,
.v8a8-section-title .material-icons { font-size: 22px; }

/* === GAME GRID === */
.v8a8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}
.v8a8-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 8px;
    padding: 0.4rem;
    background: var(--v8a8-bg-card);
}
.v8a8-game-item:hover { transform: scale(1.05); }
.v8a8-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    margin-bottom: 0.3rem;
    object-fit: cover;
}
.v8a8-game-item span {
    font-size: 1rem;
    color: var(--v8a8-text-muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* === CATEGORY HEADER === */
.v8a8-cat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.2rem 0 0.8rem;
    padding: 0.6rem 0.8rem;
    background: linear-gradient(90deg, var(--v8a8-purple), transparent);
    border-left: 3px solid var(--v8a8-gold);
    border-radius: 0 6px 6px 0;
}
.v8a8-cat-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v8a8-gold);
}
.v8a8-cat-header i,
.v8a8-cat-header .material-icons { font-size: 20px; color: var(--v8a8-gold); }

/* === CARDS === */
.v8a8-card {
    background: var(--v8a8-bg-card);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--v8a8-border);
}
.v8a8-card h3 {
    font-size: 1.4rem;
    color: var(--v8a8-gold);
    margin-bottom: 0.6rem;
}
.v8a8-card p {
    font-size: 1.3rem;
    color: var(--v8a8-text-muted);
    line-height: 1.6;
}

/* === PROMO BUTTON === */
.v8a8-promo-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--v8a8-gold), #F4A460);
    color: #333;
    font-weight: 800;
    font-size: 1.4rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 225, 53, 0.3);
}
.v8a8-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 225, 53, 0.5);
}

.v8a8-promo-text {
    color: var(--v8a8-gold);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}
.v8a8-promo-text:hover { color: #F4A460; }

/* === FEATURES GRID === */
.v8a8-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}
.v8a8-feature-item {
    background: var(--v8a8-bg-card);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--v8a8-border);
}
.v8a8-feature-item i,
.v8a8-feature-item .material-icons {
    font-size: 28px;
    color: var(--v8a8-gold);
    margin-bottom: 0.4rem;
}
.v8a8-feature-item h3 {
    font-size: 1.2rem;
    color: var(--v8a8-text-white);
    margin-bottom: 0.3rem;
}
.v8a8-feature-item p {
    font-size: 1.1rem;
    color: var(--v8a8-text-muted);
}

/* === TESTIMONIALS === */
.v8a8-testimonial {
    background: var(--v8a8-bg-card);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--v8a8-gold);
}
.v8a8-testimonial-user {
    font-size: 1.2rem;
    color: var(--v8a8-gold);
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.v8a8-testimonial-text {
    font-size: 1.2rem;
    color: var(--v8a8-text-muted);
    font-style: italic;
}

/* === WINNER TABLE === */
.v8a8-winner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--v8a8-border);
    font-size: 1.2rem;
}
.v8a8-winner-name { color: var(--v8a8-text-white); }
.v8a8-winner-game { color: var(--v8a8-text-muted); }
.v8a8-winner-amount { color: var(--v8a8-gold); font-weight: 700; }

/* === PAYMENT === */
.v8a8-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}
.v8a8-payment-item {
    background: var(--v8a8-bg-card);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--v8a8-border);
    font-size: 1.2rem;
    color: var(--v8a8-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* === FOOTER === */
.v8a8-footer {
    background: var(--v8a8-bg-section);
    padding: 2rem 1rem 3rem;
    text-align: center;
    max-width: 430px;
    margin: 0 auto;
}
.v8a8-footer-desc {
    font-size: 1.2rem;
    color: var(--v8a8-text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}
.v8a8-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}
.v8a8-footer-links a {
    padding: 0.4rem 0.8rem;
    background: var(--v8a8-bg-card);
    border-radius: 15px;
    font-size: 1.1rem;
    color: var(--v8a8-text-muted);
    border: 1px solid var(--v8a8-border);
    transition: color 0.2s, border-color 0.2s;
}
.v8a8-footer-links a:hover {
    color: var(--v8a8-gold);
    border-color: var(--v8a8-gold);
}
.v8a8-footer-copy {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.8rem;
}

/* === BOTTOM NAV === */
.v8a8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #2d1854, #1a0a2e);
    border-top: 2px solid var(--v8a8-gold);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    max-width: 430px;
    margin: 0 auto;
}
.v8a8-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    background: none;
    border: none;
    color: var(--v8a8-text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0.2rem;
}
.v8a8-bottom-nav-btn:hover,
.v8a8-nav-active {
    color: var(--v8a8-gold);
    transform: scale(1.1);
}
.v8a8-bottom-nav-btn .fas,
.v8a8-bottom-nav-btn .far,
.v8a8-bottom-nav-btn .material-icons,
.v8a8-bottom-nav-btn ion-icon,
.v8a8-bottom-nav-btn .bi {
    font-size: 22px;
}
.v8a8-bottom-nav-btn span {
    font-size: 1rem;
    margin-top: 0.1rem;
    white-space: nowrap;
}
@media (min-width: 769px) {
    .v8a8-bottom-nav { display: none; }
}

/* === CTA SECTION === */
.v8a8-cta-section {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--v8a8-bg-card), var(--v8a8-purple));
    border-radius: 12px;
    margin: 1rem;
}
.v8a8-cta-section h2 {
    font-size: 1.8rem;
    color: var(--v8a8-gold);
    margin-bottom: 0.6rem;
}
.v8a8-cta-section p {
    font-size: 1.3rem;
    color: var(--v8a8-text-muted);
    margin-bottom: 1.2rem;
}

/* === APP DOWNLOAD === */
.v8a8-app-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--v8a8-bg-card);
    border-radius: 12px;
    border: 1px solid var(--v8a8-border);
    margin: 0.8rem 0;
}
.v8a8-app-icon {
    font-size: 40px;
    color: var(--v8a8-gold);
    flex-shrink: 0;
}
.v8a8-app-info h3 {
    font-size: 1.3rem;
    color: var(--v8a8-text-white);
    margin-bottom: 0.3rem;
}
.v8a8-app-info p {
    font-size: 1.1rem;
    color: var(--v8a8-text-muted);
}

/* === HELP CONTENT === */
.v8a8-help-section {
    padding: 1.5rem 1rem;
}
.v8a8-help-section h1 {
    font-size: 2rem;
    color: var(--v8a8-gold);
    margin-bottom: 1rem;
}
.v8a8-help-section h2 {
    font-size: 1.6rem;
    color: var(--v8a8-gold);
    margin: 1.2rem 0 0.6rem;
}
.v8a8-help-section p {
    font-size: 1.3rem;
    color: var(--v8a8-text-muted);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}
.v8a8-help-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.v8a8-help-section li {
    font-size: 1.3rem;
    color: var(--v8a8-text-muted);
    line-height: 1.7;
    margin-bottom: 0.4rem;
}
.v8a8-faq-item {
    background: var(--v8a8-bg-card);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--v8a8-border);
}
.v8a8-faq-item strong {
    color: var(--v8a8-gold);
    font-size: 1.3rem;
}
.v8a8-faq-item p {
    color: var(--v8a8-text-muted);
    font-size: 1.2rem;
    margin-top: 0.4rem;
}

/* === RTP TABLE === */
.v8a8-rtp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--v8a8-border);
    font-size: 1.2rem;
}
.v8a8-rtp-name { color: var(--v8a8-text-white); flex: 1; }
.v8a8-rtp-bar {
    flex: 2;
    height: 6px;
    background: var(--v8a8-border);
    border-radius: 3px;
    margin: 0 0.6rem;
    overflow: hidden;
}
.v8a8-rtp-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--v8a8-purple), var(--v8a8-gold));
}
.v8a8-rtp-value { color: var(--v8a8-gold); font-weight: 700; min-width: 40px; text-align: right; }

/* === INTERNAL LINK === */
.v8a8-internal-link {
    color: var(--v8a8-text-light);
    text-decoration: underline;
    transition: color 0.2s;
}
.v8a8-internal-link:hover { color: var(--v8a8-gold); }
