/* =============================================================================
   Battle Extreme - Main Stylesheet
   Dark retro-themed UI for the game client
   ============================================================================= */

/* --- CSS Variables (Design Tokens) --- */
:root {
    --bg-darkest: #08081a;
    --bg-darker: #0a0a1e;
    --bg-dark: #0e0e24;
    --bg-panel: #141432;
    --bg-input: #1a1a3e;
    --bg-hover: #1e1e48;
    --bg-active: #252560;

    --text-primary: #d8d8e8;
    --text-secondary: #8888aa;
    --text-muted: #555566;

    --accent-red: #ff4466;
    --accent-blue: #44aaff;
    --accent-cyan: #44ddff;
    --accent-green: #44dd88;
    --accent-yellow: #ffcc44;
    --accent-orange: #ff8844;

    --hp-bar: #cc3344;
    --mp-bar: #3366cc;
    --xp-bar: #44aa44;

    --border-color: #2a2a4a;
    --border-light: #3a3a5a;

    --radius: 6px;
    --radius-sm: 4px;

    --font-main: 'Segoe UI', -apple-system, sans-serif;
    --font-mono: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background: var(--bg-darkest);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { color: var(--accent-cyan); text-decoration: underline; }

/* --- Screens --- */
.screen { display: none; height: 100vh; }
.screen.active { display: flex; }

/* --- LOGIN SCREEN --- */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.game-title {
    font-size: 3em;
    color: var(--accent-red);
    text-shadow: 0 0 30px rgba(255, 68, 102, 0.3), 0 0 60px rgba(255, 68, 102, 0.1);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.tagline {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.05em;
}

.login-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 35px;
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 1.3em;
}

/* --- FORMS --- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1em;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--accent-blue);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-link {
    text-align: center;
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.error-msg {
    color: var(--accent-red);
    font-size: 0.9em;
    margin-top: 12px;
    min-height: 1.2em;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1em;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.15s;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: var(--accent-red);
    color: #fff;
}
.btn-primary:hover { background: #e63355; }
.btn-primary:disabled { background: #553344; color: #888; cursor: not-allowed; }

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--accent-blue); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-secondary); }

/* --- CHARACTER SELECT --- */
.char-select-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 20px;
}

.char-select-container h1 {
    color: var(--accent-red);
    margin-bottom: 5px;
}

.char-select-container .subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 25px;
}

.char-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px;
    cursor: pointer;
    transition: all 0.15s;
}

.char-card:hover {
    border-color: var(--accent-blue);
    background: var(--bg-hover);
}

.char-card .char-name { font-size: 1.1em; font-weight: 600; margin-bottom: 4px; }
.char-card .char-archetype { color: var(--accent-cyan); font-size: 0.9em; text-transform: capitalize; }
.char-card .char-level { color: var(--text-secondary); font-size: 0.85em; margin-top: 6px; }

/* --- MODAL --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content h2 { color: var(--accent-red); margin-bottom: 20px; }

.archetype-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.archetype-btn {
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85em;
    text-transform: capitalize;
    transition: all 0.15s;
    font-family: var(--font-main);
}

.archetype-btn:hover { border-color: var(--accent-blue); background: var(--bg-hover); }
.archetype-btn.selected { border-color: var(--accent-red); background: var(--bg-active); color: var(--accent-red); }

.archetype-info {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.9em;
    min-height: 60px;
}

/* --- GAME LAYOUT --- */
.game-layout {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    width: 100vw;
    height: 100vh;
    gap: 0;
    background: var(--bg-darkest);
}

.panel {
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    background: var(--bg-panel);
    padding: 0 15px;
    height: 40px;
    font-weight: 600;
    font-size: 0.95em;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

/* --- LEFT PANEL (Character Status) --- */
.panel-left { border-right: 1px solid var(--border-color); }

.btn-switch-char {
    font-size: 0.75em;
    padding: 4px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}
.btn-switch-char:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.char-switcher-dropdown {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    max-height: 220px;
    overflow-y: auto;
    flex-shrink: 0;
}
.char-switcher-dropdown .char-switcher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9em;
}
.char-switcher-dropdown .char-switcher-item:last-child { border-bottom: none; }
.char-switcher-dropdown .char-switcher-item:hover {
    background: var(--bg-hover);
}
.char-switcher-dropdown .char-switcher-item.active {
    background: rgba(68, 221, 136, 0.12);
    color: var(--accent-green);
    cursor: default;
}
.char-switcher-dropdown .char-switcher-item.active:hover {
    background: rgba(68, 221, 136, 0.12);
}
.char-switcher-dropdown .char-switcher-item .char-switcher-name { font-weight: 600; }
.char-switcher-dropdown .char-switcher-item .char-switcher-left { display: flex; align-items: center; gap: 6px; }
.char-switcher-dropdown .char-switcher-item .char-switcher-meta { font-size: 0.85em; color: var(--text-secondary); }
.char-switcher-dropdown .char-switcher-item .char-switcher-badge { font-size: 0.75em; color: var(--accent-green); }

