:root {
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --primary: #ff4d00;
    --primary-light: #ff6a2a;
    --primary-glow: rgba(255, 77, 0, 0.4);
    --secondary: #ff8c00;
    --accent: #ffa500;
    --text: #e8e8e8;
    --text-dim: #888888;
    --border: #2a2a2a;
    --success: #00c853;
    --error: #ff3d3d;
    --gold: #ffd700;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-pattern {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at 20% 20%, rgba(255, 77, 0, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(255, 140, 0, 0.06) 0%, transparent 50%);
    pointer-events: none; z-index: 0;
}

.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.particle { position: absolute; width: 2px; height: 2px; background: var(--primary); border-radius: 50%; opacity: 0; animation: float 15s infinite; }
@keyframes float { 0%, 100% { opacity: 0; transform: translateY(100vh); } 10%, 90% { opacity: 0.6; } 100% { transform: translateY(-100vh); } }

.flash-message { position: fixed; top: 100px; right: 20px; padding: 15px 50px 15px 25px; border-radius: 8px; font-weight: 500; z-index: 3000; animation: slideIn 0.3s ease; }
.flash-message button { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: inherit; font-size: 1.2rem; cursor: pointer; }
.flash-success { background: rgba(0, 200, 83, 0.15); border: 1px solid rgba(0, 200, 83, 0.3); color: var(--success); }
.flash-error { background: rgba(255, 61, 61, 0.15); border: 1px solid rgba(255, 61, 61, 0.3); color: var(--error); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.9) 100%); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.header-content { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-family: 'Cinzel', serif; font-size: 2rem; font-weight: 900; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 3px; text-decoration: none; transition: transform 0.3s ease; }
.logo:hover { transform: scale(1.05); }
.logo span { font-size: 1rem; color: var(--text-dim); -webkit-text-fill-color: var(--text-dim); margin-left: 10px; font-family: 'Rajdhani', sans-serif; font-weight: 400; }

nav { display: flex; gap: 5px; }
nav a { color: var(--text); text-decoration: none; padding: 12px 20px; font-weight: 500; font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase; transition: all 0.3s ease; position: relative; border-radius: 4px; }
nav a::after { content: ''; position: absolute; bottom: 8px; left: 50%; width: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: all 0.3s ease; transform: translateX(-50%); }
nav a:hover { color: var(--primary); }
nav a:hover::after { width: calc(100% - 40px); }
nav a.active { color: var(--primary); background: rgba(255, 77, 0, 0.1); }

