/* =========================================================
   MU ONLINE - THEME MODERN DARK & GOLD (2026 EDITION)
   ========================================================= */

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

:root {
    --bg-main: #0b0b0e;
    --bg-card: rgba(18, 18, 24, 0.85);
    --bg-card-border: rgba(212, 175, 55, 0.15);
    --gold-primary: #d4af37;
    --gold-hover: #f39c12;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --text-color: #e1e1e6;
    --text-muted: #94a3b8;
    --accent-red: #ff4757;
    --accent-green: #2ed573;
    --accent-blue: #70a1ff;
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    background-image: linear-gradient(rgba(11, 11, 14, 0.85), rgba(11, 11, 14, 0.95)), url('../images/bg-mu.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(10, 11, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 20%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    transition: var(--transition);
}

.logo:hover {
    filter: drop-shadow(0 0 18px var(--gold-glow));
    transform: scale(1.02);
}

.logo i {
    -webkit-text-fill-color: initial;
    color: var(--gold-primary);
    font-size: 24px;
    text-shadow: 0 0 12px var(--gold-glow);
}

nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: var(--transition);
}

nav a:hover {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
}

nav a.active {
    color: var(--gold-primary) !important;
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* =========================================================
   LAYOUT PRINCIPAL
   ========================================================= */

.main-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 24px;
    flex: 1;
    width: 100%;
}

.home-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.home-content {
    flex: 1;
    min-width: 0;
}

.sidebar-right {
    width: 340px;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .home-container {
        flex-direction: column;
    }
    .sidebar-right {
        width: 100%;
    }
}

.card, .home-content .card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(6px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.1);
}

h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    margin-bottom: 20px;
    font-size: 20px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--bg-card-border);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   ELEMENTOS DE FORMULÁRIO E INPUTS
   ========================================================= */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea,
.card input[type="text"],
.card input[type="password"],
.card input[type="email"],
.card input[type="number"],
.card select,
.card textarea {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    padding: 12px 16px;
    background: #050608 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 10px var(--gold-glow) !important;
}

button, .btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, #b8860b 100%);
    border: none;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

button:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #f39c12 0%, var(--gold-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

/* =========================================================
   TABELAS E RANKINGS
   ========================================================= */

.info-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.info-table th, 
.info-table td {
    padding: 10px 6px;
    text-align: left;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-table th:nth-child(1), .info-table td:nth-child(1) { width: 12%; }
.info-table th:nth-child(2), .info-table td:nth-child(2) { width: 40%; }
.info-table th:nth-child(3), .info-table td:nth-child(3) { width: 28%; }
.info-table th:nth-child(4), .info-table td:nth-child(4) { width: 20%; text-align: right; }

.info-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--gold-primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--bg-card-border);
}

.info-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ranking-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ranking-nav a {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: var(--transition);
}

.ranking-nav a:hover, .ranking-nav a.active {
    background: var(--gold-primary);
    color: #000;
    font-weight: bold;
    border-color: var(--gold-primary);
}

/* =========================================================
   UTILITÁRIOS E CLASSES AUXILIARES
   ========================================================= */

.event-list {
    list-style: none;
    padding: 0;
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.event-item:last-child {
    border-bottom: none;
}

.status-online { color: var(--accent-green); font-weight: bold; }
.status-offline { color: var(--accent-red); font-weight: bold; }
.status-time { color: var(--accent-blue); font-weight: bold; }

.currency-cash { color: var(--accent-blue); font-weight: bold; }
.currency-gold { color: var(--gold-primary); font-weight: bold; }
.currency-real { color: var(--accent-green); font-weight: bold; }

.progress-bar-bg {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

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

/* =========================================================
   PAINEL DO JOGADOR (SIDEBAR MENU)
   ========================================================= */

.player-panel-card {
    background: rgba(18, 20, 26, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 20px;
}

.panel-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.panel-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: rgba(5, 6, 8, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.panel-btn i {
    color: var(--gold-primary);
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.panel-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold-primary);
    transform: translateX(3px);
}

.panel-btn.btn-logout {
    border-color: rgba(255, 71, 87, 0.25);
    background: rgba(255, 71, 87, 0.05);
}

.panel-btn.btn-logout i {
    color: var(--accent-red);
}

.panel-btn.btn-logout:hover {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.4);
    color: var(--accent-red);
}

.panel-badge-ativo {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =========================================================
   AJUSTE DA LOGO DO CABEÇALHO
   ========================================================= */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: transparent !important;
}

.logo img {
    height: 42px;
    width: auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    object-fit: contain;
}

/* =========================================================
   RODAPÉ
   ========================================================= */

footer {
    background: rgba(5, 6, 8, 0.95);
    border-top: 1px solid var(--bg-card-border);
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--text-muted);
}