/*
    VEXOR Online — Premium Dark Fantasy Theme
    Deep crimson · molten gold · obsidian black
*/

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

:root {
    --gold:          #e8b94f;
    --gold-glow:     rgba(232,185,79,0.35);
    --crimson:       #c0392b;
    --crimson-glow:  rgba(192,57,43,0.35);
    --bg-dark:       #080604;
    --bg-box:        #0e0a07;
    --bg-box-light:  #17100a;
    --text-main:     #f0ece4;
    --text-dim:      #8a7d6a;
    --border-color:  rgba(232,185,79,0.15);
}

/* ── Global Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus { outline: none !important; }

html {
    scroll-behavior: smooth;
    background-color: #080604;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #080604 !important;
    background: #080604 radial-gradient(ellipse at 50% -10%, rgba(120,20,20,0.35) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 100%, rgba(60,30,10,0.4) 0%, transparent 60%);
    color: var(--text-main);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #050302; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ══ Header ══════════════════════════════════════════════════ */
header {
    background-color: #060402 !important;
    background: rgba(6,4,2,0.97);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

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

.logo-info { display: flex; align-items: center; gap: 14px; }

.logo-info h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 18px var(--gold-glow);
}

.logo-info p {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 14px var(--gold-glow);
}

nav ul { display: flex; gap: 2px; list-style: none; }

nav ul li a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    padding: 9px 14px;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    transition: color 0.2s, text-shadow 0.2s;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
}

.login-btn-top {
    background: linear-gradient(135deg, var(--crimson) 0%, #7b1d12 100%);
    color: #fff;
    padding: 9px 28px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: 0.25s;
    box-shadow: 0 4px 14px rgba(192,57,43,0.25);
}

.login-btn-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(192,57,43,0.45);
}

/* ══ Layout ══════════════════════════════════════════════════ */
.main-wrapper {
    max-width: 1300px;
    margin: 38px auto;
    padding: 0 22px;
    display: flex;
    gap: 28px;
    flex: 1;
}

.col-side { width: 275px; flex-shrink: 0; }
.col-main { flex: 1; }

/* ══ Cards ═══════════════════════════════════════════════════ */
.card-box {
    background: var(--bg-box);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

.sidebar-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* ══ Hero Section ══════════════════════════════════════════ */
.hero-box {
    background:
        linear-gradient(135deg, rgba(14,10,7,0.92) 0%, rgba(120,20,20,0.14) 100%),
        url('images/background.jpg') no-repeat center center / cover;
    height: 440px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 55px;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 80px rgba(0,0,0,0.55);
}

.hero-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,6,4,0.7) 40%, transparent 100%);
    pointer-events: none;
}

.hero-box h2 {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 14px;
    text-transform: uppercase;
    position: relative;
}

.hero-box p {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 440px;
    margin-bottom: 28px;
    position: relative;
}

.hero-btns { display: flex; gap: 14px; position: relative; }

/* ══ Buttons ══════════════════════════════════════════════ */
.btn-main {
    background: linear-gradient(135deg, var(--gold) 0%, #b8892c 100%);
    color: #0a0700;
    padding: 13px 38px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: 0.25s;
    box-shadow: 0 4px 18px var(--gold-glow);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--gold-glow);
}

.btn-outline {
    border: 2px solid rgba(232,185,79,0.3);
    color: var(--gold);
    padding: 11px 38px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: 0.25s;
}

.btn-outline:hover {
    background: rgba(232,185,79,0.08);
    border-color: var(--gold);
}

/* ══ Login Sidebar ════════════════════════════════════════ */
.login-field { margin-bottom: 14px; }

.login-field label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.login-field input {
    width: 100%;
    background: #050302;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    color: #fff;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.2s;
}

.login-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold-glow);
}

