/**
 * PH365 Login - Core Stylesheet
 * All classes use prefix "pg86-" for namespace isolation
 * Color palette: #FFDEAD | #A0522D | #DEB887 | #0C0C0C | #95A5A6
 */

:root {
    --pg86-primary: #A0522D;
    --pg86-accent: #FFDEAD;
    --pg86-highlight: #DEB887;
    --pg86-bg: #0C0C0C;
    --pg86-bg-light: #1a1a1a;
    --pg86-bg-card: #141414;
    --pg86-text: #FFDEAD;
    --pg86-text-light: #DEB887;
    --pg86-text-muted: #95A5A6;
    --pg86-border: rgba(160, 82, 45, 0.3);
    --pg86-shadow: rgba(0, 0, 0, 0.5);
    --pg86-gradient: linear-gradient(135deg, #A0522D, #DEB887);
    --pg86-radius: 0.8rem;
    --pg86-radius-sm: 0.4rem;
    --pg86-header-h: 5.6rem;
    --pg86-bottom-nav-h: 6rem;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--pg86-bg);
    color: var(--pg86-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* Header */
.pg86-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--pg86-header-h);
    background: linear-gradient(180deg, #0C0C0C 0%, #1a1008 100%);
    border-bottom: 1px solid var(--pg86-border);
    z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.2rem;
}
.pg86-header-logo {
    display: flex; align-items: center; gap: 0.8rem;
    text-decoration: none;
}
.pg86-header-logo img { width: 3.2rem; height: 3.2rem; border-radius: 0.5rem; }
.pg86-header-logo span {
    font-size: 1.6rem; font-weight: 700;
    color: var(--pg86-accent);
    letter-spacing: 0.5px;
}
.pg86-header-actions { display: flex; gap: 0.6rem; align-items: center; }
.pg86-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.7rem 1.4rem; border: none; border-radius: var(--pg86-radius-sm);
    font-size: 1.2rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; text-decoration: none;
}
.pg86-btn-register {
    background: var(--pg86-gradient); color: #0C0C0C;
}
.pg86-btn-register:hover { opacity: 0.9; transform: scale(1.03); }
.pg86-btn-login {
    background: transparent; color: var(--pg86-accent);
    border: 1px solid var(--pg86-primary);
}
.pg86-btn-login:hover { background: rgba(160, 82, 45, 0.15); }
.pg86-menu-toggle {
    background: none; border: none; color: var(--pg86-accent);
    font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
    display: flex; align-items: center;
}

/* Mobile Menu */
.pg86-menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7); z-index: 9998;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.pg86-overlay-active { opacity: 1; visibility: visible; }
.pg86-mobile-menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background: var(--pg86-bg-light); z-index: 9999;
    transition: right 0.3s ease; padding: 2rem 1.6rem;
    overflow-y: auto;
}
.pg86-menu-active { right: 0; }
.pg86-menu-close {
    background: none; border: none; color: var(--pg86-accent);
    font-size: 2.4rem; cursor: pointer; float: right; margin-bottom: 2rem;
}
.pg86-menu-links { clear: both; padding-top: 1rem; }
.pg86-menu-links a {
    display: block; padding: 1.2rem 0; color: var(--pg86-text);
    text-decoration: none; font-size: 1.4rem; border-bottom: 1px solid var(--pg86-border);
    transition: color 0.2s;
}
.pg86-menu-links a:hover { color: var(--pg86-accent); }

/* Main Content */
main { padding-top: var(--pg86-header-h); }
@media (max-width: 768px) {
    main { padding-bottom: calc(var(--pg86-bottom-nav-h) + 2rem); }
}

/* Carousel */
.pg86-carousel {
    position: relative; width: 100%; overflow: hidden;
    border-radius: var(--pg86-radius); margin: 1.2rem 0;
}
.pg86-carousel-slide {
    display: none; width: 100%; cursor: pointer;
    border-radius: var(--pg86-radius);
}
.pg86-carousel-slide img {
    width: 100%; height: auto; border-radius: var(--pg86-radius);
    display: block;
}
.pg86-slide-active { display: block; }
.pg86-carousel-dots {
    display: flex; justify-content: center; gap: 0.6rem;
    padding: 0.8rem 0;
}
.pg86-carousel-dot {
    width: 0.8rem; height: 0.8rem; border-radius: 50%;
    background: var(--pg86-text-muted); cursor: pointer;
    transition: background 0.3s;
}
.pg86-dot-active { background: var(--pg86-primary); }
.pg86-carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: #fff; border: none;
    width: 3rem; height: 3rem; border-radius: 50%;
    font-size: 1.4rem; cursor: pointer; z-index: 5;
    display: flex; align-items: center; justify-content: center;
}
.pg86-carousel-arrow-prev { left: 0.5rem; }
.pg86-carousel-arrow-next { right: 0.5rem; }

