/* ============================================================
   Souls of Elysium - Modern Theme (Launcher Style)
   ============================================================ */

:root {
    /* Launcher-style palette: neutral dark grays with subtle warmth */
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.09);
    --bg-card-solid: #1e1e1e;
    --bg-input: rgba(0, 0, 0, 0.35);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #e5e5e5;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --accent: #c8c8c8;
    --accent-hover: #ffffff;
    --accent-gold: #d4a843;
    --accent-green: #4caf50;
    --accent-red: #e74c3c;
    --accent-blue: #5865F2;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cinzel', serif;

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 20px;
    --radius-circle: 50%;

    --sidebar-width: 250px;
    --navbar-height: 54px;

    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.07);
}

/* Square corners mode */
body.corners-square {
    --radius-xs: 0;
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-pill: 0;
    --radius-circle: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary) url('../../images/background.png') no-repeat center top fixed;
    background-size: cover;
    color: var(--text-primary);
    height: 100vh;
    line-height: 1.5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: var(--navbar-height);
    box-sizing: border-box;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--text-primary);
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar-inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-logo .logo-icon-img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-circle);
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.nav-logo .logo-icon-img:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-social-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all .2s;
    white-space: nowrap;
}

.nav-social-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, .06);
}

.nav-social-link i {
    font-size: 13px;
}

.nav-online {
    color: var(--accent-green);
}

.nav-online:hover {
    color: var(--accent-green);
    background: rgba(39, 174, 96, .1);
}

.pulse-green {
    color: var(--accent-green);
    font-size: 7px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.nav-server-select {
    margin-left: 4px;
}

.server-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.server-badge:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.server-badge .fa-chevron-down {
    font-size: 9px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.server-flag {
    width: 20px;
    height: 14px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    background: #333;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(10, 10, 20, .7);
    border: 1px solid rgba(244, 208, 63, .35);
    border-radius: var(--radius-sm);
    padding: 3px 4px;
    margin-right: 4px;
}
.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    border-radius: var(--radius-xs);
    text-decoration: none;
    opacity: .45;
    transition: all .2s ease;
}
.lang-flag:hover {
    opacity: .8;
}
.lang-flag.active {
    opacity: 1;
    background: rgba(244, 208, 63, .12);
}
.lang-flag img {
    display: block;
    border-radius: var(--radius-xs);
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.nav-login-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-input {
    padding: 7px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    font-family: var(--font-body);
    width: 140px;
    transition: all 0.2s;
    outline: none;
}

.nav-input:focus {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.nav-input::placeholder {
    color: var(--text-muted);
}

.btn {
    padding: 9px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.btn-sm {
    padding: 7px 16px;
}

.nav-link {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

/* ==================== MAIN LAYOUT ==================== */
.main-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 940px) var(--sidebar-width);
    justify-content: center;
    gap: 0;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== SIDEBAR OVERLAY ==================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--navbar-height);
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.sidebar-overlay.active {
    display: block;
}

/* ==================== SIDEBARS ==================== */
.sidebar {
    padding: 20px 14px 20px;
    border-right: none;
    background: transparent;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-xs);
}

.sidebar-right {
    border-right: none;
    border-left: none;
}

/* Logo */
.sidebar-logo {
    text-align: center;
    padding: 12px 10px 16px;
}

.sidebar-logo-img {
    width: 100%;
    max-width: 160px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 2px 0;
}

/* Download Button */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%), rgba(18, 18, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transition: left 0.6s;
}

.download-btn:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%), rgba(18, 18, 24, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn.active {
    color: #fff;
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(212, 168, 67, 0.2);
}

/* Wiki Button */
.wiki-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 9px 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%), rgba(18, 18, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 20px;
    margin-top: -12px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.wiki-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transition: left 0.6s;
}

.wiki-btn:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%), rgba(18, 18, 24, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.wiki-btn:hover::before {
    left: 100%;
}

.wiki-btn.active {
    color: #fff;
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(212, 168, 67, 0.2);
}

/* ==================== ACCORDION SIDEBAR (Left Menu) ==================== */
.sidebar-left .accordion-item {
    margin-bottom: 6px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    overflow: visible;
}

.sidebar-left .accordion-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    cursor: pointer;
    user-select: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Inner frame */
.sidebar-left .accordion-header::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    pointer-events: none;
    transition: border-color 0.3s;
}

/* Shimmer line on top */
.sidebar-left .accordion-header::after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
    transition: all 0.3s;
}

.sidebar-left .accordion-header:hover {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.04),
                0 2px 8px rgba(0, 0, 0, 0.5);
}

.sidebar-left .accordion-header:hover::before {
    border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-left .accordion-header:hover::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    left: 10px;
    right: 10px;
}

.sidebar-left .accordion-item.open .accordion-header {
    background: linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border-color: rgba(255, 255, 255, 0.2);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.sidebar-left .accordion-item.open .accordion-header::before {
    border-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: transparent;
}

.sidebar-left .accordion-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-left .accordion-header-left i {
    font-size: 15px;
    color: var(--text-secondary);
    width: 22px;
    text-align: center;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.sidebar-left .accordion-header h3 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: color 0.3s;
}

.sidebar-left .accordion-header:hover h3 {
    color: #fff;
}

.sidebar-left .accordion-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s;
    position: absolute;
    right: 14px;
}

.sidebar-left .accordion-header:hover .accordion-arrow {
    color: var(--text-primary);
}

.sidebar-left .accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

