/***********************************************************
 ** THE NEXUS GRID - UNIFIED BOX EDITION (ORIGINAL TEXT)  **
 ***********************************************************/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Inter:wght@300;400;600;800&display=swap');

:root {
    --gold: #d4af37;
    --gold-bright: #ffdf7e;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --bg-card: rgba(15, 15, 15, 0.95);
    --bg-glass: rgba(10, 10, 10, 0.9);
}

/* =========================================================
   1. BODY (VIGNETTE & DARK OVERLAY)
   ========================================================= */
body {
    background: 
        /* LINEAR REVERSE VIGNETTE: Dark Void Raksasa di Tengah */
        linear-gradient(
            to right, 
            transparent 0%,           /* Paling ujung kiri: Gambar Jelas */
            rgba(0,0,0,1) 20%,        /* Langsung Gelap Total di 15% */
            rgba(0,0,0,1) 80%,        /* Tahan Gelap Total sampai 85% */
            transparent 100%          /* Paling ujung kanan: Gambar Jelas */
        ),
        /* Overlay tambahan biar gambar di pinggir tetap masuk vibe dark */
        linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
        url('../img/bg.jpg') no-repeat center center fixed !important;
    
    background-size: cover !important;
    font-family: 'Inter', sans-serif;
    color: #eee !important;
    margin: 0;
    min-height: 100vh;
}

/* =========================================================
   2. NAVBAR (CENTERED)
   ========================================================= */
/* Container Navbar */
.nexus-nav {
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.6);
}

/* Memaksa Menu ke Tengah */
@media (min-width: 768px) {
    .nexus-nav-center {
        display: flex !important;
        justify-content: center !important;
    }
    
    .nexus-nav .navbar-nav {
        float: none !important;
        display: flex;
        justify-content: center;
    }
}

/* Menu Utama */
.nexus-nav .nav > li > a {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 1px;
    color: #eee !important;
    padding: 22px 15px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.nexus-nav .nav > li > a:hover, 
.nexus-nav .nav > li.open > a {
    background: transparent !important;
    color: var(--gold-bright) !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nexus-icon {
    font-size: 14px;
    margin-right: 5px;
}

/* Dropdown Custom Style */
.nexus-menu-list {
    background: rgba(15, 15, 15, 0.98) !important;
    border-radius: 0 0 10px 10px !important;
    padding: 10px 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
    min-width: 180px;
}

.nexus-menu-list > li > a {
    color: #bbb !important;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    padding: 10px 20px !important;
    display: flex;
    align-items: center;
    transition: 0.2s;
}

.nexus-menu-list > li > a:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), transparent) !important;
    color: #fff !important;
    padding-left: 25px !important;
}

/* Dot Indicator */
.nexus-dot {
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    margin-right: 10px;
    opacity: 0;
}

.nexus-menu-list > li > a:hover .nexus-dot {
    opacity: 1;
    box-shadow: 0 0 5px var(--gold);
}

/* Admin Highlight */
.admin-item > a {
    color: #ff4444 !important;
}

.admin-item .caret {
    border-top-color: #ff4444 !important;
}

/* =========================================================
   3. JUMBOTRON (CINEMATIC - ORIGINAL ENHANCED TEXT)
   ========================================================= */
.hero-section {
    position: relative; height: 380px; margin-top: 20px; margin-bottom: 40px; border-radius: 20px;
    overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.2); box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.hero-bg-wrapper { position: absolute; inset: 0; z-index: 1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transition: transform 10s ease; }
