/* ============================================
   Jilibb Layout CSS - ve47- prefix
   Color palette: #FAFAD2 | #2C2C2C | #BDB76B | #FF8C00
   ============================================ */

:root {
    --ve47-primary: #FF8C00;
    --ve47-secondary: #BDB76B;
    --ve47-bg: #2C2C2C;
    --ve47-bg-dark: #1a1a1a;
    --ve47-bg-card: #363636;
    --ve47-text: #FAFAD2;
    --ve47-text-muted: #c8c8a0;
    --ve47-border: #4a4a3a;
    --ve47-accent: #FF8C00;
    --ve47-gold: #BDB76B;
    --ve47-success: #4CAF50;
    --ve47-radius: 8px;
    --ve47-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

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

html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

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

.ve47-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ve47-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.ve47-site-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ve47-primary);
    letter-spacing: 1px;
}

.ve47-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ve47-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border-radius: var(--ve47-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 32px;
}

.ve47-btn-register {
    background: var(--ve47-primary);
    color: #fff;
}

.ve47-btn-register:hover {
    background: #e07800;
    transform: scale(1.05);
}

.ve47-btn-login {
    background: transparent;
    color: var(--ve47-text);
    border: 1.5px solid var(--ve47-gold);
}

.ve47-btn-login:hover {
    background: var(--ve47-gold);
    color: var(--ve47-bg-dark);
}

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

/* Mobile Menu */
.ve47-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ve47-overlay-active {
    opacity: 1;
    visibility: visible;
}

.ve47-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--ve47-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.ve47-menu-active {
    right: 0;
}

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

.ve47-menu-links {
    list-style: none;
    margin-top: 3rem;
}

.ve47-menu-links li {
    border-bottom: 1px solid var(--ve47-border);
}

.ve47-menu-links a {
    display: block;
    padding: 1.2rem 0.5rem;
    color: var(--ve47-text);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.2s;
}

.ve47-menu-links a:hover {
    color: var(--ve47-primary);
}

/* Main Content */
.ve47-main {
    padding-top: 52px;
    min-height: 100vh;
}

/* Carousel */
.ve47-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

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

.ve47-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 var(--ve47-radius) var(--ve47-radius);
}

.ve47-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.ve47-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(250,250,210,0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.ve47-dot-active {
    background: var(--ve47-primary);
}

/* Sections */
.ve47-section {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
}

.ve47-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ve47-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ve47-gold);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ve47-section-title i {
    font-size: 2rem;
}

/* H1 Title */
.ve47-h1-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ve47-text);
    text-align: center;
    padding: 1rem;
    line-height: 1.6;
}

.ve47-h1-title span {
    color: var(--ve47-primary);
}

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

.ve47-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: var(--ve47-radius);
    padding: 0.4rem;
    background: var(--ve47-bg-card);
}

.ve47-game-item:hover {
    transform: scale(1.05);
}

.ve47-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.3rem;
}

.ve47-game-item span {
    display: block;
    font-size: 1rem;
    color: var(--ve47-text-muted);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Header */
.ve47-cat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    margin-top: 1.2rem;
}

.ve47-cat-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ve47-gold);
}

.ve47-cat-header i {
    font-size: 1.8rem;
    color: var(--ve47-primary);
}

