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

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

:root {
    --green:        #4caf60;
    --green-light:  #6bbf74;
    --green-bright: #111111;
    --green-dark:   #1a1a1a;
    --green-glow:   rgba(100,180,110,0.18);
    --green-border: rgba(100,180,110,0.30);

    --bg-body:   #e8f5ea;
    --bg-panel:  rgba(232,248,234,0.88);
    --bg-input:  rgba(220,245,222,0.85);

    --text-bright: #111111;
    --text-mid:    #444444;
    --text-faint:  rgba(0,0,0,0.45);

    --green-online: #1a1a1a;
    --red:          #b03030;
    --blue:         #3b5fc0;

    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 18px;
}

body {
    font-family: unset;
    font-size: 17px;
    color: #111111;
    /*background-color: var(--bg-body);*/
	background-color: #64a96f82;
    background-image:
        linear-gradient(rgba(232,248,234,0.25), rgba(220,245,222,0.35)),
        url('img/main_bgbg2.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: min(1500px, calc(100% - 40px));
    min-width: 1000px;
    margin: auto;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(200px, 240px);
    grid-template-areas: "left news right";
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

/* ═══ NAVBAR ═══════════════════════════════════════ */
.navbar-wrap {
    position: relative;
    background: rgba(142 255 156 / 50%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(100,180,110,0.40);
    box-shadow: 0 2px 16px rgba(60,140,70,0.10);
    overflow: visible;
    z-index: 1000;
}
.navbar-wrap::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, #6bbf74 15%, #4caf60 50%, #6bbf74 85%, transparent 100%);
    opacity: 0.5;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 20px;
    min-height: 54px;
    overflow: visible;
    position: relative;
    z-index: 1000;
}

.navbar a {
    font-family: unset;
    font-size: 16px;
    font-weight: 700;

    text-transform: uppercase;
    color: #333333;
    text-decoration: none;
    padding: 4px 10px;
    position: relative;
    transition: color 0.25s;
    white-space: nowrap;
}
.navbar a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%; right: 50%;
    height: 2px;
    
    border-radius: 1px;
    transition: left 0.25s, right 0.25s, opacity 0.25s;
    opacity: 0;
}
.navbar a:hover { color: #111111; }
.navbar a:hover::after { left: 16px; right: 16px; opacity: 1; }

.navbar-sep {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #00000082;
    opacity: 0.6;
    flex-shrink: 0;
    margin: 0 2px;
}

/* ═══ HERO ══════════════════════════════════════════ */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 260px;
    text-align: center;
}
.logo {
    max-width: 500px;
    margin-bottom: -30px;
    filter: drop-shadow(0 4px 20px rgba(60,140,70,0.25));
}
.play-btn {
    width: 300px; height: 90px;
    background: url('img/play.png') center/contain no-repeat;
    display: block; transition: 0.3s;
}
.play-btn:hover { transform: scale(1.05); filter: brightness(1.1); }

/* ═══ PANEL ═════════════════════════════════════════ */
.panel {
    /*background: rgba(142 255 156 / 50%);*/
	background-color: #fff;
    border: 1px solid rgba(100,180,110,0.30);
    border-radius: var(--r-lg);
    padding: 22px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.5) inset,
        0 8px 32px rgba(60,140,70,0.12),
        0 0 22px var(--green-glow);
    color: #111111;
    position: relative;
}
.panel::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(100,180,110,0.5), transparent);
    pointer-events: none;
}

.panel-title {
    font-family: unset;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(100,180,110,0.22);
    display: flex;
    align-items: center;
    gap: 10px;
}
.panel-title::before { content: '◆'; font-size: 8px; color: #4caf60; flex-shrink: 0; }

.panel-subtitle {
    font-family: unset;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #4caf60;
    margin: 16px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.panel-subtitle::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, rgba(100,180,110,0.3), transparent); }

.panel-body { padding: 4px 0; }