/* Left sidebar body - CLOSED */
.sidebar-left .accordion-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    border: none;
    background: transparent;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                padding 0.35s ease;
}

/* Left sidebar body - OPEN */
.sidebar-left .accordion-item.open .accordion-body {
    max-height: 500px;
    opacity: 1;
    padding: 6px 6px 6px;
    background: #1a1a1a;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

/* Sidebar Menu Items */
.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.sidebar-menu li a i {
    width: 16px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    transition: color 0.15s;
}

.sidebar-menu li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-left-color: rgba(255, 255, 255, 0.2);
}

.sidebar-menu li a:hover i {
    color: var(--text-secondary);
}

.sidebar-menu li a.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-left-color: var(--accent-gold);
    font-weight: 600;
}

.sidebar-menu li a.active i {
    color: var(--accent-gold);
}

.sidebar-menu li a.highlight {
    color: var(--accent-gold);
}

.sidebar-menu li a.highlight i {
    color: var(--accent-gold);
}

.sidebar-menu li a.highlight:hover {
    color: #e8bf5a;
    background: rgba(212, 168, 67, 0.08);
    border-left-color: var(--accent-gold);
}

.sidebar-menu li a.highlight:hover i {
    color: #e8bf5a;
}

.sidebar-menu li a.highlight.active {
    background: rgba(212, 168, 67, 0.1);
    border-left-color: var(--accent-gold);
    font-weight: 600;
}

/* ==================== ACCORDION (Right Sidebar / Generic) ==================== */
.sidebar-right .accordion-item {
    margin-bottom: 6px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    overflow: visible;
    transition: background 0.2s;
}

.sidebar-right .accordion-item:hover {
    /* handled by header */
}

.sidebar-right .accordion-item.open {
    background: transparent;
}

.sidebar-right .accordion-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    cursor: pointer;
    user-select: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Inner frame */
.sidebar-right .accordion-header::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    pointer-events: none;
    transition: border-color 0.3s;
}

/* Shimmer line on top */
.sidebar-right .accordion-header::after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
    transition: all 0.3s;
}

.sidebar-right .accordion-header:hover {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.04),
                0 2px 8px rgba(0, 0, 0, 0.5);
}

.sidebar-right .accordion-header:hover::before {
    border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-right .accordion-header:hover::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    left: 10px;
    right: 10px;
}

.sidebar-right .accordion-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-right .accordion-header-left i {
    font-size: 13px;
    color: var(--text-muted);
    width: 18px;
    text-align: center;
}

.sidebar-right .accordion-header h3 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: color 0.3s;
}

.sidebar-right .accordion-header:hover h3 {
    color: #fff;
}

.sidebar-right .accordion-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s;
    position: absolute;
    right: 14px;
}

.sidebar-right .accordion-header:hover .accordion-arrow {
    color: var(--text-primary);
}

.sidebar-right .accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.sidebar-right .accordion-item.open .accordion-header {
    background: linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border-color: rgba(255, 255, 255, 0.2);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.sidebar-right .accordion-item.open .accordion-header::before {
    border-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: transparent;
}

/* Right sidebar body - CLOSED */
.sidebar-right .accordion-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 8px;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                padding 0.35s ease;
}

/* Right sidebar body - OPEN */
.sidebar-right .accordion-item.open .accordion-body {
    max-height: 500px;
    opacity: 1;
    padding: 6px 6px 6px;
    background: #1a1a1a;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

/* Right sidebar sections (non-accordion) */
.sidebar-right .sidebar-section {
    margin-bottom: 8px;
    background: rgba(18, 18, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding-bottom: 4px;
    overflow: hidden;
}

.sidebar-right .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}

.sidebar-right .section-header i {
    font-size: 13px;
    width: 18px;
    text-align: center;
}

.sidebar-right .section-header h3 {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* ==================== CENTER CONTENT ==================== */
.content-center {
    padding: 20px 24px 20px;
    min-width: 0;
    width: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}
.content-body {
    padding: 18px 20px 20px;
    background: rgba(18, 18, 24, 0.9);
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: var(--radius-md);
}
.content-center.no-banner .content-body {
    border-radius: var(--radius-md);
}
.content-body::-webkit-scrollbar {
    width: 6px;
}
.content-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-xs);
}
.content-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

/* Top Bar */
.content-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tab-bar {
    display: flex;
    gap: 4px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab:hover {
    color: var(--text-secondary);
    background: var(--glass-bg);
}

.tab.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
}

.social-icons {
    display: flex;
    gap: 6px;
}

.social-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 13px;
    transition: all 0.2s;
}

