/* PHDream APK - Layout Stylesheet
   Prefix: v268-
   Color Palette: #6495ED | #0A0A0A | #00BFFF | #1E90FF | #EEEEEE */

/* CSS Variables */
:root {
    --v268-primary: #6495ED;
    --v268-bg-dark: #0A0A0A;
    --v268-accent: #00BFFF;
    --v268-secondary: #1E90FF;
    --v268-text-light: #EEEEEE;
    --v268-bg-card: #141428;
    --v268-bg-section: #0F0F1E;
    --v268-border: #2a2a4a;
    --v268-gold: #FFD700;
    --v268-gradient-start: #1E90FF;
    --v268-gradient-end: #6495ED;
}

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

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--v268-bg-dark);
    color: var(--v268-text-light);
    line-height: 1.5rem;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

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

.v268-wrapper {
    width: 100%;
    padding: 1.2rem 0;
}

/* Header */
.v268-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 5.6rem;
    background: linear-gradient(135deg, #0a0a1a 0%, #141432 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    z-index: 1000;
    border-bottom: 2px solid var(--v268-primary);
    box-shadow: 0 2px 12px rgba(100, 149, 237, 0.15);
}

.v268-header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.v268-header-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.6rem;
}

.v268-header-logo span {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v268-primary);
    letter-spacing: 0.5px;
}

.v268-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.v268-btn-register {
    background: linear-gradient(135deg, var(--v268-gradient-start), var(--v268-gradient-end));
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 2rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.v268-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(100, 149, 237, 0.4);
}

.v268-btn-login {
    background: transparent;
    color: var(--v268-accent);
    border: 1.5px solid var(--v268-accent);
    padding: 0.45rem 0.9rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 2rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

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

.v268-menu-toggle {
    background: none;
    border: none;
    color: var(--v268-text-light);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
}

/* Mobile Menu */
.v268-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #0f0f2a, #0a0a1a);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.v268-menu-active {
    right: 0 !important;
}

.v268-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

.v268-overlay-active {
    display: block !important;
}

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

.v268-menu-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v268-primary);
}

.v268-menu-close {
    background: none;
    border: none;
    color: var(--v268-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.v268-menu-links {
    list-style: none;
}

.v268-menu-links li {
    margin-bottom: 0.5rem;
}

.v268-menu-links a {
    display: block;
    padding: 1rem;
    color: var(--v268-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 0.8rem;
    transition: background 0.2s, color 0.2s;
}

.v268-menu-links a:hover {
    background: rgba(100, 149, 237, 0.15);
    color: var(--v268-accent);
}

/* Carousel */
.v268-carousel {
    position: relative;
    width: 100%;
    margin-top: 5.6rem;
    overflow: hidden;
    border-radius: 0 0 1rem 1rem;
}

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

.v268-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

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

.v268-carousel-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

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

/* Main Content */
.v268-main {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Section */
.v268-section {
    padding: 2rem 1.2rem;
}

.v268-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v268-text-light);
    margin-bottom: 1.2rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--v268-primary);
}

.v268-section-subtitle {
    font-size: 1.4rem;
    color: var(--v268-accent);
    margin-bottom: 1rem;
}

/* Game Grid */
.v268-game-section {
    padding: 1.5rem 1.2rem;
}

.v268-game-category-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v268-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.v268-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.v268-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
}

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

.v268-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid var(--v268-border);
    transition: border-color 0.2s;
    margin-bottom: 0.4rem;
}

.v268-game-item:hover .v268-game-icon {
    border-color: var(--v268-primary);
}

.v268-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

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

.v268-card-text {
    font-size: 1.3rem;
    color: var(--v268-text-light);
    line-height: 1.8;
}

/* Promo Button */
.v268-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--v268-gradient-start), var(--v268-gradient-end));
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 3rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.v268-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(30, 144, 255, 0.4);
}

