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

:root {
    --bg-main: #0a0e17;
    --bg-secondary: #121927;
    --accent: #00d2ff;
    --accent-dark: #3a7bd5;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(18, 25, 39, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background: radial-gradient(circle at top left, var(--bg-secondary) 0%, var(--bg-main) 100%);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Package / Slot Cards */
.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (min-width: 768px) {
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.package-card {
    background: rgba(20, 25, 40, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.package-card.pkg-trial::before { background: linear-gradient(90deg, #2e7d32 0%, #4caf50 100%); opacity: 1;}
.package-card.pkg-1::before { background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%); opacity: 1;}
.package-card.pkg-3::before { background: linear-gradient(90deg, #fa709a 0%, #fee140 100%); opacity: 1;}
.package-card.pkg-12::before { background: linear-gradient(90deg, #f83600 0%, #f9d423 100%); opacity: 1;}
.package-card.slot-10::before { background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%); opacity: 1;}
.package-card.slot-20::before { background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%); opacity: 1;}
.package-card.slot-30::before { background: linear-gradient(90deg, #fa709a 0%, #fee140 100%); opacity: 1;}
.package-card.slot-40::before { background: linear-gradient(90deg, #f83600 0%, #f9d423 100%); opacity: 1;}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

.package-icon {
    font-size: 48px;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(#fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.package-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.package-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.package-desc {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    flex-grow: 1;
}

.package-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.package-features li::before {
    content: '✓';
    color: #4caf50;
    margin-right: 10px;
    font-weight: bold;
}

.package-btn {
    background: linear-gradient(45deg, var(--accent-dark), var(--accent));
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.package-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

.package-card.trial {
    border-color: rgba(76, 175, 80, 0.5);
}
.package-card.trial .package-price {
    color: #4caf50;
}
.package-card.trial .package-btn {
    background: linear-gradient(45deg, #2e7d32, #4caf50);
}

/* Status Box (used in game_slots) */
.status-box {
    background: linear-gradient(135deg, rgba(255,183,77,0.1), rgba(255,152,0,0.1));
    border: 1px solid rgba(255,152,0,0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
.status-box i {
    font-size: 32px;
    color: #ffb74d;
}

/* Glassmorphism Card for Auth Pages */
.auth-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-title {
    font-size: 28px;
    text-align: center;
    color: #fff;
    margin-top: 0;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
    background: -webkit-linear-gradient(45deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

button {
    width: 100%;
    background: linear-gradient(45deg, var(--accent-dark), var(--accent));
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

button.btn-danger {
    background: linear-gradient(45deg, #d32f2f, #f44336);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

button.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

button.btn-success {
    background: linear-gradient(45deg, #2e7d32, #4caf50);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.error-msg {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    color: #ff8a80;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
}

.success-msg {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4caf50;
    color: #b9f6ca;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.auth-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    background: var(--glass-bg);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    margin-top: 40px;
    flex-grow: 1;
}

.nav-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

.glass-panel-content ul li {
    margin-bottom: 12px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
}
.faq-icon {
    font-size: 20px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
    transition: all 0.4s ease;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 20px 20px;
    opacity: 1;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
}

.glass-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.status-indicator {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.3);
}

.games-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 800px;
    overflow-y: auto;
    flex-grow: 1;
}

.games-list li {
    padding: 10px;
    font-size: 13px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.games-list li:last-child {
    border-bottom: none;
}

.game-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 8px var(--accent);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Landing Page Styles */
.landing-body {
    display: block;
    min-height: 100vh;
    background: #0a0e17; /* Fallback */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: -webkit-linear-gradient(45deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links .btn-login {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links .btn-register {
    background: linear-gradient(45deg, var(--accent-dark), var(--accent));
    padding: 8px 16px;
    border-radius: 6px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 40px;
    background: url('hero_bg.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.3) 0%, rgba(10, 14, 23, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.hero-title .highlight {
    background: -webkit-linear-gradient(45deg, #00d2ff, #b347ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-dark), var(--accent));
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Features */
.features-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-main);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: rgba(0, 210, 255, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* CTA */
.cta-section {
    background: linear-gradient(45deg, rgba(58, 123, 213, 0.1), rgba(0, 210, 255, 0.1));
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.cta-section h2 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 13px;
    background: var(--bg-main);
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    user-select: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        position: relative;
        padding: 10px 0;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: relative;
    }
    
    .menu-icon {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        z-index: 999;
    }
    
    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
        padding: 10px 0;
        text-align: center;
        width: 100%;
    }

    .nav-links .btn-login, .nav-links .btn-register {
        width: calc(100% - 40px);
        margin: 0 auto;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .pricing-grid, .features-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 25px;
        margin: 20px;
        width: calc(100% - 40px);
    }

    /* Dashboard Mobile Responsiveness */
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        min-width: 100%;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .sidebar .brand-title {
        font-size: 20px !important;
        margin-bottom: 5px;
    }
    
    .sidebar-nav {
        margin-top: 10px;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hide scrollbar for a cleaner look */
    .sidebar-nav::-webkit-scrollbar {
        height: 4px;
    }
    
    .nav-item {
        margin-bottom: 0;
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .dashboard-grid, .packages-grid {
        grid-template-columns: 1fr;
    }
}