.social-icon:hover {
    transform: translateY(-2px);
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.social-icon.discord:hover { background: rgba(88, 101, 242, 0.2); color: #7289da; border-color: rgba(88, 101, 242, 0.3); }
.social-icon.facebook:hover { background: rgba(24, 119, 242, 0.15); color: #4a90d9; border-color: rgba(24, 119, 242, 0.25); }
.social-icon.twitch:hover { background: rgba(145, 70, 255, 0.15); color: #b380ff; border-color: rgba(145, 70, 255, 0.25); }
.social-icon.youtube:hover { background: rgba(255, 0, 0, 0.12); color: #ff4444; border-color: rgba(255, 0, 0, 0.2); }

/* Announcement Banner */
.announcement-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.announcement-badge {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

.announcement-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.announcement-link:hover {
    color: var(--text-primary);
    gap: 10px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    aspect-ratio: 491 / 270;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    margin: 0 0 18px;
    flex-shrink: 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.4) 100%),
        radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,0.3) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* News Section */
.news-section {
    margin-bottom: 24px;
}

.section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.section-title-bar h2 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.section-title-bar h2 i {
    color: var(--text-muted);
    font-size: 13px;
}

/* News Article */
.news-article {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.news-article:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-date {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-separator {
    color: var(--text-muted);
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.news-author {
    font-size: 11px;
    color: var(--text-muted);
}

.news-body {
    padding: 14px 18px;
}

.news-body-content {
    padding: 10px 14px;
}

.news-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== RIGHT SIDEBAR WIDGETS ==================== */

/* Widget Content */
.widget-content {
    padding: 0 8px 4px;
}

/* Streamers */
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.empty-state i {
    font-size: 18px;
}

.streamer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.streamer-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.live-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-red);
    background: rgba(231, 76, 60, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
}

.live-badge i {
    font-size: 6px;
    animation: pulse 1.5s ease-in-out infinite;
}

.streamer-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.viewer-count {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.widget-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-link:hover {
    color: var(--text-secondary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

/* Casts */
.cast-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.cast-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.cast-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-circle);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cast-info {
    flex: 1;
    min-width: 0;
}

.cast-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-detail {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
}

.cast-viewers {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.viewer-dot {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-circle);
    background: var(--text-muted);
}

.viewer-dot.active {
    background: var(--accent-red);
    box-shadow: 0 0 6px rgba(231, 76, 60, 0.4);
}

.cast-total {
    text-align: center;
    padding: 6px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
}

/* Top Players */
.player-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.player-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.player-rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.player-rank.rank-1 { color: #d4a843; }
.player-rank.rank-2 { color: #888; }
.player-rank.rank-3 { color: #a0704a; }

.player-rank i {
    font-size: 13px;
}

.player-avatar {
    position: relative;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-circle);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
}

.online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 9px;
    height: 9px;
    border-radius: var(--radius-circle);
    background: var(--accent-green);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-name:hover {
    color: var(--text-primary);
}

.player-detail {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
}

.player-detail strong {
    color: var(--text-secondary);
}

/* Fixed Widget (always open, no toggle) */
.widget-fixed {
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    overflow: visible;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.widget-fixed::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.widget-fixed::after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.widget-fixed-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-fixed-header h3 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin: 0;
}

.widget-fixed-body {
    padding: 12px 14px;
}

/* New World Countdown Widget */
.widget-new-world {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.widget-new-world::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.widget-new-world::after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.nw-world-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.nw-date-info {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.nw-countdown {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nw-cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    min-width: 46px;
}

.nw-cd-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.nw-cd-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.nw-launched {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: #4caf50;
    font-size: 0.95rem;
    padding: 6px 0;
}

/* Web Shop Widget */
.widget-webshop {
    display: block;
    text-decoration: none;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.widget-webshop::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    pointer-events: none;
    transition: border-color 0.3s;
}

.widget-webshop::after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
    transition: all 0.3s;
}

.widget-webshop:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.04),
                0 2px 8px rgba(0, 0, 0, 0.5);
}

.widget-webshop:hover::before {
    border-color: rgba(255, 255, 255, 0.12);
}

.widget-webshop:hover::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    left: 10px;
    right: 10px;
}

.widget-webshop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 16px 14px;
    gap: 4px;
}

.widget-webshop-arrows {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.widget-webshop-icon {
    font-size: 28px;
    color: var(--text-secondary);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
    margin: 4px 0;
}

.widget-webshop-subtitle {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

.widget-webshop-title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

.widget-webshop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 20px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.widget-webshop:hover .widget-webshop-btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.widget-webshop:hover .widget-webshop-icon {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
}

/* ==================== EVENT CALENDAR ==================== */
.cal-day-cell {
    min-height: 90px;
    padding: 6px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    position: relative;
}

.cal-day-cell.has-events {
    cursor: pointer;
}

.cal-day-number {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.cal-event-item {
    font-size: 0.65rem;
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-tooltip {
    position: fixed;
    z-index: 9999;
    min-width: 200px;
    max-width: 280px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 12px 14px;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.cal-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cal-tooltip-event + .cal-tooltip-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.cal-tooltip-name {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.cal-tooltip-dates {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cal-tooltip-dates i {
    margin-right: 3px;
    opacity: 0.6;
}

.cal-tooltip-desc {
    font-size: 0.78rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin-top: 4px;
}

/* ==================== CHANGELOG ==================== */
.changelog-timeline {
    position: relative;
    padding: 20px 20px 20px 32px;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.changelog-entry {
    position: relative;
    margin-bottom: 24px;
    cursor: pointer;
}

.changelog-entry:last-child {
    margin-bottom: 0;
}

.changelog-marker {
    position: absolute;
    left: -18px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-circle);
    background: var(--text-muted);
    border: 2px solid var(--bg-primary);
    z-index: 1;
}

.changelog-latest .changelog-marker {
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

.changelog-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.changelog-latest .changelog-content {
    border-color: rgba(76, 175, 80, 0.2);
}

.changelog-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.25s;
}

.changelog-open .changelog-arrow {
    transform: rotate(180deg);
}

.changelog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.changelog-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.changelog-version {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-gold, #d4a843);
    background: rgba(212, 168, 67, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-md);
    letter-spacing: 0.5px;
}

.changelog-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-list li {
    position: relative;
    padding: 3px 0 3px 16px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.changelog-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1rem;
}

.changelog-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.cl-preview-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
}

.cl-h1 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 10px 0 6px;
}

.cl-h1:first-child {
    margin-top: 0;
}

.cl-h2 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 8px 0 4px;
}

.cl-h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 6px 0 4px;
}

.cl-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 2px 0;
}

/* Boosted Widget */
.boosted-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.boosted-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    text-align: center;
    min-width: 0;
    width: 100%;
}

.boosted-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.boosted-img {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.boosted-img img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

.boosted-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    max-width: 100%;
    line-height: 1.3;
}

/* World Changes */
.world-change-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}

.change-info {
    display: flex;
    flex-direction: column;
}

.change-type {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.change-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.boost-badge {
    padding: 3px 8px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-green);
}

/* ==================== FOOTER ==================== */
.footer {
    background: rgba(18, 18, 24, 0.95);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.footer-logo span {
    font-size: 9px;
    color: var(--text-muted);
    margin: 0 4px;
}

.footer-brand p {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 8px;
}

.footer-links a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 13px;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--text-secondary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* ==================== PAGE CARDS (Login, Register, Account) ==================== */
.page-card {
    background: rgba(18, 18, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.page-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-card-header i {
    font-size: 18px;
    color: var(--text-muted);
}

.page-card-header h2 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.page-card-body {
    padding: 28px;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 13px;
}

.alert p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.alert p:last-child {
    margin-bottom: 0;
}

.alert-error {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e57373;
}

.alert-success {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: #81c784;
}

/* Modern Forms */
.form-modern {
    max-width: 100%;
}

.form-section-title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-row + .form-row {
    margin-top: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-body);
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input.input-error,
.form-group select.input-error {
    border-color: rgba(231, 76, 60, 0.5);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.06);
}

/* Don't double-pad inputs inside icon wraps */
.input-icon-wrap input {
    padding-left: 40px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-group select option {
    background: #1a1a1a;
    color: var(--text-primary);
}

.form-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--text-secondary);
    cursor: pointer;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn-block {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 13px;
}

.form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

.form-footer a {
    color: var(--text-muted);
}

.form-footer a:hover {
    color: var(--text-primary);
}

/* Account Page */
.account-welcome {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.account-welcome strong {
    color: var(--text-primary);
}

/* Info Grid */
.account-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
}

.info-card:hover {
    border-color: var(--border-hover);
}

.info-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.info-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.info-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-value .text-muted {
    color: var(--text-muted);
    font-weight: 400;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(76, 175, 80, 0.12);
    color: #81c784;
}

.badge-danger {
    background: rgba(231, 76, 60, 0.12);
    color: #e57373;
}

.badge-warning {
    background: rgba(243, 156, 18, 0.12);
    color: #f39c12;
}

.status-premium {
    color: #81c784;
    font-weight: 600;
}

.status-free {
    color: #e57373;
    font-weight: 600;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.action-btn i {
    color: var(--text-muted);
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.action-btn-danger:hover {
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.25);
    color: #e57373;
}

.action-btn-danger:hover i {
    color: #e57373;
}

/* Characters Table */
.characters-table {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.char-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 0.7fr 1.3fr;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.char-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 0.7fr 1.3fr;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    transition: background 0.15s;
}

.char-table-row:last-child {
    border-bottom: none;
}

.char-table-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.char-name a {
    color: var(--text-primary);
    font-weight: 500;
}

.char-name a:hover {
    color: var(--accent-gold);
}

.char-level {
    font-weight: 600;
    color: var(--text-primary);
}

/* ==================== CHARACTER PROFILE ==================== */

/* Detail rows (label: value) */
.char-detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    transition: background 0.15s;
}

.char-detail-row:last-child {
    border-bottom: none;
}

.char-detail-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.char-detail-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.char-detail-value {
    color: var(--text-primary);
}

.char-detail-value a {
    color: var(--accent-gold);
}

.char-detail-value a:hover {
    color: #e8bf5a;
}

/* Stat bars (health, mana, exp) */
.stat-bar-group {
    margin-bottom: 12px;
}

.stat-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-bar {
    height: 18px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.stat-bar-fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
    position: relative;
}

.stat-bar-health {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.15);
}

.stat-bar-mana {
    background: linear-gradient(90deg, #2471a3, #3498db);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.15);
}

.stat-bar-exp {
    background: linear-gradient(90deg, #1e7e34, #4caf50);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.15);
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 8px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

.skill-item:hover {
    border-color: var(--border-hover);
}

.skill-icon {
    font-size: 18px;
    color: var(--text-muted);
}

.skill-name {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.skill-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==================== NEW FORM COMPONENTS ==================== */

/* Narrow page card (login) */
.page-card-narrow {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* Input with icon prefix */
.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 2;
}

.input-icon-wrap input,
.input-icon-wrap select {
    width: 100%;
    padding: 11px 14px 11px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-body);
    transition: all 0.2s;
    outline: none;
}

.input-icon-wrap input:focus,
.input-icon-wrap select:focus {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.input-icon-wrap input::placeholder {
    color: var(--text-muted);
}

.input-icon-wrap input.input-error {
    border-color: rgba(231, 76, 60, 0.5);
}

/* Password eye toggle */
.pw-toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted, #777);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 14px;
    z-index: 3;
    line-height: 1;
    border-radius: var(--radius-xs);
    transition: color .2s;
}
.pw-toggle-eye:hover {
    color: var(--text-primary, #fff);
}
.pw-toggle-eye:active {
    color: var(--accent-gold, #f4d03f);
}

/* Password requirements checklist */
.pw-requirements {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pw-req {
    font-size: .75rem;
    color: var(--text-muted, #777);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}
.pw-req i {
    font-size: 6px;
    transition: color .2s;
}
.pw-req.pass {
    color: var(--accent-green, #27ae60);
}
.pw-req.pass i:before {
    content: "\f00c";
    font-size: 10px;
}
.pw-req.fail {
    color: var(--accent-red, #e74c3c);
}
.pw-req.fail i:before {
    content: "\f00d";
    font-size: 10px;
}
.pw-match-status {
    margin-top: 6px;
    font-size: .75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pw-match-status.match {
    color: var(--accent-green, #27ae60);
}
.pw-match-status.no-match {
    color: var(--accent-red, #e74c3c);
}

/* Stepped form (create account) */
.form-step {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.form-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-circle);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

.step-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* Password strength bar */
.password-strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xs);
    margin-top: 8px;
    overflow: hidden;
}

#password-strength {
    height: 100%;
    width: 0;
    border-radius: var(--radius-xs);
    transition: width 0.3s ease, background 0.3s ease;
}

/* Field-level error */
.field-error {
    display: block;
    font-size: 11px;
    color: #e57373;
    margin-top: 6px;
    padding-left: 4px;
}

/* Form divider ("or") */
.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Secondary button */
.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Success box (account created) */
.success-box {
    text-align: center;
    padding: 32px 20px;
}

.success-icon {
    font-size: 48px;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.success-icon i {
    filter: drop-shadow(0 0 12px rgba(76, 175, 80, 0.3));
}

.success-box h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.success-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.6;
}

/* Text muted utility */
.text-muted {
    color: var(--text-muted) !important;
}

/* ==================== RIGHT SIDEBAR WIDGET COMPONENTS ==================== */

/* Empty widget state */
.widget-empty {
    text-align: center;
    padding: 20px 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* Online badge (green dot next to player) */
.online-badge {
    font-size: 8px;
    color: var(--accent-green);
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(76, 175, 80, 0.4));
}

.online-badge i {
    animation: pulse 2s ease-in-out infinite;
}

/* Server info list */
.server-info-list {
    padding: 4px 6px;
}

.server-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.server-info-row:last-child {
    border-bottom: none;
}

.info-key {
    color: var(--text-muted);
    font-size: 12px;
}

.info-val {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xs);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==================== RESPONSIVE ==================== */
/* ============================================================
   Character Cards (Account Page)
   ============================================================ */
.char-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.char-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.2s ease;
}

.char-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.char-card-online {
    border-color: rgba(76, 175, 80, 0.25);
}

.char-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.char-card-identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.char-card-name a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.char-card-name a:hover {
    color: var(--accent-gold);
}

.char-card-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.char-card-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.badge-muted {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: var(--radius-md);
}

.badge-gold {
    background: rgba(212, 168, 67, 0.15);
    color: var(--accent-gold);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.char-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.char-card-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
}

.char-card-stat i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.char-card-stat div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.char-card-stat .stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.char-card-stat .stat-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.char-card-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xs);
    margin-bottom: 12px;
    overflow: hidden;
}

.char-card-bar-fill {
    height: 100%;
    border-radius: var(--radius-xs);
    transition: width 0.4s ease;
}

.char-card-deletion-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.82em;
    color: #e57373;
    flex-wrap: wrap;
}
.char-card-deletion-notice i {
    flex-shrink: 0;
}
.char-card-deletion-notice span {
    flex: 1;
}
.btn-cancel-deletion {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.85em;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--radius-xs);
    color: #e57373;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.btn-cancel-deletion:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
}

.char-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.char-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
}

.char-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.char-action-danger:hover {
    background: rgba(231, 76, 60, 0.15);
    color: var(--accent-red);
}

/* ============================================================
   Lost Account Options
   ============================================================ */
.lost-account-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lost-option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.lost-option-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.lost-option-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(88, 101, 242, 0.15);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.lost-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lost-option-info strong {
    font-size: 14px;
    color: var(--text-primary);
}

.lost-option-info .text-muted {
    font-size: 12px;
}

/* ============================================================
   Character Detail Tabs
   ============================================================ */
.char-tab-bar {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
    margin-bottom: 0;
}

.char-tab {
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
}

.char-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.char-tab.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.char-tab-content {
    display: none;
    padding-top: 16px;
}

.char-tab-content.active {
    display: block;
}

/* ============================================================
   HTML Tables (hs-table)
   ============================================================ */
.hs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.hs-table th {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border-color);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-align: left;
}

.hs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.hs-table tr:last-child td {
    border-bottom: none;
}

.hs-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

/* ============================================================
   MOBILE OVERLAY & MENU
   ============================================================ */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1100;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.mobile-menu-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-menu-close:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.mobile-menu-section {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.form-control-mobile {
    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: 13px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}

.form-control-mobile:focus {
    border-color: rgba(255, 255, 255, 0.2);
}

.form-control-mobile::placeholder {
    color: var(--text-muted);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.mobile-menu-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.mobile-menu-links a i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.mobile-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-accordion-item:last-child {
    border-bottom: none;
}

.mobile-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.2s;
}

.mobile-accordion-header:hover {
    color: var(--text-secondary);
}

.mobile-accordion-header i {
    font-size: 10px;
    transition: transform 0.2s;
}

.mobile-accordion-item.open .mobile-accordion-header i {
    transform: rotate(180deg);
}

.mobile-accordion-body {
    display: none;
    padding-bottom: 8px;
}

.mobile-accordion-item.open .mobile-accordion-body {
    display: block;
}

.mobile-accordion-body a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.mobile-accordion-body a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.mobile-accordion-body a i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.mobile-menu-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-menu-social a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-menu-social a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* Helper: table wrapper for horizontal scroll */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================================
   RESPONSIVE: TABLET (max-width: 1200px)
   ============================================================ */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    .sidebar-left {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        bottom: 0;
        width: var(--sidebar-width);
        max-width: 85vw;
        background: var(--bg-secondary);
        border-right: 1px solid var(--border-color);
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        scrollbar-gutter: stable;
    }
    .sidebar-left.sidebar-visible {
        transform: translateX(0);
    }
    .hamburger-btn {
        display: flex;
    }
    .sidebar-right {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE: SMALL TABLET / LARGE PHONE (max-width: 900px)
   ============================================================ */
@media (max-width: 900px) {
    .nav-login-form {
        display: none;
    }
    .nav-status {
        display: none;
    }
    .nav-link-desktop {
        display: none;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-row .form-group {
        margin-bottom: 16px;
    }
    .account-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .action-buttons {
        grid-template-columns: 1fr 1fr;
    }
    .char-cards-grid {
        grid-template-columns: 1fr;
    }
    .hero-banner {
        aspect-ratio: 491 / 270;
        border-radius: var(--radius-md);
    }
    .hero-title {
        font-size: 26px;
        letter-spacing: 4px;
    }
    .hero-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }
    .content-body {
        padding: 16px;
    }
    .page-card-header {
        padding: 14px 18px;
    }
    .page-card-body {
        padding: 18px;
    }
    .section-title-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px 20px;
    }
    .char-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 16px;
    }
    .char-detail-label {
        font-size: 10px;
    }
    .char-table-header,
    .char-table-row {
        grid-template-columns: 2fr 1fr 0.7fr 1fr;
        font-size: 12px;
        padding: 8px 12px;
    }
    .tab-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }
    .tab-bar::-webkit-scrollbar {
        display: none;
    }
    .char-tab-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .char-tab-bar::-webkit-scrollbar {
        display: none;
    }
    .content-top-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 6px;
    }
    .announcement-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    /* Make grid tables scrollable - override inline grid-template-columns */
    .characters-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .characters-table .char-table-header,
    .characters-table .char-table-row {
        min-width: 500px;
    }
    /* HTML tables scroll wrapper */
    .hs-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Inline styles grid fix - side-by-side layouts */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   RESPONSIVE: PHONE (max-width: 600px)
   ============================================================ */
@media (max-width: 600px) {
    .content-body {
        padding: 12px 10px;
    }
    .page-card-header {
        padding: 12px 14px;
        gap: 10px;
    }
    .page-card-header h2 {
        font-size: 13px;
        letter-spacing: 1px;
    }
    .page-card-header i {
        font-size: 15px;
    }
    .page-card-body {
        padding: 14px;
    }
    .account-info-grid {
        grid-template-columns: 1fr;
    }
    .action-buttons {
        grid-template-columns: 1fr;
    }
    .hero-banner {
        aspect-ratio: 491 / 270;
        margin-bottom: 16px;
    }
    .hero-title {
        font-size: 20px;
        letter-spacing: 3px;
    }
    .news-section {
        margin-bottom: 16px;
    }
    .characters-table .char-table-header,
    .characters-table .char-table-row {
        min-width: 0;
    }
    .char-table-header {
        display: none !important;
    }
    .char-table-row {
        grid-template-columns: 1fr !important;
        gap: 4px;
        padding: 12px;
        border-bottom: 1px solid var(--border-color);
    }
    .char-table-row > span::before {
        content: attr(data-label);
        font-size: 10px;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        display: block;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .page-card-narrow {
        max-width: 100%;
    }
    .lost-option-card {
        padding: 12px 14px;
        gap: 12px;
    }
    .navbar-inner {
        padding: 0 12px;
    }
    .nav-link .nav-link-text {
        display: none;
    }
    .download-btn {
        font-size: 12px;
        padding: 10px;
    }
    .char-card-stats {
        grid-template-columns: 1fr;
    }
    .stat-bar {
        height: 14px;
    }
}

/* ============================================================
   RESPONSIVE: SMALL PHONE (max-width: 400px)
   ============================================================ */
@media (max-width: 400px) {
    .content-body {
        padding: 10px 8px;
    }
    .page-card-body {
        padding: 12px 10px;
    }
    .hero-title {
        font-size: 16px;
        letter-spacing: 2px;
    }
    .hero-subtitle {
        font-size: 9px;
    }
    .btn {
        padding: 8px 14px;
        font-size: 11px;
    }
    .form-group label {
        font-size: 10px;
    }
    .form-group input,
    .form-group select {
        padding: 9px 12px;
        font-size: 13px;
    }
    .info-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .info-card-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .action-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
    .mobile-menu {
        width: 100%;
        max-width: 100vw;
    }
}

/* ==================== LOGIN MODAL ==================== */
.login-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.login-modal-overlay.active {
    display: flex;
}

.login-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: loginModalIn 0.25s ease;
}

@keyframes loginModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
}

.login-modal-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    transition: all 0.2s;
}

.login-modal-close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
}

.login-modal-body {
    padding: 24px 20px;
}

.login-modal-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
    color: #e74c3c;
    font-size: 0.85rem;
}

/* Download Modal */
.download-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.download-modal-overlay.active {
    display: flex;
}
.download-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    width: 90%;
    max-width: 680px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: loginModalIn 0.25s ease;
}
.download-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
}
.download-modal-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.download-modal-body {
    padding: 24px 20px;
}
.download-modal-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: border-color 0.2s;
}
.download-modal-item:hover {
    border-color: var(--border-hover);
}
.download-modal-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}
@media (max-width: 500px) {
    .download-modal {
        max-width: 95%;
    }
    .download-modal-body {
        padding: 16px 12px;
    }
}

/* ============================================================
   Floating Support Widget (OVH-style)
   ============================================================ */
.sw-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font-body);
}
.sw-toggle {
    width: 54px;
    height: 54px;
    border-radius: 50% !important;
    background: var(--accent-gold);
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.sw-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0,0,0,0.5);
}
.sw-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}
.sw-panel {
    position: absolute;
    bottom: 66px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: var(--bg-card-solid, #1e1e1e);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    overflow: hidden;
}
.sw-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.sw-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--border-color);
}
.sw-panel-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sw-panel-title i {
    color: var(--accent-gold);
}
.sw-panel-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.sw-panel-close:hover {
    color: var(--text-primary);
}
.sw-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 200px;
    max-height: 440px;
}
.sw-panel-body::-webkit-scrollbar {
    width: 5px;
}
.sw-panel-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius-xs);
}
.sw-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 1.4rem;
}
.sw-login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
}

