/* ==========================================================================
   CSS DA PÁGINA DE DETALHES DA WIKI RVS (RE:VERSE SUPREMACY)
   Design Minimalista, Moderno, Sem Efeitos Neon/Glow e 100% Responsivo
   ========================================================================== */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.rvs-page-body {
    background-color: #0b0c10;
    color: #f3f4f6;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.rvs-page-main {
    min-height: 100vh;
    padding-top: 5.5rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Remover orbes e efeitos pesados de glow neon */
.rvs-page-glows,
.rvs-p-orb-1,
.rvs-p-orb-2,
.rvs-p-orb-3,
.card-glow {
    display: none !important;
}

/* Container Master */
.rvs-wiki-layout {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    min-width: 0;
}

/* Sidebar Wiki Sticky (Desktop) */
.rvs-wiki-sidebar {
    position: sticky;
    top: 90px;
    background: rgba(18, 20, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-title i {
    color: #818cf8;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    font-weight: 700;
}

.sidebar-link.active i {
    color: #818cf8;
}

/* Área de Conteúdo da Wiki */
.rvs-wiki-content {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.rvs-wiki-content * {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Seções da Wiki */
.wiki-section {
    scroll-margin-top: 130px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.wiki-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
    width: 100%;
    box-sizing: border-box;
}

.wiki-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.wiki-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.5px;
    word-break: break-word;
}

.wiki-desc {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0.75rem 0 0 0;
    word-break: break-word;
}

.wiki-desc strong {
    color: #e2e8f0;
}

/* Card Box Genérico */
.wiki-card-box {
    background: rgba(18, 20, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 14px;
    line-height: 1.6;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* Grids de Classes */
.wiki-classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.wiki-class-card {
    background: rgba(18, 20, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
}

.wiki-class-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
}

.wiki-class-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wiki-class-card h3 i {
    font-size: 1.05rem;
    opacity: 0.9;
}

.wiki-class-card.warrior h3 { color: #f87171; }
.wiki-class-card.mage h3 { color: #60a5fa; }
.wiki-class-card.ranger h3 { color: #34d399; }
.wiki-class-card.assassin h3 { color: #f472b6; }

.wiki-class-card .specialty {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    color: #9ca3af;
}

.wiki-class-card.warrior .specialty { color: rgba(248, 113, 113, 0.8); }
.wiki-class-card.mage .specialty { color: rgba(96, 165, 250, 0.8); }
.wiki-class-card.ranger .specialty { color: rgba(52, 211, 153, 0.8); }
.wiki-class-card.assassin .specialty { color: rgba(244, 114, 182, 0.8); }

.wiki-class-card p {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.wiki-class-card .class-base-stats {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: #6b7280;
}

/* Callout Box */
.wiki-callout {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-top: 1.5rem;
    box-sizing: border-box;
    width: 100%;
}

.wiki-callout .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wiki-callout .content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff;
}

.wiki-callout .content p {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

/* Ascension Grid */
.wiki-ascension-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.wiki-ascension-card {
    background: rgba(18, 20, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    border-radius: 14px;
    box-sizing: border-box;
    min-width: 0;
}

.wiki-ascension-card.reincarnation {
    border-color: rgba(139, 92, 246, 0.25);
}

.wiki-ascension-card.veteran {
    border-color: rgba(56, 189, 248, 0.25);
}

.wiki-ascension-card h4 {
    margin-top: 0;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.wiki-ascension-card.reincarnation h4 { color: #a78bfa; }
.wiki-ascension-card.veteran h4 { color: #38bdf8; }

.wiki-ascension-card p {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Atributos Section */
.wiki-attrs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
    width: 100%;
    box-sizing: border-box;
}

.wiki-attr-card {
    background: rgba(18, 20, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
}

.wiki-attr-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.wiki-attr-card .abbr {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.wiki-attr-card .abbr.str { background: #ef4444; }
.wiki-attr-card .abbr.agi { background: #f97316; }
.wiki-attr-card .abbr.int { background: #3b82f6; }
.wiki-attr-card .abbr.vit { background: #10b981; }
.wiki-attr-card .abbr.luk { background: #ec4899; }

.wiki-attr-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff;
}

.wiki-attr-card p {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

/* Biomas / Dungeons */
.wiki-biomes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.wiki-biome-item {
    background: rgba(18, 20, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 48px 180px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.wiki-biome-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.biome-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.wiki-biome-item.forest .biome-icon { color: #10b981; }
.wiki-biome-item.sarcophagus .biome-icon { color: #eab308; }
.wiki-biome-item.cybertron .biome-icon { color: #38bdf8; }
.wiki-biome-item.lava .biome-icon { color: #f97316; }
.wiki-biome-item.darkness .biome-icon { color: #a855f7; }
.wiki-biome-item.divine .biome-icon { color: #a5f3fc; }

.biome-meta h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff;
}

.biome-meta .level-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.biome-details p {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.biome-mobs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
}

.biome-mobs-list span {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Bestiário & Itens Containers */
.wiki-bestiary-container,
.wiki-items-container {
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(18, 20, 26, 0.6);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.wiki-bestiary-container::-webkit-scrollbar,
.wiki-items-container::-webkit-scrollbar {
    width: 6px;
}

.wiki-bestiary-container::-webkit-scrollbar-track,
.wiki-items-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.wiki-bestiary-container::-webkit-scrollbar-thumb,
.wiki-items-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.bestiary-list,
.items-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.bestiary-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1.2fr) 90px 130px;
    gap: 0.75rem;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

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

.bestiary-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mob-emoji {
    font-size: 1.1rem;
    color: #818cf8;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mob-name h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.mob-name span {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mob-level-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: #a78bfa;
    text-align: left;
}

.mob-location {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: right;
}

/* Relíquia Box */
.wiki-relic-box {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 2rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.wiki-relic-icon {
    width: 50px;
    height: 50px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    flex-shrink: 0;
}

.item-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1.3fr) minmax(0, 1fr) 90px 100px;
    gap: 0.75rem;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

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

.item-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.item-emoji {
    font-size: 1.1rem;
    color: #818cf8;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-name-col h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.item-name-col span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
}

.item-name-col span.comum { background: rgba(161, 161, 170, 0.1); color: #a1a1aa; border: 1px solid rgba(161, 161, 170, 0.2); }
.item-name-col span.incomum { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.item-name-col span.raro { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.item-name-col span.epico { background: rgba(168, 85, 247, 0.1); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }
.item-name-col span.lendario { background: rgba(236, 72, 153, 0.1); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.2); }
.item-name-col span.místico { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.item-stats-col {
    font-size: 0.82rem;
    color: #38bdf8;
    font-weight: 600;
}

.item-type-col {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: capitalize;
}

.item-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f59e0b;
    text-align: right;
}

/* Habilidades / Cheat Skills */
.wiki-skills-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 1.25rem;
    flex-wrap: nowrap;
    background: rgba(255, 255, 255, 0.02);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.wiki-skills-tabs::-webkit-scrollbar {
    display: none;
}

.skill-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.skill-tab-btn.active {
    background: rgba(99, 102, 241, 0.2);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: none;
}

.skill-tab-content {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.skill-tab-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.wiki-skill-card {
    background: rgba(18, 20, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: transform 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
}

.wiki-skill-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.skill-rank-badge {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: none;
}

.skill-rank-badge.ss { background: #ef4444; color: #ffffff; }
.skill-rank-badge.s { background: #ea580c; color: #ffffff; }
.skill-rank-badge.a { background: #d97706; color: #ffffff; }
.skill-rank-badge.b { background: #8b5cf6; color: #ffffff; }
.skill-rank-badge.c { background: #3b82f6; color: #ffffff; }
.skill-rank-badge.d { background: #10b981; color: #ffffff; }
.skill-rank-badge.e { background: #14b8a6; color: #ffffff; }
.skill-rank-badge.f { background: #6b7280; color: #ffffff; }

.skill-detail h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.skill-type-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.skill-detail p {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0.35rem 0 0 0;
}

/* PvP Details */
.pvp-info-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.pvp-text-col p {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.pvp-mechanics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.pvp-mech-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
}

.pvp-mech-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #22d3ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pvp-mech-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: #ffffff;
}

.pvp-mech-info p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

.pvp-combat-card {
    background: rgba(18, 20, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

/* Economia */
.wiki-economy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.wiki-economy-card {
    background: rgba(18, 20, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    border-radius: 14px;
    box-sizing: border-box;
    min-width: 0;
}

.wiki-economy-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wiki-economy-card p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVIDADE COMPLETA E IMPECÁVEL (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 1024px) {
    .rvs-wiki-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .rvs-wiki-sidebar {
        position: sticky;
        top: 65px;
        z-index: 40;
        background: rgba(11, 12, 16, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        margin: 0 0 1rem 0;
        padding: 8px 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 2px 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }

    .sidebar-link {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 6px 12px;
        border-radius: 100px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
    }

    .sidebar-link.active {
        background: #6366f1;
        color: #ffffff;
        border-color: #6366f1;
    }

    .sidebar-link.active i {
        color: #ffffff;
    }

    .rvs-wiki-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .pvp-info-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .rvs-page-main {
        padding-top: 4.5rem;
        padding-bottom: 3rem;
    }

    .rvs-wiki-content {
        gap: 2.5rem;
    }

    .wiki-header {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }

    .wiki-biome-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .bestiary-item {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        gap: 0.6rem;
        padding: 8px 12px;
    }

    .bestiary-item .mob-location {
        display: none;
    }

    .item-row {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        gap: 0.6rem;
        padding: 8px 12px;
    }

    .item-row .item-type-col,
    .item-row .item-value {
        display: none;
    }

    .wiki-relic-box {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .wiki-callout {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .rvs-wiki-layout {
        padding: 0 0.75rem;
    }

    .rvs-wiki-sidebar {
        padding: 6px 8px;
    }

    .wiki-classes-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wiki-attrs-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .skill-tab-content.active {
        grid-template-columns: minmax(0, 1fr);
    }

    .wiki-ascension-grid,
    .wiki-economy-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
