:root {
    --primary: #9931f7;
    --primary-bright: #5311f3;
    --secondary: #0a0e14;
    --accent: #5311f3;
    --text: #ffffff;
    --text-muted: #bcbcbc;
    --gradient: linear-gradient(135deg, var(--primary), var(--primary-bright));
    --glass: rgba(153, 49, 247, 0.05);
    --glass-border: rgba(153, 49, 247, 0.2);
    --neon-blue: 0 0 10px rgba(83, 17, 243, 0.5), 0 0 20px rgba(83, 17, 243, 0.3);
    --neon-gold: 0 0 10px rgba(153, 49, 247, 0.5), 0 0 20px rgba(153, 49, 247, 0.3);
    --font-main: 'Outfit', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: #05070a;
    color: var(--text);
    background-image: url('../images/bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
}


/* Glassmorphism utility */
.glass-effect {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu a:hover {
    color: var(--primary);
    text-shadow: var(--neon-gold);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-bright));
    color: #000;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: var(--neon-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-gold), 0 10px 25px rgba(153, 49, 247, 0.4);
    filter: brightness(1.1);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: #000;
}

/* Banner Section with Sparks */
.hero {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.8) 80%);
    z-index: 1;
}

/* Animated Sparks */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 15% 15%, #9d00ff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 25% 60%, #ff00ff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40% 30%, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 60% 80%, #9d00ff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 85% 40%, #ff00ff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90% 10%, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 400px 400px;
    animation: sparks 3s linear infinite;
    opacity: 0.7;
    z-index: 2;
    pointer-events: none;
}

@keyframes sparks {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-100px); opacity: 0; }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner.png') center/cover no-repeat;
    z-index: -1;
    transform: scale(1.1);
    filter: brightness(0.6) saturate(1.2);
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-transform: uppercase;
    background: linear-gradient(to right, #9d00ff, #ff00ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(157, 0, 255, 0.5);
    z-index: 10;
    position: relative;
}

.online-counter {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: bold;
}

