:root {
    --primary: #00f2ff;
    --primary-rgb: 0, 242, 255;
    --secondary: #7000ff;
    --secondary-rgb: 112, 0, 255;
    --accent: #ff00c1;
    --bg-darker: #05060a;
    --bg-dark: #0a0b14;
    --card-bg: rgba(22, 27, 34, 0.4);
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-heavy: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-light: rgba(255, 255, 255, 0.2);
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Outfit:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Premium Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(var(--secondary-rgb), 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(var(--primary-rgb), 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 193, 0.05) 0%, transparent 50%);
    z-index: -2;
}

.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black, transparent 90%);
}

/* Typography */
h1, h2, h3, .logo {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Layout */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Navigation */
header {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(var(--bg-darker), 0.5);
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 36px;
    height: 36px;
    background: url('../images/favicon.jpeg') no-repeat center center;
    background-size: cover;
    position: relative;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
    border-radius: 8px;
    transition: 0.3s;
}

.logo:hover .logo-box {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 30px var(--primary);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-glow {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-glow:hover {
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

/* Dashboard Specific */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.side-nav {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px 10px;
    backdrop-filter: blur(20px);
    position: sticky;
    top: 130px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 14px;
    transition: 0.3s;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.nav-link span { font-size: 1.2rem; }

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.15), transparent);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 25%; height: 50%; width: 4px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--primary);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: var(--glass-border-light);
    background: var(--glass-heavy);
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-info h4 {
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-info p {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Data Card & Table */
.data-card {
    background: var(--glass);
    border-radius: 28px;
    padding: 35px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

th {
    padding: 10px 20px;
    text-align: left;
    color: var(--text-dim);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

tr.row-item {
    background: rgba(255,255,255,0.02);
    transition: 0.3s ease;
}

tr.row-item:hover {
    background: rgba(255,255,255,0.06);
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

td {
    padding: 18px 20px;
}

td:first-child { border-radius: 18px 0 0 18px; border-left: 1px solid var(--glass-border); }
td:last-child { border-radius: 0 18px 18px 0; border-right: 1px solid var(--glass-border); }

.status-chip {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

/* Input Styles */
.input-field {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    padding: 14px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    transition: 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
}

/* Login Page Enhancement */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
}

.login-card {
    background: rgba(10, 11, 20, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 35px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6), 0 0 50px rgba(var(--primary-rgb), 0.05);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}



/* Game Grid & Cards */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    padding-bottom: 120px;
    scroll-margin-top: 120px;
    justify-content: center;
}

.game-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 12px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.game-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 30px rgba(var(--primary-rgb), 0.2);
}

.game-thumb-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.game-card:hover .game-thumb {
    transform: scale(1.15);
}

.game-card-content {
    padding: 22px 12px 12px;
}

.game-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
    font-family: 'Outfit', sans-serif; /* Using Outfit for titles for readability */
    letter-spacing: 0;
}

.game-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
}

.play-tag {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

/* Immersive Game Overlay */
.game-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(10, 11, 20, 0.92), #05060a);
    backdrop-filter: blur(50px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0; /* Fullscreen feel */
}

.game-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 15% 15%, rgba(var(--primary-rgb), 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(var(--secondary-rgb), 0.15) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: pulse 10s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.game-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: none;
    background: #000;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 150px rgba(0,0,0,1);
    transition: 0.5s ease;
}

.overlay-controls {
    position: fixed;
    top: 30px;
    right: 40px;
    display: flex;
    gap: 15px;
    z-index: 2005;
}

.close-btn, .fs-btn {
    width: 54px;
    height: 54px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
}

.close-btn {
    font-size: 2rem;
}

.close-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 30px var(--accent);
    border-color: var(--accent);
}

.fs-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--primary);
    border-color: var(--primary);
}


.game-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}


/* Immersive Loader */
.loader-wrap {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #05060a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.neon-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-bottom-color: var(--secondary);
    animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    position: relative;
}

.neon-ring::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-left-color: var(--accent);
    animation: spin 3s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State Styling */
.empty-state {
    grid-column: 1/-1;
    padding: 120px 0;
    text-align: center;
    background: var(--glass);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
}

.empty-icon {
    font-size: 6rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.3));
}
/* Ad Redirection Prompt */
.loader-text {
    margin-top: 30px; 
    font-weight: 800; 
    letter-spacing: 5px;
}

.ad-prompt {
    display: none; 
    flex-direction: column; 
    align-items: center; 
    gap: 20px; 
    animation: fadeInUp 0.5s ease;
    text-align: center;
}

.prompt-title {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.prompt-subtitle {
    color: var(--text-dim); 
    max-width: 350px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.start-mission-btn {
    padding: 18px 45px; 
    font-size: 1.1rem;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.4);
}

.start-mission-btn:hover {
    box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.6);
}

/* Native Ad Styling */
.native-ad-row {
    grid-column: 1 / -1;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    width: 100%;
}

.ad-label {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.65rem;
    padding: 4px 12px;
    border-radius: 0 0 12px 0;
    font-weight: 800;
    letter-spacing: 1px;
    border-right: 1px solid rgba(var(--primary-rgb), 0.2);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
}

    #container-5a6b778e0ad4f86b4008387dac58f23a {
    min-height: 100px;
    width: 100%;
}

/* Sticky Banner Ad */
.sticky-banner-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(10, 11, 20, 0.85);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    padding: 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
}

.sticky-banner-ad .ad-wrapper {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.ad-close {
    position: absolute;
    top: -35px;
    right: 15px;
    background: var(--bg-darker);
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    z-index: 2001;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.ad-close:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

/* Responsive adjustments for the ad */
@media (max-width: 768px) {
    .sticky-banner-ad {
        padding: 5px 0;
    }
    .ad-wrapper iframe {
        transform: scale(0.8);
    }
}