.v268-promo-text-link {
    color: var(--v268-accent);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.v268-promo-text-link:hover {
    color: var(--v268-primary);
}

/* Footer */
.v268-footer {
    background: #050510;
    padding: 2rem 1.2rem 10rem;
    border-top: 1px solid var(--v268-border);
}

.v268-footer-brand {
    font-size: 1.4rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.v268-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.v268-footer-link {
    background: var(--v268-bg-card);
    color: var(--v268-text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 1.2rem;
    border: 1px solid var(--v268-border);
    transition: border-color 0.2s, color 0.2s;
}

.v268-footer-link:hover {
    border-color: var(--v268-primary);
    color: var(--v268-accent);
}

.v268-footer-copyright {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}

/* Bottom Navigation */
.v268-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 6rem;
    background: linear-gradient(180deg, #0f0f2a, #080818);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1.5px solid var(--v268-primary);
    box-shadow: 0 -2px 12px rgba(100, 149, 237, 0.1);
}

.v268-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5.6rem;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
    text-decoration: none;
    gap: 0.3rem;
}

.v268-bottom-nav-btn:hover,
.v268-nav-active {
    color: var(--v268-accent);
    transform: scale(1.08);
}

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

.v268-bottom-nav-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Typography */
.v268-h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v268-text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.v268-h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--v268-text-light);
    margin-bottom: 0.8rem;
}

.v268-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--v268-accent);
    margin-bottom: 0.6rem;
}

.v268-text {
    font-size: 1.3rem;
    color: #ccc;
    line-height: 1.8;
}

.v268-text-bold {
    color: var(--v268-gold);
    font-weight: 700;
}

.v268-text-accent {
    color: var(--v268-accent);
}

/* Utility Classes */
.v268-text-center {
    text-align: center;
}

.v268-mt-1 { margin-top: 0.8rem; }
.v268-mt-2 { margin-top: 1.5rem; }
.v268-mt-3 { margin-top: 2.5rem; }
.v268-mb-1 { margin-bottom: 0.8rem; }
.v268-mb-2 { margin-bottom: 1.5rem; }
.v268-mb-3 { margin-bottom: 2.5rem; }

.v268-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.v268-divider {
    border: none;
    height: 1px;
    background: var(--v268-border);
    margin: 2rem 0;
}

/* Feature List */
.v268-feature-list {
    list-style: none;
    padding: 0;
}

.v268-feature-list li {
    padding: 0.8rem 0;
    font-size: 1.3rem;
    color: #ccc;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    line-height: 1.6;
}

.v268-feature-list li i {
    color: var(--v268-accent);
    font-size: 1.4rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

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

.v268-testimonial-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--v268-accent);
    margin-bottom: 0.4rem;
}

.v268-testimonial-text {
    font-size: 1.2rem;
    color: #bbb;
    line-height: 1.6;
}

/* Payment Method Icons */
.v268-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
}

.v268-payment-item {
    background: var(--v268-bg-card);
    border: 1px solid var(--v268-border);
    border-radius: 0.8rem;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    color: var(--v268-text-light);
}

/* Winner Display */
.v268-winner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.v268-winner-name {
    font-size: 1.2rem;
    color: var(--v268-accent);
}

.v268-winner-game {
    font-size: 1.1rem;
    color: #999;
}

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

/* Responsive */
@media (max-width: 768px) {
    .v268-main {
        padding-bottom: 8rem;
    }
}

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

/* Small screen adjustments */
@media (max-width: 360px) {
    .v268-header {
        padding: 0 0.8rem;
    }

    .v268-btn-register {
        padding: 0.4rem 0.7rem;
        font-size: 1.1rem;
    }

    .v268-btn-login {
        padding: 0.35rem 0.6rem;
        font-size: 1.1rem;
    }

    .v268-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animation */
@keyframes v268fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.v268-fade-in {
    animation: v268fadeIn 0.5s ease forwards;
}

/* Badge */
.v268-badge {
    display: inline-block;
    background: var(--v268-primary);
    color: #fff;
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-weight: 600;
}