.dot {
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* Home Sections */
.main-content {
    max-width: 1200px;
    margin: -100px auto 50px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.section-card {
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--primary);
}

/* Socials Grid */
.socials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

.social-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.social-item.discord { border-bottom: 3px solid #5865F2; }
.social-item.instagram { border-bottom: 3px solid #E1306C; }

.social-icon {
    font-size: 40px;
}

/* News/Patch Notes */
.news-list {
    display: grid;
    gap: 15px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}

.news-item:hover {
    background: rgba(255,255,255,0.05);
}

.news-tag {
    background: var(--primary);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* Info/Rewards */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.reward-box {
    text-align: center;
    padding: 20px;
    transition: 0.3s;
}

.reward-box img {
    margin-bottom: 15px;
}

/* Ranking Preview */
.top-ranking {
    width: 100%;
    border-collapse: collapse;
}

.top-ranking th, .top-ranking td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.top-ranking tr:last-child td { border-bottom: none; }

.rank-pos {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass);
    font-weight: bold;
}

.pos-1 { background: var(--primary); color: #000; }

/* Footer */
footer {
    padding: 60px 20px;
    background: #0a0e14;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info {
    max-width: 400px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Mobile Responsiveness - Comprehensive */
@media (max-width: 992px) {
    .menu { display: none; }
    .hero-content h1 { font-size: 48px; }
    .socials-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; margin-top: 20px; }
    .section-card { padding: 25px; }
    .section-title { font-size: 24px; }
    .news-item-modern { padding: 20px; }
    .news-item-title { font-size: 16px; }
    .news-item-description { font-size: 14px; }
    .top-ranking th, .top-ranking td { padding: 12px; }
    .reward-box { padding: 15px; }
    .reward-medal { width: 50px; height: 50px; }
    /* Home Page Specific */
    .left-col, .right-col { width: 100%; }
    .card-premium { margin-bottom: 30px; }
}

@media (max-width: 768px) {
    .hero { height: 500px; }
    .hero-content h1 { font-size: 36px; }
    .menu { display: none; }
    .btn-primary, .btn-outline { padding: 10px 20px; font-size: 14px; }
    .section-card { padding: 20px; }
    .section-title { font-size: 22px; }
    .news-item-modern { padding: 18px; }
    .news-item-title { font-size: 15px; }
    .news-item-description { font-size: 13px; }
    .top-ranking th, .top-ranking td { padding: 10px; }
    .reward-box { padding: 12px; }
    .reward-medal { width: 45px; height: 45px; }
    .card-premium { padding: 25px; }
}

@media (max-width: 576px) {
    .hero { height: 350px; }
    .hero-content h1 { font-size: 28px; }
    .section-title { font-size: 20px; }
    .socials-grid { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; align-items: center; }
    .dashboard-grid { margin-top: 15px; }
    .card-premium { padding: 20px; }
    .news-item-modern { padding: 15px; }
    .news-item-title { font-size: 14px; }
    .news-item-description { font-size: 12px; }
    .top-ranking th, .top-ranking td { padding: 8px; }
    .reward-box { padding: 10px; }
    .reward-medal { width: 40px; height: 40px; }
    .btn-primary, .btn-outline { padding: 12px 25px; font-size: 15px; }
    .btn-primary-header, .btn-outline-header { padding: 12px 25px; font-size: 14px; }
    .online-counter-hero { padding: 8px 20px; font-size: 13px; }
    .online-counter { padding: 6px 15px; font-size: 12px; }
    .hero-logo img { max-width: 150px; }
    .news-item-date { font-size: 11px; }
}

@media (max-width: 480px) {
    .hero { height: 280px; }
    .hero-content h1 { font-size: 24px; }
    .section-title { font-size: 18px; }
    .card-premium { padding: 15px; }
    .news-item-modern { padding: 12px; }
    .news-item-title { font-size: 13px; }
    .news-item-description { font-size: 11px; }
    .top-ranking th, .top-ranking td { padding: 6px; }
    .reward-box { padding: 8px; }
    .reward-medal { width: 35px; height: 35px; }
    .btn-primary, .btn-outline { padding: 10px 20px; font-size: 13px; }
    .btn-primary-header, .btn-outline-header { padding: 10px 20px; font-size: 12px; }
    .online-counter-hero { padding: 6px 15px; font-size: 11px; }
    .online-counter { padding: 4px 10px; font-size: 10px; }
    .hero-logo img { max-width: 120px; }
    .news-item-date { font-size: 10px; }
    .social-btn { padding: 12px; }
    .social-btn span { font-size: 12px; }
    .social-btn span:last-child { font-size: 11px; }
    .rank-pos { width: 22px; height: 22px; font-size: 10px; }
    .pos-1, .pos-2, .pos-3 { font-size: 10px; }
    .news-tag { font-size: 9px; padding: 2px 8px; }
}

/* Touch Target Optimization */
@media (hover: none) and (pointer: coarse) {
    .btn-primary, .btn-outline, .btn-primary-header, .btn-outline-header, .social-btn, .news-item-modern {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px !important;
    }
    .social-btn { padding: 14px 20px !important; }
    .news-item-modern { padding: 16px 20px !important; }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Better Mobile Spacing */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    .main-content {
        padding: 0 15px;
    }
    .nav-container {
        padding: 0 15px;
    }
    .header-spacer {
        height: 80px;
    }
    .hero {
        height: 500px !important;
    }
    .hero-content h1 {
        font-size: 36px !important;
    }
    .online-counter-hero {
        padding: 10px 25px !important;
        font-size: 13px !important;
    }
    .hero-logo img {
        max-width: 250px !important;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .main-content {
        padding: 0 10px;
    }
    .nav-container {
        padding: 0 10px;
    }
    .header-spacer {
        height: 70px;
    }
    .hero {
        height: 350px !important;
    }
    .hero-content h1 {
        font-size: 28px !important;
    }
    .online-counter-hero {
        padding: 8px 20px !important;
        font-size: 12px !important;
    }
    .hero-logo img {
        max-width: 180px !important;
    }
}

/* Hero Section Mobile Optimizations */
@media (max-width: 992px) {
    .hero {
        height: 600px !important;
    }
    .hero-content h1 {
        font-size: 48px !important;
    }
    .online-counter-hero {
        padding: 12px 30px !important;
        font-size: 14px !important;
    }
    .hero-logo img {
        max-width: 300px !important;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 500px !important;
    }
    .hero-content h1 {
        font-size: 36px !important;
    }
    .online-counter-hero {
        padding: 10px 25px !important;
        font-size: 13px !important;
    }
    .hero-logo img {
        max-width: 250px !important;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px !important;
    }
    .hero-content h1 {
        font-size: 28px !important;
    }
    .online-counter-hero {
        padding: 8px 20px !important;
        font-size: 12px !important;
    }
    .hero-logo img {
        max-width: 180px !important;
    }
}

/* Accessibility Focus Styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Remove default focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* GLOBAL PREMIUM TOOLTIP - MU ADDICT DESIGN */
#tooltip {
    position: absolute;
    z-index: 999999 !important;
    background: rgba(10, 10, 12, 0.95) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    padding: 1px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8) !important;
    min-width: 260px;
    max-width: 340px;
    pointer-events: none;
    display: none;
    text-align: center;
    font-family: 'Outfit', sans-serif !important;
}

#tooltip .body {
    padding: 15px 20px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #cbd5e1 !important;
}

/* Item Names (Title Section) */
#tooltip b, #tooltip .title, #tooltip .item_white { 
    color: #ffffff !important; 
    font-size: 15px !important;
    display: block !important;
    margin-bottom: 8px !important;
}

/* Excellent Item Title */
#tooltip .item-name-exc, 
#tooltip .item_exe_title,
#tooltip .item_socket_exe_title,
#tooltip font[color="#8eff00"], 
#tooltip font[color="#8EFF00"],
#tooltip font[color="green"],
#tooltip .color-green { 
    color: #10b981 !important; 
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

/* Socket & High Level Titles */
#tooltip .item_socket_title,
#tooltip .item_yellow_title {
    color: #facc15 !important; /* Gold/Yellow */
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.3) !important;
}

