/* ============================================
   MU LUXOR - Gold & Brown Theme
   Sidebar Layout Template
   ============================================ */

:root {
    /* Brown tones */
    --bg-darkest: #0d0a06;
    --bg-dark: #1a1209;
    --bg-medium: #2a1f0e;
    --bg-light: #3a2c16;
    --bg-lighter: #4a3a20;

    /* Gold tones */
    --gold: #d4a847;
    --gold-light: #f0d078;
    --gold-dark: #b8922e;
    --gold-darker: #8a6d1f;
    --gold-rgb: 212, 168, 71;

    /* Text */
    --text-primary: #e8e0d0;
    --text-secondary: #a09080;
    --text-gold: #d4a847;
    --text-white: #ffffff;

    /* Borders */
    --border-gold: #d4a847;
    --border-dark: rgba(212, 168, 71, 0.2);
    --border-medium: rgba(212, 168, 71, 0.4);

    /* Overlays */
    --overlay-gold: rgba(212, 168, 71, 0.1);
    --overlay-gold-md: rgba(212, 168, 71, 0.25);
    --overlay-dark: rgba(13, 10, 6, 0.85);
    --overlay-card: rgba(26, 18, 9, 0.9);

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #d4a847 0%, #f0d078 50%, #d4a847 100%);
    --gradient-gold-h: linear-gradient(90deg, rgba(212,168,71,0.8) 0%, rgba(212,168,71,0.2) 100%);
    --gradient-bg: linear-gradient(180deg, #0d0a06 0%, #1a1209 50%, #0d0a06 100%);

    /* Shadows */
    --shadow-gold: 0 0 15px rgba(212, 168, 71, 0.2);
    --shadow-gold-strong: 0 0 30px rgba(212, 168, 71, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);

    /* Layout */
    --header-height: 70px;
    --sidebar-width: 320px;
    --container-max: 1280px;
    --radius: 8px;
    --radius-lg: 12px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(212, 168, 71, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 168, 71, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
}

.lx-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   PRELOADER
   ============================================ */
.lx-preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-darkest);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: opacity 0.5s ease;
}

.lx-preloader-hide {
    opacity: 0;
    pointer-events: none;
}

.lx-preloader-logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 2px 12px rgba(212, 168, 71, 0.3));
}

.lx-preloader-text {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--gold-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lx-preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(212, 168, 71, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.lx-preloader-progress {
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
    animation: preloaderSlide 0.8s ease-in-out infinite;
}

@keyframes preloaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200px); }
}

/* ============================================
   HEADER
   ============================================ */
.lx-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(13, 10, 6, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.lx-header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lx-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lx-logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(212, 168, 71, 0.3));
}

.lx-logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lx-nav {
    display: flex;
    align-items: center;
}

.lx-nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lx-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.lx-nav-link:hover {
    color: var(--gold);
    background: var(--overlay-gold);
}

.lx-nav-link i {
    font-size: 0.85rem;
    color: var(--gold-dark);
}

.lx-nav-link:hover i {
    color: var(--gold);
}

.lx-btn-register {
    background: var(--overlay-gold);
    border: 1px solid var(--border-gold);
    color: var(--gold) !important;
}

.lx-btn-register:hover {
    background: rgba(212, 168, 71, 0.2);
}

/* Hamburger */
.lx-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.lx-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */
.lx-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--header-height);
    background-color: var(--bg-dark);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
}

.lx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center top, rgba(212, 168, 71, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, transparent 0%, var(--bg-darkest) 100%);
    z-index: 1;
}

.lx-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,10,6,0.3) 0%, rgba(13,10,6,0.7) 70%, var(--bg-darkest) 100%);
    z-index: 2;
}

.lx-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-dark);
    z-index: 4;
}

.lx-hero .lx-container {
    position: relative;
    z-index: 3;
}

.lx-hero-content {
    text-align: center;
    padding: 1.5rem 0 2rem;
}

