/**
 * 399bet apk - Core CSS Stylesheet
 * Class prefix: vd3b-
 * Color palette: #0097A7 | #F8F8FF | #DDA0DD | #F8F9FA | #0F0F23 | #E0F2F1
 */

/* === CSS Variables === */
:root {
    --vd3b-primary: #0097A7;
    --vd3b-primary-dark: #007B8A;
    --vd3b-primary-light: #00BCD4;
    --vd3b-bg-dark: #0F0F23;
    --vd3b-bg-card: #151533;
    --vd3b-bg-section: #1A1A3E;
    --vd3b-bg-light: #F8F9FA;
    --vd3b-text-light: #F8F8FF;
    --vd3b-text-muted: #B0BEC5;
    --vd3b-accent: #DDA0DD;
    --vd3b-accent-light: #E8C8E8;
    --vd3b-mint: #E0F2F1;
    --vd3b-gold: #FFD700;
    --vd3b-success: #4CAF50;
    --vd3b-danger: #FF5252;
    --vd3b-radius: 0.8rem;
    --vd3b-radius-sm: 0.4rem;
    --vd3b-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.3);
    --vd3b-shadow-lg: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.4);
    font-size: 62.5%;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--vd3b-bg-dark);
    color: var(--vd3b-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--vd3b-primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--vd3b-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.vd3b-wrapper {
    padding: 1rem;
}

/* === Header === */
.vd3b-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--vd3b-bg-dark) 0%, #1C1C4A 100%);
    border-bottom: 0.1rem solid rgba(0, 151, 167, 0.3);
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vd3b-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vd3b-logo {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.4rem;
}

.vd3b-site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vd3b-primary-light);
    white-space: nowrap;
}

.vd3b-header-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.vd3b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--vd3b-radius-sm);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    min-height: 3.2rem;
    min-width: 4.4rem;
}

.vd3b-btn-register {
    background: linear-gradient(135deg, var(--vd3b-primary) 0%, var(--vd3b-primary-light) 100%);
    color: var(--vd3b-bg-dark);
}

.vd3b-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 0 1rem rgba(0, 151, 167, 0.5);
}

.vd3b-btn-login {
    background: transparent;
    border: 0.15rem solid var(--vd3b-primary);
    color: var(--vd3b-primary-light);
}

.vd3b-btn-login:hover {
    background: rgba(0, 151, 167, 0.15);
}

.vd3b-btn-promo {
    background: linear-gradient(135deg, var(--vd3b-accent) 0%, #C080C0 100%);
    color: var(--vd3b-bg-dark);
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
}

.vd3b-btn-promo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 1rem rgba(221, 160, 221, 0.5);
}

.vd3b-btn-text {
    background: none;
    border: none;
    color: var(--vd3b-primary-light);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0.3rem 0;
}

.vd3b-btn-text:hover {
    color: var(--vd3b-accent);
}

/* === Menu Toggle === */
.vd3b-menu-toggle {
    background: none;
    border: none;
    color: var(--vd3b-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    min-height: 3.2rem;
}

/* === Mobile Menu === */
.vd3b-mobile-menu {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 100vh;
    background: var(--vd3b-bg-dark);
    z-index: 9999;
    padding: 5rem 1.5rem 2rem;
    transition: transform 0.35s ease;
    overflow-y: auto;
}

.vd3b-menu-closed {
    transform: translateX(-50%) translateY(-100%);
}

.vd3b-menu-open {
    transform: translateX(-50%) translateY(0);
}

.vd3b-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--vd3b-text-light);
    font-size: 2.2rem;
    cursor: pointer;
}

.vd3b-menu-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vd3b-menu-nav li {
    border-bottom: 0.1rem solid rgba(0, 151, 167, 0.15);
}

.vd3b-menu-nav a {
    display: block;
    padding: 1.2rem 0.5rem;
    font-size: 1.5rem;
    color: var(--vd3b-text-light);
    transition: all 0.3s ease;
}

.vd3b-menu-nav a:hover {
    color: var(--vd3b-primary-light);
    padding-left: 1rem;
    background: rgba(0, 151, 167, 0.08);
}

/* === Carousel / Banner === */
.vd3b-carousel {
    position: relative;
    width: 100%;
    margin-top: 4.8rem;
    overflow: hidden;
    border-radius: 0 0 var(--vd3b-radius) var(--vd3b-radius);
}

.vd3b-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.vd3b-slide-active {
    display: block;
}