.sw-login-prompt .sw-btn {
    width: 100%;
    justify-content: center;
}

.sw-empty {
    text-align: center;
    padding: 30px 16px;
    color: var(--text-secondary);
}
.sw-empty i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.4;
}
.sw-empty p {
    margin: 0;
    font-size: 0.85rem;
}
.sw-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.sw-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    line-height: 1;
}
.sw-btn:hover { opacity: 0.85; }
.sw-btn-primary {
    background: var(--accent-gold);
    color: #000;
}
.sw-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.sw-btn-block {
    width: 100%;
    justify-content: center;
}
.sw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Ticket list */
.sw-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sw-ticket-item {
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.sw-ticket-item:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--border-hover);
}
.sw-ticket-unread {
    border-left: 3px solid var(--accent-gold);
}
.sw-ticket-item-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.sw-ticket-status {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}
.sw-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-circle);
    background: var(--accent-gold);
    flex-shrink: 0;
}
.sw-ticket-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}
.sw-ticket-subject {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sw-ticket-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}
/* Back button */
.sw-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.sw-back:hover { color: var(--text-primary); }
/* Ticket header inside panel */
.sw-ticket-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
/* Messages */
.sw-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 4px;
}
.sw-messages::-webkit-scrollbar { width: 4px; }
.sw-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: var(--radius-xs); }
.sw-msg {
    padding: 8px 10px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
}
.sw-msg-player {
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.15);
    margin-left: 20px;
    border-radius: var(--radius-md) var(--radius-md) var(--radius-xs) var(--radius-md);
}
.sw-msg-staff {
    background: rgba(52,152,219,0.1);
    border: 1px solid rgba(52,152,219,0.15);
    margin-right: 20px;
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-xs);
}
.sw-msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.sw-msg-avatar {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}
.sw-msg-author {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-primary);
}
.sw-staff-badge {
    background: #3498db;
    color: #fff;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    font-size: 0.55rem;
    font-weight: 700;
}
.sw-msg-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: auto;
}
.sw-msg-body {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}
/* Reply & Create form */
.sw-reply-form {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}
.sw-textarea {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.82rem;
    resize: none;
    margin-bottom: 8px;
    box-sizing: border-box;
    font-family: var(--font-body);
}
.sw-textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}
.sw-input {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.82rem;
    box-sizing: border-box;
    font-family: var(--font-body);
}
.sw-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}
.sw-select {
    width: 100%;
    padding: 8px 10px;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.82rem;
    box-sizing: border-box;
}
.sw-select option {
    background: #1a1a1a;
    color: #e0e0e0;
}
.sw-form-group {
    margin-bottom: 10px;
}
.sw-form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.sw-form-group small {
    font-weight: 400;
    color: var(--text-muted);
}
.sw-create-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sw-create-title i {
    color: var(--accent-gold);
}
.sw-closed-notice {
    text-align: center;
    padding: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}
