/* 🎨 Dị Giới Online - Game Wiki Stylesheet */

:root {
    --bg-main: #000000;
    --bg-card: rgba(10, 10, 10, 0.75);
    --bg-card-hover: rgba(20, 20, 20, 0.95);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(255, 255, 255, 0.2);
    --primary-color: #ffffff;
    --accent-color: #d4af37;
    /* Màu vàng hoàng gia sang trọng */
    --text-main: #E2E8F0;
    --text-muted: #888888;
    --text-highlight: #FFF;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Roboto', sans-serif;
    --shadow-glow: 0 0 15px rgba(255, 255, 255, 0.05);

    /* Rarity Colors */
    --rarity-common: #888888;
    --rarity-uncommon: #2ecc71;
    --rarity-rare: #3498db;
    --rarity-epic: #9b59b6;
    --rarity-legendary: #f1c40f;
    --rarity-mythic: #e74c3c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 10%, #111111 0%, #000000 70%);
    background-attachment: fixed;
}

/* 🏔️ Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #111111;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
    background: #222222;
}

/* 🧭 Header & Navigation */
header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    object-fit: contain;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.logo-text p {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: #FFF;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.play-now {
    background: transparent;
    color: #FFF;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
    font-family: var(--font-heading);
}

.nav-links a.play-now:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* 📦 Layout Main */
.wiki-layout {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* 🗂️ Sidebar Navigation */
.wiki-sidebar {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 1px;
    color: #FFF;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item button {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    text-align: left;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-item button:hover {
    color: #FFF;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-item.active button {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-color);
    padding-left: 12px;
}

/* 🔍 Search & Filters Bar */
.search-filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px 12px 40px;
    color: #FFF;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--border-color-glow);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-select {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 20px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-select:focus,
.filter-select:hover {
    border-color: var(--primary-color);
    color: #FFF;
}

/* 📄 Content View Area */
.wiki-content {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    min-height: 600px;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    color: #FFF;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* 👾 Monster Cards View */
.monsters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.monster-card {
    background: rgba(13, 17, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.monster-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-glow);
    box-shadow: var(--shadow-glow);
}

.monster-card.boss-card {
    border-color: rgba(231, 76, 60, 0.4);
}

.monster-card.boss-card:hover {
    border-color: rgba(231, 76, 60, 0.8);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
}

.boss-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #FFF;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    z-index: 1;
}

.monster-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

.monster-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.monster-avatar img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    image-rendering: pixelated;
}

.monster-title h3 {
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
}

.monster-title p {
    color: var(--primary-color);
    font-size: 12px;
    text-transform: uppercase;
}

.monster-stats {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.stat-label {
    color: var(--text-muted);
}

.stat-val {
    color: #FFF;
    font-weight: 500;
}

.monster-drops {
    padding: 15px 20px;
}

.drops-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.drops-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.drop-item-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
}

.drop-item-icon img {
    max-width: 80%;
    max-height: 80%;
}

.drop-item-icon:hover {
    border-color: var(--primary-color);
}

/* Tooltip */
.drop-item-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #0B0E14;
    color: #FFF;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.drop-item-icon:hover::after {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* ⚔️ Item Cards View */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.item-card {
    background: rgba(13, 17, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* Dynamic glow depending on rarity */
.item-card.rarity-common {
    border-top: 4px solid var(--rarity-common);
}

.item-card.rarity-uncommon {
    border-top: 4px solid var(--rarity-uncommon);
}

.item-card.rarity-rare {
    border-top: 4px solid var(--rarity-rare);
}

.item-card.rarity-epic {
    border-top: 4px solid var(--rarity-epic);
}

.item-card.rarity-legendary {
    border-top: 4px solid var(--rarity-legendary);
}

.item-card.rarity-mythic {
    border-top: 4px solid var(--rarity-mythic);
}

.item-card.rarity-mythic:hover {
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.35);
    border-color: rgba(231, 76, 60, 0.4);
}

