/**
 * jiliok Layout Stylesheet
 * Version: 1.0.0
 * All classes use v018- prefix for namespace isolation
 * Color Scheme: #FF5722 | #FFB3FF | #9AFF9A | #880E4F | #1E1E1E | #CED4DA
 */

/* CSS Variables with prefix */
:root {
    --v018-primary: #FF5722;
    --v018-secondary: #FFB3FF;
    --v018-accent: #9AFF9A;
    --v018-dark: #880E4F;
    --v018-bg: #1E1E1E;
    --v018-text: #CED4DA;
    --v018-white: #ffffff;
    --v018-black: #000000;
    --v018-gradient: linear-gradient(135deg, #FF5722 0%, #880E4F 100%);
    --v018-radius: 8px;
    --v018-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--v018-bg);
    color: var(--v018-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* Header */
.v018-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--v018-dark) 0%, var(--v018-bg) 100%);
    padding: 1rem 0;
    box-shadow: var(--v018-shadow);
}

.v018-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v018-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v018-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.v018-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v018-primary);
    letter-spacing: 0.5px;
}

.v018-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v018-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--v018-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.v018-btn-primary {
    background: var(--v018-gradient);
    color: var(--v018-white);
}

.v018-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.v018-btn-outline {
    background: transparent;
    color: var(--v018-secondary);
    border: 2px solid var(--v018-secondary);
}

.v018-btn-outline:hover {
    background: var(--v018-secondary);
    color: var(--v018-dark);
}

.v018-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--v018-text);
    cursor: pointer;
    font-size: 2rem;
}

/* Mobile Menu */
.v018-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v018-bg);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.v018-menu-open {
    right: 0;
}

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

.v018-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.v018-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v018-menu-close {
    background: transparent;
    border: none;
    color: var(--v018-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.v018-menu-nav {
    list-style: none;
}

.v018-menu-nav li {
    margin-bottom: 1rem;
}

.v018-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--v018-text);
    font-size: 1.4rem;
    border-radius: var(--v018-radius);
    transition: all 0.3s ease;
}

.v018-menu-nav a:hover {
    background: rgba(255, 87, 34, 0.2);
    color: var(--v018-primary);
}

/* Main Content */
.v018-main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .v018-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.v018-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--v018-radius);
    margin-bottom: 2rem;
}

.v018-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.v018-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.v018-slide-active {
    opacity: 1;
}

.v018-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--v018-radius);
}

.v018-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.v018-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v018-dot-active {
    background: var(--v018-primary);
    transform: scale(1.2);
}

/* Section */
.v018-section {
    padding: 2rem 0;
}

.v018-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v018-white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.v018-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--v018-primary);
    border-radius: 2px;
}

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

.v018-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.v018-game-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.v018-game-item:hover .v018-game-img {
    border-color: var(--v018-primary);
}

.v018-game-name {
    font-size: 1.1rem;
    color: var(--v018-text);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Category Tab */
.v018-category-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--v018-gradient);
    color: var(--v018-white);
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Cards */
.v018-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--v018-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.v018-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v018-primary);
    margin-bottom: 1rem;
}

.v018-card-text {
    color: var(--v018-text);
    line-height: 1.6;
    font-size: 1.3rem;
}

/* Promo Link */
.v018-promo-link {
    color: var(--v018-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.v018-promo-link:hover {
    color: var(--v018-secondary);
}

/* Features List */
.v018-features {
    display: grid;
    gap: 1rem;
}

.v018-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--v018-radius);
}

.v018-feature-icon {
    font-size: 2rem;
    color: var(--v018-primary);
    min-width: 40px;
}

.v018-feature-content h4 {
    font-size: 1.4rem;
    color: var(--v018-white);
    margin-bottom: 0.3rem;
}

.v018-feature-content p {
    font-size: 1.2rem;
    color: var(--v018-text);
}

/* Footer */
.v018-footer {
    background: var(--v018-dark);
    padding: 2rem 0;
    margin-top: 2rem;
}

.v018-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v018-footer-brand p {
    font-size: 1.2rem;
    color: var(--v018-text);
    line-height: 1.6;
    max-width: 350px;
    margin: 0 auto;
}

.v018-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.v018-footer-links a {
    padding: 0.5rem 1rem;
    background: rgba(255, 87, 34, 0.2);
    color: var(--v018-primary);
    border-radius: 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.v018-footer-links a:hover {
    background: var(--v018-primary);
    color: var(--v018-white);
}

.v018-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v018-footer-nav a {
    color: var(--v018-text);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.v018-footer-nav a:hover {
    color: var(--v018-primary);
}

.v018-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Bottom Navigation */
.v018-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--v018-dark) 0%, #5a0833 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    border-top: 2px solid var(--v018-primary);
}

.v018-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.v018-nav-item:hover {
    background: rgba(255, 87, 34, 0.2);
    transform: translateY(-2px);
}

.v018-nav-item.active {
    color: var(--v018-primary);
}

.v018-nav-item .material-icons,
.v018-nav-item ion-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.v018-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.v018-nav-text {
    font-size: 10px;
    font-weight: 500;
    color: var(--v018-text);
}

.v018-nav-item.active .v018-nav-text {
    color: var(--v018-primary);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .v018-bottom-nav {
        display: none;
    }
}

/* Utilities */
.v018-text-center {
    text-align: center;
}

.v018-mt-2 {
    margin-top: 2rem;
}

.v018-mb-2 {
    margin-bottom: 2rem;
}

.v018-hidden {
    display: none;
}

/* FAQ Section */
.v018-faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--v018-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.v018-faq-question {
    padding: 1.2rem;
    font-weight: 600;
    color: var(--v018-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v018-faq-answer {
    padding: 0 1.2rem 1.2rem;
    color: var(--v018-text);
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Testimonials */
.v018-testimonial {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--v018-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--v018-primary);
}

.v018-testimonial-text {
    font-style: italic;
    color: var(--v018-text);
    margin-bottom: 0.8rem;
}

.v018-testimonial-author {
    font-size: 1.2rem;
    color: var(--v018-primary);
    font-weight: 600;
}

/* Payment Methods */
.v018-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.v018-payment-item {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--v018-radius);
    font-size: 1.2rem;
    color: var(--v018-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Winners Showcase */
.v018-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--v018-radius);
    margin-bottom: 0.8rem;
}

.v018-winner-game {
    font-weight: 600;
    color: var(--v018-white);
}

.v018-winner-amount {
    color: var(--v018-primary);
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .v018-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v018-game-img {
        width: 50px;
        height: 50px;
    }
}