/* Reply input with inline attach */
.sw-reply-input-wrap {
    position: relative;
}
.sw-reply-input-wrap .sw-textarea {
    padding-right: 36px;
}
.sw-attach-inline {
    position: absolute;
    right: 8px;
    bottom: 14px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
}
.sw-attach-inline:hover {
    color: var(--accent-gold);
}
/* Pending file previews */
.sw-pending-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}
.sw-pending-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.sw-pending-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.sw-pending-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.06);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}
.sw-pending-rm {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-circle);
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}
/* Message attachments */
.sw-msg-attachments {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sw-att-img {
    max-width: 200px;
    max-height: 160px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    display: block;
}
.sw-att-video {
    max-width: 220px;
    max-height: 160px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.1);
    display: block;
}
.sw-att-file {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    color: var(--accent-gold);
    text-decoration: none;
}
/* Lightbox */
.sw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    cursor: zoom-out;
}
.sw-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.sw-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    cursor: default;
}
.sw-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: transform 0.2s;
    z-index: 1;
}
.sw-lightbox-close:hover {
    transform: scale(1.2);
}
/* Mobile responsive */
@media (max-width: 480px) {
    .sw-container {
        bottom: 16px;
        right: 16px;
    }
    .sw-panel {
        width: calc(100vw - 32px);
        right: -8px;
        max-height: 70vh;
    }
}