#char-status {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

#char-status .char-name { font-size: 1.15em; font-weight: 600; }
#char-status .char-archetype { color: var(--accent-cyan); font-size: 0.9em; text-transform: capitalize; margin-bottom: 3px; }
#char-status .char-level { color: var(--text-secondary); font-size: 0.85em; margin-bottom: 15px; }

.bar-group { margin-bottom: 15px; }

.bar {
    height: 22px;
    background: var(--bg-input);
    border-radius: 3px;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.hp-bar .bar-fill { background: var(--hp-bar); }
.mp-bar .bar-fill { background: var(--mp-bar); }
.xp-bar .bar-fill { background: var(--xp-bar); }

.bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
}

.stat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    font-size: 0.85em;
}

.stat-item { display: flex; justify-content: space-between; }
.stat-item .stat-label { color: var(--text-secondary); }
.stat-item .stat-value { color: var(--text-primary); font-weight: 600; }
.stat-item .stat-bonus { color: var(--accent-green); font-weight: 400; font-size: 0.85em; }

.gp-display {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    color: var(--accent-yellow);
    font-weight: 600;
}

/* --- FOUNTAIN HEAL --- */
.fountain-section {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.btn-fountain {
    width: 100%;
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius-sm);
    color: var(--accent-green);
    font-size: 0.82em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-fountain:hover { background: rgba(68, 221, 136, 0.12); }

.fountain-msg {
    font-size: 0.75em;
    color: var(--text-muted);
    margin-top: 4px;
    min-height: 1em;
}

/* --- LEFT PANEL EQUIPMENT & CONSUMABLES --- */
.left-section-title {
    font-size: 0.78em;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 4px;
}

.left-equip-slot {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
    font-size: 0.75em;
    position: relative;
}

.left-equip-label {
    width: 48px;
    color: var(--text-muted);
    flex-shrink: 0;
    font-size: 0.9em;
}

.left-equip-item {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.left-equip-empty {
    flex: 1;
    color: var(--text-muted);
    font-style: italic;
}

.left-equip-x {
    padding: 1px 4px;
    background: none;
    border: 1px solid var(--accent-red);
    border-radius: 2px;
    color: var(--accent-red);
    cursor: pointer;
    font-size: 0.8em;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s;
}
.left-equip-x:hover { opacity: 1; }

.left-consumable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px;
    font-size: 0.75em;
    border-bottom: 1px solid var(--border-color);
}
.left-consumable:last-child { border-bottom: none; }

.left-consumable-name {
    color: var(--accent-green);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.left-consumable-actions {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.left-consumable-btn {
    padding: 1px 6px;
    font-size: 0.85em;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    cursor: pointer;
    background: transparent;
    transition: background 0.15s;
}
.left-consumable-btn.use {
    color: var(--accent-green);
    border-color: var(--accent-green);
}
.left-consumable-btn.use:hover {
    background: rgba(34, 197, 94, 0.15);
}
.left-consumable-btn.drop {
    color: var(--text-muted);
}
.left-consumable-btn.drop:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

/* --- CENTER PANEL --- */
.panel-center {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.split-header {
    background: var(--bg-panel);
    padding: 0 15px;
    height: 40px;
    font-weight: 600;
    font-size: 0.85em;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.panel-center > .split-header {
    color: var(--text-primary);
    font-size: 0.95em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header-inline {
    background: none;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
    font-family: inherit;
    margin-right: 4px;
}
.btn-header-inline:hover { opacity: 1; }

.btn-logout-inline {
    background: none;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
    font-family: inherit;
}
.btn-logout-inline:hover { opacity: 1; }

/* --- COMBAT ARENA (FF6 side-view) --- */
.combat-arena {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    min-height: 200px;
    max-height: 420px;
    background:
        linear-gradient(180deg, #0a0a20 0%, #14143a 60%, #1a1a4a 100%);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.combat-arena::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(0deg, rgba(30,30,60,0.8), transparent);
}

.arena-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
}

.arena-left { align-items: flex-start; }
.arena-right { align-items: flex-end; }

.arena-vs {
    color: var(--accent-red);
    font-size: 1.4em;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(255, 68, 102, 0.5);
    letter-spacing: 4px;
    z-index: 1;
}

.arena-entity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(20, 20, 50, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    min-width: 180px;
    cursor: default;
    transition: all 0.2s;
}

.arena-entity.enemy { flex-direction: row; }
.arena-entity.player { flex-direction: row-reverse; }

.arena-entity.enemy {
    cursor: pointer;
}
.arena-entity.enemy:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(255, 68, 102, 0.3);
}

.arena-entity.targeted {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 14px rgba(255, 204, 68, 0.4), inset 0 0 6px rgba(255, 204, 68, 0.1);
}

.arena-entity.defeated {
    opacity: 0.35;
    filter: grayscale(80%);
    pointer-events: none;
}

.arena-entity-img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.arena-entity-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.arena-entity-name {
    font-size: 0.82em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arena-entity.enemy .arena-entity-name { color: var(--accent-red); }
.arena-entity.player .arena-entity-name { color: var(--accent-cyan); }

.arena-hp-bar, .arena-mp-bar {
    height: 10px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.arena-hp-bar .arena-bar-fill {
    height: 100%;
    background: var(--hp-bar);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.arena-mp-bar .arena-bar-fill {
    height: 100%;
    background: var(--mp-bar);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.arena-hp-text {
    font-size: 0.65em;
    color: var(--text-secondary);
    text-align: right;
}

/* --- ZONE IDLE VIEW --- */
.zone-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 100px;
    background: linear-gradient(180deg, #0a0a20, #12122e);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.zone-idle-name {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.zone-idle-actions {
    display: flex;
    gap: 10px;
}

.zone-idle-btn {
    padding: 10px 28px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-panel);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.zone-idle-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: var(--bg-hover);
}

.zone-idle-btn.fight-btn { border-color: var(--accent-green); color: var(--accent-green); }
.zone-idle-btn.fight-btn:hover { background: rgba(68, 221, 136, 0.12); }
.zone-idle-btn.boss-btn { border-color: #f97316; color: #f97316; }
.zone-idle-btn.boss-btn:hover { background: rgba(249, 115, 22, 0.12); }

/* --- COMBAT LOG --- */
.combat-log {
    flex: 1;
    overflow-y: auto;
    padding: 8px 15px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    line-height: 1.5;
    min-height: 0;
}

/* --- ACTION MENU (during combat) --- */
.action-menu {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.action-menu-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.action-menu-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: var(--bg-hover);
}

.action-menu-btn.active {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: var(--bg-active);
}

.action-menu-btn.btn-attack { border-color: var(--accent-red); color: var(--accent-red); }
.action-menu-btn.btn-attack:hover, .action-menu-btn.btn-attack.active { background: rgba(255,68,102,0.15); }
.action-menu-btn.btn-magic { border-color: var(--accent-blue); color: var(--accent-blue); }
.action-menu-btn.btn-magic:hover, .action-menu-btn.btn-magic.active { background: rgba(68,170,255,0.15); }
.action-menu-btn.btn-items { border-color: var(--accent-green); color: var(--accent-green); }
.action-menu-btn.btn-items:hover, .action-menu-btn.btn-items.active { background: rgba(68,221,136,0.15); }
.action-menu-btn.btn-special { border-color: var(--accent-yellow); color: var(--accent-yellow); }
.action-menu-btn.btn-special:hover, .action-menu-btn.btn-special.active { background: rgba(255,204,68,0.15); }
.action-menu-btn.btn-flee { border-color: var(--text-muted); color: var(--text-muted); }
.action-menu-btn.btn-flee:hover { background: rgba(128,128,128,0.15); color: var(--text-secondary); }

/* --- ACTION SUBMENU (spell / item list) --- */
.action-submenu {
    display: flex;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(20, 20, 50, 0.9);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    flex-wrap: wrap;
    max-height: 80px;
    overflow-y: auto;
}

.submenu-btn {
    padding: 5px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.15s;
}

.submenu-btn:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-hover);
}

.submenu-btn.submenu-target-prompt {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    font-style: italic;
    cursor: default;
}

.submenu-btn.submenu-target-locked {
    border-color: var(--accent-red);
    color: var(--accent-red);
    font-weight: 600;
    cursor: default;
}

/* --- CHAT SECTION --- */
.chat-section {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    max-height: 300px;
    min-height: 220px;
    border-top: 1px solid var(--border-color);
}

.chat-log-panel {
    flex: 1;
    min-height: 0;
}

.chat-input-bar {
    display: flex;
    padding: 6px 8px;
    gap: 6px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-input-bar input {
    flex: 1;
    padding: 7px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85em;
    outline: none;
}

.chat-input-bar input:focus { border-color: var(--accent-blue); }
.chat-input-bar .btn { width: auto; padding: 7px 16px; font-size: 0.85em; }

.log-entry {
    padding: 2px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.log-entry.system { color: var(--accent-cyan); }
.log-entry.damage { color: var(--accent-red); }
.log-entry.heal { color: var(--accent-green); }
.log-entry.info { color: var(--text-secondary); }
.log-entry.loot { color: var(--accent-yellow); }
.log-entry.loot-legendary { color: #f97316; font-weight: 700; text-shadow: 0 0 6px rgba(249, 115, 22, 0.5); }
.log-entry.error { color: var(--accent-orange); }
.log-entry.chat { color: #e0e0ff; }
.log-entry.chat-self { color: #b0b0d0; }
.log-entry.chat-admin { color: #ffd700; font-weight: 700; text-shadow: 0 0 6px rgba(255,215,0,0.4); }
.log-entry.chat::before { content: ''; }
.log-entry.dm-incoming { color: #ce93d8; font-style: italic; }
.log-entry.dm-outgoing { color: #b39ddb; font-style: italic; }
.log-entry.dm-admin { color: #9e9e9e; font-style: italic; font-size: 0.85em; }
.log-entry.pvp { color: #ff66aa; font-weight: 600; }

/* Combat log context variants — damage/heal to self, ally, or enemy */
.log-entry.damage-to-self {
    color: #ff6b6b;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
}
.log-entry.damage-to-ally {
    color: #ffab40;
    text-shadow: 0 0 6px rgba(255, 171, 64, 0.25);
}
.log-entry.damage-to-enemy {
    color: #69f0ae;
    text-shadow: 0 0 6px rgba(105, 240, 174, 0.3);
}
.log-entry.heal-to-self {
    color: #76ff03;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(118, 255, 3, 0.4);
}
.log-entry.heal-to-ally {
    color: #18ffff;
    text-shadow: 0 0 6px rgba(24, 255, 255, 0.25);
}
.log-entry.heal-to-enemy {
    color: #b388ff;
}
.log-entry.death {
    color: #ff5252;
    font-weight: 600;
}
.log-entry.death-self {
    color: #ff1744;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
}
.log-entry.miss { color: #b0bec5; font-style: italic; }
.log-entry.ability { color: #84ffff; }
.log-entry.status { color: #b3e5fc; }
.log-entry.channel { color: #d1c4e9; }
.log-entry.affliction { color: #ffab91; }

/* Name emphasis in combat log */
.log-entry .log-name {
    font-weight: 700;
    padding: 0 1px;
    border-radius: 2px;
}
.log-entry .log-name-source {
    color: #ffd54f;
    text-shadow: 0 0 6px rgba(255, 213, 79, 0.4);
}
.log-entry .log-name-target {
    color: #ff8a80;
    text-shadow: 0 0 6px rgba(255, 138, 128, 0.35);
}
/* Invert name colors for heal lines so source/target still pop */
.log-entry.heal-to-self .log-name-source,
.log-entry.heal-to-ally .log-name-source,
.log-entry.heal-to-enemy .log-name-source {
    color: #69f0ae;
    text-shadow: 0 0 6px rgba(105, 240, 174, 0.4);
}
.log-entry.heal-to-self .log-name-target,
.log-entry.heal-to-ally .log-name-target,
.log-entry.heal-to-enemy .log-name-target {
    color: #18ffff;
    text-shadow: 0 0 6px rgba(24, 255, 255, 0.35);
}


.cooldown-bar {
    height: 18px;
    background: var(--bg-panel);
    position: relative;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    overflow: hidden;
}

.cooldown-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), #ff8844);
    opacity: 0.6;
    width: 100%;
}

.cooldown-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7em;
    line-height: 18px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    pointer-events: none;
}

.action-btn {
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.8em;
    font-family: var(--font-main);
    transition: all 0.15s;
}

.action-btn:hover { border-color: var(--accent-blue); background: var(--bg-hover); }

/* --- RIGHT PANEL --- */
.panel-right { border-left: 1px solid var(--border-color); }

.panel-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.tab-btn {
    padding: 0 2px;
    height: 32px;
    line-height: 30px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.78em;
    font-family: var(--font-main);
    transition: all 0.15s;
    white-space: nowrap;
    text-align: center;
}

.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent-red); border-bottom-color: var(--accent-red); }
.tab-btn.tab-disabled { opacity: 0.4; cursor: not-allowed; }

.btn-fountain:disabled,
.left-equip-x:disabled,
.left-consumable-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.coming-soon {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 30px 15px;
}

/* --- WebSocket Status --- */
.ws-indicator {
    font-size: 0.75em;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.ws-indicator.connected { background: rgba(68, 221, 136, 0.2); color: var(--accent-green); }
.ws-indicator.disconnected { background: rgba(255, 68, 102, 0.2); color: var(--accent-red); }
.ws-indicator.connecting { background: rgba(255, 204, 68, 0.2); color: var(--accent-yellow); }

/* --- Scrollbar Styling --- */
/* --- Inventory Items --- */
.inv-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 6px;
}

.inv-item:hover { border-color: var(--accent-blue); }
.inv-item-legendary {
    border-color: #f97316;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.4), inset 0 0 4px rgba(249, 115, 22, 0.1);
    animation: legendary-glow 2s ease-in-out infinite alternate;
}
.inv-item-legendary:hover { border-color: #fb923c; }
@keyframes legendary-glow {
    from { box-shadow: 0 0 6px rgba(249, 115, 22, 0.3); }
    to   { box-shadow: 0 0 14px rgba(249, 115, 22, 0.6), inset 0 0 6px rgba(249, 115, 22, 0.15); }
}
.inv-item-name { font-weight: 600; font-size: 0.9em; }
.inv-item-info { color: var(--text-muted); font-size: 0.78em; margin: 2px 0; }
.inv-item-stats { color: var(--accent-cyan); font-size: 0.78em; margin: 1px 0; }
.inv-item-actions { display: flex; gap: 4px; margin-top: 4px; }
.inv-item-actions .action-btn { padding: 3px 10px; font-size: 0.75em; }

/* --- Equipment Slots --- */
.equip-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85em;
}

.equip-label {
    width: 60px;
    color: var(--text-secondary);
    font-size: 0.8em;
    flex-shrink: 0;
}

.equip-item { color: var(--accent-cyan); flex: 1; }
.equip-empty { color: var(--text-muted); font-style: italic; flex: 1; }
.equip-slot .action-btn { padding: 2px 8px; font-size: 0.7em; }

/* --- Zone Cards --- */
.zone-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 10px;
}

.zone-card:hover { border-color: var(--accent-blue); }
.zone-card.locked { opacity: 0.5; }
.zone-name { font-weight: 600; color: var(--accent-red); margin-bottom: 2px; }
.zone-info { color: var(--text-secondary); font-size: 0.8em; margin-bottom: 6px; }
.zone-desc { color: var(--text-muted); font-size: 0.82em; margin-bottom: 8px; }
.zone-locked { color: var(--text-muted); font-size: 0.8em; font-style: italic; }
.zone-card .action-btn { width: 100%; }

/* --- Shop Items --- */
.shop-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 5px;
}

.shop-item-name { font-weight: 600; font-size: 0.9em; }
.shop-item-stats { color: var(--accent-cyan); font-size: 0.78em; margin: 1px 0; }
.shop-item-info { color: var(--text-muted); font-size: 0.78em; margin: 2px 0; }
.shop-item-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--accent-yellow);
    font-size: 0.85em;
    margin-top: 4px;
}

.shop-item-price .action-btn { padding: 3px 12px; font-size: 0.75em; }


/* --- World Boss Announcements --- */
.log-entry.boss-spawn {
    color: #f97316;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(249, 115, 22, 0.4);
    padding: 6px 0;
}
.log-entry.boss-victory {
    color: var(--accent-green);
    font-weight: 600;
}
.log-entry.boss-defeat {
    color: var(--accent-red);
    font-weight: 600;
}

/* --- Item Affix Display (Stash) --- */
.inv-item-affix {
    font-size: 0.75em;
    padding-left: 8px;
    margin: 1px 0;
}
.inv-item-affix.prefix { color: var(--accent-cyan); }
.inv-item-affix.suffix { color: var(--accent-green); }
.inv-item-affix.implicit { color: var(--accent-yellow); }

/* --- Equipment Tooltip --- */
.equip-slot { position: relative; }

.item-tooltip {
    position: fixed;
    left: auto;
    top: auto;
    width: 240px;
    background: var(--bg-darker);
    border-radius: 4px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.item-tooltip-header {
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 4px;
}
.item-tooltip-meta {
    color: var(--text-muted);
    font-size: 0.75em;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}
.item-tooltip-affix {
    font-size: 0.78em;
    padding: 1px 0;
}
.item-tooltip-affix.prefix { color: var(--accent-cyan); }
.item-tooltip-affix.suffix { color: var(--accent-green); }
.item-tooltip-affix.implicit { color: var(--accent-yellow); }
.item-tooltip-none {
    color: var(--text-muted);
    font-size: 0.75em;
    font-style: italic;
}

.item-tooltip-stats {
    color: var(--accent-cyan);
    font-size: 0.78em;
    padding: 2px 0 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
}

.left-equip-info {
    padding: 1px 4px;
    background: none;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 0.65em;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s;
}
.left-equip-info:hover { opacity: 1; }

/* --- Scrollbar Styling --- */
/* --- Quests Tab --- */
.quest-tab-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}
.quest-toggle-btn {
    flex: 1;
    font-size: 0.8em;
    padding: 4px 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}
.quest-toggle-active {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
    font-weight: 700;
}
.quest-card {
    background: var(--bg-darkest);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 8px;
}
.quest-card-complete {
    border-color: var(--accent-green);
    box-shadow: 0 0 6px rgba(46,204,113,0.15);
}
.quest-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.quest-card-name {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.quest-card-desc {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.quest-level-range {
    font-size: 0.7em;
    color: var(--text-muted);
}
.quest-objective {
    font-size: 0.8em;
    color: var(--accent-cyan);
    margin-bottom: 4px;
    font-style: italic;
}
.quest-progress-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.quest-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
}
.quest-progress-fill {
    height: 100%;
    background: var(--accent-cyan);
    border-radius: 4px;
    transition: width 0.3s;
}
.quest-progress-text {
    font-size: 0.75em;
    color: var(--text-muted);
    min-width: 40px;
    text-align: right;
}
.quest-items-held {
    font-size: 0.75em;
    color: var(--accent-yellow);
    margin-bottom: 4px;
}
.quest-rewards {
    display: flex;
    gap: 8px;
    font-size: 0.75em;
    margin-bottom: 6px;
}
.quest-reward-xp { color: var(--accent-cyan); font-weight: 600; }
.quest-reward-gp { color: var(--accent-yellow); font-weight: 600; }
.quest-repeatable {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.9em;
}
.quest-actions {
    display: flex;
    gap: 4px;
}
.quest-btn {
    font-size: 0.75em;
    padding: 3px 10px;
}
.quest-btn-abandon {
    background: none;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    opacity: 0.7;
}
.quest-btn-abandon:hover { opacity: 1; }

/* --- Events Tab --- */
.evt-card {
    background: var(--bg-darkest);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 8px;
}
.evt-card-active {
    border-color: var(--accent-green);
    box-shadow: 0 0 6px rgba(46,204,113,0.15);
}
.evt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.evt-type-tag {
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    color: #000;
    letter-spacing: 0.5px;
}
.evt-badge {
    font-size: 0.6em;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}
.evt-active { background: var(--accent-green); color: #000; }
.evt-upcoming { background: var(--border-light); color: var(--text-primary); }
.evt-card-name {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.evt-card-desc {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.evt-card-time {
    font-size: 0.75em;
    color: var(--text-muted);
}

/* --- Channeling Indicator --- */
.channeling-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 8px;
}
.channeling-label {
    font-size: 0.85em;
    color: var(--accent-cyan);
    font-weight: 600;
}
.channeling-progress {
    width: 100%;
    height: 6px;
    background: var(--bg-darkest);
    border-radius: 3px;
    overflow: hidden;
}
.channeling-progress-indeterminate .channeling-fill {
    width: 30%;
    animation: channeling-indeterminate 1.2s ease-in-out infinite;
}
@keyframes channeling-indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}
.channeling-fill {
    height: 100%;
    background: var(--accent-cyan);
    transition: width 0.3s;
}
.channeling-count {
    font-size: 0.75em;
    color: var(--text-muted);
}

/* --- Affliction Badges --- */
.arena-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.7em;
    color: var(--text-muted);
}
.arena-status-label {
    flex-shrink: 0;
}
.affliction-badges {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}
.affliction-badge {
    font-size: 0.7em;
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid;
    line-height: 1.2;
    cursor: default;
}
.affliction-none {
    color: var(--text-muted);
    font-size: 0.9em;
}

/* --- Crafting Modal --- */
.crafting-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.crafting-modal {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.crafting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(168, 85, 247, 0.08);
}
.crafting-title {
    font-weight: 700;
    font-size: 1.1em;
    color: #a855f7;
}
.crafting-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4em;
    cursor: pointer;
    padding: 0 4px;
}
.crafting-close:hover { color: var(--accent-red); }
.crafting-item-preview {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0,0,0,0.15);
}
.crafting-item-name { font-weight: 700; font-size: 1em; margin-bottom: 2px; }
.crafting-item-meta { font-size: 0.8em; color: var(--text-secondary); margin-bottom: 4px; }
.crafting-item-stats { font-size: 0.85em; margin-bottom: 4px; }
.crafting-affix {
    font-size: 0.8em;
    padding: 1px 0;
}
.crafting-affix.prefix { color: #60a5fa; }
.crafting-affix.suffix { color: #34d399; }
.crafting-affix.implicit { color: #a78bfa; }
.crafting-result { padding: 0 16px; }
.craft-result-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 0.85em;
    color: #22c55e;
}
.craft-result-failure {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 0.85em;
    color: #ef4444;
}
.crafting-options {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.craft-option-card {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 10px 12px;
}
.craft-option-title {
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 2px;
}
.craft-option-desc {
    font-size: 0.78em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.craft-option-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.85em;
}
.craft-option-cost {
    color: var(--accent-gold);
    font-weight: 600;
}
.craft-option-chance {
    font-weight: 600;
}
.craft-btn {
    width: 100%;
    padding: 6px;
    font-size: 0.85em;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* --- PVP Tab --- */
.pvp-section-title {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border-color);
}
.pvp-challenge-banner {
    background: linear-gradient(135deg, rgba(231,76,60,0.15), rgba(192,57,43,0.08));
    border: 1px solid rgba(231,76,60,0.5);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
    text-align: center;
}
.pvp-challenge-text {
    display: block;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 8px;
    font-size: 0.9em;
}
.pvp-challenge-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.btn-accept-duel {
    background: var(--accent-green);
    color: #000;
    border: none;
    padding: 6px 18px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85em;
}
.btn-accept-duel:hover { filter: brightness(1.15); }
.btn-decline-duel {
    background: var(--bg-darkest);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 18px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85em;
}
.btn-decline-duel:hover { background: var(--bg-dark); color: var(--text-primary); }
.pvp-waiting-banner {
    background: var(--bg-darkest);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 0.85em;
    color: var(--text-secondary);
    font-style: italic;
}
.pvp-stats-loading {
    color: var(--text-muted);
    font-size: 0.82em;
    padding: 4px 0;
}
.pvp-stats-empty {
    color: var(--text-muted);
    font-size: 0.82em;
    padding: 4px 0;
}
.pvp-stats-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}
.pvp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    background: var(--bg-darkest);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
}
.pvp-stat-value {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-primary);
}
.pvp-stat-value.pvp-wins { color: var(--accent-green); }
.pvp-stat-value.pvp-losses { color: #e74c3c; }
.pvp-stat-label {
    font-size: 0.7em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}
.pvp-online-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pvp-online-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-darkest);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 10px;
}
.pvp-online-name {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-primary);
}
.pvp-char-name {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.9em;
}
.pvp-in-combat {
    font-size: 0.72em;
    background: rgba(231,76,60,0.2);
    color: #e74c3c;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: 600;
}
.pvp-btn-challenge {
    background: var(--accent-gold);
    color: #000;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.78em;
    cursor: pointer;
}
.pvp-btn-challenge:hover { filter: brightness(1.1); }
.pvp-btn-challenge.pvp-btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: none;
}