.lx-hero-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 20px rgba(212, 168, 71, 0.4));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.lx-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.lx-hero-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 168, 71, 0.3);
    margin-bottom: 0.4rem;
}

.lx-hero-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lx-hero-separator {
    color: var(--gold-dark);
    opacity: 0.5;
}

.lx-pulse-dot {
    font-size: 0.5rem;
    color: #2ecc71;
    vertical-align: middle;
    margin-right: 0.3rem;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.lx-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Social Float Icons (Hero sidebar) */
.lx-social-float {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 5;
}

.lx-social-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--gold);
    text-decoration: none;
    background: transparent;
    border: 1.5px solid var(--gold);
    transition: all 0.3s ease;
}

.lx-social-float-btn:hover {
    color: #1a1209;
    background: var(--gold);
    box-shadow: 0 0 20px rgba(212, 168, 71, 0.4);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lx-social-float {
        left: 0.5rem;
        gap: 0.5rem;
    }
    .lx-social-float-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.lx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.lx-btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #1a1209;
    border: 1px solid var(--gold);
}

.lx-btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: #1a1209;
    box-shadow: var(--shadow-gold-strong);
    transform: translateY(-2px);
}

.lx-btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--border-gold);
}

.lx-btn-outline:hover {
    background: var(--overlay-gold);
    color: var(--gold-light);
    box-shadow: var(--shadow-gold);
}

.lx-btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    width: auto;
}

/* ============================================
   LAYOUT: Main + Sidebar
   ============================================ */
.lx-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 1.5rem;
    padding: 2rem 0;
    align-items: start;
}

.lx-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    order: 1;
}

.lx-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    min-height: 400px;
    order: 2;
}

/* Full width layout (no sidebar) */
.lx-main-full {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================
   CARDS (Main Content)
   ============================================ */
.lx-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.lx-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(212,168,71,0.08) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-dark);
}

.lx-card-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.lx-card-header h2 i {
    font-size: 1rem;
    color: var(--gold-dark);
}

.lx-card-body {
    padding: 1.25rem;
}

/* ============================================
   ACTION CARDS
   ============================================ */
.lx-action-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.lx-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.25rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lx-action-card i {
    font-size: 1.5rem;
    color: var(--gold);
}

.lx-action-card:hover {
    border-color: var(--gold);
    background: var(--overlay-gold);
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* ============================================
   NEWS
   ============================================ */
.lx-news-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 168, 71, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lx-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lx-news-item:first-child {
    padding-top: 0;
}

.lx-news-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lx-news-badge {
    background: var(--overlay-gold);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(212, 168, 71, 0.3);
}

.lx-news-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lx-news-date i {
    margin-right: 0.3rem;
    color: var(--gold-dark);
}

.lx-news-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.lx-news-title:hover {
    color: var(--gold);
}

.lx-news-author {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lx-news-author i {
    margin-right: 0.3rem;
    color: var(--gold-dark);
}

/* News expanded (full content) */
.lx-news-image {
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.lx-news-image img {
    width: 100%;
    height: auto;
    display: block;
}

.lx-news-content {
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.7;
    word-wrap: break-word;
}

.lx-news-content p {
    margin-bottom: 0.75rem;
}

.lx-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 0.5rem 0;
}

.lx-news-content a {
    color: var(--gold);
    text-decoration: underline;
}

.lx-news-content a:hover {
    color: var(--gold-light);
}

.lx-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-dark);
}

/* ============================================
   SIDEBAR CARDS
   ============================================ */
.lx-sidebar-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-gold);
}

.lx-sidebar-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, rgba(212,168,71,0.15) 0%, rgba(212,168,71,0.05) 100%);
    border-bottom: 1px solid var(--border-dark);
}

.lx-sidebar-card-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lx-sidebar-card-header h3 i {
    font-size: 0.9rem;
}

.lx-sidebar-card-body {
    padding: 1rem;
}

.lx-no-padding {
    padding: 0;
}

