/**
 * SS777 APK - Layout Stylesheet
 * Prefix: vdd9-
 * Theme: Dark indigo with gray accent
 */

:root {
    --vdd9-primary: #4B0082;
    --vdd9-bg: #2C3E50;
    --vdd9-bg-light: #34495E;
    --vdd9-bg-card: #3D5166;
    --vdd9-text: #696969;
    --vdd9-text-light: #F8F8FF;
    --vdd9-accent: #778899;
    --vdd9-gradient: linear-gradient(135deg, #4B0082, #778899);
    --vdd9-radius: 10px;
    --vdd9-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --vdd9-transition: all 0.3s ease;
}

/* Reset and Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

a { color: var(--vdd9-text-light); text-decoration: none; transition: var(--vdd9-transition); }
a:hover { color: var(--vdd9-accent); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.vdd9-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--vdd9-bg);
    border-bottom: 1px solid rgba(75, 0, 130, 0.3);
    z-index: 1000;
    transition: var(--vdd9-transition);
    padding: 8px 12px;
}

.vdd9-header-scrolled {
    background: rgba(44, 62, 80, 0.96);
    box-shadow: var(--vdd9-shadow);
}

.vdd9-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vdd9-logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--vdd9-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.vdd9-header-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.vdd9-btn-login,
.vdd9-btn-register {
    padding: 6px 16px;
    border: none;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vdd9-transition);
    white-space: nowrap;
}

.vdd9-btn-login {
    background: transparent;
    color: var(--vdd9-text-light);
    border: 1px solid var(--vdd9-accent);
}

.vdd9-btn-login:hover {
    background: rgba(119, 136, 153, 0.2);
    transform: scale(1.05);
}

.vdd9-btn-register {
    background: var(--vdd9-gradient);
    color: var(--vdd9-text-light);
}

.vdd9-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(75, 0, 130, 0.5);
}

.vdd9-menu-toggle {
    background: none;
    border: none;
    color: var(--vdd9-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 4px;
}

/* Mobile Menu */
.vdd9-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: var(--vdd9-transition);
}

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

.vdd9-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--vdd9-bg-light);
    z-index: 9999;
    transition: right 0.35s ease;
    overflow-y: auto;
    padding: 20px;
}

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

.vdd9-menu-close {
    background: none;
    border: none;
    color: var(--vdd9-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    float: right;
    margin-bottom: 20px;
}

.vdd9-menu-links {
    clear: both;
    list-style: none;
}

.vdd9-menu-links li {
    border-bottom: 1px solid rgba(119, 136, 153, 0.15);
}

.vdd9-menu-links a {
    display: block;
    padding: 12px 0;
    font-size: 1.5rem;
    color: var(--vdd9-text-light);
    transition: var(--vdd9-transition);
}

.vdd9-menu-links a:hover {
    color: var(--vdd9-accent);
    padding-left: 8px;
}

/* Main Content */
.vdd9-main {
    padding-top: 56px;
    padding-bottom: 20px;
}

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

/* Banner Slider */
.vdd9-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--vdd9-radius) var(--vdd9-radius);
}

.vdd9-banner-slide {
    display: none;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

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

.vdd9-banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.vdd9-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(248, 248, 255, 0.4);
    cursor: pointer;
    transition: var(--vdd9-transition);
    border: none;
}

.vdd9-dot-active {
    background: var(--vdd9-primary);
    transform: scale(1.3);
}

/* Section Styles */
.vdd9-section {
    padding: 20px 14px;
}

.vdd9-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--vdd9-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vdd9-section-title .material-icons {
    font-size: 2.2rem;
    color: var(--vdd9-accent);
}

/* Category Tabs */
.vdd9-cat-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.vdd9-cat-tabs::-webkit-scrollbar { display: none; }

.vdd9-cat-tab {
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--vdd9-bg-card);
    color: var(--vdd9-text-light);
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--vdd9-transition);
}

.vdd9-cat-tab:hover { border-color: var(--vdd9-accent); }

.vdd9-tab-active {
    background: var(--vdd9-gradient);
    border-color: var(--vdd9-primary);
}

/* Game Grid */
.vdd9-game-grid-wrap { display: none; }
.vdd9-grid-active { display: block; }

.vdd9-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.vdd9-game-card {
    background: var(--vdd9-bg-card);
    border-radius: var(--vdd9-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--vdd9-transition);
    text-align: center;
}

.vdd9-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(75, 0, 130, 0.4);
}