/* ===== AJAX Navigation ===== */
#ajax-nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    z-index: 99999;
    pointer-events: none;
}
.content-center.ajax-loading .content-body {
    opacity: 0.4;
    transition: opacity .15s ease;
}
.content-center.ajax-loaded .content-body {
    animation: ajaxFadeIn .25s ease forwards;
}
@keyframes ajaxFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Typing Indicator ---- */
.typing-dots-ns { display: inline-flex; gap: 3px; align-items: center; }
.typing-dots-ns span { width: 5px; height: 5px; border-radius: var(--radius-circle); background: var(--accent-gold, #d4af37); animation: td-bounce 1.4s infinite ease-in-out both; }
.typing-dots-ns span:nth-child(1) { animation-delay: 0s; }
.typing-dots-ns span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots-ns span:nth-child(3) { animation-delay: 0.4s; }
@keyframes td-bounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

/* ---- Timeline Widget (alternating layout) ---- */
.widget-timeline .widget-fixed-body { padding: 0 10px 12px; overflow: hidden; }

/* Hero countdown at the top */
.tl-hero {
    text-align: center;
    padding: 14px 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2px;
}

.tl-hero-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4fc3f7;
    margin-bottom: 8px;
}

.tl-hero-date {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.tl-hero-countdown {
    display: inline-flex;
    gap: 5px;
    justify-content: center;
}

.tl-hero-countdown .tl-cd-item {
    min-width: 36px;
    padding: 5px 8px 3px;
}

.tl-hero-countdown .tl-cd-val {
    font-size: 0.95rem;
}

.tl-hero-countdown .tl-cd-lbl {
    font-size: 0.5rem;
}

.tl-track {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Vertical center line */
.tl-track::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    bottom: 8px;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(79, 195, 247, 0.5), rgba(244, 208, 63, 0.4) 20%, rgba(244, 208, 63, 0.1));
}

.tl-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-bottom: 20px;
}

