:root {
    --primary-gold: #e5b948;
    --primary-gold-hover: #ffd700;
    --gold-gradient: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #996515 100%);
    --bg-dark: #090a0f;
    --card-bg: rgba(18, 20, 29, 0.85);
    --card-border: rgba(229, 185, 72, 0.25);
    --card-border-hover: rgba(229, 185, 72, 0.6);
    --text-main: #f0f2f5;
    --text-muted: #9aa1b2;
    --success-green: #2ecc71;
    --danger-red: #e74c3c;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, rgba(229, 185, 72, 0.08) 0%, transparent 60%),
                      radial-gradient(circle at 10% 40%, rgba(138, 43, 226, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(9, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
}

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

.logo a {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-gold {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(229, 185, 72, 0.4);
}

.logo-sub {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover,
.nav-links a.highlight-link {
    color: var(--primary-gold);
}

.server-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success-green);
}

.pulse {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 150px;
    padding-bottom: 90px;
    text-align: center;
    background: linear-gradient(180deg, rgba(9, 10, 15, 0.4) 0%, rgba(9, 10, 15, 0.95) 100%),
                url('/static/images/hero-bg.jpg') center/cover no-repeat;
    border-bottom: 1px solid var(--card-border);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.sub-title {
    font-size: 16px;
    color: var(--primary-gold);
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.main-title {
    font-size: 72px;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 25px rgba(229, 185, 72, 0.5));
    margin-bottom: 15px;
}

.hero-desc {
    color: #c0c6d4;
    font-size: 19px;
    margin-bottom: 35px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #1a1304;
    box-shadow: 0 4px 20px rgba(229, 185, 72, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(229, 185, 72, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37, #aa820a);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Layout Content */
.content-wrapper {
    max-width: 1200px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Status Bar */
.status-bar-section {
    margin-bottom: 40px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.status-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.status-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
}

.srv-name {
    font-weight: 700;
    font-size: 15px;
    color: #e2e8f0;
}

.srv-online {
    color: var(--success-green);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.srv-offline {
    color: var(--danger-red);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Two Columns Grid */
.two-columns {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Glass Card */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: border 0.3s ease;
}

.glass-card:hover {
    border-color: var(--card-border-hover);
}

.card-header {
    margin-bottom: 25px;
}

.gold-icon {
    font-size: 32px;
    color: var(--primary-gold);
    margin-bottom: 10px;
    display: inline-block;
}

.card-header h2 {
    font-size: 26px;
    color: var(--text-main);
    margin-bottom: 5px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 15px;
}

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

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.col {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #cfd6e6;
}

.form-group label i {
    color: var(--primary-gold);
    margin-right: 5px;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(10, 11, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(229, 185, 72, 0.3);
    background: rgba(15, 17, 24, 0.9);
}

.helper-text {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 5px;
}

.alert-box {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--success-green);
    color: #2ecc71;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--danger-red);
    color: #e74c3c;
}

/* Download Card */
.client-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: var(--text-muted);
}

.info-item .val {
    font-weight: 700;
    color: var(--primary-gold);
}

.dl-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.specs-box {
    background: rgba(229, 185, 72, 0.05);
    border: 1px solid rgba(229, 185, 72, 0.2);
    border-radius: 8px;
    padding: 18px;
}

.specs-box h3 {
    font-size: 16px;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.specs-box ul {
    list-style: none;
    font-size: 14px;
    color: #a0aec0;
}

.specs-box ul li {
    padding: 4px 0;
}

/* Rankings Section */
.ranking-card {
    margin-bottom: 40px;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--gold-gradient);
    color: #1a1304;
    border-color: var(--primary-gold);
}

.table-responsive {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.ranking-table th {
    background: rgba(229, 185, 72, 0.1);
    color: var(--primary-gold);
    font-family: var(--font-heading);
    font-size: 14px;
    padding: 14px 18px;
    border-bottom: 2px solid var(--card-border);
}

.ranking-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 16px;
}

.ranking-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.rank-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #b8860b); color: #000; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.rank-2 { background: linear-gradient(135deg, #e0e0e0, #9e9e9e); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }
.rank-other { background: rgba(255, 255, 255, 0.1); color: #aaa; }

.empire-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.empire-1 { background: rgba(231, 76, 60, 0.2); color: #e74c3c; border: 1px solid #e74c3c; } /* Shinsoo */
.empire-2 { background: rgba(241, 196, 15, 0.2); color: #f1c40f; border: 1px solid #f1c40f; } /* Chunjo */
.empire-3 { background: rgba(52, 152, 219, 0.2); color: #3498db; border: 1px solid #3498db; } /* Jinno */

/* Features Section */
.features-section {
    padding: 40px 0;
}

.section-title {
    font-size: 32px;
    color: var(--primary-gold);
    margin-bottom: 40px;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

.f-icon {
    font-size: 38px;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

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

.feature-card p {
    font-size: 15px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: #050608;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-copy {
    color: #64748b;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
    .main-title {
        font-size: 48px;
    }
    .nav-links {
        display: none;
    }
}

/* Discord Specific Styles */
.nav-discord {
    color: #5865F2 !important;
    font-weight: 700 !important;
    transition: all 0.25s ease;
}
.nav-discord:hover {
    color: #7983f5 !important;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.6);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752c4) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35) !important;
    font-weight: 700;
    transition: all 0.3s ease !important;
}
.btn-discord:hover {
    background: linear-gradient(135deg, #4752c4, #3c45a5) !important;
    box-shadow: 0 6px 22px rgba(88, 101, 242, 0.65) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}