.vdd9-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.vdd9-game-name {
    padding: 6px 4px;
    font-size: 1.1rem;
    color: var(--vdd9-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Modules */
.vdd9-content-block {
    background: var(--vdd9-bg-card);
    border-radius: var(--vdd9-radius);
    padding: 18px;
    margin-bottom: 16px;
    border-left: 3px solid var(--vdd9-primary);
}

.vdd9-content-block h3 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    color: var(--vdd9-text-light);
}

.vdd9-content-block p {
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--vdd9-accent);
    margin-bottom: 8px;
}

.vdd9-content-block ul {
    padding-left: 18px;
    margin-bottom: 8px;
}

.vdd9-content-block li {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--vdd9-accent);
}

.vdd9-content-block a {
    color: var(--vdd9-primary);
    text-decoration: underline;
}

/* Affiliate CTA */
.vdd9-cta-bar {
    background: var(--vdd9-gradient);
    padding: 14px;
    border-radius: var(--vdd9-radius);
    text-align: center;
    margin: 16px 14px;
    cursor: pointer;
    transition: var(--vdd9-transition);
}

.vdd9-cta-bar:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(75, 0, 130, 0.5);
}

.vdd9-cta-bar span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vdd9-text-light);
}

/* Bottom Mobile Navigation */
.vdd9-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--vdd9-bg-light);
    border-top: 1px solid rgba(75, 0, 130, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.vdd9-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(--vdd9-accent);
    cursor: pointer;
    transition: var(--vdd9-transition);
    padding: 4px 0;
}

.vdd9-nav-btn:hover,
.vdd9-nav-btn:focus {
    color: var(--vdd9-text-light);
}

.vdd9-nav-btn-active {
    color: var(--vdd9-primary) !important;
    position: relative;
}

.vdd9-nav-btn-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--vdd9-gradient);
    border-radius: 0 0 3px 3px;
}

.vdd9-nav-btn i,
.vdd9-nav-btn .material-icons,
.vdd9-nav-btn .bi {
    font-size: 22px;
    margin-bottom: 2px;
}

.vdd9-nav-label {
    font-size: 1rem;
    color: inherit;
    font-weight: 500;
}

@media (min-width: 769px) {
    .vdd9-bottom-nav { display: none; }
}

/* Footer */
.vdd9-footer {
    background: var(--vdd9-bg-light);
    padding: 24px 14px;
    text-align: center;
    border-top: 1px solid rgba(75, 0, 130, 0.2);
}

.vdd9-footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--vdd9-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.vdd9-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
}

.vdd9-footer-links a {
    font-size: 1.2rem;
    color: var(--vdd9-accent);
    transition: var(--vdd9-transition);
}

.vdd9-footer-links a:hover {
    color: var(--vdd9-text-light);
}

.vdd9-footer-copy {
    font-size: 1.1rem;
    color: var(--vdd9-accent);
    margin-top: 14px;
}

.vdd9-partner-logos {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.vdd9-partner-logos span {
    font-size: 1.1rem;
    color: var(--vdd9-accent);
    padding: 4px 10px;
    background: var(--vdd9-bg-card);
    border-radius: 12px;
}

/* Help page styles */
.vdd9-page-hero {
    background: var(--vdd9-gradient);
    padding: 70px 14px 30px;
    text-align: center;
}

.vdd9-page-hero h1 {
    font-size: 2.4rem;
    color: var(--vdd9-text-light);
    margin-bottom: 8px;
}

.vdd9-page-hero p {
    font-size: 1.4rem;
    color: rgba(248, 248, 255, 0.8);
}

.vdd9-help-section {
    padding: 20px 14px;
}

.vdd9-faq-item {
    background: var(--vdd9-bg-card);
    border-radius: var(--vdd9-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.vdd9-faq-q {
    padding: 14px 16px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--vdd9-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vdd9-faq-a {
    padding: 0 16px 14px;
    font-size: 1.3rem;
    color: var(--vdd9-accent);
    line-height: 1.7;
}

.vdd9-tip-card {
    background: var(--vdd9-bg-card);
    border-radius: var(--vdd9-radius);
    padding: 18px;
    margin-bottom: 14px;
    border-left: 3px solid var(--vdd9-primary);
}

.vdd9-tip-card h3 {
    font-size: 1.5rem;
    color: var(--vdd9-text-light);
    margin-bottom: 8px;
}

.vdd9-tip-card p {
    font-size: 1.3rem;
    color: var(--vdd9-accent);
    line-height: 1.7;
}

/* Utility */
.vdd9-text-center { text-align: center; }
.vdd9-mt-10 { margin-top: 10px; }
.vdd9-mb-10 { margin-bottom: 10px; }
.vdd9-hidden { display: none; }