/* Section Titles */
.pg86-section-title {
    font-size: 2rem; font-weight: 700; color: var(--pg86-accent);
    margin: 2rem 0 1.2rem; padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--pg86-primary);
}
.pg86-section-subtitle {
    font-size: 1.4rem; color: var(--pg86-text-muted);
    margin-bottom: 1.6rem;
}

/* Game Grid */
.pg86-game-section { margin: 1.6rem 0; }
.pg86-game-category {
    font-size: 1.5rem; font-weight: 600; color: var(--pg86-highlight);
    margin: 1.6rem 0 1rem; text-transform: capitalize;
    display: flex; align-items: center; gap: 0.6rem;
}
.pg86-game-category i { font-size: 1.8rem; color: var(--pg86-primary); }
.pg86-game-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.pg86-game-item {
    text-align: center; cursor: pointer;
    transition: transform 0.2s ease;
}
.pg86-game-item:hover { transform: scale(1.05); }
.pg86-game-item img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: var(--pg86-radius-sm);
    border: 1px solid var(--pg86-border);
}
.pg86-game-name {
    font-size: 1.1rem; color: var(--pg86-text-light);
    margin-top: 0.3rem; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}

/* Cards */
.pg86-card {
    background: var(--pg86-bg-card); border: 1px solid var(--pg86-border);
    border-radius: var(--pg86-radius); padding: 1.6rem;
    margin-bottom: 1.2rem;
}
.pg86-card-title {
    font-size: 1.6rem; font-weight: 600; color: var(--pg86-accent);
    margin-bottom: 0.8rem;
}
.pg86-card-text {
    font-size: 1.3rem; color: var(--pg86-text-muted);
    line-height: 1.6;
}

/* CTA Button */
.pg86-cta {
    display: block; width: 100%; padding: 1.4rem;
    background: var(--pg86-gradient); color: #0C0C0C;
    font-size: 1.5rem; font-weight: 700; text-align: center;
    border: none; border-radius: var(--pg86-radius);
    cursor: pointer; text-decoration: none;
    transition: all 0.3s ease; margin: 1.6rem 0;
}
.pg86-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* Content Blocks */
.pg86-content-block {
    margin: 2rem 0; padding: 1.6rem;
    background: var(--pg86-bg-card);
    border-radius: var(--pg86-radius);
    border-left: 3px solid var(--pg86-primary);
}
.pg86-content-block h2 {
    font-size: 1.8rem; color: var(--pg86-accent);
    margin-bottom: 1rem;
}
.pg86-content-block h3 {
    font-size: 1.5rem; color: var(--pg86-highlight);
    margin: 1.2rem 0 0.6rem;
}
.pg86-content-block p {
    font-size: 1.3rem; color: var(--pg86-text-muted);
    line-height: 1.8; margin-bottom: 0.8rem;
}
.pg86-content-block ul {
    padding-left: 1.6rem; margin-bottom: 0.8rem;
}
.pg86-content-block li {
    font-size: 1.3rem; color: var(--pg86-text-muted);
    line-height: 1.8; margin-bottom: 0.4rem;
}
.pg86-text-link {
    color: var(--pg86-accent); text-decoration: underline;
    cursor: pointer; font-weight: 500;
}
.pg86-text-link:hover { color: var(--pg86-highlight); }

/* Stats Grid */
.pg86-stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1rem; margin: 1.6rem 0;
}
.pg86-stat-item {
    background: var(--pg86-bg-card); border-radius: var(--pg86-radius-sm);
    padding: 1.2rem; text-align: center;
    border: 1px solid var(--pg86-border);
}
.pg86-stat-value {
    font-size: 2rem; font-weight: 700; color: var(--pg86-accent);
}
.pg86-stat-label {
    font-size: 1.1rem; color: var(--pg86-text-muted); margin-top: 0.3rem;
}

/* Payment Methods */
.pg86-payment-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem; margin: 1rem 0;
}
.pg86-payment-item {
    background: var(--pg86-bg-card); padding: 1rem;
    border-radius: var(--pg86-radius-sm); text-align: center;
    border: 1px solid var(--pg86-border);
    font-size: 1.2rem; color: var(--pg86-text-light);
}

