/**
 * 789h - Main Stylesheet
 * All classes use gf46- prefix for namespace isolation
 * Color palette: #0E1621 | #00CED1 | #DEB887 | #4682B4 | #F0F8FF
 * Mobile-first design, max-width 430px
 */

/* Root variables */
:root {
    --gf46-primary: #00CED1;
    --gf46-secondary: #DEB887;
    --gf46-accent: #4682B4;
    --gf46-bg: #0E1621;
    --gf46-bg-light: #162232;
    --gf46-bg-card: #1a2a3c;
    --gf46-text: #F0F8FF;
    --gf46-text-muted: #8fa3b8;
    --gf46-border: #2a3a4c;
    --gf46-gold: #DEB887;
    --gf46-radius: 8px;
    --gf46-radius-lg: 12px;
}

/* Reset and 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, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gf46-bg);
    color: var(--gf46-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--gf46-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========== Header ========== */
.gf46-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 56px;
    background: linear-gradient(135deg, #0E1621 0%, #162232 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1000;
    border-bottom: 1px solid var(--gf46-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.gf46-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gf46-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.gf46-site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gf46-primary);
    letter-spacing: 0.5px;
}
.gf46-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gf46-btn-register {
    background: linear-gradient(135deg, #DEB887, #c9a36e);
    color: #0E1621;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 6px 14px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gf46-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(222,184,135,0.4); }
.gf46-btn-login {
    background: transparent;
    color: var(--gf46-primary);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 6px 14px;
    border: 1.5px solid var(--gf46-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.gf46-btn-login:hover { background: rgba(0,206,209,0.1); }
.gf46-menu-toggle {
    background: none;
    border: none;
    color: var(--gf46-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/* ========== Mobile Menu ========== */
.gf46-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}
.gf46-overlay-active { display: block; }
.gf46-mobile-menu {
    position: fixed;
    top: 0; right: -280px;
    width: 280px;
    height: 100%;
    background: var(--gf46-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 20px 0;
    overflow-y: auto;
}
.gf46-menu-active { right: 0; }
.gf46-menu-close {
    background: none;
    border: none;
    color: var(--gf46-text);
    font-size: 2.4rem;
    position: absolute;
    top: 12px;
    right: 16px;
    cursor: pointer;
}
.gf46-menu-links {
    list-style: none;
    padding: 50px 0 20px;
}
.gf46-menu-links li a {
    display: block;
    padding: 14px 24px;
    color: var(--gf46-text);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--gf46-border);
    transition: background 0.2s, color 0.2s;
}
.gf46-menu-links li a:hover {
    background: rgba(0,206,209,0.08);
    color: var(--gf46-primary);
}

/* ========== Main Content ========== */
.gf46-main {
    padding-top: 56px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* ========== Carousel ========== */
.gf46-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 430/200;
}
.gf46-slide {
    display: none;
    width: 100%;
    height: 100%;
}
.gf46-slide-active { display: block; }
.gf46-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gf46-slide-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.gf46-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(240,248,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
}
.gf46-dot-active { background: var(--gf46-primary); }

/* ========== Sections ========== */
.gf46-section {
    padding: 20px 12px;
}
.gf46-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gf46-primary);
    margin-bottom: 14px;
    padding-left: 10px;
    border-left: 3px solid var(--gf46-gold);
}
.gf46-section-title-gold {
    color: var(--gf46-gold);
    border-left-color: var(--gf46-primary);
}

/* ========== Game Grid ========== */
.gf46-category-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gf46-gold);
    margin: 16px 0 10px;
    padding: 6px 12px;
    background: rgba(222,184,135,0.08);
    border-radius: 6px;
    display: inline-block;
}
.gf46-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.gf46-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.gf46-game-item:hover { transform: translateY(-2px); }
.gf46-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--gf46-radius);
    border: 1px solid var(--gf46-border);
}
.gf46-game-item span {
    display: block;
    font-size: 1.1rem;
    color: var(--gf46-text-muted);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== Content Cards ========== */
.gf46-card {
    background: var(--gf46-bg-card);
    border-radius: var(--gf46-radius-lg);
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--gf46-border);
}
.gf46-card h3 {
    font-size: 1.5rem;
    color: var(--gf46-gold);
    margin-bottom: 8px;
}
.gf46-card p {
    font-size: 1.3rem;
    color: var(--gf46-text-muted);
    line-height: 1.6;
}
.gf46-card-highlight {
    background: linear-gradient(135deg, rgba(0,206,209,0.08), rgba(70,130,180,0.08));
    border-color: var(--gf46-accent);
}

