/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-dark: #08080d;
    --bg-card: #101018;
    --bg-card-hover: #161624;
    --surface: #0d0d14;
    --surface-raised: #141420;
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(138, 43, 226, 0.35);
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #4a4a64;
    --accent: #8a2be2;
    --accent-light: #a855f7;
    --accent-glow: rgba(138, 43, 226, 0.25);
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.12);
    --green-border: rgba(34, 197, 94, 0.25);
    --red: #ef4444;
    --orange: #f97316;
    --gradient: linear-gradient(135deg, #8a2be2 0%, #a855f7 50%, #c084fc 100%);
    --gradient-text: linear-gradient(90deg, #a855f7, #c084fc, #e879f9);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg-dark); }
body { font-family: var(--font-body); background: var(--bg-dark); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
::selection { background: var(--accent); color: white; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(8, 8, 13, 0.9);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text, .footer-logo {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 900;
    color: var(--text-primary); letter-spacing: 0.02em;
}
.accent { color: var(--accent-light); }

.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a {
    text-decoration: none; color: var(--text-secondary); font-size: 0.85rem;
    font-weight: 500; transition: color var(--transition); position: relative; letter-spacing: 0.01em;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1.5px; background: var(--gradient); transition: width var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent-light); }
.nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-discord {
    display: flex; align-items: center; gap: 8px; padding: 8px 18px;
    background: #5865F2; color: white; border: none; border-radius: 8px;
    text-decoration: none; font-size: 0.82rem; font-weight: 600; transition: all var(--transition);
}
.btn-discord:hover { background: #4752c4; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { width: 22px; height: 1.5px; background: var(--text-primary); transition: var(--transition); }

/* ===== HERO (index.html) ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; overflow: hidden; padding: 120px 24px 80px;
}
.hero-bg-effects { position: absolute; inset: 0; pointer-events: none; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(138, 43, 226, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 43, 226, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}
.glow { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.3; }
.glow-1 { width: 500px; height: 500px; background: var(--accent); top: -200px; left: -100px; animation: float 8s ease-in-out infinite; }
.glow-2 { width: 350px; height: 350px; background: #6366f1; bottom: -100px; right: -50px; animation: float 10s ease-in-out infinite reverse; }
.glow-3 { width: 250px; height: 250px; background: #7c3aed; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: pulse-glow 6s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.03); } }
@keyframes pulse-glow { 0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.1); } }

.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
    background: var(--green-dim); border: 1px solid var(--green-border); border-radius: 100px;
    font-size: 0.75rem; font-weight: 600; color: var(--green); margin-bottom: 28px;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.pulse-dot {
    width: 8px; height: 8px; background: var(--green); border-radius: 50%;
    display: inline-block; animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero h1 {
    font-family: var(--font-display); font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 900; line-height: 1.15; margin-bottom: 20px;
}
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.05rem; color: var(--text-secondary); max-width: 520px; margin: 0 auto 36px; line-height: 1.7; }

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px;
    background: var(--gradient); color: white; border: none; border-radius: 10px;
    text-decoration: none; font-size: 0.9rem; font-weight: 600;
    transition: all var(--transition); box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(138, 43, 226, 0.4); }
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px;
    background: transparent; color: var(--text-primary); border: 1px solid var(--border);
    border-radius: 10px; text-decoration: none; font-size: 0.9rem; font-weight: 500;
    transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--accent); background: rgba(138, 43, 226, 0.04); transform: translateY(-2px); }

.hero-stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--accent-light); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ===== GAME PREVIEW CARDS (index.html) ===== */
.games-preview { padding: 80px 0 100px; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }

.game-preview-card {
    display: block; text-decoration: none; color: var(--text-primary);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
}
.game-preview-card:hover {
    transform: translateY(-4px); border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.12);
}
.gpc-img { height: 140px; overflow: hidden; background: #0a0a12; display: flex; align-items: center; justify-content: center; }
.gpc-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; opacity: 0.85; transition: all var(--transition); }
.game-preview-card:hover .gpc-img img { opacity: 1; transform: scale(1.05); }
.gpc-body { padding: 18px; }
.gpc-body h3 { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.gpc-body p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.gpc-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 600;
}
.gpc-status.online { color: var(--green); }
.status-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; display: inline-block; }

/* ===== PAGE HEADER (sub pages) ===== */
.page-header {
    position: relative; padding: 140px 24px 60px; text-align: center; overflow: hidden;
}
.page-title {
    font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 900; position: relative; z-index: 2; margin-bottom: 10px;
}
.page-sub { color: var(--text-secondary); font-size: 1rem; position: relative; z-index: 2; }

/* ===== SHARED ===== */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title {
    font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900; text-align: center; margin-bottom: 10px;
}
.section-sub { text-align: center; color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 40px; }

/* ===== GAME SECTIONS (cheats.html) ===== */
.game-section { padding: 60px 0; }
.game-section:first-of-type { padding-top: 40px; }

.section-divider hr {
    border: none; border-top: 1px solid var(--border); margin: 0;
}

.game-header {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px;
}
.game-header-img { position: relative; min-height: 240px; overflow: hidden; background: #0a0a12; display: flex; align-items: center; justify-content: center; }
.game-header-img img { width: 100%; height: 100%; object-fit: contain; padding: 28px; opacity: 0.9; }
.panel-status-badge {
    position: absolute; top: 16px; right: 16px; padding: 6px 14px;
    border-radius: 100px; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.panel-status-badge.online { background: var(--green-dim); border: 1px solid var(--green-border); color: var(--green); }

.game-header-info { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.game-header-info h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; margin-bottom: 12px; }
.game-header-info p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 18px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.meta-chip {
    display: inline-block; padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
    border-radius: 100px; font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
}

.btn-download-inline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; background: var(--gradient); color: white;
    border: none; border-radius: var(--radius); text-decoration: none;
    font-size: 0.88rem; font-weight: 700; transition: all var(--transition);
    width: fit-content;
}
.btn-download-inline:hover { box-shadow: 0 6px 24px rgba(138, 43, 226, 0.45); transform: translateY(-2px); }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; transition: all var(--transition);
}
.feature-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-2px); }
.feature-icon {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: rgba(138, 43, 226, 0.08); border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 10px; color: var(--accent-light); margin-bottom: 14px;
}
.feature-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ===== STATUS TABLE ===== */
.status-page-content { padding: 40px 0 100px; }
.status-table-wrap {
    overflow-x: auto; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-card); margin-bottom: 40px;
}
.status-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.status-table th {
    padding: 14px 20px; text-align: left; font-size: 0.75rem; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.015); border-bottom: 1px solid var(--border);
}
.status-table td { padding: 14px 20px; font-size: 0.88rem; border-bottom: 1px solid var(--border); }
.status-table tbody tr:last-child td { border-bottom: none; }
.status-table tbody tr { transition: background var(--transition); }
.status-table tbody tr:hover { background: rgba(138, 43, 226, 0.02); }
.game-name { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem !important; }
.status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 600;
}
.status-badge.online { background: var(--green-dim); color: var(--green); }