.header-buttons { display: flex; gap: 15px; }
.btn { padding: 12px 28px; border: none; border-radius: 4px; font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: white; box-shadow: 0 4px 20px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px var(--primary-glow); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: rgba(255, 77, 0, 0.1); }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 20px 80px; z-index: 1; }
.hero-content { text-align: center; max-width: 900px; }
.hero-badge { display: inline-block; padding: 8px 20px; background: rgba(255, 77, 0, 0.15); border: 1px solid rgba(255, 77, 0, 0.3); border-radius: 50px; font-size: 0.85rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 30px; animation: pulse-glow 2s ease-in-out infinite; }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px rgba(255, 77, 0, 0.2); } 50% { box-shadow: 0 0 40px rgba(255, 77, 0, 0.4); } }
.hero h1 { font-family: 'Cinzel', serif; font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; background: linear-gradient(135deg, #fff 0%, var(--text) 50%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .highlight { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.3rem; color: var(--text-dim); margin-bottom: 50px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-hero { padding: 18px 45px; font-size: 1.1rem; }
.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 80px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-value { font-family: 'Cinzel', serif; font-size: 3rem; font-weight: 700; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.9rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; }

section { position: relative; z-index: 1; padding: 100px 20px; }
.section-dark { background: rgba(0, 0, 0, 0.3); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: 'Cinzel', serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; background: linear-gradient(135deg, #fff 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-header p { color: var(--text-dim); font-size: 1.1rem; }
.container { max-width: 1200px; margin: 0 auto; }

.page-hero { padding: 150px 20px 80px; text-align: center; background: linear-gradient(135deg, rgba(255, 77, 0, 0.1) 0%, transparent 100%); }
.page-hero h1 { font-family: 'Cinzel', serif; font-size: 3rem; margin-bottom: 15px; background: linear-gradient(135deg, #fff 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p { color: var(--text-dim); font-size: 1.2rem; }

.server-info { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 60px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 40px; }
.info-item { text-align: center; }
.info-item h4 { font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.info-item p { font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 600; color: var(--primary); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 40px 30px; transition: all 0.4s ease; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)); transform: scaleX(0); transition: transform 0.4s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(255, 77, 0, 0.3); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 60px; height: 60px; background: linear-gradient(135deg, rgba(255, 77, 0, 0.2) 0%, rgba(255, 140, 0, 0.1) 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 25px; }
.feature-card h3 { font-family: 'Cinzel', serif; font-size: 1.3rem; margin-bottom: 15px; color: var(--text); }
.feature-card p { color: var(--text-dim); line-height: 1.7; }

.rankings-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.ranking-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.ranking-header { background: linear-gradient(135deg, rgba(255, 77, 0, 0.15) 0%, rgba(255, 140, 0, 0.05) 100%); padding: 25px 30px; border-bottom: 1px solid var(--border); }
.ranking-header h3 { font-family: 'Cinzel', serif; font-size: 1.3rem; }
.ranking-list { padding: 20px 0; }
.ranking-item { display: flex; align-items: center; padding: 15px 30px; transition: background 0.3s ease; }
.ranking-item:hover { background: rgba(255, 77, 0, 0.05); }
.rank { width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; margin-right: 20px; }
.rank-1 { background: linear-gradient(135deg, #ffd700, #ffb700); color: #000; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #b87333); color: #000; }
.rank-default { background: var(--bg-card-hover); color: var(--text-dim); }
.player-info { flex: 1; }
.player-name { font-weight: 600; font-size: 1rem; margin-bottom: 3px; }
.player-class { font-size: 0.85rem; color: var(--text-dim); }
.player-level { font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 600; color: var(--primary); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.shop-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; text-align: center; transition: all 0.4s ease; position: relative; }
.shop-item:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 15px 50px rgba(255, 77, 0, 0.2); }
.shop-item.featured { border-color: var(--gold); background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, var(--bg-card) 100%); }
.shop-item.featured::before { content: 'POPULAR'; position: absolute; top: 15px; right: 15px; background: var(--gold); color: #000; font-size: 0.7rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; }
.shop-icon { width: 80px; height: 80px; margin: 0 auto 25px; background: linear-gradient(135deg, rgba(255, 77, 0, 0.2) 0%, rgba(255, 140, 0, 0.1) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.shop-item h3 { font-family: 'Cinzel', serif; font-size: 1.3rem; margin-bottom: 10px; }
.shop-item p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 20px; }
.shop-price { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.price-coins { font-family: 'Cinzel', serif; font-size: 1.8rem; font-weight: 700; color: var(--gold); }
.price-label { color: var(--text-dim); font-size: 0.9rem; }

.download-section { background: linear-gradient(135deg, rgba(255, 77, 0, 0.1) 0%, rgba(10, 10, 10, 1) 100%); border: 1px solid var(--border); border-radius: 24px; padding: 80px 60px; text-align: center; position: relative; overflow: hidden; }
.download-content { position: relative; z-index: 1; }
.download-section h2 { font-family: 'Cinzel', serif; font-size: 2.5rem; margin-bottom: 20px; }
.download-section p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 40px; }
.download-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-download { padding: 20px 50px; font-size: 1.1rem; }
.download-info { display: flex; justify-content: center; gap: 50px; margin-top: 50px; flex-wrap: wrap; }
.download-info-item { text-align: center; }
.download-info-item span { display: block; font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.download-info-item strong { font-family: 'Cinzel', serif; font-size: 1.2rem; color: var(--text); }

.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; max-width: 450px; width: 100%; position: relative; animation: modal-in 0.3s ease; }
@keyframes modal-in { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header { padding: 30px 30px 0; text-align: center; }
.modal-header h2 { font-family: 'Cinzel', serif; font-size: 1.8rem; margin-bottom: 10px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.modal-header p { color: var(--text-dim); font-size: 0.95rem; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border: none; background: rgba(255, 255, 255, 0.1); border-radius: 50%; color: var(--text); font-size: 1.5rem; cursor: pointer; transition: all 0.3s ease; }
.modal-close:hover { background: var(--primary); transform: rotate(90deg); }
.modal-body { padding: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.form-group input { width: 100%; padding: 15px 20px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: 'Rajdhani', sans-serif; font-size: 1rem; transition: all 0.3s ease; }
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 20px rgba(255, 77, 0, 0.2); }
.form-group input:disabled { opacity: 0.6; }
.form-submit { width: 100%; padding: 16px; margin-top: 10px; }
.form-footer { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.form-footer p { color: var(--text-dim); font-size: 0.9rem; }
.form-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }

footer { position: relative; z-index: 1; background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 20px 30px; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h4 { font-family: 'Cinzel', serif; font-size: 1.1rem; margin-bottom: 20px; color: var(--primary); }
.footer-section a { display: block; color: var(--text-dim); text-decoration: none; padding: 8px 0; transition: color 0.3s ease; }
.footer-section a:hover { color: var(--primary); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 30px; border-top: 1px solid var(--border); text-align: center; color: var(--text-dim); font-size: 0.9rem; }
.footer-logo { font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; }

@media (max-width: 768px) {
    .header-content { flex-wrap: wrap; height: auto; padding: 15px; gap: 15px; }
    nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
    nav a { padding: 10px 15px; font-size: 0.85rem; }
    .hero { padding: 140px 20px 60px; }
    .hero-stats { gap: 30px; }
    .stat-value { font-size: 2rem; }
    .server-info { padding: 40px 30px; }
    .rankings-container { grid-template-columns: 1fr; }
    .download-section { padding: 60px 30px; }
}