.item-card.rarity-legendary:hover {
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.35);
    border-color: rgba(241, 196, 15, 0.4);
}

.item-image-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.item-img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.item-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item-name {
    color: #FFF;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.item-rarity-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.item-rarity-badge.common {
    background: rgba(148, 163, 184, 0.15);
    color: var(--rarity-common);
}

.item-rarity-badge.uncommon {
    background: rgba(46, 204, 113, 0.15);
    color: var(--rarity-uncommon);
}

.item-rarity-badge.rare {
    background: rgba(52, 152, 219, 0.15);
    color: var(--rarity-rare);
}

.item-rarity-badge.epic {
    background: rgba(155, 89, 182, 0.15);
    color: var(--rarity-epic);
}

.item-rarity-badge.legendary {
    background: rgba(241, 196, 15, 0.15);
    color: var(--rarity-legendary);
}

.item-rarity-badge.mythic {
    background: rgba(231, 76, 60, 0.15);
    color: var(--rarity-mythic);
}

.item-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex: 1;
}

.item-stats-box {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.item-stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

/* 🛠️ Crafting View Table */
.crafting-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.crafting-recipe-card {
    background: rgba(13, 17, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}

.recipe-header {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.recipe-flow {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.recipe-stones {
    flex: 1;
    min-width: 250px;
}

.recipe-arrow {
    font-size: 24px;
    color: var(--text-muted);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.recipe-results {
    flex: 1.5;
    min-width: 300px;
}

.stones-grid-view {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stone-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
}

.stone-img {
    width: 32px;
    height: 32px;
}

.stone-name {
    font-size: 12px;
    font-weight: 500;
    color: #FFF;
}

.candidates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
}

.candidate-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.candidate-icon img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.candidate-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.candidate-icon.rarity-common {
    border-color: var(--rarity-common);
}

.candidate-icon.rarity-uncommon {
    border-color: var(--rarity-uncommon);
}

.candidate-icon.rarity-rare {
    border-color: var(--rarity-rare);
}

.candidate-icon.rarity-epic {
    border-color: var(--rarity-epic);
}

.candidate-icon.rarity-legendary {
    border-color: var(--rarity-legendary);
}

.candidate-icon.rarity-mythic {
    border-color: var(--rarity-mythic);
}

/* Tooltip */
.candidate-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: #FFF;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.candidate-icon:hover::after {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* 🌀 Devil Fruit Skills View */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.fruit-section {
    background: rgba(13, 17, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.fruit-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--accent-color);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.skill-card {
    background: rgba(20, 26, 38, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: var(--border-color-glow);
    transform: scale(1.02);
}

.skill-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.skill-card-icon {
    width: 32px;
    height: 32px;
}

.skill-details {
    flex: 1;
}

.skill-card-name {
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.skill-card-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.skill-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.skill-tag {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.skill-tag.cooldown {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.skill-tag.range {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.skill-tag.damage {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

/* 📖 Beginner Guide View */
.guide-article {
    max-width: 800px;
    margin: 0 auto;
}

.guide-article h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.guide-article p {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.guide-article ul,
.guide-article ol {
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.guide-article li {
    margin-bottom: 6px;
}

.guide-card-ui {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.guide-card-premium {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.guide-card-premium:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
}

.guide-card-premium h4 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 500px;
}

.guide-table th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent-color);
    font-family: var(--font-heading);
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.guide-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.guide-table tr:last-child td {
    border-bottom: none;
}

.guide-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* ==========================================================================
   🎮 MOBILE WIKI DROPDOWNS (Glassmorphism & Neon Accent)
   ========================================================================== */
.wiki-mobile-dropdown,
.guide-mobile-dropdown {
    display: none;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    z-index: 100;
}

.mobile-dropdown-trigger,
.mobile-subdropdown-trigger {
    width: 100%;
    background: rgba(13, 17, 26, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-trigger:hover,
.mobile-subdropdown-trigger:hover,
.mobile-dropdown-trigger.active,
.mobile-subdropdown-trigger.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    background: rgba(20, 26, 38, 0.85);
}

.mobile-dropdown-trigger span,
.mobile-subdropdown-trigger span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-dropdown-trigger i.fa-chevron-down,
.mobile-subdropdown-trigger i.fa-chevron-down {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
}

.mobile-dropdown-trigger.active i.fa-chevron-down,
.mobile-subdropdown-trigger.active i.fa-chevron-down {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.mobile-dropdown-menu,
.mobile-subdropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: rgba(10, 14, 23, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    display: none;
    flex-direction: column;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
}

.mobile-dropdown-menu.show,
.mobile-subdropdown-menu.show {
    display: flex;
    animation: dropdownSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-dropdown-menu li,
.mobile-subdropdown-menu li {
    padding: 12px 20px;
    font-size: 13.5px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
}

.mobile-dropdown-menu li:hover,
.mobile-subdropdown-menu li:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 24px;
}

.mobile-dropdown-menu li.active,
.mobile-subdropdown-menu li.active {
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.08);
    font-weight: 600;
    border-left: 3px solid var(--accent-color);
}

@keyframes dropdownSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   🎮 IN-GAME MOCKUP UI PANELS (RPG & MMO Aesthetic)
   ========================================================================== */
.ingame-ui-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 15px;
    width: 100%;
}

.ingame-ui-grid .col-span-2 {
    grid-column: span 2;
}

.ingame-panel-card {
    background: rgba(13, 18, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.ingame-panel-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.05), 0 0 15px rgba(0, 0, 0, 0.6);
}

.panel-header {
    background: linear-gradient(90deg, rgba(20, 26, 38, 0.9), rgba(13, 18, 28, 0.5));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.panel-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.panel-badge.epic {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.3);
}

.panel-badge.legendary {
    background: rgba(241, 196, 15, 0.15);
    color: var(--accent-color);
    border-color: rgba(241, 196, 15, 0.3);
}

.panel-badge.mythic {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

.panel-badge.rare {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.3);
}

.panel-badge.common {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.1);
}

.panel-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.panel-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
}

/* --- IN-GAME SLOTS --- */
.ingame-slot {
    width: 54px;
    height: 54px;
    background: rgba(8, 10, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
}

.ingame-slot img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.ingame-slot:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1), inset 0 2px 5px rgba(0, 0, 0, 0.6);
}

.ingame-slot.rare {
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.15);
}

.ingame-slot.epic {
    border-color: #9b59b6;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.2);
}

.ingame-slot.legendary {
    border-color: #f1c40f;
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.25);
}

.ingame-slot.mythic {
    border-color: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.35);
}

.ingame-slot.glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 9px;
    border: 1px solid inherit;
    animation: slotGlow 2s infinite alternate;
    pointer-events: none;
}

@keyframes slotGlow {
    0% {
        opacity: 0.3;
        box-shadow: 0 0 4px currentColor;
    }

    100% {
        opacity: 0.9;
        box-shadow: 0 0 12px currentColor;
    }
}

.slot-count {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #2ecc71;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.slot-level {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #f1c40f;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.slot-plus {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    align-self: center;
}

/* --- BUTTONS SYSTEM --- */
.ingame-btn-blue,
.ingame-btn-gold,
.ingame-btn-purple,
.ingame-btn-orange {
    width: 100%;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: auto;
}

.ingame-btn-blue {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    border: 1px solid #3b82f6;
}

.ingame-btn-blue:hover {
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.ingame-btn-gold {
    background: linear-gradient(135deg, #b38728, #f1c40f);
    color: #000;
    border: 1px solid #f3f4f6;
}

.ingame-btn-gold:hover {
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
    transform: translateY(-1px);
}

.ingame-btn-purple {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: 1px solid #a78bfa;
}

.ingame-btn-purple:hover {
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

/* --- CRAFTING MOCKUP --- */
.ingame-crafting-mockup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.craft-stone-slots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.craft-arrow {
    text-align: center;
    font-size: 11px;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 1px;
}

.craft-result {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.result-info {
    flex: 1;
}

.mythic-text {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #e74c3c;
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.2);
}

.glow-gold {
    color: var(--accent-color) !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3) !important;
}

.rarity-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.rarity-tag.mythic {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* --- ENHANCE MOCKUP --- */
.ingame-enhance-mockup {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 0, 0, 0.4);
    padding: 14px;
    border-radius: 8px;
}

.enhance-slots-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.success-bar-container {
    height: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.success-percent {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* --- SHOP MOCKUP --- */
.ingame-shop-mockup {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.shop-item-card {
    background: rgba(20, 26, 38, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.shop-item-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.shop-item-name {
    font-size: 10.5px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.shop-item-price {
    font-size: 9.5px;
    color: var(--accent-color);
    font-weight: 700;
}

/* --- PET MOCKUP --- */
.ingame-pet-mockup {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pet-visual {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pet-avatar-wrap {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: rgba(155, 89, 182, 0.08);
    border: 1px solid rgba(155, 89, 182, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.1);
}

.pet-stats-summary {
    flex: 1;
}

.epic-text {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #9b59b6;
}

.pet-level {
    font-size: 10px;
    color: var(--text-muted);
}

.pet-exp-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}

.pet-exp-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

.pet-exp-text {
    display: none;
}

.pet-skills-row {
    display: flex;
    gap: 8px;
}

.pet-skill-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 10px;
    color: var(--text-main);
    padding: 3px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- WING MOCKUP --- */
.ingame-wing-mockup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 8px;
}

.wings-glow-icon {
    animation: wingPulse 2s infinite alternate;
}

@keyframes wingPulse {
    0% {
        transform: scale(0.9);
        filter: drop-shadow(0 0 2px #e74c3c);
    }

    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px #e74c3c);
    }
}

.wing-bonus {
    font-size: 10.5px;
    color: #2ecc71;
    font-weight: 600;
}

/* --- DUNGEON CARD SPECIFIC --- */
.dungeon-card {
    min-height: 250px;
}

.dungeon-meta-row {
    margin-bottom: 8px;
}

.dungeon-req-ticket {
    font-size: 11px;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.mini-ticket-img {
    height: 12px;
    width: auto;
}

.loot-preview {
    margin: 12px 0;
}

.loot-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.loot-slots {
    display: flex;
    gap: 10px;
}

.loot-slots .ingame-slot {
    width: 44px;
    height: 44px;
}

/* --- BOSS HP BAR --- */
.boss-hp-mockup {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.15);
    margin-bottom: 12px;
}

.boss-info-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 5px;
}

.boss-name-text {
    color: #e74c3c;
}

.boss-lvl-text {
    color: var(--accent-color);
}

.boss-hp-bar-container {
    height: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boss-hp-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
}

.boss-hp-text {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* --- WORLDBOSS TIMER --- */
.worldboss-timer-mockup {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
    margin-bottom: 12px;
}

.timer-countdown {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.timer-desc {
    font-size: 10.5px;
    color: var(--text-muted);
}

/* --- QUEST BOARD --- */
.quest-board-mockup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.quest-log-card {
    background: rgba(13, 18, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
}

.quest-log-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(20, 26, 38, 0.95);
}

.quest-status {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.quest-status.completed {
    background: rgba(46, 204, 113, 0.08);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.quest-status.locked {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.quest-content-main {
    flex: 1;
}

.quest-title {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quest-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.quest-rewards-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quest-rewards-row span {
    font-size: 11px;
    color: var(--text-muted);
}

.reward-mini-slot {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mini-icon {
    height: 10px;
    width: auto;
}

.quest-action-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quest-action-btn:hover:not(:disabled) {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.quest-action-btn.disabled {
    border-color: rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01) !important;
    color: rgba(255, 255, 255, 0.2) !important;
    cursor: not-allowed;
}

/* --- GUILD & SIEGE WAR --- */
.guild-buffs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buff-item-ui {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.success-text {
    color: #2ecc71;
}

.guildwar-pillars-mockup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pillar-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
}

.pillar-status.occupied-red {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.pillar-status.occupied-blue {
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.pillar-status.contested {
    background: rgba(241, 196, 15, 0.08);
    border: 1px solid rgba(241, 196, 15, 0.2);
    color: var(--accent-color);
}

.pillar-name {
    font-family: var(--font-heading);
    font-weight: 700;
}

.pillar-owner {
    font-size: 10.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- CENTRAL CASTLE SIEGE --- */
.royal-castle-siege-mockup {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.castle-details {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.4);
    padding: 18px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    flex-wrap: wrap;
}

.royal-emblem {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(0, 0, 0, 0));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.royal-crown-icon {
    font-size: 28px;
    color: var(--accent-color);
    animation: crownFloat 2s infinite alternate;
}

@keyframes crownFloat {
    0% {
        transform: translateY(0) rotate(-5deg);
    }

    100% {
        transform: translateY(-4px) rotate(5deg);
    }
}

.royal-info {
    flex: 1;
    min-width: 200px;
}

.lord-title {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 4px 0 8px 0;
}

.lord-name {
    color: #fff;
    font-weight: 700;
}

.tax-rate-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 10.5px;
    color: #2ecc71;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lord-privilege-badge {
    background: linear-gradient(135deg, rgba(20, 26, 38, 0.8), rgba(0, 0, 0, 0.5));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.privilege-title {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.exclusive-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.privilege-desc {
    font-size: 12px;
    color: var(--text-main);
}

/* 📖 Sub-tabs in Beginner Guide */
.guide-subtabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.guide-subtabs::-webkit-scrollbar {
    display: none;
}

.subtab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.subtab-btn:hover {
    color: #FFF;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.subtab-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.05));
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.guide-subcontent {
    display: none;
}

.guide-subcontent.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* 🌀 Interactive Devil Fruit styles */
.fruit-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.fruit-select-btn {
    background: rgba(20, 26, 38, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.fruit-select-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.fruit-select-icon {
    font-size: 26px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

.fruit-img-pic {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fruit-select-btn:hover .fruit-img-pic {
    transform: scale(1.18) rotate(8deg) translateY(-2px);
    filter: drop-shadow(0 4px 8px var(--fruit-color));
}

.fruit-img-fallback {
    font-size: 26px;
}

.fruit-select-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-main);
}

.fruit-select-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px var(--fruit-color-alpha);
    border-color: var(--fruit-color);
}

.fruit-select-btn.active .fruit-select-icon {
    animation: floatFruit 2s ease-in-out infinite;
}

@keyframes floatFruit {

    0%,
    100% {
        transform: translateY(0) scale(1.1);
    }

    50% {
        transform: translateY(-4px) scale(1.1);
    }
}

.fruit-detail-panel {
    background: rgba(13, 17, 26, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fruit-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.fruit-detail-avatar {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px var(--fruit-color-alpha);
    position: relative;
    overflow: visible;
}

.fruit-detail-img-pic {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px var(--fruit-color));
    animation: floatFruitImg 3s ease-in-out infinite;
}

@keyframes floatFruitImg {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.06);
    }
}

.fruit-detail-fallback {
    font-size: 36px;
}

.fruit-detail-info {
    flex: 1;
    min-width: 250px;
}

.fruit-detail-name {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--accent-color);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fruit-detail-type {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    background: var(--fruit-color-alpha);
    color: var(--fruit-color);
    border: 1px solid var(--fruit-color);
}

.fruit-detail-desc {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.5;
}

.fruit-detail-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.meta-badge strong {
    color: #FFF;
}

/* Ngăn tràn chữ và tự động xuống hàng trên mọi kích thước màn hình */
.guide-article,
.wiki-content,
p,
li,
h1,
h2,
h3,
h4 {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 📱 Responsive Adjustments */
@media (max-width: 1024px) {
    .wiki-layout {
        grid-template-columns: 1fr !important;
        margin: 15px auto !important;
        padding: 0 12px !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .wiki-sidebar {
        position: relative !important;
        top: 0 !important;
        z-index: 99 !important;
        margin-bottom: 15px !important;
        padding: 12px !important;
        background: rgba(10, 10, 10, 0.9) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border-radius: 12px !important;
        border: 1px solid var(--border-color) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .sidebar-title {
        display: none !important;
    }

    .sidebar-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        /* Wrap into a gorgeous grid on mobile! */
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-bottom: 0 !important;
    }

    .sidebar-item {
        flex: 1 1 calc(50% - 8px) !important;
        /* 2 buttons per row! */
        min-width: 120px !important;
    }

    .sidebar-item button {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
        padding: 10px 6px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid var(--border-color) !important;
    }

    .sidebar-item button:hover {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .sidebar-item.active button {
        border: 1px solid var(--accent-color) !important;
        color: var(--accent-color) !important;
        background: rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.15) !important;
        padding-left: 6px !important;
    }

    .wiki-content {
        padding: 15px !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 768px) {
    header {
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
    }

    .header-container {
        padding: 10px 12px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .logo-container {
        gap: 8px !important;
    }

    .logo-img {
        height: 28px !important;
    }

    .logo-text h1 {
        font-size: 14px !important;
    }

    .logo-text p {
        display: none !important;
    }

    .nav-links {
        width: auto !important;
        gap: 6px !important;
    }

    .nav-links a {
        font-size: 11px !important;
        padding: 6px 10px !important;
        border-radius: 4px !important;
    }

    .nav-links a[href="/"] {
        display: none !important;
    }

    .wiki-sidebar {
        position: relative !important;
        top: 0 !important;
        z-index: 99 !important;
        margin-bottom: 12px !important;
        padding: 8px !important;
        background: rgba(10, 10, 10, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .search-filter-bar {
        gap: 10px !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    .search-wrapper {
        min-width: 100% !important;
    }

    .filter-select {
        flex: 1 !important;
        padding: 10px 15px !important;
        font-size: 13px !important;
    }

    .monsters-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .skills-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .skill-card {
        padding: 12px !important;
    }

    .recipe-flow {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }

    .recipe-arrow {
        text-align: center !important;
        transform: rotate(90deg) !important;
        margin: 5px 0 !important;
        font-size: 18px !important;
    }

    .recipe-stones {
        min-width: 100% !important;
    }

    .recipe-results {
        min-width: 100% !important;
    }

    .guide-grid {
        grid-template-columns: 1fr !important;
    }

    .guide-subtabs {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        flex-wrap: wrap !important;
        /* Grid wrap on subtabs! */
        justify-content: stretch !important;
        gap: 6px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    .subtab-btn {
        flex: 1 1 calc(50% - 6px) !important;
        /* 2 columns! */
        padding: 8px 10px !important;
        font-size: 11px !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 8px !important;
    }

    .fruit-selector {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .fruit-select-btn {
        padding: 10px 6px !important;
    }

    .fruit-select-icon {
        font-size: 22px !important;
    }

    .fruit-select-name {
        font-size: 10px !important;
    }

    .fruit-detail-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .fruit-detail-info {
        min-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .fruit-detail-meta {
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none !important;
    }

    .header-container {
        padding: 8px 10px !important;
    }

    .nav-links a {
        font-size: 10px !important;
        padding: 5px 8px !important;
    }

    .fruit-selector {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .subtab-btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
}