/**
 * 49bet - Main CSS Design File
 * All classes use w7bd3- prefix for namespace isolation
 * Code comments in English
 */

/* CSS Variables */
:root {
    --w7bd3-primary: #20B2AA;
    --w7bd3-secondary: #90EE90;
    --w7bd3-accent: #9966CC;
    --w7bd3-highlight: #7CFC00;
    --w7bd3-bg-dark: #2C2C2C;
    --w7bd3-bg-light: #F0F0F0;
    --w7bd3-text-light: #F0F0F0;
    --w7bd3-text-dark: #2C2C2C;
    --w7bd3-bg-card: #1a1a1a;
    --w7bd3-bg-section: #333333;
    --w7bd3-border: #444444;
    --w7bd3-gold: #FFD700;
    --w7bd3-radius: 8px;
    --w7bd3-shadow: 0 2px 12px rgba(0,0,0,0.3);
    --w7bd3-font-size-base: 62.5%;
}

/* Reset & Base */
html { font-size: var(--w7bd3-font-size-base); scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--w7bd3-bg-dark);
    color: var(--w7bd3-text-light);
    line-height: 1.5rem;
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
}

/* Container */
.w7bd3-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w7bd3-wrapper { padding: 1rem 0; }
.w7bd3-section { padding: 1.5rem 0; border-bottom: 1px solid var(--w7bd3-border); }

/* Header */
.w7bd3-header {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 430px; z-index: 1000;
    background: linear-gradient(135deg, #1a1a1a 0%, #2C2C2C 100%);
    border-bottom: 2px solid var(--w7bd3-primary);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.6rem 1rem; height: 5.2rem;
}
.w7bd3-logo-area { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.w7bd3-logo-area img { width: 2.8rem; height: 2.8rem; border-radius: 6px; }
.w7bd3-logo-text { color: var(--w7bd3-primary); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.5px; }
.w7bd3-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w7bd3-btn-register {
    background: linear-gradient(135deg, var(--w7bd3-primary), #17a89e);
    color: #fff; border: none; padding: 0.5rem 1rem; border-radius: 20px;
    font-size: 1.2rem; font-weight: 600; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 3.2rem; min-width: 5.5rem;
}
.w7bd3-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(32,178,170,0.5); }
.w7bd3-btn-login {
    background: transparent; color: var(--w7bd3-primary);
    border: 1.5px solid var(--w7bd3-primary); padding: 0.5rem 1rem;
    border-radius: 20px; font-size: 1.2rem; font-weight: 600; cursor: pointer;
    transition: all 0.2s; min-height: 3.2rem; min-width: 5.5rem;
}
.w7bd3-btn-login:hover { background: var(--w7bd3-primary); color: #fff; }
.w7bd3-menu-toggle {
    background: none; border: none; color: var(--w7bd3-text-light);
    font-size: 2rem; cursor: pointer; padding: 0.4rem;
    display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu Overlay */
.w7bd3-menu-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); z-index: 9998;
}
.w7bd3-overlay-active { display: block; }

/* Mobile Slide Menu */
.w7bd3-mobile-menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background: #1a1a1a; z-index: 9999; transition: right 0.3s ease;
    padding: 2rem 0; overflow-y: auto;
}
.w7bd3-menu-active { right: 0; }
.w7bd3-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem 1.5rem; border-bottom: 1px solid var(--w7bd3-border);
}
.w7bd3-menu-title { color: var(--w7bd3-primary); font-size: 1.6rem; font-weight: 700; }
.w7bd3-menu-close {
    background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
}
.w7bd3-menu-links { list-style: none; padding: 1rem 0; }
.w7bd3-menu-links li { border-bottom: 1px solid #333; }
.w7bd3-menu-links a {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 1.2rem 1.5rem; color: var(--w7bd3-text-light);
    text-decoration: none; font-size: 1.3rem; transition: all 0.2s;
}
.w7bd3-menu-links a:hover { background: rgba(32,178,170,0.15); color: var(--w7bd3-primary); }
.w7bd3-menu-icon { font-size: 1.6rem; width: 2rem; text-align: center; }

/* Bottom Navigation */
.w7bd3-bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 430px; z-index: 1000;
    background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
    border-top: 1.5px solid var(--w7bd3-primary);
    display: flex; justify-content: space-around; align-items: center;
    height: 6rem; padding: 0 0.3rem;
}
.w7bd3-bottom-nav-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 6rem; min-height: 5.2rem; background: none; border: none;
    color: #888; cursor: pointer; transition: all 0.25s; padding: 0.3rem;
    text-decoration: none; border-radius: 8px; position: relative;
}
.w7bd3-bottom-nav-btn:hover, .w7bd3-nav-active {
    color: var(--w7bd3-primary); transform: translateY(-2px);
}
.w7bd3-nav-active::after {
    content: ''; position: absolute; top: -2px; left: 25%; right: 25%;
    height: 2px; background: var(--w7bd3-primary); border-radius: 2px;
}
.w7bd3-bottom-nav-btn i, .w7bd3-bottom-nav-btn .material-symbols-outlined {
    font-size: 2.2rem; margin-bottom: 0.2rem;
}
.w7bd3-bottom-nav-btn span { font-size: 1rem; font-weight: 500; }
.w7bd3-bottom-nav-btn:active { transform: scale(0.92); }