.hero-section:hover .hero-img { transform: scale(1.1); }
.hero-vignette {
    position: absolute; inset: 0; z-index: 2;
    background: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,0.8) 100%),
                linear-gradient(to top, rgba(0,0,0,1) 0%, transparent 50%);
}
.hero-frame { position: absolute; inset: 15px; border: 1px solid rgba(212, 175, 55, 0.15); pointer-events: none; z-index: 3; }
.hero-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; z-index: 5; }
.hero-badge {
    color: var(--gold); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 3px;
    background: rgba(0,0,0,0.6); width: max-content; padding: 5px 12px; border-left: 3px solid var(--gold); margin-bottom: 10px;
}
.hero-title { font-family: 'Cinzel', serif; font-size: 38px; font-weight: 900; color: #fff !important; margin: 0; text-shadow: 0 5px 15px #000; }
.hero-desc { font-size: 15px; color: #ccc !important; max-width: 550px; line-height: 1.6; margin-top: 10px; }

/* --- HERO ACTIONS & IMPROVED BUTTON --- */

.hero-actions {
    margin-top: 20px;
    display: flex;
    justify-content: left;
    gap: 10px;
}

.btn-hero-main {
    position: relative;
    display: inline-block;
    padding: 12px 35px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000 !important; /* Hitam pekat biar kontras sama gold */
    background: linear-gradient(135deg, #d4af37 0%, #ffdf7e 50%, #8c6239 100%);
    border: 1px solid #ffdf7e;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 
                inset 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Layer teks agar di atas efek shine */
.btn-text {
    position: relative;
    z-index: 2;
}

/* Efek Kilatan (Shine) */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent
    );
    transition: all 0.6s;
    z-index: 1;
    animation: nexusShine 4s infinite;
}

/* Hover Effect */
.btn-hero-main:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    color: #000 !important;
    border-color: #fff;
}

.btn-hero-main:active {
    transform: translateY(-1px);
}

/* Animasi kilatan yang lewat secara periodik */
@keyframes nexusShine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* Responsive adjust */
@media (max-width: 768px) {
    .btn-hero-main {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* =========================================================
   4. SHARED BOX STYLE (LOGIN, QUICKLINK, NEWS WRAPPER)
   ========================================================= */
.loginbox .panel, .ql-card, .news-main-wrapper {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 20px !important;
    overflow: hidden;
    margin-bottom: 20px;
}
.news-main-wrapper { padding: 20px; margin-top: 20px; margin-bottom: 20px; }

/* =========================================================
   5. QUICK LINKS
   ========================================================= */
.ql-card-header { background: rgba(212, 175, 55, 0.05); padding: 15px 20px; border-bottom: 1px solid rgba(212, 175, 55, 0.1); }
.ql-title { font-family: 'Cinzel', serif; font-weight: 700; color: var(--gold) !important; font-size: 13px; text-transform: uppercase; margin: 0; }
.ql-item {
    display: flex !important; align-items: center !important; padding: 12px 15px !important; margin-bottom: 5px !important;
    background: rgba(255,255,255,0.02) !important; border-radius: 12px !important; color: #bbb !important;
    text-decoration: none !important; transition: 0.3s !important;
}
.ql-item:hover { background: rgba(212, 175, 55, 0.15) !important; color: #fff !important; padding-left: 20px !important; }
.ql-emoji { margin-right: 12px; font-size: 16px; filter: grayscale(1); transition: 0.3s; }
.ql-item:hover .ql-emoji { filter: grayscale(0); transform: scale(1.2); }
.ql-arrow { margin-left: auto; opacity: 0; color: var(--gold); transition: 0.3s; }
.ql-item:hover .ql-arrow { opacity: 1; transform: translateX(-5px); }

/* =========================================================
   6. STATS & NEWS LIST
   ========================================================= */
.stats-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.stats-box { background: var(--bg-card); border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 15px; padding: 15px; text-align: center; }
.stats-label { display: block; font-family: 'Cinzel', serif; font-size: 9px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }
.stats-value { font-size: 22px; font-weight: 800; color: #fff !important; }

.news-section-title { font-family: 'Cinzel', serif; font-size: 16px; color: var(--gold) !important; margin: 0 0 15px 0; border-bottom: 1px solid rgba(212, 175, 55, 0.3); padding-bottom: 8px; }
.news-accordion .news-item { background: rgba(255,255,255,0.03) !important; border: 1px solid rgba(255,255,255,0.05) !important; margin-bottom: 8px !important; border-radius: 10px !important; }
.news-item .panel-heading { padding: 12px 15px !important; cursor: pointer; background: transparent !important; border: none !important; }
.news-item-title { font-weight: 700; color: #fff !important; font-size: 14px; }
.news-item-date { font-size: 10px !important; font-weight: 300 !important; color: #777 !important; text-transform: uppercase; }
.news-item .panel-body { color: #ccc !important; padding: 15px !important; font-size: 13px; line-height: 1.5; }

/* =========================================================
   7. LOGINBOX FIXES
   ========================================================= */
.loginbox label { color: var(--gold) !important; font-weight: 700; text-transform: uppercase; font-size: 11px; }
.loginbox .form-control { background: rgba(255,255,255,0.05) !important; border: 1px solid rgba(255,255,255,0.1) !important; color: #fff !important; }
.btn-login { background: linear-gradient(135deg, var(--gold), #8c6239) !important; color: #000 !important; font-weight: 900; height: 45px; width: 100%; border: none !important; border-radius: 8px !important; }
.login-sep { text-align: center; margin: 12px 0; color: #555 !important; font-size: 10px; display: flex; align-items: center; gap: 10px; }
.login-sep::before, .login-sep::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.05); }
.btn-register { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.03) !important; color: var(--gold) !important; border: 1px solid var(--gold) !important; height: 45px; border-radius: 8px !important; text-decoration: none !important; }

/* =========================================================
   8. FIX: FORCE CLOSE ACCORDION (BYPASS JS)
   ========================================================= */
.news-accordion .panel-collapse.collapse:not(.in) {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}
.news-accordion .panel-collapse.collapse.in {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
}

/* =========================================================
   9. CLEANUP
   ========================================================= */
.glyphicon-chevron-right { display: none !important; }
@media (max-width: 991px) { .stats-container { grid-template-columns: 1fr; } .row { display: block; } }

/*********************************************
 ** CHARACTER RANKING - NEXUS GRID STYLE    **
 *********************************************/

/* Container & Header */
h2 + h3 {
    margin-top: 5px;
    font-size: 1rem;
    color: #888;
    text-transform: none;
    border: none;
}

/* Ranking Filter Form */
.search-form2 {
    display: block !important; /* Paksa muncul karena default flux sering hide */
    margin: 20px 0;
    padding: 15px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
}

.search-form2 p {
    display: flex;
    align-items: center;
    gap: 15px;
    border: none !important;
    margin: 0;
}

.search-form2 label {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-weight: bold;
}

.search-form2 select {
    background: #111;
    color: #fff;
    border: 1px solid #444;
    padding: 5px 10px;
    border-radius: 4px;
    outline: none;
}

.search-form2 input[type="submit"], 
.search-form2 input[type="button"] {
    padding: 6px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.search-form2 input[type="submit"] {
    background: #d4af37;
    border: 1px solid #8c6239;
    color: #000;
}

.search-form2 input[type="button"] {
    background: rgba(255,255,255,0.1);
    border: 1px solid #444;
    color: #ccc;
}

.search-form2 input:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Ranking Table Customization */
.horizontal-table {
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-radius: 8px;
}

.horizontal-table th {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #d4af37 !important;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 15px 10px !important;
    border-bottom: 2px solid #d4af37 !important;
}

.horizontal-table td {
    padding: 12px 10px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    vertical-align: middle !important;
}

/* Hover effect baris */
.horizontal-table tr:not(.empty-row):hover td {
    background: rgba(212, 175, 55, 0.05);
    color: #fff;
}

/* Podium Styles */

/* RANK 1 - GOLD */
.horizontal-table tr:nth-child(2) td { /* nth-child(2) karena thead dihitung */
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), transparent) !important;
    border-left: 4px solid #d4af37;
}
.horizontal-table tr:nth-child(2) td:first-child {
    font-weight: bold;
    color: #ffdf7e;
    font-size: 1.2rem;
}

/* RANK 2 - SILVER */
.horizontal-table tr:nth-child(3) td {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), transparent) !important;
    border-left: 4px solid #c0c0c0;
}

/* RANK 3 - BRONZE */
.horizontal-table tr:nth-child(4) td {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), transparent) !important;
    border-left: 4px solid #cd7f32;
}

/* Guild Emblem Styling */
.horizontal-table img {
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    border-radius: 2px;
}

/* Important Text (Exp/Level) */
.horizontal-table td:nth-last-child(-n+4) {
    font-family: 'Monaco', monospace;
    font-size: 0.85rem;
    color: #ffdf7e;
}

.not-applicable {
    color: #444 !important;
    font-style: italic;
}

/*********************************************
 ** SEARCH FORM - NEXUS TACTICAL INTERFACE  **
 *********************************************/

/* Toggler (Link 'Search...') */
.toggler {
    margin: 15px 0;
    text-align: right;
}

.toggler a {
    display: inline-block;
    padding: 6px 15px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 0.85rem;
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.toggler a:hover {
    background: #d4af37;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Container Form Utama */
form.search-form {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

/* Mengatur baris (p) menjadi Flexbox */
form.search-form p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 15px 0 !important;
    padding: 0 0 15px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

form.search-form p:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    justify-content: flex-end; /* Tombol search di kanan */
}

/* Styling Label agar lebar sama dan konsisten */
form.search-form label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    color: #d4af37;
    text-transform: uppercase;
    margin-right: 5px;
    min-width: 80px; /* Bikin label sejajar vertikal */
}

/* Styling Input & Select */
form.search-form input[type="text"],
form.search-form select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
    outline: none !important;
    transition: all 0.3s;
}

form.search-form input[type="text"]:focus,
form.search-form select:focus {
    border-color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.05) !important;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

/* Khusus Input ID (pendek) */
#monster_id {
    width: 60px;
}

/* Khusus Input Name (lebih lebar) */
#name {
    flex-grow: 1;
    min-width: 150px;
}

/* Styling Tombol di baris terakhir */
form.search-form input[type="submit"] {
    background: linear-gradient(135deg, #d4af37, #8c6239) !important;
    border: 1px solid #ffdf7e !important;
    color: #000 !important;
    font-weight: bold !important;
    padding: 8px 25px !important;
    cursor: pointer;
    border-radius: 4px !important;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
}

form.search-form input[type="button"] {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ccc !important;
    padding: 8px 20px !important;
    cursor: pointer;
    border-radius: 4px !important;
    transition: all 0.3s;
}

form.search-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    filter: brightness(1.2);
}

form.search-form input[type="button"]:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

/* Sembunyikan titik-titik (...) bawaan flux jika ada di HTML */
form.search-form {
    color: transparent; /* Menyembunyikan node teks liar */
}
form.search-form * {
    color: initial; /* Mengembalikan warna elemen di dalamnya */
}

/* Responsive: Bikin satu kolom kalau di HP */
@media (max-width: 768px) {
    form.search-form p {
        flex-direction: column;
        align-items: stretch;
    }
    form.search-form label {
        margin-bottom: 5px;
    }
}

/*********************************************
 ** DONATION PAGE - NEXUS PREMIUM INTERFACE **
 *********************************************/

/* Container Info Donasi */
.generic-form-div {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

/* Tabel Exchange Rate */
.generic-form-table {
    width: 100%;
}

.generic-form-table th {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 10px;
    text-align: right;
    width: 40%;
}

.generic-form-table td p {
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

/* Area Input Nominal (Enter Amount) */
.enter-donation-amount {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 8px;
    border: 1px dashed rgba(212, 175, 55, 0.3);
    text-align: center;
    color: #aaa;
    font-family: 'Cinzel', serif;
}

.enter-donation-amount label {
    display: block;
    margin: 10px 0;
    font-size: 1rem;
    color: #d4af37;
}

/* Styling Khusus Input Uang & Credit */
.money-input, .credit-input {
    background: #000 !important;
    border: 2px solid #333 !important;
    color: #ffdf7e !important;
    font-family: 'Monaco', monospace;
    font-size: 1.5rem !important;
    padding: 10px !important;
    text-align: center !important;
    border-radius: 4px;
    margin: 0 10px;
    width: 120px;
    transition: all 0.3s;
}

.money-input:focus, .credit-input:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    outline: none;
}

/* Tombol Confirm/Donate */
.submit_button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 20px auto !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #d4af37 0%, #8c6239 100%) !important;
    border: 1px solid #ffdf7e !important;
    color: #000 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.4s;
}

.submit_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 15px rgba(212, 175, 55, 0.4);
    filter: brightness(1.2);
}

/* Teks Konfirmasi (After Amount Set) */
.credit-amount-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: #888;
    margin-top: 30px;
}