.tl-item:last-child { padding-bottom: 0; }

/* Left & right sides */
.tl-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tl-side-left { align-items: flex-end; text-align: right; padding-right: 10px; }
.tl-side-right { align-items: flex-start; text-align: left; padding-left: 10px; }

/* Dot in center */
.tl-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-circle);
    background: rgba(244, 208, 63, 0.6);
    border: 2px solid rgba(244, 208, 63, 0.3);
    margin-top: 4px;
    position: relative;
    z-index: 1;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tl-dot-highlight {
    background: #f4d03f;
    border-color: rgba(244, 208, 63, 0.5);
    box-shadow: 0 0 8px rgba(244, 208, 63, 0.4);
}

.tl-item:hover .tl-dot {
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(244, 208, 63, 0.5);
}

.tl-date {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tl-text {
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.35;
    font-weight: 500;
}

.tl-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 7px;
    border-radius: 4px;
    width: fit-content;
}

.tl-badge-launch {
    background: rgba(76, 175, 80, 0.15);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.25);
}

.tl-badge-record {
    background: rgba(244, 208, 63, 0.12);
    color: #f4d03f;
    border: 1px solid rgba(244, 208, 63, 0.25);
}

/* Future item */
.tl-item-future .tl-date {
    color: #4fc3f7;
    font-size: 0.85rem;
    font-weight: 700;
}