.login-submit {
    width: 100%;
    background: linear-gradient(90deg, var(--crimson), #8b1a10);
    color: #fff;
    border: none;
    padding: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: 0.25s;
}

.login-submit:hover { box-shadow: 0 4px 18px var(--crimson-glow); transform: translateY(-1px); }

/* ══ Status Sidebar ═══════════════════════════════════════ */
.status-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.status-label { color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.status-val { font-weight: 700; }
.online-tag { color: #5ddc8c; text-transform: uppercase; font-size: 0.7rem; }

/* ══ Discord Widget ═══════════════════════════════════════ */
.discord-mock { background: #1a1c2e; border-radius: 6px; overflow: hidden; }
.discord-head { background: #5865f2; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; }
.discord-body { padding: 15px; }

/* ══ News / Updates ═══════════════════════════════════════ */
.update-item { transition: background 0.2s; }
.update-item:hover { background: rgba(232,185,79,0.04); }

/* ══ Footer ═══════════════════════════════════════════════ */
footer {
    background: rgba(4,3,2,0.98);
    border-top: 1px solid var(--border-color);
    padding: 36px 0;
    text-align: center;
    margin-top: auto;
}

footer p { color: var(--text-dim); font-size: 0.78rem; letter-spacing: 0.5px; }

/* ══ Responsive ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
    .main-wrapper { flex-direction: column; }
    .col-side { width: 100%; }
}

@media (max-width: 768px) {
    .main-wrapper { padding: 12px; }
    .col-side, .col-main { width: 100% !important; margin: 5px 0; }
    .hero-box { height: auto; padding: 40px 28px; }
    .hero-box h2 { font-size: 2rem !important; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    .header-container { flex-direction: column; gap: 12px; text-align: center; }
    .logo-info { justify-content: center; }
}

/* ══ Premium Icon Nav Bar (Header Buttons) ══ */
.top-nav-bar {
    display: flex;
    gap: 6px;
    align-items: center;
}
.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    min-width: 74px;
    background: rgba(14, 9, 5, 0.7);
    border: 1px solid rgba(232,185,79,0.18);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}
.nav-card .nav-icon {
    font-size: 1.1rem;
    line-height: 1;
    margin-bottom: 4px;
    color: #b89c7d;
    transition: transform 0.2s, color 0.2s;
}
.nav-card .nav-label {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #9c8c7a;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}
.nav-card:hover {
    background: rgba(40, 20, 10, 0.8);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--gold-glow);
}
.nav-card:hover .nav-icon,
.nav-card:hover .nav-label {
    color: var(--gold);
}
.nav-card.active {
    background: linear-gradient(180deg, #7a1d17 0%, #4a0d09 100%);
    border: 1px solid #c0392b;
    box-shadow: 0 0 16px rgba(192, 57, 43, 0.6);
}
.nav-card.active .nav-icon,
.nav-card.active .nav-label {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* ══ Fantasy MMO Chamfered Action Button (Register / Userpanel) ══ */
.nav-btn-fantasy {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 8px;
    margin: 0 4px;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-sizing: border-box;
}

.nav-btn-fantasy .f-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background: radial-gradient(ellipse at 50% 50%, #2f2014 0%, #17100a 65%, #0a0704 100%);
    border: 1px solid #b88628;
    box-shadow: 
        inset 0 0 0 1px #422d16,
        inset 0 0 0 2px #d4a745,
        0 4px 12px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(184, 134, 40, 0.2);
    clip-path: polygon(
        9px 0%, 
        calc(100% - 9px) 0%, 
        100% 9px, 
        100% calc(100% - 9px), 
        calc(100% - 9px) 100%, 
        9px 100%, 
        0% calc(100% - 9px), 
        0% 9px
    );
    transition: all 0.25s ease;
}

.nav-btn-fantasy .f-corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: #dfb758;
    border-style: solid;
    pointer-events: none;
    transition: all 0.25s ease;
}
.nav-btn-fantasy .f-tl {
    top: 0; left: 2px;
    border-width: 1.5px 0 0 1.5px;
}
.nav-btn-fantasy .f-bl {
    bottom: 0; left: 2px;
    border-width: 0 0 1.5px 1.5px;
}
.nav-btn-fantasy .f-tr {
    top: 0; right: 2px;
    border-width: 1.5px 1.5px 0 0;
}
.nav-btn-fantasy .f-br {
    bottom: 0; right: 2px;
    border-width: 0 1.5px 1.5px 0;
}

.nav-btn-fantasy .f-text {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 2.2px;
    color: #f7deb0;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(229, 197, 94, 0.4), 0 2px 4px rgba(0, 0, 0, 0.9);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-btn-fantasy .f-chevron {
    color: #dfb758;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 8px rgba(223, 183, 88, 0.5);
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-btn-fantasy:hover {
    transform: translateY(-2px);
}
.nav-btn-fantasy:hover .f-inner {
    background: radial-gradient(ellipse at 50% 50%, #442f1d 0%, #22180f 65%, #0e0905 100%);
    border-color: #ffd966;
    box-shadow: 
        inset 0 0 0 1px #5c3e1e,
        inset 0 0 0 2px #ffe599,
        0 6px 20px rgba(0, 0, 0, 0.9),
        0 0 18px rgba(229, 197, 94, 0.5);
}
.nav-btn-fantasy:hover .f-text {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.9), 0 0 24px rgba(229, 197, 94, 0.6);
}
.nav-btn-fantasy:hover .f-chevron {
    color: #ffd966;
    text-shadow: 0 0 12px rgba(255, 217, 102, 0.9);
}
.nav-btn-fantasy:hover .f-left {
    transform: translateX(-2px);
}
.nav-btn-fantasy:hover .f-right {
    transform: translateX(2px);
}
.nav-btn-fantasy:hover .f-corner {
    border-color: #ffd966;
    box-shadow: 0 0 6px rgba(255, 217, 102, 0.6);
}

.nav-btn-fantasy.active {
    filter: drop-shadow(0 0 10px rgba(192, 57, 43, 0.6));
}
.nav-btn-fantasy.active .f-inner {
    background: radial-gradient(ellipse at 50% 50%, #5a1711 0%, #300c09 65%, #150504 100%);
    border-color: #e74c3c;
    box-shadow: 
        inset 0 0 0 1px #78261e,
        inset 0 0 0 2px #ff7675,
        0 0 16px rgba(231, 76, 60, 0.7);
}
.nav-btn-fantasy.active .f-text {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}
.nav-btn-fantasy.active .f-chevron {
    color: #ff7675;
}
.nav-btn-fantasy.active .f-corner {
    border-color: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.7);
}

/* ══ Download Page Custom UI ══ */
.dl-tabs-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.dl-tab-btn {
    padding: 10px 24px;
    background: rgba(14, 9, 5, 0.8);
    border: 1px solid rgba(232,185,79,0.2);
    border-radius: 4px;
    color: #a89278;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.dl-tab-btn.active {
    background: linear-gradient(135deg, #7a1d17 0%, #4a0d09 100%);
    border-color: #c0392b;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(192,57,43,0.4);
}

.dl-section-box {
    background: rgba(14, 9, 5, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.dl-sec-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f5ece0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.dl-sec-sub {
    color: #8c7d6c;
    font-size: 0.78rem;
    margin-bottom: 20px;
}

/* Client Hosts Box with Monster */
.dl-client-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 200px;
}
.dl-client-hosts {
    flex: 1;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    z-index: 2;
}
.dl-host-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(8, 5, 3, 0.9);
    border: 1px solid rgba(232,185,79,0.25);
    border-radius: 6px;
    color: #f5ece0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    min-width: 150px;
}
.dl-host-btn:hover {
    border-color: var(--gold);
    background: rgba(40, 20, 10, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px var(--gold-glow);
}
.dl-host-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.dl-monster-graphic {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 250px;
    max-width: 45%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(192,57,43,0.3));
    pointer-events: none;
    z-index: 1;
}

/* 2-Column Grid Layout */
.dl-two-col {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.dl-two-col > .dl-section-box {
    flex: 1;
    margin-bottom: 0;
}

/* Additional Program Downloads */
.dl-prog-card {
    background: rgba(6, 4, 2, 0.7);
    border: 1px solid rgba(232,185,79,0.15);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dl-prog-card:last-child { margin-bottom: 0; }
.dl-prog-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #d8c8b8;
}
.btn-dl-small {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(18, 10, 5, 0.9);
    border: 1px solid rgba(232,185,79,0.25);
    color: #b89c7d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 9px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-dl-small:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(40, 20, 10, 0.9);
}

/* System Requirements List */
.dl-req-list {
    list-style: none;
}
.dl-req-list li {
    font-size: 0.8rem;
    color: #9c8c7a;
    padding: 6px 0;
    display: flex;
    gap: 8px;
}
.dl-req-list li span.req-label {
    color: #d8c8b8;
    font-weight: 600;
    min-width: 70px;
}

/* Installation Steps */
.dl-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 15px;
}
.dl-step-card {
    background: rgba(6, 4, 2, 0.6);
    border: 1px solid rgba(232,185,79,0.15);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}
.dl-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(232,185,79,0.4);
    background: rgba(30,15,8,0.8);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.dl-step-text {
    font-size: 0.78rem;
    color: #9c8c7a;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .dl-two-col { flex-direction: column; }
    .dl-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .dl-monster-graphic { display: none; }
}

/* ══ Character Inventory Inspector Modal & Equipment Viewer ══ */
.inspect-btn {
    background: rgba(232, 185, 79, 0.12);
    border: 1px solid rgba(232, 185, 79, 0.35);
    color: #e8b94f;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.inspect-btn:hover {
    background: rgba(232, 185, 79, 0.3);
    border-color: #e8b94f;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(232, 185, 79, 0.5);
    transform: scale(1.08);
}

/* Modal Overlay */
.char-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 3, 2, 0.88);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.char-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Container Box */
.char-modal-box {
    background: linear-gradient(180deg, rgba(20, 14, 10, 0.98) 0%, rgba(10, 7, 5, 0.99) 100%);
    border: 1px solid rgba(232, 185, 79, 0.4);
    border-radius: 12px;
    width: 680px;
    max-width: 95vw;
    box-shadow: 0 0 40px rgba(0,0,0,0.95), 0 0 15px rgba(232,185,79,0.15);
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.char-modal-backdrop.active .char-modal-box {
    transform: scale(1);
}

/* Modal Header */
.char-modal-header {
    background: linear-gradient(90deg, rgba(122,29,23,0.6) 0%, rgba(20,14,10,0.8) 100%);
    border-bottom: 1px solid rgba(232, 185, 79, 0.3);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.char-modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: #f5ece0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.char-modal-close {
    background: transparent;
    border: none;
    color: #8c7d6c;
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}
.char-modal-close:hover {
    color: #ff5555;
    transform: scale(1.15);
}

/* Player Meta Subheader */
.char-meta-bar {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-bottom: 1px solid rgba(232, 185, 79, 0.1);
    display: flex;
    justify-content: space-around;
    font-size: 0.82rem;
    color: #b89c7d;
}
.char-meta-item strong {
    color: #ffffff;
}

/* Equipment Grid Paperdoll */
.char-modal-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ══ KalOnline Authentic Inventory Paperdoll Frame ══ */
.kal-inventory-window {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.kal-paperdoll-frame {
    width: 249px;
    height: 256px;
    background: url('images/equippanel.png') no-repeat center center;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.95);
    border-radius: 4px;
    user-select: none;
}

.kal-slot {
    position: absolute;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
    transition: transform 0.15s, box-shadow 0.15s;
    background: transparent;
}

.kal-slot:hover {
    box-shadow: 0 0 10px rgba(232, 185, 79, 0.9), inset 0 0 6px rgba(232, 185, 79, 0.5);
    transform: scale(1.12);
    z-index: 10;
}

.kal-slot.equipped {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(232, 185, 79, 0.6);
    box-sizing: border-box;
}

.kal-slot img.item-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    image-rendering: pixelated;
}

.kal-slot .upgr-tag {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.62rem;
    font-weight: 800;
    color: #00ff87;
    text-shadow: 0 0 3px #000, 0 0 5px rgba(0,255,135,0.9);
}

/* Positions aligned with images/equippanel.png (249x256) */
/* Top Cross */
.slot-helmet  { top: 38px; left: 70px; }
.slot-gloves  { top: 76px; left: 28px; }
.slot-chest   { top: 76px; left: 70px; }
.slot-boots   { top: 76px; left: 112px; }
.slot-pants   { top: 114px; left: 70px; }

/* Right Section */
.slot-weapon  { top: 42px; left: 181px; }
.slot-shield  { top: 108px; left: 181px; }

/* Bottom Row 1 (Accessories) — 5 spots */
/* 1=Ring 2=Necklace 3=Trinket 4=ResistNecklace 5=EggAnimal(cocoon) */
.slot-ring     { top: 166px; left: 24px; }
.slot-necklace { top: 166px; left: 66px; }
.slot-trinket  { top: 166px; left: 108px; }
.slot-resist   { top: 166px; left: 150px; }
.slot-bag      { top: 166px; left: 192px; }

/* Bottom Row 2 (Pets) — 5 spots */
/* 1=NormalPet 2=MonsterPet 3=PremiumPet 4=Flag/Wing 5=Decoration */
.slot-pet      { top: 208px; left: 24px; }
.slot-pet2     { top: 208px; left: 66px; }
.slot-mount    { top: 208px; left: 108px; }
.slot-extra1   { top: 208px; left: 150px; }
.slot-extra2   { top: 208px; left: 192px; }
/* ?? Authentic KalOnline Item Tooltip ?? */
#char-item-tooltip {
    position: fixed;
    z-index: 100000;
    pointer-events: none;
    display: none;
    width: 280px;
    background: rgba(2, 6, 12, 0.92);
    border: 1px solid #183e6b;
    border-radius: 4px;
    padding: 12px 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    font-family: 'Tahoma', 'Arial', sans-serif;
    font-size: 11px;
    line-height: 1.5;
    color: #ffffff;
    text-align: center;
}

#char-item-tooltip .tt-title {
    font-size: 12px;
    font-weight: bold;
    color: #00ffcc;
    margin-bottom: 4px;
}
#char-item-tooltip .tt-title .tt-pimp {
    color: #ffffff;
}
#char-item-tooltip .tt-title .tt-talisman {
    color: #4488ff;
}

#char-item-tooltip .tt-grade {
    color: #88ccff;
    font-weight: bold;
    margin-bottom: 6px;
}

#char-item-tooltip .tt-class {
    color: #dcb360;
    text-transform: uppercase;
    margin-bottom: 6px;
}

#char-item-tooltip .tt-line {
    margin: 2px 0;
}

#char-item-tooltip .tt-blue-value {
    color: #4488ff;
}

#char-item-tooltip .tt-separator {
    border-bottom: 1px dashed #1a3d6e;
    margin: 8px 10px;
}

#char-item-tooltip .tt-separator-red {
    border-bottom: 1px dashed #881111;
    margin: 8px 10px;
}

#char-item-tooltip .tt-stat-blue {
    color: #00aaff;
}

#char-item-tooltip .tt-stat-red {
    color: #ff4444;
}
