/* KO2 Style - Dark Gaming Web Portal CSS */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #0b0c10;
    --bg-card: rgba(18, 20, 29, 0.92);
    --bg-card-hover: rgba(26, 29, 43, 0.95);
    --primary-gold: #f5b82e;
    --primary-gold-dark: #d4971c;
    --gold-glow: rgba(245, 184, 46, 0.4);
    --karus-red: #e74c3c;
    --karus-glow: rgba(231, 76, 60, 0.4);
    --human-blue: #3498db;
    --human-glow: rgba(52, 152, 219, 0.4);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: rgba(245, 184, 46, 0.15);
    --border-color-hover: rgba(245, 184, 46, 0.4);
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(245, 184, 46, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #07080b 0%, #0d0f17 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--gold-glow);
}

/* ================= UTILITY TOP BAR ================= */
.top-bar {
    background: rgba(10, 11, 15, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 100;
}

.top-bar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.top-nav-btn {
    background: rgba(245, 184, 46, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.top-nav-btn:hover {
    background: var(--primary-gold);
    color: #000;
    box-shadow: 0 0 12px var(--gold-glow);
    border-color: var(--primary-gold);
}

.top-server-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.server-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(245, 184, 46, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 8px #2ecc71;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ================= MAIN NAVIGATION HEADER ================= */
.main-header {
    background: rgba(15, 17, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 99;
}

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

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-brand img {
    height: 52px;
    filter: drop-shadow(0 0 10px rgba(245, 184, 46, 0.5));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 4px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-gold);
    box-shadow: 0 0 8px var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

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

.nav-badge-new {
    background: var(--karus-red);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 8px;
    vertical-align: super;
    margin-left: 4px;
    font-family: var(--font-body);
}

/* ================= HERO & LAUNCH BANNER ================= */
.hero-section {
    position: relative;
    background: radial-gradient(circle at center, rgba(18, 20, 30, 0.4) 0%, rgba(10, 11, 15, 0.95) 100%),
                url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=1600&q=80') center/cover no-repeat;
    padding: 60px 20px 80px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.launch-banner {
    max-width: 900px;
    margin: 0 auto 40px auto;
    background: rgba(14, 16, 24, 0.9);
    border: 1px solid var(--primary-gold);
    box-shadow: 0 0 20px rgba(245, 184, 46, 0.25);
    border-radius: 8px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.launch-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.launch-tag {
    background: linear-gradient(135deg, var(--karus-red), #c0392b);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.countdown-box {
    display: flex;
    gap: 12px;
}

.count-unit {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(245, 184, 46, 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    min-width: 60px;
    text-align: center;
}

.count-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
}

.count-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary-gold {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
    color: #0d0f17;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px var(--gold-glow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(245, 184, 46, 0.6);
    color: #000;
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ================= MAIN CONTENT LAYOUT ================= */
.main-wrapper {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

@media (max-width: 992px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
}

.card-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease;
}

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

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 184, 46, 0.1);
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ================= NEWS & ANNOUNCEMENTS ================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.news-card {
    background: rgba(11, 12, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.news-img {
    height: 140px;
    width: 100%;
    object-fit: cover;
}

.news-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-cat {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

/* ================= SIDEBAR WIDGETS ================= */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(245, 184, 46, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.stat-val {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
}

/* Nation Progress Bar */
.nation-bar-wrap {
    margin: 16px 0;
}

.nation-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.karus-txt { color: var(--karus-red); }
.human-txt { color: var(--human-blue); }

.nation-progress {
    height: 10px;
    background: var(--human-blue);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
}

.karus-fill {
    background: var(--karus-red);
    height: 100%;
}

/* Event List Timer */
.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(10, 11, 15, 0.6);
    border-left: 3px solid var(--primary-gold);
    margin-bottom: 8px;
    border-radius: 4px;
}

.event-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #e2e8f0;
}

.event-time-badge {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-gold);
    background: rgba(245, 184, 46, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ================= TABLES & RANKINGS ================= */
.table-custom {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

.table-custom th {
    background: rgba(245, 184, 46, 0.08);
    color: var(--primary-gold);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table-custom td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.table-custom tr:hover {
    background: rgba(245, 184, 46, 0.04);
}

.rank-number {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    width: 40px;
}

.rank-1 { color: #f1c40f; text-shadow: 0 0 10px rgba(241, 196, 15, 0.6); }
.rank-2 { color: #bdc3c7; }
.rank-3 { color: #e67e22; }

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-karus {
    background: rgba(231, 76, 60, 0.15);
    color: var(--karus-red);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-human {
    background: rgba(52, 152, 219, 0.15);
    color: var(--human-blue);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-class {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ================= STORE KC CARDS ================= */
.kc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.kc-card {
    background: rgba(14, 16, 24, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.kc-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-4px);
    box-shadow: 0 0 20px var(--gold-glow);
}

.kc-amount {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin: 10px 0;
}

.kc-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

/* ================= FOOTER ================= */
.site-footer {
    background: #06070a;
    border-top: 1px solid var(--border-color);
    padding: 40px 20px 20px 20px;
    margin-top: 60px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* Social Floating Bar */
.social-float-bar {
    position: fixed;
    left: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.social-float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.social-float-btn:hover {
    transform: scale(1.15);
}

.btn-discord { background: #5865F2; }
.btn-whatsapp { background: #25D366; }
.btn-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