/* Ancient Items */
#tooltip .item_ancient_title {
    color: #fb923c !important; /* Cyan/Orange mix or typical Ancient Orange */
    text-shadow: 0 0 8px rgba(251, 146, 60, 0.3) !important;
}

/* Can be equipped by... (Minimalist Gray) */
#tooltip .class-requirement,
#tooltip .can-equip,
#tooltip .class-restriction,
#tooltip .item_red,
#tooltip font[color="red"] { 
    color: #94a3b8 !important; 
    font-size: 11px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    margin: 2px 0 !important;
    line-height: 1.4 !important;
    opacity: 0.7;
    display: block !important;
}

/* Item Options, Skills, Luck (Modern Blue) */
#tooltip font[color="#00CCFF"], 
#tooltip font[color="cyan"],
#tooltip font[color="#00ccff"],
#tooltip .item-options,
#tooltip .color-blue,
#tooltip .item_light_blue,
#tooltip .item_luck,
#tooltip .item_skill { 
    color: #3b82f6 !important; 
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3) !important;
}

/* Serial (Gray, Small, Spaced) */
#tooltip font[color="#777777"], 
#tooltip .serial,
#tooltip .serial-label {
    color: #64748b !important;
    font-size: 10px !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    display: block !important;
    margin-top: 12px !important;
    font-weight: 700 !important;
    opacity: 0.8 !important;
}

/* Hide Unwanted Elements */
#tooltip img.item-icon, 
#tooltip .body > img:first-child:not(:only-child),
#tooltip h3, 
#tooltip .url { 
    display: none !important; 
}

#tooltip img { 
    max-width: 100%; 
    height: auto; 
    margin: 10px 0;
}
