/* Live Area Base CSS (Extends Empire Styles) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&family=Cinzel:wght@600;800&display=swap');

:root {
    --live-cyan: #00f2ea;
    --live-pink: #ff0050;
    --live-purple: #9d00ff;
    --bg-darker: #050508;
    --panel-bg: rgba(10, 15, 25, 0.6);
    --panel-border: rgba(0, 242, 234, 0.2);
    --text-main: #e0e5ff;
    --text-muted: #8b95c9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Cosmic Background Fixed */
.live-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.3) contrast(1.2);
}

.live-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top right, rgba(0, 242, 234, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 0, 80, 0.05), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Utility Nav */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.back-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--live-cyan);
    text-shadow: 0 0 10px var(--live-cyan);
    transform: translateX(-5px);
}

/* User Auth Setup */
.auth-buttons {
    display: flex;
    gap: 20px;
}

.auth-buttons a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-login {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 25, 35, 0.5);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-register {
    color: #fff;
    background: linear-gradient(135deg, var(--live-cyan), var(--live-purple));
    border: 1px solid transparent;
}

.btn-register:hover {
    filter: brightness(1.2);
}

.user-profile {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    background: rgba(20, 25, 35, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    user-select: none;
}

.profile-trigger:hover {
    border-color: var(--live-cyan);
}

.avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--live-cyan);
}

.profile-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: rgba(10, 15, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 150px;
    padding: 8px;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
    color: #ef4444;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Coming Soon effect */
.coming-soon {
    filter: grayscale(100%);
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
    pointer-events: auto;
    /* Required for hover tooltip */
}

.coming-soon:hover::after {
    content: "Coming Soon";
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--live-cyan);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    border: 1px solid rgba(0, 242, 234, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.city-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 0 15px var(--live-cyan);
    letter-spacing: 2px;
}

/* Main Dashboard Grid */
.live-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-glass {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 60px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 242, 234, 0.05);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 234, 0.1) 0%, transparent 50%);
    animation: rotateGlow 15s linear infinite;
    z-index: 0;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.badge-live {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 0, 80, 0.15);
    border: 1px solid var(--live-pink);
    color: var(--live-pink);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(255, 0, 80, 0.3);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--live-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, var(--live-cyan), #00a8ff);
    color: #000;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 242, 234, 0.5);
    filter: brightness(1.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-main);
    padding: 15px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 15px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

.hero-visual {
    position: relative;
    z-index: 1;
    width: 400px;
    height: 400px;
    perspective: 1000px;
}

.hologram-card {
    width: 100%;
    height: 100%;
    background: url('../images/w_live.png') center/contain no-repeat;
    filter: drop-shadow(0 0 30px rgba(0, 242, 234, 0.4));
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(5deg) rotateY(-5deg);
    }

    50% {
        transform: translateY(-20px) rotateX(-5deg) rotateY(5deg);
    }
}

/* Sections */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin: 80px 0 40px;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.game-card {
    background: rgba(15, 20, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--live-cyan), var(--live-purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
    background: rgba(20, 25, 40, 0.8);
    border-color: var(--panel-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.game-card:hover::before {
    opacity: 1;
}

.game-icon {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    background-color: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(0, 242, 234, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.game-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-action {
    color: var(--live-cyan);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.card-action:hover {
    border-color: var(--live-cyan);
}

/* Pricing Section (Image 3 match) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.price-tier {
    background: #0d0f14;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tier-free {
    border-color: rgba(255, 255, 255, 0.05);
}

.tier-free:hover {
    border-color: rgba(0, 242, 234, 0.3);
}

.tier-pro {
    border-color: rgba(157, 0, 255, 0.4);
    box-shadow: 0 10px 40px rgba(157, 0, 255, 0.15);
}

.tier-expert {
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 10px 40px rgba(255, 193, 7, 0.15);
}

.tier-expert::after {
    content: 'ELITE UNIT';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.price-tier h4 {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.tier-expert h4 {
    color: #ffc107;
}

.price-amount {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
}

.price-amount span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-dzd {
    color: #22c55e;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    text-align: left;
    margin-bottom: 0px;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0e5ff;
    font-size: 0.95rem;
}

.tier-free .feature-list li svg {
    color: #3a4a6b;
}

.tier-pro .feature-list li svg {
    color: #9d00ff;
}

.tier-expert .feature-list li svg {
    color: #ffc107;
}

.price-tier h4 {
    color: var(--text-muted);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.price-amount {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
}

.price-amount span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.feature-list {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.feature-list li svg {
    color: var(--live-cyan);
    flex-shrink: 0;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-dark {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dark:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 80px;
}

@media (max-width: 900px) {
    .hero-glass {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-visual {
        width: 300px;
        height: 300px;
        margin-top: 40px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .tier-pro {
        transform: scale(1);
    }
}