.lx-sidebar-link {
    font-size: 0.8rem;
    color: var(--gold-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lx-sidebar-link:hover {
    color: var(--gold-light);
}

/* ============================================
   LOGIN FORM (Sidebar)
   ============================================ */
.lx-login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lx-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.lx-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg-medium);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lx-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 168, 71, 0.2);
}

.lx-input::placeholder {
    color: var(--text-secondary);
}

.lx-login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.lx-login-links a {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lx-login-links a:hover {
    color: var(--gold);
}

/* ============================================
   SERVER INFO (Sidebar)
   ============================================ */
.lx-server-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lx-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(212, 168, 71, 0.08);
}

.lx-info-row:last-child {
    border-bottom: none;
}

.lx-info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lx-info-label i {
    color: var(--gold-dark);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.lx-info-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
}

.lx-info-highlight {
    background: var(--overlay-gold);
    margin: -0.1rem -1rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
}

.lx-info-highlight .lx-info-value {
    color: var(--gold-light);
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(212, 168, 71, 0.4);
}

/* ============================================
   MINI RANKING (Sidebar)
   ============================================ */
.lx-mini-ranking {
    display: flex;
    flex-direction: column;
}

.lx-ranking-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(212, 168, 71, 0.08);
    transition: background 0.2s ease;
}

.lx-ranking-row:hover {
    background: var(--overlay-gold);
}

.lx-ranking-row:last-child {
    border-bottom: none;
}

.lx-rank-num {
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-secondary);
    min-width: 22px;
    text-align: center;
}

.lx-rank-gold { color: #ffd700; text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.lx-rank-silver { color: #c0c0c0; text-shadow: 0 0 8px rgba(192, 192, 192, 0.3); }
.lx-rank-bronze { color: #cd7f32; text-shadow: 0 0 8px rgba(205, 127, 50, 0.3); }

.lx-rank-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-dark);
}

.lx-rank-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lx-rank-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lx-rank-name a {
    color: var(--text-primary);
}

.lx-rank-name a:hover {
    color: var(--gold);
}

.lx-rank-detail {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.lx-rank-level {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
}

/* ============================================
   RANKINGS (Main Content)
   ============================================ */
.lx-ranking-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.lx-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-medium);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lx-tab:hover {
    border-color: var(--gold-dark);
    color: var(--gold);
}

.lx-tab.active {
    background: var(--overlay-gold);
    border-color: var(--gold);
    color: var(--gold);
}

.lx-ranking-panel {
    display: none;
}

.lx-ranking-panel.active {
    display: block;
}

.lx-ranking-table {
    width: 100%;
}

.lx-ranking-head {
    display: grid;
    grid-template-columns: 70px 1fr 80px 80px 120px;
    padding: 0.6rem 0.75rem;
    background: rgba(212, 168, 71, 0.08);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lx-ranking-table .lx-ranking-row {
    display: grid;
    grid-template-columns: 70px 1fr 80px 80px 120px;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(212, 168, 71, 0.06);
    align-items: center;
    gap: 0;
    font-size: 0.85rem;
}

.lx-ranking-table .lx-ranking-row:hover {
    background: var(--overlay-gold);
}

.lx-col-rank {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.lx-rank-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-dark);
}