.vd3b-slide img {
    width: 100%;
    height: auto;
    min-height: 18rem;
    object-fit: cover;
}

/* === Section Titles === */
.vd3b-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vd3b-primary-light);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.2rem solid var(--vd3b-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vd3b-section-title i,
.vd3b-section-title .material-icons {
    font-size: 2rem;
    color: var(--vd3b-accent);
}

/* === Game Grid === */
.vd3b-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    padding: 0.5rem 0;
}

.vd3b-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--vd3b-radius-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.vd3b-game-item:hover {
    background: rgba(0, 151, 167, 0.12);
    transform: translateY(-0.2rem);
}

.vd3b-game-item img {
    width: 6rem;
    height: 6rem;
    border-radius: var(--vd3b-radius-sm);
    object-fit: cover;
    margin-bottom: 0.3rem;
    border: 0.15rem solid rgba(0, 151, 167, 0.25);
}

.vd3b-game-name {
    font-size: 1rem;
    color: var(--vd3b-text-muted);
    line-height: 1.2rem;
    max-height: 2.4rem;
    overflow: hidden;
    word-break: break-word;
}

/* === Cards === */
.vd3b-card {
    background: var(--vd3b-bg-card);
    border-radius: var(--vd3b-radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 0.1rem solid rgba(0, 151, 167, 0.15);
}

.vd3b-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vd3b-primary-light);
    margin-bottom: 0.8rem;
}

/* === Content Sections === */
.vd3b-content-section {
    padding: 1rem 1rem;
    margin-bottom: 0.5rem;
}

.vd3b-content-text {
    font-size: 1.3rem;
    line-height: 1.8rem;
    color: var(--vd3b-text-muted);
}

.vd3b-content-text strong {
    color: var(--vd3b-primary-light);
}

.vd3b-content-text a {
    color: var(--vd3b-accent);
    text-decoration: underline;
}

/* === RTP Bar === */
.vd3b-rtp-bar {
    background: var(--vd3b-bg-card);
    border-radius: var(--vd3b-radius-sm);
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.vd3b-rtp-label {
    color: var(--vd3b-text-muted);
}

.vd3b-rtp-value {
    color: var(--vd3b-success);
    font-weight: 700;
}

/* === Testimonials === */
.vd3b-testimonial {
    background: var(--vd3b-bg-card);
    border-radius: var(--vd3b-radius);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-left: 0.3rem solid var(--vd3b-primary);
}

.vd3b-testimonial-author {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--vd3b-primary-light);
    margin-bottom: 0.3rem;
}

.vd3b-testimonial-text {
    font-size: 1.2rem;
    color: var(--vd3b-text-muted);
    font-style: italic;
}

/* === Payment Methods === */
.vd3b-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    padding: 0.5rem 0;
}

.vd3b-payment-item {
    background: var(--vd3b-bg-card);
    padding: 0.6rem 1rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    color: var(--vd3b-text-muted);
    border: 0.1rem solid rgba(0, 151, 167, 0.2);
}

/* === Winners Showcase === */
.vd3b-winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 0.1rem solid rgba(0, 151, 167, 0.1);
    font-size: 1.2rem;
}

.vd3b-winner-name {
    color: var(--vd3b-text-light);
}

.vd3b-winner-amount {
    color: var(--vd3b-gold);
    font-weight: 700;
}

/* === Footer === */
.vd3b-footer {
    background: var(--vd3b-bg-dark);
    border-top: 0.15rem solid rgba(0, 151, 167, 0.25);
    padding: 1.5rem 1rem 8rem;
    text-align: center;
}

.vd3b-footer-brand {
    font-size: 1.3rem;
    color: var(--vd3b-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6rem;
}

.vd3b-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.vd3b-footer-links a {
    background: rgba(0, 151, 167, 0.12);
    padding: 0.4rem 0.8rem;
    border-radius: var(--vd3b-radius-sm);
    font-size: 1.1rem;
    color: var(--vd3b-text-light);
    transition: all 0.3s ease;
}

.vd3b-footer-links a:hover {
    background: rgba(0, 151, 167, 0.25);
}

.vd3b-footer-copyright {
    font-size: 1.1rem;
    color: var(--vd3b-text-muted);
    opacity: 0.7;
}

/* === Bottom Navigation === */
.vd3b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, #1A1A3E 0%, var(--vd3b-bg-dark) 100%);
    border-top: 0.15rem solid rgba(0, 151, 167, 0.35);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0.2rem 0;
}