.credit-amount {
    color: #d4af37;
    font-weight: bold;
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.donation-amount-text {
    font-size: 1.2rem;
    color: #ccc;
}

.donation-amount {
    color: #fff;
    font-weight: bold;
    border-bottom: 2px solid #d4af37;
}

/* Reset Amount Link */
.reset-amount-text a {
    color: #f00;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0.6;
}

.reset-amount-text a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* PayPal Button Container */
form[action*="paypal"] {
    text-align: center;
    margin-top: 20px;
}

form[action*="paypal"] input[type="image"] {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s;
}

form[action*="paypal"] input[type="image"]:hover {
    transform: scale(1.1);
}

/* Warning/Error Message */
.red {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #f00;
    color: #ff9999;
    padding: 15px;
    border-radius: 4px;
    font-weight: bold;
}

.hold-hours {
    color: #ffdf7e;
    font-weight: bold;
    text-decoration: underline;
}

.keyword {
    color: #d4af37;
    font-weight: bold;
}

/*********************************************
 ** ACCOUNT VIEW - NEXUS USER DASHBOARD     **
 *********************************************/

/* Container Global */
h2 + p.red {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid #ff4444;
    padding: 15px;
    border-radius: 4px;
    color: #ff9999;
    font-weight: bold;
    margin: 20px 0;
}

/* Base Table Styling */
.vertical-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.vertical-table th {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #d4af37 !important;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 12px 15px !important;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
    width: 20%;
}

.vertical-table td {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #eee !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-size: 0.9rem;
}

/* Status Badges */
.online, .offline, .account-state {
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.online { background: rgba(0, 255, 0, 0.15); color: #00ff00; border: 1px solid #00ff00; }
.offline { background: rgba(255, 255, 255, 0.05); color: #888; border: 1px solid #444; }
.state-banned { background: rgba(255, 0, 0, 0.2); color: #ff4444; border: 1px solid #ff4444; }
.state-pending { background: rgba(255, 165, 0, 0.2); color: #ffa500; border: 1px solid #ffa500; }

/* Links inside Table */
.vertical-table a {
    color: #ffdf7e !important;
    text-decoration: none;
    font-weight: bold;
}

.vertical-table a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 223, 126, 0.4);
}

/* Character List Specific */
.vertical-table tr:hover td {
    background: rgba(212, 175, 55, 0.05) !important;
}

/* Action Buttons (Reset Look, Reset Pos) */
.block-link {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.7rem;
    color: #fff !important;
    transition: all 0.3s;
}

.block-link:hover {
    background: #d4af37 !important;
    color: #000 !important;
    text-decoration: none !important;
    border-color: #ffdf7e;
}

/* Storage & Item Styling */
.item_name {
    color: #fff;
    font-weight: bold;
}

.identified.yes { color: #55ff55; }
.identified.no { color: #ff5555; font-style: italic; }
.broken.yes { color: #ff4444; font-weight: bold; animation: nexusPulse 2s infinite; }

/* Slot highlight */
.overslotted1 { border-left: 3px solid #ff0000; }
.normalslotted { border-left: 3px solid transparent; }

/* Ban Forms */
.vertical-table form {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 4px;
    margin: 5px 0;
}

.vertical-table textarea.reason {
    width: 100%;
    background: #111;
    border: 1px solid #444;
    color: #ccc;
    padding: 10px;
    margin: 10px 0;
}

.vertical-table input[type="submit"] {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

/* Utility */
.not-applicable {
    color: #555;
    font-style: italic;
}

@keyframes nexusPulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive Table */
@media (max-width: 1024px) {
    .vertical-table {
        display: block;
        overflow-x: auto;
    }
}

/*********************************************
 ** USER PANEL GREETING - NEXUS ACCESS BADGE **
 *********************************************/


/* =========================================================
   1. LOGINBOX CONTAINER
   ========================================================= */
.loginbox .panel {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 20px !important;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.loginbox .panel-body {
    padding: 25px !important;
}

/* =========================================================
   2. LOGGED IN STATE (USER DASHBOARD)
   ========================================================= */
.loginbox .panel-heading {
    background: rgba(212, 175, 55, 0.1) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    padding: 15px 20px !important;
    text-align: center;
}

.loginbox .panel-heading strong {
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 10px var(--gold-glow);
}

/* List Group Items (Links) */
.loginbox .list-group {
    background: transparent !important;
    margin-bottom: 0;
}

.loginbox .list-group-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 0 !important;
    transition: 0.3s;
}

.loginbox .list-group-item a {
    display: block;
    padding: 12px 20px;
    color: #bbb !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.loginbox .list-group-item:hover {
    background: rgba(212, 175, 55, 0.1) !important;
}

.loginbox .list-group-item:hover a {
    color: var(--gold-bright) !important;
    padding-left: 25px;
}

.loginbox .glyphicon-log-out {
    color: #ff4444;
}

/* Server Selector Footer */
.loginbox .panel-footer {
    background: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
    padding: 15px !important;
}

.loginbox .panel-footer label {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
}

/* =========================================================
   3. LOGIN FORM ELEMENTS
   ========================================================= */
.loginbox label { 
    color: var(--gold) !important; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 11px; 
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.loginbox .form-control { 
    background: rgba(255,255,255,0.05) !important; 
    border: 1px solid rgba(255,255,255,0.1) !important; 
    color: #fff !important; 
    height: 40px;
    border-radius: 8px !important;
    transition: 0.3s;
}

.loginbox .form-control:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 10px var(--gold-glow) !important;
    outline: none;
}

/* Captcha Styling */
.security-code img {
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid var(--gold);
}

.action a {
    color: var(--gold) !important;
    text-decoration: none;
}

/* =========================================================
   4. BUTTONS & SEPARATOR
   ========================================================= */
/* Login Button (Nexus Gold Style) */
.btn-login { 
    position: relative;
    background: linear-gradient(135deg, #d4af37 0%, #ffdf7e 50%, #8c6239 100%) !important; 
    color: #000 !important; 
    font-family: 'Cinzel', serif;
    font-weight: 900; 
    height: 45px; 
    width: 100%; 
    border: 1px solid #ffdf7e !important; 
    border-radius: 8px !important; 
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--gold-glow);
    filter: brightness(1.1);
}

/* Register Button (Outline Style) */
.btn-register { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: rgba(255,255,255,0.03) !important; 
    color: var(--gold) !important; 
    border: 1px solid var(--gold) !important; 
    height: 45px; 
    border-radius: 8px !important; 
    text-decoration: none !important; 
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 12px;
    transition: 0.3s;
}

.btn-register:hover {
    background: var(--gold) !important;
    color: #000 !important;
    box-shadow: 0 0 15px var(--gold-glow);
}

/* Separator */
.login-sep { 
    text-align: center; 
    margin: 20px 0; 
    color: rgba(212, 175, 55, 0.5) !important; 
    font-size: 10px; 
    font-family: 'Cinzel', serif;
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.login-sep::before, .login-sep::after { 
    content: ""; 
    flex: 1; 
    height: 1px; 
    background: rgba(212, 175, 55, 0.2); 
}

/*********************************************
 ** PRE-REGISTER EVENT - NEXUS GRID STYLE   **
 *********************************************/
.nexus-event-container {
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.event-title {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    text-align: center;
    color: #fff !important;
    margin-bottom: 30px;
}

.event-title .status-tag {
    color: #ff4444;
    font-weight: bold;
}

.event-title small {
    display: block;
    color: #888;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    margin-top: 5px;
}

/* Grid Alignment */
.milestone-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.milestone-item {
    width: 50px; /* Dipersempit agar muat di col-md-8 */
    text-align: center;
    z-index: 2;
}

.milestone-img-frame {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    background: #000;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.milestone-img-frame img {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
}

.milestone-label {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    color: var(--gold);
    margin-top: 5px;
}

/* PROGRESS BAR - KEY FIX */
.nexus-progress-wrapper {
    position: relative;
    background: rgba(255,255,255,0.05);
    height: 8px;
    /* Margin 25px didapat dari setengah lebar .milestone-item (50px/2) */
    margin: 15px 25px; 
    border-radius: 10px;
}

.nexus-progress-bar {
    background: linear-gradient(90deg, #8c6239, #d4af37, #ffdf7e);
    height: 100%;
    width: 0%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    transition: width 1.2s ease-in-out;
}

.bullet-overlay {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.bullet-dot {
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
}

.account-count-text {
    text-align: center;
    font-size: 11px;
    color: #777;
    margin-top: 20px;
    letter-spacing: 1px;
}

.account-count-text strong {
    color: var(--gold-bright);
}

/* Tooltip */
.tooltip-bubble {
    visibility: hidden;
    position: fixed; /* Ubah ke fixed agar bisa diletakkan di mana saja */
    pointer-events: none; /* Agar tidak mengganggu gerakan mouse */
    width: 150px;
    background: #000;
    color: #fff;
    border: 1px solid var(--gold);
    font-size: 10px;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.2s; /* Hapus transform dari sini */
    z-index: 9999;
}

.tooltip-container:hover .tooltip-bubble {
    visibility: visible;
    opacity: 1;
}

/* =========================================================
   NEXUS ANNOUNCEMENT BOX STYLE 
   ========================================================= */
.nexus-announcement {
    margin-bottom: 30px;
}

.announcement-frame {
    position: relative;
    background: var(--bg-glass) !important;
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.announcement-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
}

.announcement-title {
    font-family: 'Cinzel', serif;
    color: var(--gold-bright) !important;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    text-shadow: 0 0 10px var(--gold-glow);
}

.announcement-text p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #ccc;
    margin: 0;
}

.announcement-link {
    color: var(--gold-bright) !important;
    font-weight: 800;
    text-decoration: underline;
    transition: 0.3s;
}

.announcement-link:hover {
    color: #fff !important;
    text-shadow: 0 0 8px var(--gold-bright);
}

.icon-pulse {
    font-size: 24px;
    display: block;
    animation: iconFloat 3s ease-in-out infinite;
}

/* Efek Cahaya di belakang teks */
.announcement-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 50%, rgba(212, 175, 55, 0.1), transparent 50%);
    pointer-events: none;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .announcement-content { flex-direction: column; text-align: center; }
}


/*********************************************
 ** NEXUS DONATION PAGE STYLING             **
 *********************************************/
.nexus-box {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 20px !important;
    padding: 30px !important;
    margin-bottom: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.nexus-title-main {
    font-family: 'Cinzel', serif;
    color: var(--gold-bright) !important;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-shadow: 0 0 10px var(--gold-glow);
}

.nexus-info-card {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--gold);
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
}

/* --- INLINE FORM SYSTEM --- */
.nexus-donation-form-inline {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    gap: 15px !important;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    margin-bottom: 20px;
}

.voucher-field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.voucher-field-group label {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: bold;
    margin: 0;
}

.input-container-relative {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container-relative input {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    height: 46px !important;
    box-sizing: border-box;
}

#voucher-status-icon {
    position: absolute;
    right: 12px;
    font-size: 16px;
    z-index: 5;
}

/* --- BUTTON OVERRIDE --- */
.btn-nexus-submit {
    background: linear-gradient(135deg, #d4af37 0%, #ffdf7e 50%, #8c6239 100%) !important;
    color: #000 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 900 !important;
    padding: 0 30px !important;
    border: 1px solid #ffdf7e !important;
    border-radius: 6px !important;
    height: 46px !important; /* HARUS SAMA DENGAN INPUT */
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-nexus-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--gold-glow);
    filter: brightness(1.2);
}

/* --- GUIDE GRID --- */
.nexus-guide-section {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.guide-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.step-num {
    background: var(--gold);
    color: #000;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 11px;
    margin-right: 8px;
}

/* Loading Overlay */
.nexus-loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner-gold {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.1);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: nexusSpin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes nexusSpin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .nexus-donation-form-inline { flex-direction: column !important; align-items: stretch !important; }
    .guide-grid { grid-template-columns: 1fr; }
}

/*********************************************
 ** CINEMATIC MOVING ALBUM (DYNAMIC)        **
 *********************************************/
.nostalgia-album-container {
    margin-top: 25px;
    padding: 20px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
}

.album-slider {
    width: 100%;
    padding: 15px 0;
    position: relative;
    /* Masking gradient biar pinggirannya halus (fade out) */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.album-track {
    display: flex;
    gap: 20px;
    /* Kita buat lebarnya otomatis selebar konten */
    width: max-content; 
    animation: scroll-album 40s linear infinite;
}

.album-track:hover {
    animation-play-state: paused;
}

.album-slide {
    width: 240px; /* Ukuran fixed */
    flex-shrink: 0;
}

.photo-card {
    position: relative;
    background: #111; /* Background item pas loading */
    padding: 5px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.8) contrast(1.1);
    transition: 0.5s;
}

.photo-card:hover img {
    filter: brightness(1.1);
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    color: var(--gold);
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

/* ANIMASI INFINITE */
@keyframes scroll-album {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Karena kita merge 2 array, -50% itu pas balik ke awal */
}