/* Carousel / Slider */
.w7bd3-slider { position: relative; width: 100%; overflow: hidden; border-radius: var(--w7bd3-radius); margin-top: 5.2rem; }
.w7bd3-slide { display: none; width: 100%; cursor: pointer; }
.w7bd3-slide img { width: 100%; height: auto; display: block; border-radius: var(--w7bd3-radius); }
.w7bd3-slide-active { display: block; }
.w7bd3-dots { display: flex; justify-content: center; gap: 0.6rem; padding: 0.8rem 0; }
.w7bd3-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #555;
    cursor: pointer; transition: all 0.3s; border: none;
}
.w7bd3-dot-active { background: var(--w7bd3-primary); transform: scale(1.3); }

/* Game Grid */
.w7bd3-game-section { padding: 1.5rem 0; }
.w7bd3-section-title {
    font-size: 1.6rem; font-weight: 700; color: var(--w7bd3-primary);
    margin-bottom: 1rem; padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--w7bd3-primary);
    display: flex; align-items: center; gap: 0.6rem;
}
.w7bd3-game-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem; padding: 0.5rem 0;
}
.w7bd3-game-card {
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; transition: transform 0.2s; text-decoration: none;
}
.w7bd3-game-card:hover { transform: translateY(-3px); }
.w7bd3-game-card img {
    width: 6.5rem; height: 6.5rem; border-radius: 10px;
    border: 2px solid transparent; transition: border-color 0.2s;
    object-fit: cover;
}
.w7bd3-game-card:hover img { border-color: var(--w7bd3-primary); }
.w7bd3-game-name {
    font-size: 1rem; color: var(--w7bd3-text-light); text-align: center;
    margin-top: 0.3rem; line-height: 1.2; max-width: 7rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Promo Buttons */
.w7bd3-promo-btn {
    display: inline-block; background: linear-gradient(135deg, var(--w7bd3-primary), #17a89e);
    color: #fff; padding: 0.8rem 2rem; border-radius: 25px;
    font-size: 1.3rem; font-weight: 600; text-decoration: none;
    cursor: pointer; border: none; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(32,178,170,0.3);
    text-align: center;
}
.w7bd3-promo-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(32,178,170,0.5); }

/* Promo Link Text */
.w7bd3-promo-link {
    color: var(--w7bd3-highlight); font-weight: 600;
    text-decoration: underline; cursor: pointer;
    transition: color 0.2s;
}
.w7bd3-promo-link:hover { color: var(--w7bd3-primary); }

/* Info Card */
.w7bd3-card {
    background: var(--w7bd3-bg-card); border-radius: var(--w7bd3-radius);
    padding: 1.2rem; margin-bottom: 1rem; border: 1px solid var(--w7bd3-border);
    transition: transform 0.2s;
}
.w7bd3-card:hover { transform: translateY(-2px); }
.w7bd3-card-title {
    font-size: 1.4rem; font-weight: 600; color: var(--w7bd3-primary);
    margin-bottom: 0.6rem;
}
.w7bd3-card-text { font-size: 1.2rem; line-height: 1.6; color: #ccc; }

/* Headings */
.w7bd3-h1 { font-size: 2rem; font-weight: 700; color: var(--w7bd3-primary); margin: 1.5rem 0 1rem; line-height: 1.3; }
.w7bd3-h2 { font-size: 1.7rem; font-weight: 600; color: var(--w7bd3-secondary); margin: 1.2rem 0 0.8rem; }
.w7bd3-h3 { font-size: 1.4rem; font-weight: 600; color: var(--w7bd3-accent); margin: 1rem 0 0.5rem; }

/* Content text */
.w7bd3-text { font-size: 1.2rem; line-height: 1.7; color: #ccc; margin-bottom: 0.8rem; }
.w7bd3-text-highlight { color: var(--w7bd3-highlight); font-weight: 500; }
.w7bd3-text-accent { color: var(--w7bd3-accent); }

/* List styles */
.w7bd3-list { list-style: none; padding: 0; margin: 0.5rem 0; }
.w7bd3-list li {
    padding: 0.5rem 0 0.5rem 1.5rem; position: relative;
    font-size: 1.2rem; color: #ccc; line-height: 1.5;
}
.w7bd3-list li::before {
    content: ''; position: absolute; left: 0; top: 1rem;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--w7bd3-primary);
}

/* Footer */
.w7bd3-footer {
    background: #111; padding: 2rem 1.2rem 8rem; border-top: 2px solid var(--w7bd3-primary);
    text-align: center;
}
.w7bd3-footer-brand { color: var(--w7bd3-primary); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.w7bd3-footer-desc { font-size: 1.1rem; color: #888; line-height: 1.5; margin-bottom: 1.2rem; }
.w7bd3-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1rem; }
.w7bd3-footer-link {
    display: inline-block; padding: 0.4rem 0.8rem; border: 1px solid var(--w7bd3-border);
    border-radius: 15px; color: #aaa; font-size: 1rem; text-decoration: none;
    transition: all 0.2s;
}
.w7bd3-footer-link:hover { border-color: var(--w7bd3-primary); color: var(--w7bd3-primary); }
.w7bd3-footer-copy { font-size: 1rem; color: #666; margin-top: 0.8rem; }
.w7bd3-footer-partners { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.w7bd3-footer-partners span { color: #555; font-size: 1.1rem; }

/* Feature grid */
.w7bd3-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.w7bd3-feature-item {
    background: var(--w7bd3-bg-card); border-radius: var(--w7bd3-radius);
    padding: 1rem; text-align: center; border: 1px solid var(--w7bd3-border);
    transition: all 0.2s;
}
.w7bd3-feature-item:hover { border-color: var(--w7bd3-primary); }
.w7bd3-feature-icon { font-size: 2.4rem; color: var(--w7bd3-primary); margin-bottom: 0.5rem; }
.w7bd3-feature-title { font-size: 1.2rem; font-weight: 600; color: var(--w7bd3-secondary); margin-bottom: 0.3rem; }
.w7bd3-feature-desc { font-size: 1rem; color: #999; line-height: 1.3; }

/* Winner list */
.w7bd3-winner-list { display: flex; flex-direction: column; gap: 0.5rem; }
.w7bd3-winner-item {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--w7bd3-bg-card); padding: 0.6rem 1rem; border-radius: var(--w7bd3-radius);
}
.w7bd3-winner-name { font-size: 1.1rem; color: var(--w7bd3-text-light); }
.w7bd3-winner-amount { font-size: 1.2rem; color: var(--w7bd3-gold); font-weight: 600; }

/* Payment icons */
.w7bd3-payment-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.w7bd3-payment-item {
    background: var(--w7bd3-bg-card); padding: 0.6rem 1.2rem;
    border-radius: 20px; border: 1px solid var(--w7bd3-border);
    font-size: 1.1rem; color: #ccc;
}

/* Testimonial */
.w7bd3-testimonial {
    background: var(--w7bd3-bg-card); border-radius: var(--w7bd3-radius);
    padding: 1rem; margin-bottom: 0.8rem; border-left: 3px solid var(--w7bd3-accent);
}
.w7bd3-testimonial-text { font-size: 1.1rem; color: #ccc; font-style: italic; line-height: 1.5; }
.w7bd3-testimonial-author { font-size: 1rem; color: var(--w7bd3-primary); margin-top: 0.4rem; font-weight: 600; }

/* CTA Section */
.w7bd3-cta-section {
    background: linear-gradient(135deg, var(--w7bd3-primary), var(--w7bd3-accent));
    padding: 2rem 1.2rem; text-align: center; border-radius: var(--w7bd3-radius);
    margin: 1.5rem 0;
}
.w7bd3-cta-title { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.w7bd3-cta-text { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 1rem; }
.w7bd3-cta-btn {
    display: inline-block; background: #fff; color: var(--w7bd3-bg-dark);
    padding: 0.8rem 2.5rem; border-radius: 25px; font-size: 1.3rem;
    font-weight: 700; cursor: pointer; border: none; transition: all 0.3s;
}
.w7bd3-cta-btn:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }

/* FAQ */
.w7bd3-faq-item { margin-bottom: 0.8rem; }
.w7bd3-faq-q { font-size: 1.2rem; font-weight: 600; color: var(--w7bd3-secondary); margin-bottom: 0.3rem; }
.w7bd3-faq-a { font-size: 1.1rem; color: #aaa; line-height: 1.5; padding-left: 1rem; }

/* Badge */
.w7bd3-badge {
    display: inline-block; background: var(--w7bd3-accent);
    color: #fff; font-size: 0.9rem; padding: 0.2rem 0.6rem;
    border-radius: 10px; font-weight: 600;
}

/* Internal link */
.w7bd3-internal-link {
    color: var(--w7bd3-secondary); text-decoration: underline;
    transition: color 0.2s;
}
.w7bd3-internal-link:hover { color: var(--w7bd3-primary); }

/* Responsive */
@media (min-width: 769px) {
    .w7bd3-bottom-nav { display: none; }
    .w7bd3-footer { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
    .w7bd3-main-content { padding-bottom: 7rem; }
}