/* ========== Promo Link Styles ========== */
.gf46-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gf46-primary), var(--gf46-accent));
    color: #0E1621;
    font-weight: 700;
    font-size: 1.4rem;
    padding: 10px 24px;
    border-radius: 24px;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gf46-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(0,206,209,0.3); }
.gf46-promo-btn-gold {
    background: linear-gradient(135deg, #DEB887, #c9a36e);
}
.gf46-promo-text {
    color: var(--gf46-primary);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px dashed var(--gf46-primary);
}
.gf46-promo-text:hover { color: var(--gf46-gold); border-color: var(--gf46-gold); }

/* ========== Features Grid ========== */
.gf46-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.gf46-feature-item {
    background: var(--gf46-bg-card);
    border-radius: var(--gf46-radius);
    padding: 14px;
    text-align: center;
    border: 1px solid var(--gf46-border);
}
.gf46-feature-item i, .gf46-feature-item .material-symbols-outlined {
    font-size: 2.4rem;
    color: var(--gf46-primary);
    margin-bottom: 6px;
}
.gf46-feature-item h4 {
    font-size: 1.3rem;
    color: var(--gf46-text);
    margin-bottom: 4px;
}
.gf46-feature-item p {
    font-size: 1.1rem;
    color: var(--gf46-text-muted);
}

/* ========== Testimonials ========== */
.gf46-testimonial {
    background: var(--gf46-bg-card);
    border-radius: var(--gf46-radius-lg);
    padding: 14px;
    margin-bottom: 10px;
    border-left: 3px solid var(--gf46-gold);
}
.gf46-testimonial-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gf46-gold);
}
.gf46-testimonial-text {
    font-size: 1.2rem;
    color: var(--gf46-text-muted);
    margin-top: 4px;
    font-style: italic;
}

/* ========== Winners Showcase ========== */
.gf46-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--gf46-bg-card);
    border-radius: var(--gf46-radius);
    margin-bottom: 6px;
}
.gf46-winner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gf46-winner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gf46-primary), var(--gf46-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: #0E1621;
}
.gf46-winner-name { font-size: 1.2rem; color: var(--gf46-text); }
.gf46-winner-game { font-size: 1.1rem; color: var(--gf46-text-muted); }
.gf46-winner-amount { font-size: 1.4rem; font-weight: 700; color: var(--gf46-gold); }