.lx-rank-badge {
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.lx-top-1 .lx-rank-badge { color: #ffd700; text-shadow: 0 0 8px rgba(255, 215, 0, 0.5); }
.lx-top-2 .lx-rank-badge { color: #c0c0c0; }
.lx-top-3 .lx-rank-badge { color: #cd7f32; }

.lx-top-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.06) 0%, transparent 100%);
}

.lx-col-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lx-col-name a {
    color: var(--text-primary);
}

.lx-col-name a:hover {
    color: var(--gold);
}

.lx-col-lvl, .lx-col-rst {
    text-align: center;
    color: var(--text-secondary);
}

.lx-col-guild {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   DISCORD
   ============================================ */
.lx-discord-body {
    padding: 0;
}

.lx-discord-body widgetbot {
    display: block;
    width: 100%;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ============================================
   USERCP LINKS (Sidebar)
   ============================================ */
.lx-usercp-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.lx-usercp-links li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lx-usercp-links li img {
    width: 20px;
    height: 20px;
}

.lx-usercp-links li a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.3rem 0;
}

.lx-usercp-links li a:hover {
    color: var(--gold);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.lx-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.lx-footer {
    margin-top: 3rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    padding: 2.5rem 0 0;
}

.lx-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.lx-footer-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.lx-footer-section h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.lx-footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.lx-footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lx-footer-section ul a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.lx-footer-section ul a:hover {
    color: var(--gold);
    padding-left: 0.25rem;
}

.lx-footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.lx-footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-medium);
    border: 1px solid var(--border-dark);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.lx-footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.lx-footer-bottom {
    text-align: center;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-dark);
}

.lx-footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ============================================
   FORMS PAGE (Login/Register/ForgotPassword)
   ============================================ */
.lx-forms-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--bg-darkest);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.lx-forms-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 10, 6, 0.7);
    backdrop-filter: blur(4px);
    z-index: 0;
}

.lx-forms-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.lx-forms-card {
    background: rgba(26, 18, 9, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 168, 71, 0.15);
    position: relative;
}

.lx-forms-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.lx-forms-header {
    text-align: center;
    padding: 1.5rem 2rem 0.5rem;
}

.lx-forms-logo {
    max-width: 130px;
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(212, 168, 71, 0.4));
}

.lx-forms-body {
    padding: 0.25rem 1.75rem 1rem;
}

/* Register module overrides */
.lx-forms-body .register-container {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: 100%;
    border-radius: 0;
}

.lx-forms-body .register-container::before {
    display: none;
}

.lx-forms-body .register-header {
    display: none;
}

.lx-forms-body .register-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lx-forms-body .register-form .form-group {
    margin-bottom: 0;
}

.lx-forms-body .register-footer,
.lx-forms-body .register-container .register-footer {
    display: none !important;
}

.lx-forms-body .form-checkbox {
    display: none !important;
}

.lx-forms-body .g-recaptcha {
    display: block !important;
    margin: 0.5rem 0;
}

/* Form elements */
.lx-forms-body .form-group {
    margin-bottom: 0.6rem;
}

.lx-forms-body .form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.lx-forms-body .form-label i {
    color: var(--gold-dark);
    font-size: 0.75rem;
}

.lx-forms-body label {
    display: block;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.lx-forms-body .form-control,
.lx-forms-body .form-input,
.lx-forms-body input[type="text"],
.lx-forms-body input[type="password"],
.lx-forms-body input[type="email"] {
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: rgba(42, 31, 14, 0.6);
    border: 1px solid rgba(212, 168, 71, 0.15);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.lx-forms-body .form-control:focus,
.lx-forms-body .form-input:focus,
.lx-forms-body input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 168, 71, 0.2);
    background: rgba(42, 31, 14, 0.8);
}

.lx-forms-body .form-control::placeholder,
.lx-forms-body .form-input::placeholder,
.lx-forms-body input::placeholder {
    color: var(--text-secondary);
}

/* Checkbox - hidden in register */

/* Submit button */
.lx-forms-body .form-submit,
.lx-forms-body .btn-primary,
.lx-forms-body button[type="submit"] {
    width: 100%;
    padding: 0.7rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: #1a1209;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.lx-forms-body .form-submit:hover,
.lx-forms-body .btn-primary:hover,
.lx-forms-body button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    box-shadow: 0 6px 25px rgba(212, 168, 71, 0.4);
    transform: translateY(-2px);
}

.lx-forms-body a {
    color: var(--gold);
}

.lx-forms-body a:hover {
    color: var(--gold-light);
}

/* Footer */
.lx-forms-footer {
    text-align: center;
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid rgba(212, 168, 71, 0.1);
}

