﻿/* Estilos generales */
@font-face {
    font-family: 'TrajanPro';
    src: url('../fonts/TrajanPro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TrajanPro';
    src: url('../fonts/TrajanPro-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/Cinzel-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

:root {
    --primary-color: #8b5a2b;
    --secondary-color: #d4af37;
    --dark-color: #1a1a1a;
    --light-color: #f4f4f4;
    --accent-color: #d4af37;
    --text-color: #333;
    --text-light: #fff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-color);
    background-color: #121212;
    background-image: url('../imgs/background.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    user-select: none;
    /* Prevent text selection */
    cursor: default;
    /* Arrow cursor always */
}

/* Allow selection in inputs */
input,
textarea {
    user-select: text;
    cursor: text;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #6b4220;
    transform: translateY(-2px);
}

.btn-donar {
    /* Removed specific red styling to match other links or be neutral */
    color: var(--light-color);
}

.btn-donar:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-discord {
    background-color: #7289da;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.btn-discord:hover {
    background-color: #5b6eae;
}

/* Header */
header {
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    height: 72px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    white-space: nowrap;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-color);
    font-weight: 500;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--light-color);
    font-size: 1.2rem;
}

.social-icon:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* News Scrollable Area */
.news-content {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 15px;
    /* Space for scrollbar */
    /* Optional: cosmetic enhancements for the container */
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar for News */
.news-content::-webkit-scrollbar {
    width: 8px;
}

.news-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.news-content::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.news-content::-webkit-scrollbar-thumb:hover {
    background: #e5c15d;
    /* Lighter gold */
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../imgs/press.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
    position: relative;
    overflow: hidden;
    padding: 72px 1rem 0;
    /* padding-top 72px goes under header */
    margin-top: 0;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    /* Behind content but above background */
    pointer-events: none;
    /* Interact through particles */
}

.hero-content {
    z-index: 2;
    /* Ensure content is above particles */
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-family: 'Cinzel', serif;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--light-color);
}

.server-status {
    display: flex;
    flex-direction: column;
    /* Stacked by default (Mobile) */
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Desktop: Row layout */
@media (min-width: 769px) {
    .server-status {
        flex-direction: row;
        gap: 15px;
    }
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #30c45c;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(58, 230, 36, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Features */
.features {
    padding: 5rem 0;
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../imgs/background.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 5%;
}

.feature-card {
    background: rgba(30, 30, 30, 0.8);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid var(--secondary-color);
    color: var(--light-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Gallery */
.gallery {
    padding: 5rem 0;
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../imgs/background.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 5%;
}

.gallery-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Gallery Carousel */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--secondary-color);
}

.carousel-slide-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 400px;
    /* Alto fijo */
    display: flex;
    justify-content: center;
    background: #000;
}

.carousel-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.carousel-slide img:hover {
    transform: scale(1.05);
}

/* Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-50%) scale(1.1);
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: var(--secondary-color);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    animation: zoomIn 0.3s;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--secondary-color);
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        height: 300px;
    }
}

.placeholder {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
}

/* Download Section */
.download {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../imgs/download-bg.jpg') no-repeat center center/cover;
    color: var(--text-light);
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.download p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Donate Section */
.donate {
    padding: 5rem 0;
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
}

.donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../imgs/background.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.donate h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.donate>p {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: var(--light-color);
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.donation-option {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: var(--light-color);
}

.donation-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.donation-option.featured {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

.donation-option.featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.donation-option h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.donation-option ul {
    margin: 1.5rem 0;
    text-align: left;
}

.donation-option ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.donation-option ul li:before {
    content: 'âœ“';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.btn-donate {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-donate:hover {
    background-color: #6b4220;
}

/* News Section */
.news {
    padding: 5rem 0;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    position: relative;
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../imgs/background.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.news h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.news-content {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(30, 30, 30, 0.9);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.news-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--light-color);
    padding: 3rem 0 1rem;
    border-top: 2px solid var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-section a {
    display: block;
    color: #ccc;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    color: #999;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--dark-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 0;
        transition: var(--transition);
        padding: 2rem 0;
        transition: var(--transition);
        z-index: 999;
        /* Glassmorphism for Mobile Menu */
        background-color: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .logo {
        z-index: 1000;
        /* Ensure logo stays above menu */
        position: relative;
    }

    .menu-toggle {
        z-index: 1000;
        /* Ensure hamburger stays above menu */
        position: relative;
    }

    /* Mobile Nav Link Improvements */
    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Wiki Header Mobile Fix */
    .wiki-header {
        margin-top: 60px !important;
        margin-bottom: 2rem !important;
    }

    .wiki-header h1 {
        font-size: 2.2rem !important;
    }

    /* Better Mobile Grid */
    .wiki-grid,
    .wiki-grid-2col {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 1.5rem !important;
    }

    .market-items {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        justify-content: center;
    }

    /* Market Text Readability */
    .item-description {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    .nav-links.active {
        left: 0;
    }

    .social {
        display: none;
    }

    /* Mobile Menu Typography & Spacing */
    .nav-links a {
        display: block;
        padding: 20px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-family: 'Cinzel', serif;
        /* Consistent elegant font */
        font-size: 1.2rem;
        letter-spacing: 2px;
        text-align: center;
        text-transform: uppercase;
        color: #ddd;
        transition: color 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--secondary-color);
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Hero adjustments */
    .hero {
        margin-top: 60px;
    }

    /* Fix overlap for Wiki Content due to fixed header */
    .wiki-content {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .feature-grid,
    .gallery-grid,
    .donation-options {
        grid-template-columns: 1fr;
        padding: 0 10%;
    }

    .donation-option.featured {
        transform: none;
    }

    .donation-option.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .feature-grid,
    .gallery-grid,
    .donation-options {
        padding: 0 5%;
    }
}

/* Estilos para el Mercado RP */
.market {
    padding: 5rem 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
    color: var(--light-color);
}

.market::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../imgs/background.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.market h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.market>p {
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Filtros */
.market-filters {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: none;
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Grid de items */
.market-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 5%;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

/* Estilos para cada item */
.market-item {
    background: rgba(40, 40, 40, 0.9) !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
    height: auto;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.market-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: none;
}

/* Contenedor de la imagen */
.item-image {
    width: 100%;
    height: 224px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estilo de la imagen */
.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Contenido de la tarjeta */
.market-item-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

/* Texto de la tarjeta */
.item-text {
    margin-bottom: 10px;
}

/* TÃ­tulo del Ã­tem */
.market-item h3 {
    margin: 0 0 5px 0;
    color: #f8b83e;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-item .badge-deal {
    display: inline-block;
    margin-bottom: 5px;
}

/* DescripciÃ³n del Ã­tem */
.item-description {
    color: #b0b0b0;
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    max-height: 2.6em;
    font-weight: 300;
}

/* Acciones de la tarjeta */
.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Precio */
.item-price {
    font-size: 1rem;
    font-weight: 600;
    color: #f8b83e;
    margin: 0;
    white-space: nowrap;
}

/* BotÃ³n de compra */
.btn-buy {
    padding: 6px 12px;
    background: linear-gradient(to bottom, #4a90e2, #357abd);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 80px;
    text-align: center;
}

.btn-buy:hover {
    background: linear-gradient(to bottom, #5a9cec, #458ad0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Saldo RP */
.rp-balance {
    display: none;
}

.btn-add-rp {
    display: none;
}

/* Ajustes responsivos */
@media (max-width: 1200px) {
    .market-items {
        grid-template-columns: repeat(3, 1fr);
    }

    .item-image {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .market-items {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }

    .item-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .market-items {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 10px;
        max-width: 100%;
    }

    .item-image {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .market-items {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .item-image {
        height: 200px;
    }
}

/* Estilos para la Wiki */
.wiki {
    margin-top: 72px;
    padding: 5rem 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
    color: var(--light-color);
}

.wiki::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../imgs/background.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.wiki h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.wiki-subtitle {
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 5%;
    margin: 0 auto 4rem;
    max-width: 1400px;
}

.wiki-card {
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--light-color);
}

.wiki-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.wiki-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.wiki-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.wiki-card p {
    color: #ddd;
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Active Wiki Search Styles */
.wiki-search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

#wiki-search {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#wiki-search:focus {
    background: rgba(20, 20, 20, 0.85);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transform: scale(1.02);
}

#wiki-search::placeholder {
    color: #aaa;
    font-family: 'Segoe UI', sans-serif;
    /* Readable placeholder */
    font-size: 1rem;
}

.btn-search:hover {
    background-color: #6b4220;
}

/* Estilos para el menÃº activo */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Wiki Leveling Guide Styles */
.level-card {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.level-header h2 {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-size: 1.8rem;
}

.level-range {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
}

.level-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.level-info ul {
    list-style-type: none;
}

.level-info li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.level-info li:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.npc-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.npc-placeholder {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    cursor: pointer;
}

.npc-placeholder:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: rgba(0, 0, 0, 0.5);
}

.npc-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.npc-placeholder span {
    font-size: 0.8rem;
    text-align: center;
}

@media (max-width: 768px) {
    .level-content {
        grid-template-columns: 1fr;
    }
}


/* Fix for Wiki Header overlap */
.wiki-header {
    margin-top: 100px;
    text-align: center;
    margin-bottom: 3rem;
}

.wiki-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.wiki-header p {
    font-size: 1.2rem;
    color: #ccc;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
}


.npc-card {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.npc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.npc-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 4px 0;
    font-size: 0.85rem;
    font-weight: 600;
}

/* NPC Drop Info Styles */
.npc-card {
    cursor: pointer;
    /* Indicar que es clickeable */
}

.npc-drop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2;
}

.npc-card.active .npc-drop {
    opacity: 1;
    visibility: visible;
}

.npc-drop p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    color: var(--secondary-color);
    font-weight: 600;
}

.npc-drop span {
    font-size: 0.8rem;
    color: #ccc;
    display: block;
    margin-top: 5px;
}


/* Botón estilo AO */
.btn-ao {
    background: linear-gradient(to bottom, #0033cc 0%, #000066 100%);
    border: 2px solid #555;
    border-top-color: #777;
    border-bottom-color: #333;
    color: white;
    padding: 12px 30px;
    font-family: 'Georgia', serif;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 2px 2px 0px #000;
    box-shadow:
        0 0 0 2px #000,
        /* Borde negro exterior */
        inset 0 0 10px rgba(0, 0, 0, 0.5),
        /* Sombra interior */
        0 0 15px rgba(0, 50, 200, 0.5);
    /* Resplandor azul externo */
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-ao:hover {
    background: linear-gradient(to bottom, #0044ff 0%, #000088 100%);
    box-shadow:
        0 0 0 2px #000,
        inset 0 0 10px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(0, 80, 255, 0.8);
    transform: scale(1.05);
}

.btn-ao::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}


.btn-ao {
    display: inline-block;
    text-decoration: none;
    border-radius: 2px;
    /* Slight rounding for the frame */
}


/* NPC Drop Hover Effect */
.npc-card:hover .npc-drop {
    opacity: 1;
    visibility: visible;
}


/* Fixes for Static Cards and Readable Drop */
.level-card:hover {
    transform: none !important;
}

.npc-drop {
    background: rgba(0, 0, 0, 0.95) !important;
    /* Darker background */
    padding: 5px !important;
}

.npc-drop p {
    flex-shrink: 0;
    /* Prevent title shrinking */
    margin-bottom: 5px;
    z-index: 10;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    /* Extra contrast for title */
    width: 100%;
    border-radius: 4px;
}

.npc-drop span {
    font-size: 0.85rem;
    line-height: 1.2;
    overflow-y: auto;
    /* Scroll if too long */
    max-height: 100%;
}


/* Clanes y Castillos Redesign */
.custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.castle-card {
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.castle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--secondary-color);
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.castle-card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.card-content {
    padding: 15px;
    text-align: center;
}

.card-content h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.card-content p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.desc {
    color: #ccc;
    font-size: 0.85rem !important;
    font-style: italic;
}

/* Gran Castillo */
.grand-castle-container {
    margin: 40px 0;
}

.grand-castle-card {
    background: linear-gradient(135deg, rgba(60, 20, 20, 0.9), rgba(30, 30, 30, 0.9));
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.grand-image {
    flex: 0 0 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.grand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grand-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: #000;
    padding: 8px 15px;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.grand-content {
    flex: 1 1 300px;
    padding: 30px;
    text-align: center;
}

.grand-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-ref {
    font-size: 1.2rem !important;
    color: #fff;
    margin-bottom: 15px !important;
}

/* Responsive Grand Castle */
@media (max-width: 768px) {
    .grand-castle-card {
        flex-direction: column;
        text-align: center;
    }

    .grand-image {
        flex: none;
        width: 100%;
        height: auto;
        max-height: 250px;
    }

    .grand-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        border-bottom: 2px solid var(--secondary-color);
    }

    .grand-content {
        padding: 20px;
    }
}

/* Wiki Split Section */
.wiki-split-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background: rgba(30, 30, 30, 0.6);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.feature-box h3 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.feature-box.conquest {
    border-left-color: var(--accent-color);
}

.feature-box ol,
.feature-box ul {
    padding-left: 20px;
}

.feature-box li {
    margin-bottom: 10px;
}

/* Party Section */
.party-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .party-grid {
        grid-template-columns: 1fr;
    }
}

.card-commands {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
}

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

.command-list li {
    margin-bottom: 15px;
    border-bottom: 1px dashed #444;
    padding-bottom: 10px;
}

.cmd {
    display: block;
    color: var(--secondary-color);
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
}

.cmd-desc {
    color: #bbb;
    font-size: 0.9rem;
}

.party-img-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #444;
}


/* Compass Grid Layout for Castles */
.compass-grid {
    display: grid;
    grid-template-areas:
        '. north .'
        'west . east'
        '. south .';
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.castle-norte {
    grid-area: north;
}

.castle-sur {
    grid-area: south;
}

.castle-este {
    grid-area: east;
}

.castle-oeste {
    grid-area: west;
}

.castle-centro {
    grid-area: center;
}

/* Responsive Compass - Stack on mobile */
@media (max-width: 768px) {
    .compass-grid {
        grid-template-areas:
            'north'
            'west'
            'east'
            'south';
    }
}

/* Adjustments for 100x100 images */
.castle-card {
    width: 220px;
    /* Small fixed width for compact look */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-image {
    height: auto !important;
    /* Allow fit */
    padding: 15px;
    background: transparent;
    display: flex;
    justify-content: center;
    width: 100%;
}

.card-image img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain !important;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    /* Pop out effect */
}

/* Override previous hover scale since image connects to card logic */
.castle-card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    top: 5px !important;
    right: 5px !important;
    font-size: 0.7rem !important;
    padding: 2px 6px !important;
}


/* Styles for Simplified Castle Display */
.simple-castle {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    /* Limit width */
    margin: 0 auto;
}

.castle-visual {
    position: relative;
    width: 100px;
    height: 100px;
}

.castle-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.castle-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.map-name {
    margin-top: 8px;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px #000;
}


/* Tighter Compass Layout Override */
.compass-grid {
    max-width: 450px !important;
    gap: 5px !important;
    grid-template-columns: 1fr 1fr 1fr !important;
}


/* Center Castle Grid Area */
.compass-grid {
    grid-template-areas:
        '. north .'
        'west center east'
        '. south .' !important;
}

.castle-centro {
    grid-area: center;
}

@media (max-width: 768px) {
    .compass-grid {
        grid-template-areas:
            'north'
            'west'
            'center'
            'east'
            'south' !important;
    }
}

/* Quest Utilities */
.margin-bottom-30 {
    margin-bottom: 30px;
}

.margin-top-30 {
    margin-top: 30px;
}

.text-gold {
    color: #ffd700;
    text-shadow: 1px 1px 2px #000;
}

.text-accent {
    color: var(--accent-color, #00d4ff);
}

/* Simple List */
.simple-list {
    list-style: none;
    padding: 0;
}

.simple-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.simple-list i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Alert Box Style */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border-left: 5px solid #fff;
}

.alert-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.alert.info {
    border-left-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.alert.warning {
    border-left-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

/* Gem Cards */
.gem-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.gem-card:hover {
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.gem-icon img {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    margin-bottom: 15px;
}

.gem-effect {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 10px 0;
}

.gem-drop,
.gem-loc {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #ccc;
}

/* Color Utilities */
.text-danger {
    color: #ff4444;
}

.text-purple {
    color: #bf55ec;
}

.text-info {
    color: #55acee;
}

.text-light {
    color: #d0d0d0;
}

.text-orange {
    color: #ffae00;
}

.text-pink {
    color: #ff9ee5;
}

.text-success {
    color: #00c851;
}

/* Item Icons */
.item-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

/* Utility Additions */
.text-dark {
    color: #aaa;
}

.wiki-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Stats Tables for Vida y Razas */
.stats-table {
    width: 100%;
    border-collapse: separate;
    /* Changed from collapse to allow border-radius */
    border-spacing: 0;
    margin-top: 15px;
    font-size: 0.95rem;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dark background for readability */
    border-radius: 8px;
    overflow: hidden;
}

.stats-table th,
.stats-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-table th {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

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

.stats-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stats-table .hp-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #fff;
    text-align: right;
}

/* Mobile Table - Card Design */
@media (max-width: 768px) {
    .stats-table {
        background: transparent !important;
        box-shadow: none !important;
    }

    .stats-table thead {
        display: none;
    }

    .stats-table tbody tr {
        display: block;
        background: rgba(30, 30, 30, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 15px;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .stats-table tbody td {
        display: block;
        padding: 5px 0;
        border-bottom: none;
    }

    /* Command / Title Styling */
    .stats-table td:first-child {
        font-size: 1.2rem;
        color: var(--secondary-color);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .stats-table td:last-child {
        color: #ddd;
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Ajuste de fuente para items del mercado */
.market-item .item-text h3 {
    font-size: 0.8rem !important;
    line-height: 1.3;
}

/* Utilities */
.text-center {
    text-align: center;
}

.margin-top-10 {
    margin-top: 10px;
}

.margin-top-15 {
    margin-top: 15px;
}

.margin-top-30 {
    margin-top: 30px;
}

.table-section-header td {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    padding: 12px;
    letter-spacing: 1px;
}

/* Item Evolution Display */
.evolution-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.evolution-container img {
    width: 40px;
    /* Smaller base size */
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.evolution-container img:last-child {
    width: 48px;
    /* Slightly larger result */
    height: 48px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
}

.evolution-container i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.gem-card:hover .evolution-container img:last-child {
    transform: scale(1.1);
}

/* Custom Play Button */
.btn-custom-play {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 55px;
    background-image: url('../imgs/button.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    font-family: 'TrajanPro', serif;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-top: 15px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-custom-play:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    text-shadow: 0 0 15px #99ff13, 0 0 30px #91ec1a;
}

/* God Sets Tabs & Grid */
.class-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--secondary-color);
    color: var(--light-color);
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 5px;
    min-width: 150px;
    text-align: center;
}

.tab-btn:hover,
.tab-btn:hover,
.tab-btn.active {
    background: rgba(0, 0, 0, 0.8);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    /* Default fallback or Mifrit's color */
    text-shadow: 0 0 5px #301355;
}

/* Specific Glow Colors */
#btn-mifrit:hover,
#btn-mifrit.active {
    text-shadow: 0 0 8px #FF4500;
    /* Orange Red */
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
    border-color: #FF4500;
}

#btn-poseidon:hover,
#btn-poseidon.active {
    text-shadow: 0 0 8px #00BFFF;
    /* Deep Sky Blue */
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
    border-color: #00BFFF;
}

#btn-tarraske:hover,
#btn-tarraske.active {
    text-shadow: 0 0 8px #32CD32;
    /* Lime Green */
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.5);
    border-color: #32CD32;
}

#btn-erebros:hover,
#btn-erebros.active {
    text-shadow: 0 0 8px #8A2BE2;
    /* Blue Violet */
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    border-color: #8A2BE2;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.set-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.set-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.set-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.set-item p {
    font-size: 0.9rem;
    color: var(--light-color);
    margin: 0;
}

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

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

/* Market Item Description Visibility */
.item-description {
    font-size: 0.65rem;
    font-weight: 500;
    color: #f0f0f0;
    line-height: 1.4;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    margin-top: 5px;
}

/* Mobile Table Responsiveness */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-responsive table {
    width: 100%;
    min-width: 600px;
    /* Force scroll on small screens */
}

/* 404 Page Styles */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    margin-top: 72px;
    /* Header offset */
}

.error-title {
    font-size: 8rem;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
    margin-bottom: 0;
    font-family: 'Cinzel', serif;
    animation: pulse 3s infinite;
}

.error-subtitle {
    font-size: 2.5rem;
    margin-top: 0;
    color: var(--secondary-color);
    font-family: 'Cinzel', serif;
}

.error-text {
    font-size: 1.2rem;
    color: var(--light-color);
    max-width: 600px;
    margin: 20px auto;
}

.btn-ao {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--secondary-color);
    margin-top: 20px;
    display: inline-block;
}

.btn-ao:hover {
    background-color: #6b4220;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    color: var(--secondary-color);
}

/* Glassmorphism & Borders - Global Enhancement */
:root {
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: 1px solid rgba(212, 175, 55, 0.3);
    --glass-blur: blur(10px);
}

/* Cinematic Vignette */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 900;
    /* Below header/menu but above background */
}

/* Apply to Cards & Containers */
.news-content,
.wiki-card,
.market-item,
.feature-card,
.donation-option,
.error-page {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Hover Effects */
.news-content:hover,
.wiki-card:hover,
.market-item:hover,
.feature-card:hover,
.donation-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7) !important;
    border-color: var(--secondary-color) !important;
    /* Glow gold on hover */
}

/* Tabla de Estadísticas */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.stats-table th,
.stats-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.stats-table th {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

.stats-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Fix Search Bar Appearance */
.wiki-search-container,
.wiki-search-sticky {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

#wiki-search {
    background-color: rgba(20, 20, 20, 0.9) !important;
    border: 2px solid var(--secondary-color) !important;
    border-radius: 50px !important;
    padding: 15px 25px !important;
    width: 100%;
    color: #fff;
    outline: none;
    transition: box-shadow 0.3s ease;
}

#wiki-search:focus {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5) !important;
}

/* =========================================
   MARKET PAGE STYLING (Refactored)
   ========================================= */

.market-section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 15px;
    display: inline-block;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.points-card {
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.points-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.points-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
    border-color: #fff;
}

.points-title {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    font-family: 'Cinzel', serif;
}

.points-description {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 1rem;
    font-style: italic;
    flex-grow: 1;
}

.btn-buy-points {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-buy-points:hover {
    background: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

/* Market Item Description Overrides */
.market-item .item-description {
    font-size: 0.95rem !important;
    /* Increased from 0.65rem */
    color: #e0e0e0;
    line-height: 1.5;
    margin-top: 10px;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.market-item .item-points {
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.text-bonus {
    color: #4caf50;
    font-weight: bold;
    display: block;
    margin-top: 5px;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* =========================================
   MARKET LAYOUT FIXES (Truncation & Grid)
   ========================================= */

/* Force Grid Layout for Items */
.market-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    align-items: stretch;
    /* Cards stretch to same height */
    justify-content: center;
}

/* Ensure Market Item Card Flexibility */
.market-item {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
    /* Fill the grid cell */
    position: relative;
    overflow: hidden;
    /* Keep rounded corners but allow internal scroll if needed */
}

/* Content Wrapper to Fill Space */
.market-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Push actions to bottom */
    padding: 15px;
    height: 100%;
}

.item-text {
    flex-grow: 1;
    /* Allow text area to expand */
}

/* Fix Description Truncation - Allow Full Text */
.market-item .item-description {
    font-size: 0.95rem !important;
    color: #e0e0e0;
    line-height: 1.5;
    margin-top: 10px;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);

    /* Override any potential truncation limits */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    height: auto !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

/* Character Marketplace */
.character-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 0 5%;
    margin: 3rem auto;
    max-width: 1400px;
}

.character-card {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--secondary-color);
}

.char-image {
    height: 180px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.char-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.character-card:hover .char-image img {
    transform: scale(1.1);
}

.char-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.char-info h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.char-details {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.char-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.btn-details {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.btn-details:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
}

/* Character Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #1a1a1a;
    width: 90%;
    max-width: 950px;
    /* Widened for horizontal layout */
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    /* Increased gap */
    align-items: start;
    /* Align correctly */
}

.modal-left {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 25px;
}

.modal-char-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 250px;
    /* Capped height */
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.modal-stats h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.modal-stats p {
    font-size: 0.95rem;
    margin-bottom: 5px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3px;
}

.stat-bar {
    margin-top: 15px;
    text-align: left;
    font-weight: bold;
    color: #ddd;
}

.modal-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.modal-right h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.modal-buy-name {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: bold;
}

.modal-price {
    font-size: 2rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-buy-modal {
    background: linear-gradient(45deg, var(--primary-color), #a06e3b);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-buy-modal:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Modal Structural Redesign */
.modal-section-title {
    font-size: 1rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding-bottom: 5px;
    text-align: left;
    letter-spacing: 1px;
    margin-top: 0;
}

.modal-combat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-box.highlight {
    border-color: var(--secondary-color);
    background: rgba(212, 175, 55, 0.08);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
}

.modal-bonuses-list {
    text-align: left;
    margin-bottom: 25px;
    display: grid;
    gap: 10px;
}

.bonus-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #eee;
    border-left: 3px solid var(--secondary-color);
    display: flex;
    align-items: center;
}

.modal-footer-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: auto;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.modal-footer-action .btn-buy-modal {
    margin: 0;
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Compact Modal Refinements */
.modal-content {
    padding: 25px;
    /* Reduced from 30px */
    max-width: 900px;
    /* Slightly narrower */
}

.modal-grid {
    gap: 30px;
    /* Reduced from 50px */
}

.modal-section-title.compact {
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-bottom: 3px;
    color: #888;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Kills Group */
.stats-group {
    margin-bottom: 15px;
}

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

.stat-mini-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label-mini {
    display: block;
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.stat-value-mini {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

/* Tournament Box */
.tournament-box {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
    border-left: 3px solid var(--secondary-color);
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
}

.tour-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

/* Compact Bonuses */
.modal-bonuses-list.compact {
    gap: 5px;
    margin-bottom: 15px;
}

.modal-bonuses-list.compact .bonus-item {
    padding: 6px 12px;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
}

/* Compact Footer */
.modal-footer-action.compact-footer {
    padding-top: 15px;
    margin-top: auto;
}

.price-tag.small {
    font-size: 1.8rem;
}

.btn-buy-modal.small {
    padding: 10px 25px;
    font-size: 1rem;
}

/* Reduce image size for horizontal feel */
.modal-char-img {
    max-height: 200px;
    /* Reduced from 250px */
}