/* ═══ VIP BADGE ═════════════════════════════════════ */
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: unset;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(#feff00);
    border-radius: 3px;
    padding: 2px 7px;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(76,175,96,0.4);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.battlepass-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: unset;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(#00ff7b);
    border-radius: 3px;
    padding: 2px 7px;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(76,175,96,0.4);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ═══ LOGIN ══════════════════════════════════════════ */
.login input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(100,180,110,0.30);
    border-radius: var(--r-sm);
    color: #111111;
    font-family: unset;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(76,175,96,0.15); }
.login button {
    width: 100%; padding: 10px;
    background: linear-gradient(135deg, #222222, #4caf60);
    border: 1px solid #4caf60;
    border-radius: var(--r-sm);
    color: #fff;
    font-family: unset;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 4px 14px rgba(76,175,96,0.25);
}
.login button:hover { background: linear-gradient(135deg, #4caf60, #6bbf74); box-shadow: 0 4px 22px rgba(76,175,96,0.4); }

/* ═══ SIDEBAR ════════════════════════════════════════ */
.site-sidebar { width: 300px; min-height: 520px; align-self: flex-start; }
.home-layout > .site-sidebar { width: 120%; grid-area: left; grid-column: 1; grid-row: 1; }

.sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(100,180,110,0.22);
    font-family: unset;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #111111;
}

.sidebar-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(76,175,96,0.12);
    border: 1px solid rgba(76,175,96,0.35);
    color: #1a1a1a;
    font-family: unset;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dot-online {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    box-shadow: 0 0 7px rgba(74,222,128,0.8);
    flex-shrink: 0;
    animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 6px rgba(74,222,128,0.8); }
    50%      { box-shadow: 0 0 13px rgba(74,222,128,0.5); }
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: var(--r-md);
    background: rgba(100,180,110,0.12);
    border: 1px solid rgba(100,180,110,0.25);
}

.sidebar-avatar {
    width: 42px; height: 42px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(100,180,110,0.22);
    border: 1px solid rgba(100,180,110,0.35);
    box-shadow: 0 4px 12px rgba(60,140,70,0.15);
    color: #111111;
    font-size: 20px;
}

.sidebar-welcome {
    color: rgba(0,0,0,0.38);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.sidebar-username {
    color: #111111;
    font-family: unset;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.sidebar-discord-tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; color: #3b5fc0; font-weight: 600; margin-top: 4px;
}
.sidebar-discord-tag i { font-size: 13px; }

.sidebar-discord-connect {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 6px; padding: 5px 10px;
    background: rgba(59,95,192,0.10);
    border: 1px solid rgba(59,95,192,0.30);
    border-radius: var(--r-sm);
    color: #3b5fc0; font-size: 13px; font-weight: 700;
    text-decoration: none; transition: background 0.2s, border-color 0.2s;
}
.sidebar-discord-connect:hover { background: rgba(59,95,192,0.20); border-color: rgba(59,95,192,0.55); color: #2a4aaa; text-decoration: none; }
.sidebar-discord-connect i { font-size: 13px; }

.sidebar-balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 10px; }

.sidebar-balance {
    padding: 9px 10px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.60);
    border: 1px solid rgba(100,180,110,0.22);
    transition: border-color 0.2s;
}
.sidebar-balance:hover { border-color: rgba(100,180,110,0.45); }
.sidebar-balance span { display: block; color: rgba(0,0,0,0.38); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 3px; }
.sidebar-balance strong { color: #111111; font-size: 14px; font-weight: 700; }

.sidebar-discord { margin-bottom: 12px; color: #444444; font-size: 13px; overflow-wrap: anywhere; }

.sidebar-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }

.sidebar-action-grid a,
.sidebar-links a,
.sidebar-login-links a { text-decoration: none; }

.sidebar-action-grid a {
    display: flex; align-items: center; gap: 7px;
    padding: 9px 8px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(100,180,110,0.18);
    color: #333333;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.8px; text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s, color 0.18s, transform 0.15s;
}
.sidebar-action-grid a:hover { background: rgba(100,180,110,0.18); border-color: rgba(100,180,110,0.45); color: #111111; transform: translateX(2px); }

.sidebar-action-grid a.danger { color: #b03030; border-color: rgba(176,48,48,0.20); background: rgba(255,240,240,0.55); }
.sidebar-action-grid a.danger:hover { background: rgba(176,48,48,0.10); border-color: rgba(176,48,48,0.35); color: #8a1a1a; transform: translateX(2px); }

.sidebar-error { margin-bottom: 10px; padding: 9px 12px; border-radius: var(--r-sm); background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.22); color: #b03030; font-size: 13px; font-weight: 700; }

.sidebar-login-form input { margin-bottom: 10px; }
.sidebar-login-form button { display: flex; align-items: center; justify-content: center; gap: 8px; }

.sidebar-login-links { display: grid; gap: 7px; margin-top: 12px; }

.sidebar-login-links a,
.sidebar-links a {
    display: flex; align-items: center; gap: 8px;
    color: #444444;
    font-size: 13px; line-height: 1.5;
    padding: 6px 0;
    border-bottom: 1px solid rgba(100,180,110,0.12);
    transition: color 0.2s;
}
.sidebar-login-links a:hover, .sidebar-links a:hover { color: #111111; }

.sidebar-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(100,180,110,0.15); }

.sidebar-section-title {
    font-family: unset;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: rgba(76,175,96,0.65); margin-bottom: 10px;
}

.sidebar-status-row,
.sidebar-info-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 6px;
    color: #444444; font-size: 13px;
    padding: 5px 0; border-bottom: 1px solid rgba(100,180,110,0.10);
}
.sidebar-status-row span, .sidebar-info-row span { display: inline-flex; align-items: center; gap: 7px; }
.sidebar-status-row strong { color: #1a1a1a; font-size: 12px; }
.sidebar-info-row strong   { color: #111111; font-size: 13px; font-weight: 700; }

.sidebar-info-row i, .sidebar-links i, .sidebar-login-links i, .sidebar-action-grid i { width: 15px; text-align: center; flex-shrink: 0; }

.sidebar-links { display: grid; gap: 0; }

@media (max-width: 900px) { .home-layout > .site-sidebar { width: 100%; } }

/* ═══ UPDATE ═════════════════════════════════════════ */
.update-item { display: flex; gap: 15px; margin-bottom: 12px; padding: 10px; border-radius: var(--r-sm); background: rgba(255,255,255,0.55); border: 1px solid rgba(100,180,110,0.18); transition: 0.2s; }
.update-item:hover { background: rgba(255,255,255,0.75); border-color: rgba(100,180,110,0.35); }
.update-item img { width: 80px; border-radius: 6px; }
.update-content h4 { font-size: 15px; margin-bottom: 4px; color: #111111; }
.update-content span { font-size: 13px; color: #444444; }

/* ═══ NEWS PANEL ═════════════════════════════════════ */
.news-panel { min-height: 520px; grid-area: news; grid-column: 2; grid-row: 1; width: 930px; }

.news-tab-content { max-height: 500px; overflow-y: auto; overflow-x: hidden; }
.news-tab-content::-webkit-scrollbar { width: 4px; }
.news-tab-content::-webkit-scrollbar-track { background: transparent; }
.news-tab-content::-webkit-scrollbar-thumb { background: rgba(100,180,110,0.35); border-radius: 10px; }
.news-tab-content::-webkit-scrollbar-thumb:hover { background: rgba(100,180,110,0.6); }

.news-tab-content-wrap { position: relative; }
.news-tab-content-wrap::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 52px; background: linear-gradient(to bottom, transparent, rgba(232,248,234,0.85)); pointer-events: none; border-radius: 0 0 8px 8px; }
.news-tab-content-wrap.scrolled-end::after { display: none; }

.news-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(100,180,110,0.18); }

.news-tab {
    min-height: 34px; padding: 0 14px;
    border: 1px solid rgba(100,180,110,0.25);
    border-radius: 4px;
    background: rgba(255,255,255,0.55);
    color: #444444;
    font-family: unset;
    font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.news-tab:hover, .news-tab.active { border-color: rgba(100,180,110,0.55); background: rgba(100,180,110,0.18); color: #111111; }

.news-pane { display: none; }
.news-pane.active { display: block; }

.news-card {
    padding: 16px 18px; margin-bottom: 12px;
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(100,180,110,0.22);
    border-left: 3px solid rgba(100,180,110,0.55);
    transition: border-left-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative; overflow: hidden;
}
.news-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, rgba(100,180,110,0.4), transparent); }
.news-card:hover { border-left-color: #4caf60; background: rgba(255,255,255,0.82); transform: translateX(3px); box-shadow: 0 4px 18px rgba(60,140,70,0.12); }

.news-date { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: rgba(0,0,0,0.38); font-size: 13px; }

.news-title { margin-bottom: 8px; color: #111111; font-family: unset; font-size: 17px; line-height: 1.45; font-weight: 700; }

.news-excerpt { margin-bottom: 14px; color: #444444; font-size: 15px; line-height: 1.75; }

.news-read-more {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 18px;
    border-radius: 4px;
    background: rgba(100,180,110,0.15);
    border: 1px solid rgba(100,180,110,0.40);
    color: #111111;
    font-family: unset;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}
.news-read-more:hover { background: rgba(100,180,110,0.28); box-shadow: 0 0 14px rgba(60,140,70,0.18); color: #111111; text-decoration: none; }

.news-empty { padding: 32px 16px; border: 1px dashed rgba(100,180,110,0.28); border-radius: var(--r-sm); color: #444444; text-align: center; font-size: 15px; }

/* News Single */
.news-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #444444; text-decoration: none; margin-bottom: 14px; transition: color 0.2s; }
.news-back-link:hover { color: #111111; }
.news-back-link i { font-size: 12px; }

.news-category-badge { display: inline-block; padding: 4px 12px; border-radius: 3px; background: rgba(100,180,110,0.15); border: 1px solid rgba(100,180,110,0.35); color: #111111; font-family: unset; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }

.news-single-title { font-family: unset; font-size: 24px; font-weight: 700; color: #111111; line-height: 1.35; margin-bottom: 10px; }

.news-single-header { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(100,180,110,0.18); }
.news-single-header .news-date { font-size: 13px; color: #444444; }
.news-single-panel { min-height: 520px; }

.news-single-body { font-size: 16px; line-height: 1.8; color: #333333; }
.news-single-body h1, .news-single-body h2, .news-single-body h3 { color: #111111; margin: 20px 0 10px; line-height: 1.3; }
.news-single-body h1 { font-size: 22px; font-family: unset; }
.news-single-body h2 { font-size: 19px; }
.news-single-body h3 { font-size: 17px; }
.news-single-body p   { margin: 0 0 12px; }
.news-single-body ul, .news-single-body ol { margin: 0 0 12px; padding-left: 22px; }
.news-single-body li { margin-bottom: 4px; }
.news-single-body blockquote { border-left: 3px solid #4caf60; padding: 8px 14px; margin: 14px 0; color: #444444; font-style: italic; background: rgba(100,180,110,0.08); border-radius: 0 6px 6px 0; }
.news-single-body a { color: #222222; text-decoration: underline; }
.news-single-body a:hover { color: #111111; }
.news-single-body strong, .news-single-body b { color: #111111; font-weight: 700; }
.news-single-body img { max-width: 100%; border-radius: var(--r-sm); margin: 8px 0; height: auto; }
.news-single-body iframe { max-width: 100%; border-radius: var(--r-sm); display: block; margin: 10px 0; border: none; }
.news-single-body div[style*="margin"] { max-width: 100%; }
.news-single-body pre { background: rgba(220,245,222,0.8); border: 1px solid rgba(100,180,110,0.22); border-radius: var(--r-sm); padding: 12px 16px; overflow-x: auto; margin: 12px 0; }
.news-single-body code { font-family: unset; font-size: 14px; color: #111111; }
.news-single-body pre code { color: #222222; }
.news-single-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.news-single-body td, .news-single-body th { border: 1px solid rgba(100,180,110,0.22); padding: 8px 12px; }
.news-single-body th { background: rgba(100,180,110,0.12); color: #111111; font-weight: 600; }
.news-single-body .spoiler-wrap { border: 1px dashed rgba(100,180,110,0.40); border-radius: 8px; overflow: hidden; margin: 12px 0; }
.news-single-body .spoiler-hdr { background: rgba(100,180,110,0.10); padding: 9px 14px; cursor: pointer; font-size: 14px; font-weight: 600; color: #111111; -webkit-user-select: none; user-select: none; transition: background .2s; }
.news-single-body .spoiler-hdr:hover { background: rgba(100,180,110,0.20); }
.news-single-body .spoiler-body { padding: 12px 16px; background: rgba(220,245,222,0.5); }
.news-single-body .spoiler-body.hidden { display: none; }

.news-not-found { text-align: center; padding: 48px 0; color: #444444; font-size: 15px; }
.news-not-found i { display: block; font-size: 36px; margin-bottom: 12px; color: #6bbf74; }
.news-divider { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(100,180,110,0.18); }

.news-content { color: #444444; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.news-content h1,.news-content h2,.news-content h3 { margin: 0 0 10px; color: #111111; line-height: 1.35; }
.news-content h1 { font-size: 22px; } .news-content h2 { font-size: 19px; } .news-content h3 { font-size: 17px; }
.news-content p { margin-bottom: 10px; }
.news-content a { color: #222222; text-decoration: none; }
.news-content a:hover { text-decoration: underline; }
.news-content img { max-width: 100%; height: auto; border-radius: 8px; }

/* ═══ TOP 1 / RANK ═══════════════════════════════════ */
.home-right-panel { grid-area: right; grid-column: 3; grid-row: 1; width: 300px; }

.top-guild-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-md); background: rgba(100,180,110,0.14); border: 1px solid rgba(100,180,110,0.28); margin-bottom: 6px; }
.top-guild-emblem { flex-shrink: 0; }
.guild-no-emblem { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(100,180,110,0.12); border: 1px solid rgba(100,180,110,0.25); color: #4caf60; font-size: 24px; }

.top-guild-name { font-family: unset; font-size: 15px; font-weight: 700; color: #111111; margin-bottom: 5px; letter-spacing: 1px; }
.top-guild-detail { font-size: 13px; color: #444444; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.top-guild-detail i { color: #4caf60; font-size: 11px; }
.top-guild-detail b { color: #111111; }

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(100,180,110,0.12); min-width: 0; }
.rank-list li:last-child { border-bottom: none; }
.rank-list li span { font-size: 18px; min-width: 0; }
.rank-list li span:first-child { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #111111; }
.rank-list li span:first-child small { display: block; font-size: 16px; color: #444444; margin-top: 1px; }
.rank-list li span:last-child { flex: 0 0 auto; color: #1a1a1a; font-weight: 700; font-size: 16px; }

/* ═══ FEATURES ═══════════════════════════════════════ */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; margin-bottom: 40px; }

.feature-box {
    padding: 24px 18px; text-align: center;
    border-radius: var(--r-md);
    background: rgba(142 255 156 / 50%);
    border: 1px solid rgba(100,180,110,0.22);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
}
.feature-box::before { content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px; background: linear-gradient(to right, transparent, rgba(100,180,110,0.35), transparent); }
.feature-box:hover { transform: translateY(-5px); border-color: rgba(100,180,110,0.45); box-shadow: 0 12px 32px rgba(60,140,70,0.18); }
.feature-box img { width: 46px; margin-bottom: 12px; filter: sepia(0.2) hue-rotate(80deg) brightness(1.05); }
.feature-box h4 { font-family: unset; font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #111111; margin-bottom: 6px; }
.feature-box p { font-size: 13px; color: #444444; }

/* ═══ FOOTER ═════════════════════════════════════════ */
.footer { text-align: center; padding: 30px 0; font-family: unset; font-size: 13px; letter-spacing: 1.5px; color: #444444; border-top: 1px solid rgba(100,180,110,0.18); margin-top: 40px;}

/* ═══ ACCOUNT MANAGE ════════════════════════════════ */
.manage-section { margin-bottom: 50px; padding: 30px; background: rgba(232,248,234,0.85); border: 1px solid var(--green-border); border-radius: 20px; backdrop-filter: blur(6px); transition: 0.3s; }
.manage-section:hover { border-color: rgba(100,180,110,0.45); box-shadow: 0 10px 32px rgba(60,140,70,0.15); }
.manage-header { text-align: center; font-family: unset; font-size: 22px; font-weight: 700; margin-bottom: 30px; color: #111111; text-transform: uppercase; letter-spacing: 3px; }
.manage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.manage-input-group { display: flex; background: rgba(255,255,255,0.65); border-radius: var(--r-md); overflow: hidden; border: 1px solid rgba(100,180,110,0.22); transition: 0.3s; }
.manage-input-group:focus-within { border-color: #4caf60; box-shadow: 0 0 14px rgba(76,175,96,0.18); }
.manage-input-icon { width: 45px; background: rgba(100,180,110,0.10); display: flex; align-items: center; justify-content: center; color: #4caf60; border-right: 1px solid rgba(100,180,110,0.18); font-size: 16px; }
.manage-input-group input { flex: 1; border: none; padding: 12px 15px; background: transparent; color: #111111; outline: none; font-family: unset; font-size: 15px; }
.manage-input-group input::placeholder { color: rgba(0,0,0,0.38); }
.manage-btn-container { text-align: center; margin-top: 10px; }
.btn-manage { /*background: linear-gradient(135deg, #222222, #4caf60)8*/; color: #fff; padding: 12px 40px; border: 1px solid #4caf60; border-radius: 50px; font-family: unset; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 16px rgba(76,175,96,0.22); }
.btn-manage:hover { background: linear-gradient(135deg, #4caf60, #6bbf74); box-shadow: 0 6px 24px rgba(76,175,96,0.35); transform: scale(1.03); }
.captcha-container { display: flex; align-items: center; gap: 15px; }
.captcha-box { border: 2px dashed rgba(176,48,48,0.5); color: #b03030; padding: 10px 20px; font-weight: 900; font-size: 20px; letter-spacing: 3px; border-radius: var(--r-sm); background: rgba(255,220,220,0.35); user-select: none; }

.glow { text-shadow: 0 0 12px rgba(76,175,96,0.5), 0 0 24px rgba(76,175,96,0.25); }

@media (max-width: 1100px) {
    .home-layout { grid-template-columns: minmax(210px, 240px) minmax(0, 1fr) minmax(190px, 220px); }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .container { width: 1000px; }
    .home-layout { grid-template-columns: 220px minmax(0, 1fr) 200px; grid-template-areas: "left news right"; }
    .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ═══════════════════════════════════════════════════
   2-COLUMN LAYOUT (sidebar removed)
═══════════════════════════════════════════════════ */
.home-layout-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
    margin-top: 40px;
    margin-bottom: 40px;
}

.home-layout-2col .news-panel {
    width: auto;
    grid-column: 1;
    grid-row: 1;
}

.home-layout-2col .home-right-panel {
    width: auto;
    grid-column: 2;
    grid-row: 1;
}

/* ═══════════════════════════════════════════════════
   NAVBAR DROPDOWN
═══════════════════════════════════════════════════ */
.navbar-plain {
    font-family: unset;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #333333;
    text-decoration: none;
    padding: 17px 16px;
    position: relative;
    transition: color 0.25s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.navbar-plain::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%; right: 50%;
    height: 2px;
    
    border-radius: 1px;
    transition: left 0.25s, right 0.25s, opacity 0.25s;
    opacity: 0;
}
.navbar-plain:hover { color: #111111; }
.navbar-plain:hover::after { left: 16px; right: 16px; opacity: 1; }

.navbar-donate {
    color: #222222;
    font-weight: 700;
}

/* Dropdown trigger button */
.nb-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nb-drop-trigger {
    font-family: unset;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #333333;
    text-decoration: none;
    padding: 17px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    transition: color 0.25s;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}
.nb-drop-trigger::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%; right: 50%;
    height: 2px;
    
    border-radius: 1px;
    transition: left 0.25s, right 0.25s, opacity 0.25s;
    opacity: 0;
}
.nb-drop-trigger:hover,
.nb-item.nb-open .nb-drop-trigger { color: #111111; }
.nb-drop-trigger:hover::after,
.nb-item.nb-open .nb-drop-trigger::after { left: 16px; right: 16px; opacity: 1; }

.nb-chev {
    font-size: 10px;
    color: #4caf60;
    transition: transform 0.22s;
}
.nb-item.nb-open .nb-chev { transform: rotate(180deg); }

/* Dropdown panel */
.nb-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(240,255,240,0.98);
    border: 1px solid rgba(100,180,110,0.38);
    border-radius: 14px;
    box-shadow: 0 10px 36px rgba(60,140,70,0.20);
    padding: 10px;
    min-width: 240px;
    z-index: 9999;
}

/* Arrow pointer */
.nb-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 11px; height: 11px;
    background: rgba(240,255,240,0.98);
    border-left: 1px solid rgba(100,180,110,0.38);
    border-top:  1px solid rgba(100,180,110,0.38);
}

.nb-item.nb-open .nb-dropdown { display: block; }

/* User info section in dropdown */
.nb-user-info {
    padding: 10px 10px 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(100,180,110,0.20);
}
.nb-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.nb-avatar {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(100,180,110,0.20);
    border: 1px solid rgba(100,180,110,0.35);
    color: #111111;
    font-size: 18px;
}
.nb-welcome {
    font-size: 10px;
    color: rgba(0,0,0,0.45);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.nb-username {
    font-family: unset;
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    overflow-wrap: anywhere;
}
.nb-discord {
    font-size: 12px;
    color: #3b5fc0;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nb-discord-connect {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(59,95,192,0.10);
    border: 1px solid rgba(59,95,192,0.28);
    border-radius: 5px;
    color: #3b5fc0;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.nb-discord-connect:hover { background: rgba(59,95,192,0.20); text-decoration: none; }

.nb-bal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}
.nb-bal {
    padding: 7px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(100,180,110,0.20);
}
.nb-bal span {
    display: block;
    font-size: 10px;
    color: rgba(0,0,0,0.45);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.nb-bal strong {
    font-size: 13px;
    font-weight: 700;
    color: #111111;
}

/* Menu grid inside dropdown */
.nb-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.nb-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #333333;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    cursor: pointer;
}
.nb-menu-item i { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.nb-menu-item:hover { background: rgba(100,180,110,0.18); border-color: rgba(100,180,110,0.28); color: #111111; text-decoration: none; }
.nb-menu-item.nb-danger { color: #b03030; }
.nb-menu-item.nb-danger:hover { background: rgba(176,48,48,0.08); border-color: rgba(176,48,48,0.22); color: #8a1a1a; }

/* ── Sidebar styles bisa tetap ada untuk halaman lain yang masih pakai sidebar ── */

/* ═══════════════════════════════════════════════════
   NAVBAR LOGIN FORM (guest state)
═══════════════════════════════════════════════════ */
.nb-login-form {
    padding: 4px 2px;
    min-width: 260px;
}

.nb-login-title {
    font-family: unset;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111111;
    text-align: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(100,180,110,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nb-login-error {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 7px;
    background: rgba(176,48,48,0.09);
    border: 1px solid rgba(176,48,48,0.22);
    color: #b03030;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.nb-login-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid rgba(100,180,110,0.30);
    background: rgba(255,255,255,0.70);
    color: #111111;
    font-family: unset;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.nb-login-input:focus {
    border-color: #4caf60;
    box-shadow: 0 0 0 3px rgba(76,175,96,0.14);
}
.nb-login-input::placeholder { color: rgba(0,0,0,0.38); }

.nb-login-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    /*background: linear-gradient(135deg, #222222, #4caf60);*/
    border: 1px solid #4caf60;
    color: #fff;
    font-family: unset;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
    box-shadow: 0 3px 12px rgba(76,175,96,0.22);
}
.nb-login-btn-submit:hover {
    background: linear-gradient(135deg, #4caf60, #6bbf74);
    box-shadow: 0 4px 18px rgba(76,175,96,0.36);
}

.nb-login-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 4px;
    border-top: 1px solid rgba(100,180,110,0.15);
    padding-top: 10px;
}
.nb-login-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #444444;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}
.nb-login-links a:hover { color: #111111; text-decoration: none; }

/* ═══════════════════════════════════════════════════
   PAGE LAYOUT 2-COL (used by all inner pages)
   Full-width single panel — no sidebar
═══════════════════════════════════════════════════ */
.page-layout-2col {
    display: block;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-layout-2col .panel {
    width: 100%;
}

/* For pages that still have a right-side sub-panel
   (e.g. auction sell panel, gacha pity panel) */
.page-layout-2col .page-inner-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ── Green-theme overrides for pages with dark inline styles ─ */

/* Tables (rank, etc) */
.panel .table { color: #111111; }
.panel .table thead tr th {
    background: linear-gradient(135deg, rgba(45,138,56,0.25), rgba(76,175,96,0.18)) !important;
    color: #111111 !important;
    border-color: rgba(100,180,110,0.2) !important;
    font-family: unset;
    letter-spacing: 1px;
}
.panel .table-bordered > tbody > tr > td,
.panel .table-bordered > tbody > tr > th,
.panel .table-bordered > thead > tr > th {
    border-color: rgba(100,180,110,0.18) !important;
}
.panel .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(100,180,110,0.07) !important;
}
.panel .odd,
.panel .even { color: #111111 !important; }

/* Inputs & selects inside panels */
.panel input[type="text"],
.panel input[type="password"],
.panel input[type="email"],
.panel input[type="number"],
.panel textarea {
    background: rgba(255,255,255,0.65) !important;
    border: 1px solid rgba(100,180,110,0.30) !important;
    border-radius: 8px;
    color: #111111 !important;
    outline: none;
}
.panel input[type="text"]:focus,
.panel input[type="password"]:focus,
.panel input[type="email"]:focus,
.panel textarea:focus {
    border-color: #4caf60 !important;
    box-shadow: 0 0 0 3px rgba(76,175,96,0.13);
}
.panel input::placeholder,
.panel textarea::placeholder { color: rgba(0,0,0,0.38) !important; }

.panel select {
    background: rgba(255,255,255,0.65) !important;
    border: 1px solid rgba(100,180,110,0.30) !important;
    color: #111111 !important;
    border-radius: 8px;
    outline: none;
}
.panel select option {
    background: #f0fff0 !important;
    color: #111111 !important;
}
.panel select:focus { border-color: #4caf60 !important; }

/* Buttons inside panels */
.panel button[type="submit"],
.panel .btn-manage,
.panel .mp-btn {
    /*background: linear-gradient(135deg, #222222, #4caf60) !important;*/
    border: 1px solid #4caf60 !important;
    color: #000 !important;
    border-radius: 8px;
    font-family: unset;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.panel button[type="submit"]:hover,
.panel .btn-manage:hover,
.panel .mp-btn:hover {
    background: linear-gradient(135deg, #4caf60, #6bbf74) !important;
    box-shadow: 0 4px 16px rgba(76,175,96,0.32);
}

/* Labels and text */
.panel label { color: #333333; font-weight: 700; }

/* Pagination */
.panel .pagination > li > a,
.panel .pagination > li > span {
    background: rgba(255,255,255,0.65);
    border-color: rgba(100,180,110,0.25);
    color: #222222;
}
.panel .pagination > li > a:hover { background: rgba(100,180,110,0.15); color: #111111; }
.panel .pagination > .active > a {
    background: linear-gradient(135deg, #222222, #4caf60) !important;
    border-color: transparent !important;
    color: #000 !important;
}

/* ═══════════════════════════════════════════════════
   GLOBAL TEXT COLOR FIX
   Override semua teks putih warisan dark theme
═══════════════════════════════════════════════════ */

/* Semua teks di dalam panel default hijau gelap */
.panel,
.panel *:not(button):not(.btn-manage):not(.mp-btn):not(.nb-menu-item):not(.vip-badge):not(.badge-online):not(.dot-online) {
    color: #111111;
}

/* Heading & title tetap lebih gelap */
.panel h1, .panel h2, .panel h3, .panel h4, .panel h5, .panel h6 {
    color: #111111 !important;
}

/* Panel title pakai warna sendiri */
.panel .panel-title { color: #111111 !important; }
.panel .panel-subtitle { color: #4caf60 !important; }

/* Teks muted / secondary */
.panel small,
.panel .text-muted,
.panel .help-block,
.panel .form-text {
    color: #444444 !important;
}

/* Link di dalam panel */
.panel a:not(.btn-manage):not(.nb-menu-item):not(.news-read-more) {
    color: #222222;
}
.panel a:not(.btn-manage):not(.nb-menu-item):not(.news-read-more):hover {
    color: #111111;
}

/* Tombol submit/aksi tetap putih */
.panel button,
.panel .btn,
.panel .btn-manage,
.panel .mp-btn,
.panel [class*="btn-"] {
    color: #000 !important;
}

/* Khusus tombol outline / secondary */
.panel .btn-default,
.panel .btn-secondary {
    color: #333333 !important;
    background: rgba(255,255,255,0.65) !important;
    border-color: rgba(100,180,110,0.35) !important;
}
.panel .btn-default:hover,
.panel .btn-secondary:hover {
    background: rgba(100,180,110,0.18) !important;
    color: #111111 !important;
}

/* Placeholder tetap muted */
.panel input::placeholder,
.panel textarea::placeholder {
    color: rgba(0,0,0,0.38) !important;
}

/* Teks di dalam tabel */
.panel td, .panel th {
    color: #111111 !important;
}
.panel thead th {
    color: #111111 !important;
}

/* Badge / status pill */
.panel .badge {
    color: #000 !important;
}

/* Alert box */
.panel .alert-success,
.alert-success { color: #111111 !important; }
.panel .alert-error,
.panel .alert-danger,
.alert-error,
.alert-danger   { color: #b03030 !important; }
.panel .alert-warning { color: #7a5c00 !important; }
.panel .alert-info    { color: #1a4a7a !important; }

/* Fixes untuk halaman yang masih pakai inline color:#fff */
.panel [style*="color:#fff"],
.panel [style*="color: #fff"],
.panel [style*="color:white"],
.panel [style*="color: white"] {
    color: #111111 !important;
}

/* Kecuali elemen yang memang harus putih (tombol, badge) */
.panel button[style*="color:#fff"],
.panel button[style*="color: #fff"],
.panel .mp-btn[style*="color"],
.panel .badge[style*="color"],
.panel .vip-badge,
.panel .sidebar-status-pill {
    color: #000 !important;
}

/* Input value text */
.panel input[type="text"],
.panel input[type="password"],
.panel input[type="email"],
.panel input[type="number"],
.panel input[type="search"],
.panel textarea {
    color: #111111 !important;
}

/* Select */
.panel select { color: #111111 !important; }

/* Icon warna */
.panel .fas,
.panel .far,
.panel .fab,
.panel .fa {
    color: inherit;
}

/* Teks di luar panel (hero, footer, navbar) tetap tidak berubah */
.navbar-wrap *, .footer, .hero { color: inherit; }

/* Tab active text */
.news-tab.active,
.panel .tab.active,
.panel [class*="tab"].active { color: #111111 !important; }

/* Stat values */
.panel .stat-val { color: #111111 !important; font-weight: 700; }
.panel .stat-lbl { color: #444444 !important; }

/* Specific: panel-body default */
.panel-body { color: #111111; }

/* Specific: manage-header */
.manage-header { color: #111111 !important; }

/* Dropdown & modal text override */
.nb-dropdown * { color: #333333; }
.nb-dropdown button,
.nb-dropdown .nb-login-btn-submit { color: #000 !important; }
.nb-dropdown .nb-menu-item { color: #333333 !important; }
.nb-dropdown .nb-menu-item.nb-danger { color: #b03030 !important; }