.lx-forms-footer a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.lx-forms-footer a:hover {
    color: var(--gold);
}

/* Alert messages inside forms */
.lx-forms-body .alert {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .lx-forms-container {
        max-width: 100%;
    }

    .lx-forms-body {
        padding: 0.5rem 1.5rem 1.5rem;
    }

    .lx-forms-header {
        padding: 2rem 1.5rem 0.75rem;
    }

    .lx-forms-logo {
        max-width: 120px;
    }
}

/* ============================================
   USER CP PAGE
   ============================================ */
.lx-usercp-page {
    background: var(--bg-darkest);
}

.lx-ucp-wrapper {
    display: flex;
    min-height: 100vh;
}

.lx-ucp-sidebar {
    width: 260px;
    background: var(--bg-dark);
    border-right: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.lx-ucp-sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-dark);
    background: linear-gradient(180deg, rgba(212,168,71,0.08) 0%, transparent 100%);
}

.lx-ucp-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.lx-ucp-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 12px rgba(212, 168, 71, 0.3);
}

.lx-ucp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lx-ucp-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-medium);
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.lx-ucp-user-info {
    text-align: center;
}

.lx-ucp-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.lx-ucp-level {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* UCP Sidebar Menu */
.lx-ucp-sidebar .admin-sidebar-menu {
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
}

.lx-ucp-sidebar .admin-menu-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.lx-ucp-sidebar .admin-menu-item:hover {
    color: var(--gold);
    background: var(--overlay-gold);
    border-left-color: var(--gold-dark);
}

.lx-ucp-sidebar .admin-menu-item.active {
    color: var(--gold);
    background: var(--overlay-gold);
    border-left-color: var(--gold);
}

.lx-ucp-sidebar .admin-menu-icon {
    width: 20px;
    height: 20px;
}

.lx-ucp-sidebar .admin-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gold-dark);
}

.lx-ucp-sidebar .admin-menu-item-logout {
    color: #c0392b;
    margin-top: 1rem;
    border-top: 1px solid var(--border-dark);
    padding-top: 1rem;
}

.lx-ucp-sidebar .admin-menu-item-logout:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
}

/* UCP Main */
.lx-ucp-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

.lx-ucp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    height: 60px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 50;
}

.lx-ucp-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.lx-ucp-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lx-ucp-header-title h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
}

.lx-ucp-content {
    padding: 1.5rem;
    flex: 1;
}

/* ============================================
   CMS CONTENT OVERRIDES
   ============================================ */
/* Tables */
.table, table {
    width: 100%;
    border-collapse: collapse;
}

.table th, table th {
    padding: 0.6rem 0.75rem;
    background: rgba(212, 168, 71, 0.08);
    color: var(--gold-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--border-dark);
}

.table td, table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(212, 168, 71, 0.06);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.table tr:hover td, table tr:hover td {
    background: var(--overlay-gold);
}

/* Panels (CMS uses Bootstrap panels) */
.panel {
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
}

.panel-heading {
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, rgba(212,168,71,0.1) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-dark);
    border-radius: var(--radius) var(--radius) 0 0;
}

.panel-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0;
}

.panel-body {
    padding: 1rem;
}

/* Bootstrap overrides */
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: var(--gold);
    color: #1a1209;
    font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    border-color: var(--gold-light);
    color: #1a1209;
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.form-control {
    background: var(--bg-medium);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 0.65rem 0.85rem;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 168, 71, 0.2);
    background: var(--bg-medium);
    color: var(--text-primary);
}

.pull-right {
    float: right;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* Alert styles */
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #2ecc71;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.alert-warning {
    background: rgba(241, 196, 15, 0.15);
    border: 1px solid rgba(241, 196, 15, 0.3);
    color: #f1c40f;
}

.alert-info {
    background: var(--overlay-gold);
    border: 1px solid rgba(212, 168, 71, 0.3);
    color: var(--gold);
}