/* Promo Banner */
.ve47-promo-banner {
    background: linear-gradient(135deg, #3d3520, #2a2a20);
    border: 1px solid var(--ve47-gold);
    border-radius: var(--ve47-radius);
    padding: 1.5rem;
    text-align: center;
    margin: 1rem;
}

.ve47-promo-banner h3 {
    color: var(--ve47-primary);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.ve47-promo-banner p {
    color: var(--ve47-text-muted);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.6rem;
}

.ve47-promo-link {
    color: var(--ve47-primary);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font-size: 1.3rem;
}

/* Cards */
.ve47-card {
    background: var(--ve47-bg-card);
    border-radius: var(--ve47-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--ve47-border);
}

.ve47-card h3 {
    color: var(--ve47-primary);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.ve47-card p {
    color: var(--ve47-text-muted);
    font-size: 1.2rem;
    line-height: 1.7rem;
}

.ve47-card ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.ve47-card li {
    color: var(--ve47-text-muted);
    font-size: 1.2rem;
    line-height: 1.8rem;
}

/* CTA Button Large */
.ve47-cta-large {
    display: block;
    width: 90%;
    margin: 1.5rem auto;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--ve47-primary), #cc7000);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255,140,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ve47-cta-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,140,0,0.6);
}

/* Testimonial */
.ve47-testimonial {
    background: var(--ve47-bg-card);
    border-left: 3px solid var(--ve47-gold);
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    border-radius: 0 var(--ve47-radius) var(--ve47-radius) 0;
}

.ve47-testimonial p {
    color: var(--ve47-text-muted);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6rem;
}

.ve47-testimonial strong {
    color: var(--ve47-primary);
    font-style: normal;
}

/* Winner Item */
.ve47-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: var(--ve47-bg-card);
    border-radius: var(--ve47-radius);
    margin-bottom: 0.5rem;
}

.ve47-winner-name {
    color: var(--ve47-gold);
    font-weight: 600;
    font-size: 1.2rem;
}

.ve47-winner-game {
    color: var(--ve47-text-muted);
    font-size: 1.1rem;
}

.ve47-winner-amount {
    color: var(--ve47-primary);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Payment Icons */
.ve47-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.ve47-payment-item {
    background: var(--ve47-bg-card);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1.1rem;
    color: var(--ve47-text-muted);
    border: 1px solid var(--ve47-border);
}

/* RTP Table */
.ve47-rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
}

.ve47-rtp-table th {
    background: var(--ve47-primary);
    color: #fff;
    padding: 0.6rem;
    font-size: 1.1rem;
    text-align: left;
}

.ve47-rtp-table td {
    padding: 0.5rem 0.6rem;
    font-size: 1.1rem;
    color: var(--ve47-text-muted);
    border-bottom: 1px solid var(--ve47-border);
}

.ve47-rtp-table tr:nth-child(even) td {
    background: rgba(255,255,255,0.03);
}

/* Footer */
.ve47-footer {
    background: var(--ve47-bg-dark);
    padding: 2rem 1rem 1rem;
    border-top: 2px solid var(--ve47-gold);
    margin-top: 2rem;
}

.ve47-footer-desc {
    color: var(--ve47-text-muted);
    font-size: 1.1rem;
    line-height: 1.6rem;
    margin-bottom: 1rem;
}

.ve47-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.ve47-footer-links a {
    color: var(--ve47-text);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    background: var(--ve47-bg-card);
    border-radius: 4px;
    transition: color 0.2s;
}

.ve47-footer-links a:hover {
    color: var(--ve47-primary);
}

.ve47-footer-copyright {
    text-align: center;
    color: #666;
    font-size: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ve47-border);
}

.ve47-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.ve47-partners img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ve47-partners img:hover {
    opacity: 1;
}

/* Bottom Navigation */
.ve47-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, #2a2a20, var(--ve47-bg-dark));
    border-top: 2px solid var(--ve47-gold);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.3rem;
}

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

.ve47-bottom-btn:hover,
.ve47-bottom-btn:focus {
    color: var(--ve47-primary);
    background: rgba(255,140,0,0.1);
}

.ve47-bottom-btn i,
.ve47-bottom-btn .material-icons-outlined {
    font-size: 22px;
    margin-bottom: 2px;
}

.ve47-bottom-btn span {
    font-size: 10px;
    white-space: nowrap;
}

.ve47-bottom-btn-active {
    color: var(--ve47-primary) !important;
}

.ve47-bottom-btn-active i,
.ve47-bottom-btn-active .material-icons-outlined {
    transform: scale(1.1);
}

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

/* Mobile bottom padding */
@media (max-width: 768px) {
    .ve47-main { padding-bottom: 80px; }
}

/* Utility classes */
.ve47-text-center { text-align: center; }
.ve47-text-gold { color: var(--ve47-gold); }
.ve47-text-orange { color: var(--ve47-primary); }
.ve47-mt-1 { margin-top: 1rem; }
.ve47-mb-1 { margin-bottom: 1rem; }
.ve47-px-1 { padding-left: 1rem; padding-right: 1rem; }

/* Internal link style */
.ve47-internal-link {
    color: var(--ve47-gold);
    text-decoration: underline;
    font-weight: 500;
}

.ve47-internal-link:hover {
    color: var(--ve47-primary);
}

/* FAQ accordion */
.ve47-faq-item {
    background: var(--ve47-bg-card);
    border-radius: var(--ve47-radius);
    margin-bottom: 0.8rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--ve47-border);
}

.ve47-faq-item h3 {
    color: var(--ve47-gold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

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