.table-download {
    color: var(--accent-light); text-decoration: none; font-weight: 600; font-size: 0.82rem;
    padding: 4px 12px; border: 1px solid rgba(138, 43, 226, 0.2); border-radius: 6px;
    transition: all var(--transition);
}
.table-download:hover { color: white; background: var(--accent); border-color: var(--accent); }

/* Status Info Cards */
.status-info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card {
    display: flex; gap: 16px; align-items: flex-start; padding: 24px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.info-card-icon {
    width: 40px; height: 40px; min-width: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
}
.info-card-icon.green { background: var(--green-dim); color: var(--green); }
.info-card-icon.orange { background: rgba(249, 115, 22, 0.12); color: var(--orange); }
.info-card-icon.red { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.info-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.info-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ===== FAQ ===== */
.faq-page-content { padding: 40px 0 100px; }
.faq-grid { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(138, 43, 226, 0.15); }
.faq-item.active { border-color: var(--border-hover); }
.faq-question {
    width: 100%; padding: 18px 24px; background: none; border: none;
    color: var(--text-primary); font-size: 0.9rem; font-weight: 500;
    text-align: left; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; font-family: var(--font-body); transition: color var(--transition);
}
.faq-question::after {
    content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--text-muted);
    transition: all var(--transition); flex-shrink: 0; margin-left: 16px;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); color: var(--accent-light); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 250px; }
.faq-answer p { padding: 0 24px 18px; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }

/* ===== FOOTER ===== */
.footer { padding: 50px 0 28px; border-top: 1px solid var(--border); background: var(--bg-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-logo { display: block; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.83rem; line-height: 1.6; }
.footer-links h4 { font-size: 0.8rem; font-weight: 600; margin-bottom: 14px; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links a { display: block; color: var(--text-muted); text-decoration: none; font-size: 0.83rem; padding: 3px 0; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .game-header { grid-template-columns: 1fr; }
    .game-header-info { padding: 28px; }
    .status-info-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: rgba(8, 8, 13, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; padding: 20px 24px; gap: 14px; border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: flex; }
    .games-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-stats { gap: 28px; }
}
@media (max-width: 480px) {
    .hero { padding: 100px 16px 60px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-outline { justify-content: center; }
    .game-header-img { min-height: 160px; }
    .feature-card { padding: 18px; }
    .page-header { padding: 120px 16px 40px; }
}

/* Security Modal Styles */
.security-modal {
    display: block;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.security-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #00d4ff;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.security-modal-header h2 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.security-modal-header p {
    color: #b0b0b0;
    margin-bottom: 30px;
    font-size: 16px;
}

.security-modal-body {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.security-modal-footer p {
    color: #888;
    font-size: 14px;
    margin-top: 20px;
}

/* Security modal styles removed - site should be visible */

/* Animation for modal appearance */
.security-modal-content {
    animation: modalAppear 0.5s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Download Modal Specific Styles - Minimal */
.minimal-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.minimal-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.btn-cancel {
    background: transparent;
    border: 1px solid #666;
    color: #ccc;
    padding: 8px 16px;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    border-color: #ff4757;
    color: #ff4757;
}

/* GoFile URL hiding */
iframe {
    pointer-events: none;
}

/* Hide GoFile bottom elements */
[data-testid="download-url"],
.download-url,
.footer-url,
.source-url {
    display: none !important;
}