/* Grid system */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.row > [class*="col-"] {
    padding: 0 0.75rem;
}

.col-xs-3 { width: 25%; }
.col-xs-4 { width: 33.333%; }
.col-xs-6 { width: 50%; }
.col-xs-8 { width: 66.666%; }
.col-xs-12 { width: 100%; }
.col-sm-6 { width: 50%; }
.col-sm-12 { width: 100%; }

/* DataTables */
.dataTables_wrapper .dataTables_filter input {
    background: var(--bg-medium);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 0.4rem 0.75rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--gold);
    outline: none;
}

.dataTables_wrapper .dataTables_info {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-secondary) !important;
    background: var(--bg-medium) !important;
    border: 1px solid var(--border-dark) !important;
    border-radius: 4px !important;
    padding: 0.3rem 0.6rem !important;
    margin: 0 0.15rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--overlay-gold) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .lx-layout {
        grid-template-columns: 1fr;
    }

    .lx-sidebar {
        position: static;
    }

    .lx-hero-stats {
        gap: 1.5rem;
    }

    .lx-ranking-head,
    .lx-ranking-table .lx-ranking-row {
        grid-template-columns: 60px 1fr 65px 65px 100px;
    }

    .lx-footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .lx-nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(13, 10, 6, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-dark);
        gap: 0.25rem;
    }

    .lx-nav-menu.active {
        display: flex;
    }

    .lx-nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .lx-hamburger {
        display: flex;
    }

    .lx-action-cards {
        grid-template-columns: 1fr;
    }

    .lx-hero-stat-value {
        font-size: 1.25rem;
    }

    .lx-hero-stats {
        gap: 1rem;
    }

    .lx-ranking-head,
    .lx-ranking-table .lx-ranking-row {
        grid-template-columns: 50px 1fr 60px 60px;
    }

    .lx-col-guild {
        display: none;
    }

    .lx-footer-content {
        grid-template-columns: 1fr;
    }

    /* UCP responsive */
    .lx-ucp-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .lx-ucp-sidebar.open {
        transform: translateX(0);
    }

    .lx-ucp-main {
        margin-left: 0;
    }

    .lx-ucp-toggle {
        display: block;
    }

    .lx-ranking-tabs {
        flex-wrap: wrap;
    }

    .lx-tab {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .lx-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .lx-btn-lg {
        width: 100%;
        max-width: 280px;
    }

    .lx-hero-logo {
        max-width: 180px;
    }

    .lx-forms-body {
        padding: 1rem 1.5rem 1.5rem;
    }

    .row {
        flex-direction: column;
    }

    .col-xs-3, .col-xs-4, .col-xs-6, .col-xs-8 {
        width: 100%;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-lighter);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-darker);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lx-card, .lx-sidebar-card, .lx-action-card {
    animation: fadeInUp 0.5s ease forwards;
}

.lx-sidebar-card:nth-child(2) { animation-delay: 0.1s; }
.lx-sidebar-card:nth-child(3) { animation-delay: 0.2s; }

/* ============================================
   LAUNCH POPUP
   ============================================ */
.lx-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupFadeIn 0.3s ease;
}

.lx-popup-overlay.lx-popup-closing {
    animation: popupFadeOut 0.3s ease forwards;
}

.lx-popup-card {
    max-width: 400px;
    width: 92%;
    animation: popupScaleIn 0.3s ease;
}

.lx-popup-card .lx-sidebar-card-header {
    position: relative;
}

.lx-popup-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: color 0.2s ease;
}

.lx-popup-close:hover {
    color: var(--gold);
}

.lx-popup-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.lx-popup-date span {
    color: var(--gold-light);
    font-weight: 700;
}

.lx-countdown {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.lx-countdown-item {
    background: var(--bg-medium);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 0.65rem 0.5rem;
    min-width: 60px;
    text-align: center;
}

.lx-countdown-num {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.lx-countdown-label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

@keyframes popupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes popupScaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