/* Footer */
.pg86-footer {
    background: var(--pg86-bg-light);
    border-top: 1px solid var(--pg86-border);
    padding: 2rem 1.2rem 3rem; margin-top: 2rem;
}
.pg86-footer-desc {
    font-size: 1.2rem; color: var(--pg86-text-muted);
    line-height: 1.6; margin-bottom: 1.6rem;
}
.pg86-footer-links {
    display: flex; flex-wrap: wrap; gap: 0.8rem;
    margin-bottom: 1.6rem;
}
.pg86-footer-links a {
    padding: 0.6rem 1.2rem; background: var(--pg86-bg-card);
    border: 1px solid var(--pg86-border); border-radius: var(--pg86-radius-sm);
    color: var(--pg86-text-light); text-decoration: none;
    font-size: 1.1rem; transition: all 0.2s;
}
.pg86-footer-links a:hover { border-color: var(--pg86-primary); color: var(--pg86-accent); }
.pg86-footer-copyright {
    text-align: center; font-size: 1.1rem; color: var(--pg86-text-muted);
    padding-top: 1.2rem; border-top: 1px solid var(--pg86-border);
}

/* Bottom Navigation */
.pg86-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--pg86-bottom-nav-h);
    background: linear-gradient(180deg, #1a1008 0%, #0C0C0C 100%);
    border-top: 1px solid var(--pg86-border);
    z-index: 1000; display: flex; justify-content: space-around;
    align-items: center; padding: 0.4rem 0;
}
.pg86-bottom-nav-btn {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-width: 6rem; min-height: 5rem;
    background: none; border: none; color: var(--pg86-text-muted);
    cursor: pointer; transition: all 0.25s ease;
    text-decoration: none; gap: 0.2rem;
}
.pg86-bottom-nav-btn:hover { color: var(--pg86-accent); transform: scale(1.08); }
.pg86-bottom-nav-btn.pg86-nav-active { color: var(--pg86-accent); }
.pg86-bottom-nav-btn i, .pg86-bottom-nav-btn .material-icons {
    font-size: 2.4rem;
}
.pg86-bottom-nav-btn span {
    font-size: 1rem; font-weight: 500;
}
@media (min-width: 769px) {
    .pg86-bottom-nav { display: none; }
}

/* Desktop nav styles */
.pg86-desktop-nav {
    display: none; gap: 1.2rem; align-items: center;
}
.pg86-desktop-nav a {
    color: var(--pg86-text-light); text-decoration: none;
    font-size: 1.3rem; transition: color 0.2s;
}
.pg86-desktop-nav a:hover { color: var(--pg86-accent); }
@media (min-width: 769px) {
    .pg86-desktop-nav { display: flex; }
    .pg86-menu-toggle { display: none; }
    main { padding-bottom: 2rem; }
}

/* Testimonials */
.pg86-testimonial {
    background: var(--pg86-bg-card); border-radius: var(--pg86-radius);
    padding: 1.4rem; margin-bottom: 1rem;
    border: 1px solid var(--pg86-border);
}
.pg86-testimonial-name {
    font-size: 1.3rem; font-weight: 600; color: var(--pg86-accent);
}
.pg86-testimonial-text {
    font-size: 1.2rem; color: var(--pg86-text-muted);
    margin-top: 0.6rem; line-height: 1.6;
}
.pg86-testimonial-stars { color: #DEB887; font-size: 1.2rem; margin-top: 0.4rem; }

/* FAQ */
.pg86-faq-item {
    background: var(--pg86-bg-card); border-radius: var(--pg86-radius-sm);
    margin-bottom: 0.8rem; padding: 1.2rem 1.4rem;
    border: 1px solid var(--pg86-border);
}
.pg86-faq-q {
    font-size: 1.4rem; font-weight: 600; color: var(--pg86-accent);
    margin-bottom: 0.6rem;
}
.pg86-faq-a {
    font-size: 1.2rem; color: var(--pg86-text-muted); line-height: 1.7;
}

/* Responsive */
@media (max-width: 430px) {
    .pg86-container { padding: 0 1rem; }
    .pg86-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
}
@media (min-width: 431px) and (max-width: 768px) {
    .pg86-game-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 769px) {
    .pg86-container { max-width: 430px; }
}

/* Utility */
.pg86-mb-1 { margin-bottom: 0.8rem; }
.pg86-mb-2 { margin-bottom: 1.6rem; }
.pg86-mb-3 { margin-bottom: 2.4rem; }
.pg86-text-center { text-align: center; }
.pg86-text-accent { color: var(--pg86-accent); }
.pg86-text-highlight { color: var(--pg86-highlight); }