/* ========== Payment Methods ========== */
.gf46-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.gf46-payment-item {
    background: var(--gf46-bg-card);
    border-radius: var(--gf46-radius);
    padding: 10px 16px;
    border: 1px solid var(--gf46-border);
    font-size: 1.2rem;
    color: var(--gf46-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== App Download CTA ========== */
.gf46-app-cta {
    background: linear-gradient(135deg, rgba(0,206,209,0.12), rgba(70,130,180,0.12));
    border: 1px solid var(--gf46-accent);
    border-radius: var(--gf46-radius-lg);
    padding: 20px;
    text-align: center;
}
.gf46-app-cta h3 {
    font-size: 1.6rem;
    color: var(--gf46-primary);
    margin-bottom: 8px;
}
.gf46-app-cta p {
    font-size: 1.3rem;
    color: var(--gf46-text-muted);
    margin-bottom: 14px;
}
.gf46-app-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Footer ========== */
.gf46-footer {
    background: var(--gf46-bg-light);
    padding: 24px 16px;
    border-top: 1px solid var(--gf46-border);
}
.gf46-footer-brand {
    text-align: center;
    margin-bottom: 16px;
}
.gf46-footer-brand p {
    font-size: 1.2rem;
    color: var(--gf46-text-muted);
    line-height: 1.6;
    margin-top: 8px;
}
.gf46-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}
.gf46-footer-links a {
    background: var(--gf46-bg-card);
    color: var(--gf46-text-muted);
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--gf46-border);
    transition: all 0.2s;
}
.gf46-footer-links a:hover {
    color: var(--gf46-primary);
    border-color: var(--gf46-primary);
}
.gf46-footer-promo {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}
.gf46-footer-promo a {
    display: inline-block;
    background: linear-gradient(135deg, var(--gf46-primary), var(--gf46-accent));
    color: #0E1621;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 6px 14px;
    border-radius: 16px;
}
.gf46-footer-promo a.gold {
    background: linear-gradient(135deg, #DEB887, #c9a36e);
}
.gf46-footer-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gf46-text-muted);
    border-top: 1px solid var(--gf46-border);
    padding-top: 14px;
}

/* ========== Bottom Navigation ========== */
.gf46-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, #162232, #0E1621);
    border-top: 1px solid var(--gf46-border);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}
.gf46-bnav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 52px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.gf46-bnav-btn:active { transform: scale(0.9); }
.gf46-bnav-btn i,
.gf46-bnav-btn .material-symbols-outlined,
.gf46-bnav-btn ion-icon,
.gf46-bnav-btn bi {
    font-size: 22px;
    color: var(--gf46-text-muted);
    transition: color 0.2s;
}
.gf46-bnav-btn span {
    font-size: 1rem;
    color: var(--gf46-text-muted);
    margin-top: 2px;
    transition: color 0.2s;
}
.gf46-bnav-active i,
.gf46-bnav-active .material-symbols-outlined,
.gf46-bnav-active ion-icon,
.gf46-bnav-active bi {
    color: var(--gf46-primary);
}
.gf46-bnav-active span {
    color: var(--gf46-primary);
    font-weight: 600;
}

/* ========== FAQ Section ========== */
.gf46-faq-item {
    background: var(--gf46-bg-card);
    border-radius: var(--gf46-radius);
    margin-bottom: 8px;
    padding: 14px;
    border: 1px solid var(--gf46-border);
}
.gf46-faq-q {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gf46-gold);
    margin-bottom: 6px;
}
.gf46-faq-a {
    font-size: 1.3rem;
    color: var(--gf46-text-muted);
    line-height: 1.6;
}

/* ========== Help Page Content ========== */
.gf46-help-content {
    padding: 20px 14px;
}
.gf46-help-content h2 {
    font-size: 1.7rem;
    color: var(--gf46-primary);
    margin: 18px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gf46-border);
}
.gf46-help-content h3 {
    font-size: 1.5rem;
    color: var(--gf46-gold);
    margin: 14px 0 8px;
}
.gf46-help-content p {
    font-size: 1.3rem;
    color: var(--gf46-text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
}
.gf46-help-content ul, .gf46-help-content ol {
    padding-left: 20px;
    margin-bottom: 10px;
}
.gf46-help-content li {
    font-size: 1.3rem;
    color: var(--gf46-text-muted);
    line-height: 1.7;
    margin-bottom: 4px;
}

/* ========== Responsive ========== */
@media (min-width: 769px) {
    .gf46-bottom-nav { display: none !important; }
}
@media (max-width: 768px) {
    .gf46-main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
    .gf46-game-grid { grid-template-columns: repeat(3, 1fr); }
    .gf46-features-grid { grid-template-columns: 1fr; }
}

/* ========== Utilities ========== */
.gf46-text-center { text-align: center; }
.gf46-mt-10 { margin-top: 10px; }
.gf46-mt-16 { margin-top: 16px; }
.gf46-mb-10 { margin-bottom: 10px; }
.gf46-mb-16 { margin-bottom: 16px; }
.gf46-hidden { display: none; }
