/**
 * JLJL7799 Core Stylesheet
 * All classes use prefix: sea9-
 * Color palette: #00FA9A | #ADFF2F | #1A1A1A | #006400 | #FFB3BA
 * Mobile-first responsive design, max-width 430px
 */
:root {
    --sea9-primary: #00FA9A;
    --sea9-accent: #ADFF2F;
    --sea9-bg: #1A1A1A;
    --sea9-deep: #006400;
    --sea9-pink: #FFB3BA;
    --sea9-text: #F0F0F0;
    --sea9-muted: #999;
    --sea9-card-bg: #242424;
    --sea9-border: #333;
    --sea9-gold: #FFD700;
    font-size: 62.5%;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--sea9-bg);
    color: var(--sea9-text);
    font-size: 1.5rem;
    line-height: 1.5;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ========== HEADER ========== */
.sea9-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border-bottom: 2px solid var(--sea9-primary);
    z-index: 1000;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.sea9-logo-area img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

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

.sea9-header-btns {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sea9-btn-register {
    background: linear-gradient(135deg, var(--sea9-primary), #00cc7a);
    color: #000;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sea9-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(0, 250, 154, 0.5);
}

.sea9-btn-login {
    background: transparent;
    color: var(--sea9-primary);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--sea9-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.sea9-btn-login:hover {
    background: rgba(0, 250, 154, 0.1);
}

.sea9-menu-toggle {
    background: none;
    border: none;
    color: var(--sea9-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
}

/* ========== MOBILE MENU ========== */
.sea9-mobile-menu {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
}

.sea9-menu-active { display: flex; }

.sea9-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--sea9-primary);
    font-size: 2.4rem;
    cursor: pointer;
}

.sea9-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sea9-menu-links a {
    color: var(--sea9-text);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--sea9-border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.2s;
}

.sea9-menu-links a:hover { color: var(--sea9-primary); }

/* ========== MAIN CONTENT ========== */
.sea9-main {
    margin-top: 52px;
    padding: 0 1rem;
}

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

/* ========== CAROUSEL ========== */
.sea9-carousel {
    position: relative;
    width: 100%;
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/7;
}

.sea9-carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.sea9-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.sea9-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.sea9-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.sea9-dot-active { background: var(--sea9-primary); }

/* ========== SECTION HEADINGS ========== */
.sea9-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sea9-primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--sea9-deep);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sea9-section-title i, .sea9-section-title span.material-symbols-outlined {
    font-size: 2rem;
}

/* ========== GAME GRID ========== */
.sea9-game-section { margin: 1.5rem 0; }

.sea9-cat-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sea9-accent);
    margin: 1.5rem 0 0.8rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--sea9-primary);
}

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

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

.sea9-game-card:hover { transform: scale(1.06); }

.sea9-game-card img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    border: 1.5px solid var(--sea9-border);
    transition: border-color 0.2s;
}

.sea9-game-card:hover img { border-color: var(--sea9-primary); }

.sea9-game-card span {
    font-size: 1.1rem;
    color: var(--sea9-text);
    margin-top: 0.3rem;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== CONTENT CARDS ========== */
.sea9-card {
    background: var(--sea9-card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--sea9-border);
}

.sea9-card h3 {
    color: var(--sea9-primary);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.sea9-card p {
    color: var(--sea9-text);
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

/* ========== CTA BUTTONS ========== */
.sea9-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--sea9-primary), #00cc7a);
    color: #000;
    font-weight: 700;
    font-size: 1.4rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sea9-cta-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 250, 154, 0.4);
}

.sea9-text-link {
    color: var(--sea9-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px dashed var(--sea9-primary);
}

.sea9-text-link:hover {
    color: var(--sea9-accent);
    border-bottom-color: var(--sea9-accent);
}

/* ========== TESTIMONIALS ========== */
.sea9-testimonial {
    background: var(--sea9-card-bg);
    border-radius: 12px;
    padding: 1.2rem;
    margin: 0.8rem 0;
    border-left: 3px solid var(--sea9-pink);
}

.sea9-testimonial-name {
    font-weight: 700;
    color: var(--sea9-pink);
    font-size: 1.3rem;
}

.sea9-testimonial-text {
    font-size: 1.2rem;
    color: var(--sea9-muted);
    margin-top: 0.4rem;
    font-style: italic;
}

/* ========== WINNERS ========== */
.sea9-winner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--sea9-border);
    font-size: 1.2rem;
}

.sea9-winner-name { color: var(--sea9-accent); font-weight: 600; }
.sea9-winner-game { color: var(--sea9-muted); }
.sea9-winner-amount { color: var(--sea9-gold); font-weight: 700; }

/* ========== PAYMENT ========== */
.sea9-payment-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.sea9-payment-item {
    background: var(--sea9-card-bg);
    border: 1.5px solid var(--sea9-border);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* ========== FOOTER ========== */
.sea9-footer {
    background: #111;
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 2px solid var(--sea9-deep);
}

.sea9-footer-brand {
    font-size: 1.3rem;
    color: var(--sea9-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.sea9-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
}

.sea9-footer-links a {
    color: var(--sea9-primary);
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--sea9-border);
    border-radius: 6px;
    transition: background 0.2s;
}

.sea9-footer-links a:hover { background: rgba(0, 250, 154, 0.1); }

.sea9-footer-copy {
    text-align: center;
    font-size: 1.1rem;
    color: var(--sea9-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sea9-border);
}

/* ========== BOTTOM NAVIGATION ========== */
.sea9-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
    border-top: 1.5px solid var(--sea9-deep);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.sea9-bottom-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(--sea9-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0.4rem;
}

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

.sea9-bottom-nav-btn .sea9-nav-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

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

/* ========== HELP PAGE SPECIFIC ========== */
.sea9-help-section { margin: 1rem 0; }

.sea9-faq-item {
    background: var(--sea9-card-bg);
    border-radius: 10px;
    margin: 0.6rem 0;
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--sea9-primary);
}

.sea9-faq-item h3 {
    color: var(--sea9-accent);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.sea9-faq-item p {
    font-size: 1.2rem;
    color: var(--sea9-text);
    line-height: 1.5;
}

.sea9-step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 0.8rem 0;
}

.sea9-step-num {
    background: var(--sea9-deep);
    color: var(--sea9-primary);
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 769px) {
    .sea9-bottom-nav { display: none; }
    .sea9-menu-toggle { display: none; }
}

@media (max-width: 768px) {
    .sea9-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }
}

/* ========== UTILITY ========== */
.sea9-text-center { text-align: center; }
.sea9-mt-1 { margin-top: 1rem; }
.sea9-mt-2 { margin-top: 2rem; }
.sea9-mb-1 { margin-bottom: 1rem; }
.sea9-mb-2 { margin-bottom: 2rem; }
.sea9-hidden { display: none; }

.sea9-badge {
    display: inline-block;
    background: var(--sea9-deep);
    color: var(--sea9-primary);
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

.sea9-highlight {
    color: var(--sea9-primary);
    font-weight: 600;
}

.sea9-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sea9-deep);
    color: var(--sea9-primary);
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    border: 1.5px solid var(--sea9-primary);
    cursor: pointer;
    transition: background 0.2s;
}

.sea9-app-btn:hover {
    background: rgba(0, 250, 154, 0.15);
}