.tl-dot-pulse {
    background: #4fc3f7;
    border-color: rgba(79, 195, 247, 0.4);
    box-shadow: 0 0 8px rgba(79, 195, 247, 0.5);
    animation: tl-pulse 2s ease-in-out infinite;
}

@keyframes tl-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(79, 195, 247, 0.4); }
    50% { box-shadow: 0 0 14px rgba(79, 195, 247, 0.8); }
}

/* Countdown — full width below the item content */
.tl-countdown {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.tl-cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.25);
    border-radius: 4px;
    padding: 4px 6px 2px;
    min-width: 30px;
}

.tl-cd-val {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: #4fc3f7;
    line-height: 1.2;
}

.tl-cd-lbl {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ---- Worlds Page ---- */
.worlds-total-badge {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.worlds-layout {
    display: flex;
    min-height: 340px;
}

.worlds-list {
    flex: 1;
    min-width: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
    max-height: 500px;
}

.worlds-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.worlds-list-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.worlds-list-item.active {
    background: rgba(79, 195, 247, 0.08);
    border-left: 3px solid #4fc3f7;
}

.worlds-list-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.worlds-list-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.worlds-list-type {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.worlds-list-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.worlds-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.worlds-status-online {
    background: #27ae60;
    box-shadow: 0 0 6px rgba(39, 174, 96, 0.5);
}

.worlds-status-offline {
    background: #e74c3c;
}

.worlds-list-count {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    min-width: 30px;
    text-align: right;
}

/* Detail panel */
.worlds-detail {
    flex: 1;
    min-width: 0;
    position: relative;
}

.worlds-detail-card {
    display: none;
    flex-direction: column;
    padding: 20px;
    height: 100%;
}

.worlds-detail-card.active {
    display: flex;
}

.worlds-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.worlds-detail-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.worlds-detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-gold, #d4af37);
}

.worlds-detail-value {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.worlds-play-btn {
    margin-top: auto;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 700px) {
    .worlds-layout { flex-direction: column; }
    .worlds-list { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); max-height: 250px; }
    .worlds-detail-grid { grid-template-columns: 1fr; }
}