.vd3b-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 52px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--vd3b-text-muted);
    transition: all 0.3s ease;
    padding: 0.2rem;
    border-radius: var(--vd3b-radius-sm);
}

.vd3b-bottom-nav-btn:hover,
.vd3b-bottom-nav-btn:focus {
    color: var(--vd3b-primary-light);
    transform: scale(1.08);
}

.vd3b-bottom-nav-btn.vd3b-nav-active {
    color: var(--vd3b-primary-light);
}

.vd3b-bottom-nav-btn.vd3b-nav-active::after {
    content: '';
    display: block;
    width: 2rem;
    height: 0.2rem;
    background: var(--vd3b-primary);
    border-radius: 0.1rem;
    margin-top: 0.2rem;
}

.vd3b-bottom-nav-btn i,
.vd3b-bottom-nav-btn .material-icons,
.vd3b-bottom-nav-btn ion-icon,
.vd3b-bottom-nav-btn bi {
    font-size: 2.2rem;
}

.vd3b-bottom-nav-label {
    font-size: 1rem;
    margin-top: 0.1rem;
    white-space: nowrap;
}

/* === Desktop: hide bottom nav === */
@media (min-width: 769px) {
    .vd3b-bottom-nav {
        display: none;
    }
}

/* === Mobile: bottom padding === */
@media (max-width: 768px) {
    .vd3b-main-content {
        padding-bottom: 80px;
    }
    .vd3b-footer {
        padding-bottom: 8rem;
    }
}

/* === Utilities === */
.vd3b-text-center { text-align: center; }
.vd3b-text-gold { color: var(--vd3b-gold); }
.vd3b-text-accent { color: var(--vd3b-accent); }
.vd3b-text-primary { color: var(--vd3b-primary-light); }
.vd3b-mb-1 { margin-bottom: 0.5rem; }
.vd3b-mb-2 { margin-bottom: 1rem; }
.vd3b-mb-3 { margin-bottom: 1.5rem; }
.vd3b-mt-1 { margin-top: 0.5rem; }
.vd3b-mt-2 { margin-top: 1rem; }
.vd3b-p-1 { padding: 0.5rem; }
.vd3b-p-2 { padding: 1rem; }

/* === FAQ Accordion === */
.vd3b-faq-item {
    background: var(--vd3b-bg-card);
    border-radius: var(--vd3b-radius-sm);
    margin-bottom: 0.6rem;
    padding: 1rem;
    border: 0.1rem solid rgba(0, 151, 167, 0.12);
}

.vd3b-faq-q {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--vd3b-primary-light);
    margin-bottom: 0.4rem;
}

.vd3b-faq-a {
    font-size: 1.2rem;
    color: var(--vd3b-text-muted);
    line-height: 1.6rem;
}

/* === Highlight Badge === */
.vd3b-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.vd3b-badge-hot {
    background: var(--vd3b-danger);
    color: var(--vd3b-text-light);
}

.vd3b-badge-new {
    background: var(--vd3b-success);
    color: var(--vd3b-text-light);
}

.vd3b-badge-vip {
    background: var(--vd3b-gold);
    color: var(--vd3b-bg-dark);
}

/* === App Download Section === */
.vd3b-app-section {
    background: linear-gradient(135deg, var(--vd3b-bg-card) 0%, var(--vd3b-bg-section) 100%);
    border-radius: var(--vd3b-radius);
    padding: 1.5rem;
    text-align: center;
    border: 0.1rem solid rgba(0, 151, 167, 0.2);
}

.vd3b-app-section h3 {
    color: var(--vd3b-primary-light);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

/* === CTA Section === */
.vd3b-cta {
    background: linear-gradient(135deg, var(--vd3b-primary-dark) 0%, var(--vd3b-primary) 50%, var(--vd3b-accent) 100%);
    border-radius: var(--vd3b-radius);
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.vd3b-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vd3b-bg-dark);
    margin-bottom: 0.8rem;
}

/* === Category Highlight === */
.vd3b-cat-highlight {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--vd3b-bg-card);
    border-radius: var(--vd3b-radius);
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
    border: 0.1rem solid rgba(0, 151, 167, 0.12);
}

.vd3b-cat-highlight-icon {
    font-size: 2.2rem;
    color: var(--vd3b-primary-light);
}

.vd3b-cat-highlight-text h4 {
    font-size: 1.3rem;
    color: var(--vd3b-primary-light);
}

.vd3b-cat-highlight-text p {
    font-size: 1.1rem;
    color: var(--vd3b-text-muted);
}
