:root {
    --main-bg: #150d0bb5;
    --sidebar-bg: #150d0bc9;
    --sidebar-border: #2c3136;
    --menu-bg: #22282e;
    --menu-hover: #2c3136;
    --gold: #ffd700;
    --text: #fff;
    --text-label: #aaa;
    --active: #6f6;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
    background-image: url('../images/background.webp');
    background-size: cover;
}

body {
    min-height: 100vh;
    min-width: 100vw;
    overflow: hidden;
    
}

.container-ingame {
    width: 100vw;
    height: 100vh;
    margin: 0;
    display: flex;
    background: var(--main-bg);
    overflow: hidden;
    color: var(--text);
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Back Button */
.back-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(24, 27, 31, 0.9);
    border: 2px solid var(--sidebar-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.back-button:hover {
    background: rgba(44, 49, 54, 0.9);
    transform: scale(1.1);
    color: var(--gold);
}

.back-button img {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.sidebar {
    width: 25%;
    background: var(--sidebar-bg);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-right: 2px solid var(--sidebar-border);
    position: relative; /* Para posicionar elementos fijos dentro (como la versión) */
}

.sidebar .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #444;
    margin-bottom: 18px;
    align-self: center;
}

.sidebar .info {
    margin-bottom: 18px;
    font-size: 1.1em;
    text-align: center!important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.sidebar .label {
    color: var(--text-label);
    font-size: 0.95em;
}

.sidebar .value {
    color: var(--text);
    font-weight: bold;
}

/* Separador para el reloj del servidor */
.info-separator {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sidebar-border), transparent);
    margin: 12px auto 12px auto;
}

/* Contenedor del reloj del servidor */
.server-time-container {
    text-align: center;
    margin-bottom: 18px;
    padding: 8px 0;
}

.server-time-label {
    font-size: 0.75em;
    color: var(--text-label);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-time-display {
    font-size: 1.1em;
    color: var(--text);
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.sidebar .active {
    color: var(--active);
}

/* Label de versión en el sidebar (abajo a la izquierda) */
.sidebar-version-label {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 4px 8px;
    font-size: 11px;
    color: #00ff7f;
    opacity: 0.9;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6));
    border-top-right-radius: 6px;
}

.menu-area {
    width: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 32px;
    width: 90%;
    justify-items: center;
}

.menu-item {
    background: linear-gradient(180deg, #160c0b 0%, #25110fc4 100%);
    border: 3px solid #2d120a;
    /* border-top-color: #a97c50; */
    border-left-color: #1a0904;
    border-bottom-color: #1a0904;
    border-right-color: #1a0904;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px 2px #a97d5024;
    padding: 24px 0 10px 0;
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.menu-item:hover {
    background: linear-gradient(180deg, #25110fc4 0%, #160c0b 20%);
}

.menu-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        to right,
        #1a0904 0%,
        #1a0904 42%,
        #a97c50 46%,
        #a97c50 50%,
        #a97c50 54%,
        #1a0904 58%,
        #1a0904 100%
    );
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    z-index: 2;
}

.menu-item img,
.menu-item svg {
    width: 32px;
    height: 32px;
    margin-bottom: 14px;
    display: block;
    filter: drop-shadow(0 2px 8px #fdc894);
    opacity: 0.7;
}

.menu-item svg {
    fill: #a97c50;
    color: #a97c50;
}

.menu-item img {
    /* Simula dorado para imágenes rasterizadas o SVG externos */
    filter: sepia(1) saturate(5) hue-rotate(10deg) brightness(1.1) drop-shadow(0 2px 8px #fdc894);
    opacity: 0.7;
}

.menu-item span {
    font-family: 'Cinzel', serif;
    color: #a97c50;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    display: block;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 2px #000a;
    margin-top: 2px;
    margin-bottom: 0;
    text-transform: uppercase;
}

.menu-item:active {
    box-shadow: 0 1px 2px rgba(0,0,0,0.6);
    border-top-color: #1a0904;
    border-left-color: #1a0904;
    border-bottom-color: #a97c50;
    border-right-color: #a97c50;
}

/* Menu Item Link Style */
.menu-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* --- Battle Pass Styles --- */
.battlepass-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    background: #23232b;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.battlepass-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 25vh;
}
.battlepass-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.battlepass-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5em 2em;
    background: transparent;
}
.battlepass-banner-title {
    font-size: 2.2em;
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 0.3em;
    text-shadow: 2px 2px 8px #000a;
}
.battlepass-banner-timer {
    color: #fff;
    font-size: 1.1em;
    text-shadow: 1px 1px 6px #000a;
}
/* Efecto de nieve en el banner */
.battlepass-snow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.battlepass-snowflake {
    position: absolute;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: battlepass-snowfall linear infinite;
    opacity: 0.8;
}
@keyframes battlepass-snowfall {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 0.9;
    }
    100% {
        transform: translateY(calc(25vh + 20px)) translateX(var(--translate-x, 50px)) rotate(360deg);
        opacity: 0;
    }
}
.battlepass-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.battlepass-sidebar {
    width: 220px;
    background: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-right: 1px solid #333;
    height: 100%;
}
.bp-reward-stack {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}
.bp-reward-free,
.bp-reward-premium {
    height: calc(50% - 14px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
}
.bp-reward-free {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.bp-reward-premium {
    height: 100% !important;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.bp-reward-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: inherit; /* Hereda el border-radius del contenedor */
    opacity: 0;
    transition: opacity 0.3s ease;
}
.bp-reward-section:hover .bp-reward-overlay {
    opacity: 1;
}
.bp-reward-text {
    color: #ffd700;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 0.5em;
}
.bp-reward-img {
    display: none; /* Ocultamos la imagen ya que ahora es fondo */
}
.bp-level-separator {
    height: 28px;
    min-width: 140px;
    width: auto;
    left: 50%;
    top: 47%;
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #23243a;
    color: #ffe7a0;
    font-size: 0.7em;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(224, 207, 164, 0.55);
    border-radius: 16px;
    letter-spacing: 1px;
    box-shadow: none;
    margin: 0;
    clip-path: none;
    background-clip: padding-box;
    overflow: visible;
    padding: 0 14px;
}
.bp-level-separator::before, .bp-level-separator::after {
    display: none;
}
.bp-level-separator span, .bp-level-separator .bp-level-number {
    color: #ffe7a0;
    text-shadow: none;
    font-family: 'Segoe UI Semibold', 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.8em;
    padding: 0 4px;
    position: relative;
    z-index: 2;
    border-radius: 4px;
}
.bp-level-number {
    font-size: 0.9em;
    font-weight: bold;
    color: #ffe7a0;
    margin-left: 4px;
}
.battlepass-rewards {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #23232b;
    padding: 0;
    height: 100%;
}
.battlepass-progress {
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5em;
    min-height: 56px;
    max-height: 56px;
}
.battlepass-level {
    font-size: 1.2em;
    color: #d4af37;
    font-weight: bold;
}
.battlepass-expbar {
    flex: 1;
    height: 18px;
    background: #23232b;
    border-radius: 8px;
    margin: 0 1em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px #d4af3740, 0 0 8px #ffe08255;
    border: 2px solid #d4af37;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.battlepass-expbar:hover {
    box-shadow: 0 2px 12px #d4af3740, 0 0 8px #ffe08255 !important;
    border-color: #d4af37 !important;
}

.battlepass-exp-text {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.88em;
    color: #ffe7a0;
    text-shadow: 0 1px 4px #000, 0 0 6px #ffe08299;
    font-weight: bold;
    z-index: 2;
    letter-spacing: 1px;
    pointer-events: none;
}
.battlepass-btn, .battlepass-shop-btn {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 60%, rgba(191, 167, 106, 0.15) 100%);
    color: #bfa76a;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 2px 12px #0007;
}
.battlepass-btn {
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5em;
    margin-top: 0!important;
    transition: background 0.2s, box-shadow 0.2s;
    padding: 0;
}
.battlepass-btn:hover {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.25) 60%, rgba(191, 167, 106, 0.25) 100%);
    box-shadow: 0 4px 12px #0003;
}

.battlepass-btn:disabled {
    background: linear-gradient(180deg, rgba(100, 100, 100, 0.15) 60%, rgba(80, 80, 80, 0.15) 100%) !important;
    color: #666 !important;
    border: 1.5px solid rgba(100, 100, 100, 0.4) !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.battlepass-btn:disabled:hover {
    background: linear-gradient(180deg, rgba(100, 100, 100, 0.15) 60%, rgba(80, 80, 80, 0.15) 100%) !important;
    box-shadow: 0 2px 12px #0007 !important;
    transform: none !important;
}
.battlepass-shop-btn {
    border-radius: 10px;
    padding: 0.35em 1.2em;
    font-weight: bold;
    font-size: 0.88em;
    margin-left: 1em;
    margin-top: 0em!important;
    letter-spacing: 1px;
    transition: background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
}
.battlepass-shop-btn:hover {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.25) 60%, rgba(191, 167, 106, 0.25) 100%);
    box-shadow: 0 4px 12px #0003;
}

.battlepass-shop-btn.disabled,
.battlepass-shop-btn:disabled {
    background: linear-gradient(180deg, rgba(100, 100, 100, 0.15) 60%, rgba(80, 80, 80, 0.15) 100%);
    color: #666;
    border: 1.5px solid rgba(100, 100, 100, 0.4);
    cursor: not-allowed;
    opacity: 0.7;
}

.battlepass-shop-btn.disabled:hover,
.battlepass-shop-btn:disabled:hover {
    background: linear-gradient(180deg, rgba(100, 100, 100, 0.15) 60%, rgba(80, 80, 80, 0.15) 100%);
    box-shadow: 0 2px 12px #0007;
    transform: none;
}
.battlepass-carousel-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
}
.battlepass-carousel {
    display: flex;
    flex-direction: row;
    gap: 0;
    height: 100%;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #bfa76a #23232b;
}
.battlepass-carousel-col {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    align-items: stretch;
    gap: 0;
    min-width: 120px;
    width: 120px;
    flex: 0 0 auto;
}
.battlepass-carousel-cell {
    background: #292933;
    border-radius: 8px;
    height: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 1px 4px #0006;
    padding: 0;
    margin: 0;
}
.battlepass-carousel-cell img {
    height: 70%;
    width: 70%;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}
.battlepass-carousel-cell.locked {
    filter: grayscale(1) brightness(0.6);
    position: relative;
}

.battlepass-level-label {
    font-size: 0.9em;
    color: #ffd700;
    margin-top: 0.3em;
}
.bp-premium-top-label {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.95em;
    font-weight: 500;
    color: #fff;
    padding: 7px 0 6px 0;
    background: linear-gradient(to bottom, rgba(30,30,40,0.55) 60%, rgba(30,30,40,0.0) 100%);
    text-shadow: 0 2px 8px #000, 0 1px 0 #222;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    z-index: 2;
}
.bp-premium-bottom-label {
    position: absolute;
    bottom: 0%;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88em;
    font-weight: 500;
    color: #fff;
    padding: 6px 0 7px 0;
    background: linear-gradient(to top, rgba(30,30,40,0.55) 60%, rgba(30,30,40,0.0) 100%);
    text-shadow: 0 2px 8px #000, 0 1px 0 #222;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 2;
}

.bp-premium-bottom-label > button.battlepass-info-icon-sidebar {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}
.bp-reward-section.bp-reward-premium {
    position: relative;
}
.battlepass-carousel-cell-imgbox {
    position: relative;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.battlepass-carousel-cell-imgbox-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 54px;
    height: 54px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.005) 60%, rgba(191, 167, 106, 0.005) 100%);
    border: 1px solid rgba(212, 175, 55, 0.005);
    box-shadow: 0 2px 12px #0007;
    border-radius: 1px;
    transform: rotate(45deg);
    z-index: 1;
}
.battlepass-carousel-cell-img {
    position: relative;
    width: 38px;
    height: 38px;
    object-fit: contain;
    z-index: 2;
    display: block;
    margin: 0 auto;
}
.battlepass-carousel-wrapper:hover .battlepass-carousel-arrow {
    display: flex;
}
.battlepass-carousel-arrow, button.battlepass-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 60%, rgba(191, 167, 106, 0.15) 100%);
    color: #d4af37;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    font-size: 48px !important;
    font-weight: bold;
    box-shadow: 0 2px 12px #0007;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.battlepass-carousel-arrow .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.battlepass-carousel-arrow i {
    font-family: 'Phosphor-Light' !important;
    font-size: 1.4em;
    color: inherit;
    display: inline-block;
    vertical-align: middle;
}
.battlepass-carousel-arrow.left {
    left: 1em;
}
.battlepass-carousel-arrow.left i {
    font-family: 'Phosphor';
}
.battlepass-carousel-arrow.left i::before {
    content: "\f104";
}
.battlepass-carousel-arrow.right {
    right: 1em;
}
.battlepass-carousel-arrow.right i {
    font-family: 'Phosphor';
}
.battlepass-carousel-arrow.right i::before {
    content: "\f105";
}
.battlepass-carousel-arrow:hover {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.25) 60%, rgba(191, 167, 106, 0.25) 100%);
    color: #fff;
    border-color: #d4af37;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}
.battlepass-carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.bp-level-diamond-wrapper {
    position: absolute;
    right: 30%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 24px;
    height: 24px;
    pointer-events: none;
}
.bp-level-diamond {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ffe082a1 0%, #d4af372e 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px #0006;
    border: 2px solid #d4af37;
}
.bp-level-number {
    position: absolute;
    right: 4px;
    bottom: 1px;
    transform: rotate(-45deg);
    color: #23232b;
    font-size: 1em;
    font-weight: bold;
    text-align: right;
    line-height: 1;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px #fff8;
    user-select: none;
    background: none;
    width: auto;
    height: auto;
    padding: 0;
}

/* Language Selector */
.language-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;

    margin-top: 12px;
    position: relative;
}



.lang-flag {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0.7;
}

.lang-flag:hover {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.lang-flag.active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--gold);
}

.lang-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Silk Add Button */
.silk-add-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.4) 60%, rgba(191, 167, 106, 0.4) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 12px #0007;
    color: #fff;
}

.silk-add-btn:hover {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.5) 60%, rgba(191, 167, 106, 0.5) 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px #0003;
}

.silk-add-btn svg {
    width: 12px;
    height: 12px;
    color: inherit;
}

.silk-add-btn svg path {
    stroke: currentColor;
}

.language-section {
    padding-top: 5%;
}

.language-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.language-title-line {
    width: 25px;
    height: 2px;
    background-color: var(--text-label);
}

.language-title {
    margin: 0 10px;
    font-size: 1.2em;
    color: var(--text-label);
}

@font-face {
    font-family: 'Cinzel';
    src: url('/assets/fonts/cinzel/Cinzel-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Cinzel';
    src: url('/assets/fonts/cinzel/Cinzel-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
/* Agrega más variantes si las necesitas */

.stats-box, .balance-box {
    background: rgba(60, 40, 20, 0.85);
    border-radius: 4px;
    margin: 18px 0 0 0;
    padding: 12px 16px 10px 16px;
    box-shadow: 0 2px 8px #0004;
}

.stats-title {
    font-family: 'Cinzel', serif;
    color: #a97c50;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.12);
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-size: 0.8em;
    margin-bottom: 2px;
}

.stats-row span {
    color: #ffd700;
}

.balance-box .stats-row {
    color: #ffd700;
}

/* Log System - Filtros encima de la tabla */
.log-filters-container {
    width: 100%;
    background: rgba(60, 40, 20, 0.6);
    border: 1px solid rgba(169, 124, 80, 0.5);
    border-radius: 4px 4px 0 0;
    padding: 15px 20px;
    margin-bottom: 0;
    box-sizing: border-box;
}

.log-table-wrapper {
    width: 100%;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Ocultar columna CodeName sin afectar el layout */
.drop-table th:last-child,
.drop-table td:last-child {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Personaje clickeable en droplogs */
.clickeable-drop-character {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickeable-drop-character:hover {
    background: rgba(169, 124, 80, 0.15);
}

.clickeable-drop-character:hover .drop-char-name {
    color: #ffd700;
    text-decoration: underline;
}

/* Modal de opciones de drop item */
.drop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.drop-modal-content {
    background: linear-gradient(135deg, rgba(40, 25, 15, 0.98) 0%, rgba(20, 15, 10, 0.98) 100%);
    border: 2px solid #a97c50;
    border-radius: 12px;
    padding: 0;
    min-width: 350px;
    max-width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.drop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(169, 124, 80, 0.3);
}

.drop-modal-header h3 {
    margin: 0;
    font-family: 'Cinzel', serif;
    color: #e6c98a;
    font-size: 1.3em;
}

.drop-modal-close {
    background: none;
    border: none;
    color: #e6c98a;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    transition: all 0.2s ease;
}

.drop-modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.drop-modal-body {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drop-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: 2px solid #a97c50;
    border-radius: 8px;
    background: rgba(169, 124, 80, 0.1);
    color: #e6c98a;
    font-family: 'Cinzel', serif;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-modal-btn:hover {
    background: rgba(169, 124, 80, 0.3);
    border-color: #ffd700;
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 124, 80, 0.4);
}

.drop-modal-btn svg {
    flex-shrink: 0;
}

.drop-modal-btn-info:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    color: #3498db;
}

.drop-modal-btn-primary:hover {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    color: #2ecc71;
}

/* Tooltip fijo para detalles */
.item-details-fixed-tooltip {
    position: fixed;
    z-index: 10001;
    animation: fadeIn 0.2s ease;
}

.item-details-fixed-tooltip .tooltip-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(169, 124, 80, 0.8);
    border: none;
    color: #fff;
    font-size: 1.5em;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.item-details-fixed-tooltip .tooltip-close-btn:hover {
    background: #a97c50;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.log-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.log-filter-group {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.log-filter-race-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-filter-race-group img {
    border-radius: 50%;
    border: 1px solid rgba(169, 124, 80, 0.5);
    flex-shrink: 0;
}

/* Inputs y Selects */
#customSearchBox,
#filter-race,
#filter-type,
#filter-time {
    width: 100% !important;
    padding: 6px 10px !important;
    background: linear-gradient(180deg, rgba(60, 40, 20, 0.9) 0%, rgba(40, 25, 15, 0.95) 100%) !important;
    border: 1px solid #a97c50 !important;
    border-radius: 4px !important;
    color: #e6c98a !important;
    font-size: 0.9em !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    height: auto !important;
    margin: 0 !important;
    display: block !important;
}

#customSearchBox:focus,
#filter-race:focus,
#filter-type:focus,
#filter-time:focus {
    outline: none !important;
    border-color: #ffd700 !important;
    background: linear-gradient(180deg, rgba(80, 60, 40, 0.95) 0%, rgba(60, 40, 25, 1) 100%) !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5), inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

#customSearchBox:hover,
#filter-race:hover,
#filter-type:hover,
#filter-time:hover {
    border-color: #ffd700 !important;
    background: linear-gradient(180deg, rgba(70, 50, 30, 0.92) 0%, rgba(50, 35, 20, 0.98) 100%) !important;
}

#customSearchBox::placeholder {
    color: rgba(230, 201, 138, 0.5) !important;
}

#filter-race,
#filter-type,
#filter-time {
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8" width="12"><path fill="%23e6c98a" d="M0,0l6,8l6-8"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    padding-right: 28px !important;
}

#filter-race option,
#filter-type option,
#filter-time option {
    background: #2d1a0e !important;
    color: #e6c98a !important;
    padding: 8px 10px !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(169, 124, 80, 0.2) !important;
}

#filter-race option:hover,
#filter-type option:hover,
#filter-time option:hover {
    background: #3d2817 !important;
    color: #ffd700 !important;
}

#filter-race option:checked,
#filter-type option:checked,
#filter-time option:checked {
    background: #a97c50 !important;
    color: #fff !important;
}

.log-filter-btn {
    padding: 6px 16px !important;
    border: none;
    border-radius: 4px;
    font-size: 0.9em !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4 !important;
    height: auto !important;
    margin: 0 !important;
}

.log-filter-btn-apply {
    background: #a97c50;
    color: #fff;
}

.log-filter-btn-apply:hover {
    background: #ffd700;
    color: #1a0a05;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.log-filter-btn-reset {
    background: rgba(169, 124, 80, 0.2);
    color: #e6c98a;
    border: 1px solid rgba(169, 124, 80, 0.4);
}

.log-filter-btn-reset:hover {
    background: rgba(255, 69, 69, 0.3);
    border-color: #ff4545;
    color: #ffaaaa;
}

/* Quick Actions */
.quick-actions {
    margin-top: auto;
    margin-bottom: 12px;
    padding: 24px 0;
    border-top: 1px solid rgba(169, 124, 80, 0.3);
}

.quick-actions-row {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    margin-bottom: 10px;
}

.quick-actions-row:last-child {
    margin-bottom: 0;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(60, 40, 20, 0.6);
    border: 1px solid rgba(169, 124, 80, 0.4);
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-action-btn:hover {
    background: rgba(169, 124, 80, 0.3);
    border-color: #e6c98a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.quick-action-btn svg {
    transition: stroke 0.2s ease;
}

.quick-action-btn:hover svg {
    stroke: #ffd700;
}

/* --- Calendar Check-In Styles --- */
.calendar-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.calendar-header {
    text-align: center;
    padding: 10px 0;
    position: relative;
    border-bottom: 1px solid rgba(169, 124, 80, 0.3);
}

.calendar-title {
    /* display: flex
; */
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.calendar-title-text {
    flex: 1;
    text-align: center;
    font-size: 1.4rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #e6c98a;
    letter-spacing: 1px;
}
.calendar-title-search {
    display: flex;
    align-items: center;
    gap: 0;
}

.calendar-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9a7047;
    color: #fff;
    border: 1px solid #a97c50;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s;
}

.calendar-close-button:hover {
    background: #a97c50;
}

/* Event Navigation Tabs - ELIMINADO */
.event-navigation {
    display: none;
}

.event-tab {
    display: none;
}

.navigation-arrow {
    display: none;
}

/* Calendar Info */
.calendar-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: relative;
}

.calendar-top-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    gap: 15px;
}

.calendar-schedule {
    text-align: center;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
    color: #a97c50;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(169, 124, 80, 0.3);
    flex: 0 0 auto;
    max-width: 400px;
}

.calendar-schedule .calendar-title {
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    color: #e6c98a;
    margin-bottom: 4px;
    font-family: 'Cinzel', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    opacity: 0.9;
}

.highlighted-days {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 5px;
    flex: 0 1 auto;
    max-width: 400px;
}

.highlighted-days::-webkit-scrollbar {
    height: 5px;
}

.highlighted-days::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.highlighted-days::-webkit-scrollbar-thumb {
    background-color: rgba(169, 124, 80, 0.5);
    border-radius: 10px;
}

.calendar-remaining {
    margin-top: 5px;
    font-size: 1rem;
    color: rgba(169, 124, 80, 0.8);
}

/* Highlighted Rewards */
.highlight-reward-box {
    background: rgba(42, 18, 10, 0.7);
    border: 1px solid #a97c50;
    border-radius: 10px;
    padding: 15px;
    display: flex
;
    flex-direction: column;
    align-items: center;
    width: 100px;
    min-width: 80px;
    height: 120px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: all 0.3s;
}

.highlight-reward-box::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: rgba(169, 124, 80, 0.8);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 0 5px rgba(169, 124, 80, 0.5));
}

.highlight-day {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.highlight-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
    height: 40px;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 5px;
    border: 1px solid rgba(169, 124, 80, 0.5);
}

.highlight-reward img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(169, 124, 80, 0.5));
}

.reward-amount {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(0, 0, 0, 0.7);
    color: #a97c50;
    border: 1px solid #a97c50;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    font-size: 0.8rem;
    display: flex
;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Badge de cantidad estilo battlepass para calendar */
.calendar-quantity-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #a97c50;
    color: #a97c50;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    display: inline-block;
}

/* Check-in Status */
.checkin-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin: 10px auto;
    font-size: 1.1rem;
    color: #a97c50;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(169, 124, 80, 0.2);
    border-bottom: 1px solid rgba(169, 124, 80, 0.2);
    width: 100%;
    gap: 15px;
}

.checkin-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkin-stats-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a97c50 0%, #7c5a2b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(169, 124, 80, 0.3);
}

.checkin-stats-icon i {
    color: #fff;
    font-size: 1.2em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.checkin-stats-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkin-stats-title {
    font-family: 'Cinzel', serif;
    color: #ffd700;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.checkin-stats-info {
    color: #e6c98a;
    font-size: 0.95em;
    font-family: 'Cinzel', serif;
}

.checkin-btn {
    background: linear-gradient(135deg, #a97c50 0%, #7c5a2b 100%);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 124, 80, 0.4);
    background: linear-gradient(135deg, #b88c2b 0%, #a97c50 100%);
}

.checkin-btn i {
    font-size: 1.2em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.checkin-icon-green {
    color: #4CAF50;
    font-size: 1.8em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.fleur-de-lis-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background: #4CAF50;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fleur-de-lis-icon::before {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.claim-icon {
    position: absolute;
    bottom: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex
;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
}

.fleur-de-lis {
    width: 15px;
    height: 15px;
    color: white;
    font-weight: bold;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4CAF50;
    border-radius: 50%;
}

.fleur-de-lis::before {
    content: '✓';
    position: relative;
    top: -1px;
}

/* Calendar Carousel */
.calendar-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 5%;
    margin-top: 10px;
    flex: 1;
}

.calendar-carousel {
    display: flex;
    gap: 15px;
    padding: 20px 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #e6c98a rgba(0, 0, 0, 0.2);
}

.calendar-carousel::-webkit-scrollbar {
    height: 8px;
}

.calendar-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.calendar-carousel::-webkit-scrollbar-thumb {
    background-color: rgba(169, 124, 80, 0.5);
    border-radius: 10px;
}

.calendar-day {
    min-width: 100px;
    height: 130px;
    background: rgba(42, 18, 10, 0.7);
    border: 1px solid #a97c50;
    border-radius: 10px;
    display: flex
;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    position: relative;
    transition: all 0.3s;
}

.calendar-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(169, 124, 80, 0.5);
}

.calendar-day.claimed {
    background: rgba(75, 30, 14, 0.8);
    border: 1px solid #a97c50;
}

.day-number {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.day-reward {
    width: 45px;
    height: 45px;
    display: flex
;
    justify-content: center;
    align-items: center;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 5px;
    border: 1px solid rgba(169, 124, 80, 0.5);
}

.day-reward img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(169, 124, 80, 0.5));
}

/* --- Spin Wheel System Styles --- */
.spin-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.spin-header {
    text-align: center;
    padding: 10px 0;
    position: relative;
    border-bottom: 1px solid rgba(169, 124, 80, 0.3);
}

.spin-title {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    color: #a97c50;
    text-shadow: 0 0 10px rgba(169, 124, 80, 0.5);
}

.spin-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9a7047;
    color: #fff;
    border: 1px solid #a97c50;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s;
}

.spin-close-button:hover {
    background: #a97c50;
}

/* Menu Simple - Solo iconos y separadores */
.simple-menu {
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid #a97c50;
    background: #2d1a0a;
}

.simple-menu-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin: 0 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
    vertical-align: middle;
}

.simple-menu-icon:hover {
    opacity: 1;
}

.simple-menu-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
    vertical-align: middle;
}

.simple-menu-back:hover {
    opacity: 1;
}

.simple-menu-back svg {
    width: 28px;
    height: 28px;
}

.simple-separator {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: #d4b876;
    margin: 0 8px;
    vertical-align: middle;
}

/* Contenedor del buscador para logsystem */
.log-search-container {
    text-align: center;
    padding: 10px 0;
    background: rgba(169, 124, 80, 0.1);
    border-bottom: 1px solid rgba(169, 124, 80, 0.3);
}

.log-search-container input {
    padding: 8px 12px;
    border: 1px solid #a97c50;
    border-radius: 4px;
    background: #2d1a0a;
    color: #d4b876;
    font-size: 14px;
    width: 300px;
    max-width: 90%;
}

.log-search-container input:focus {
    outline: none;
    border-color: #d4b876;
    box-shadow: 0 0 5px rgba(212, 184, 118, 0.3);
}

.log-search-container input::placeholder {
    color: #8b6f42;
}

/* Contenedor del botón de recargar para uniqueshistory */
.uniques-refresh-container {
    text-align: center;
    padding: 10px 0;
    background: rgba(169, 124, 80, 0.1);
    border-bottom: 1px solid rgba(169, 124, 80, 0.3);
}

.uniques-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(169, 124, 80, 0.2);
    border: 1px solid #a97c50;
    border-radius: 4px;
    color: #d4b876;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.uniques-refresh-btn:hover {
    background: rgba(169, 124, 80, 0.3);
    border-color: #d4b876;
    transform: translateY(-1px);
}

.uniques-refresh-btn svg {
    transition: transform 0.2s ease;
}

.uniques-refresh-btn:hover svg {
    transform: rotate(180deg);
}

.spin-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;

}

.spin-info {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.spin-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    color: #a97c50;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(169, 124, 80, 0.3);
    display: inline-flex;
}

.spin-add-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.4) 60%, rgba(191, 167, 106, 0.4) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 12px #0007;
    color: #fff;
}

.spin-add-btn:hover {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.5) 60%, rgba(191, 167, 106, 0.5) 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px #0003;
}

.spin-add-btn svg {
    width: 12px;
    height: 12px;
    color: inherit;
}

.spin-add-btn svg path {
    stroke: currentColor;
}

/* Wheel Container */
.spin-wheel-container {
    max-width: 340px;
    width: 100%;
    margin: 0 auto 30px;
    aspect-ratio: 1 / 1;
}

.spin-wheel-wrapper {
    width: 100%;
    height: 100%;
    min-width: 360px;
    min-height: 360px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.spin-wheel-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    min-width: 360px;
    min-height: 360px;
    display: block;
}

.spin-button-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spin-button {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, #00aeff, #0069cc);
    border: 5px solid #a97c50;
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Cinzel', serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spin-button.active {
    background: radial-gradient(circle at center, #00aeff, #0069cc);
    transform: scale(1);
    cursor: pointer;
}

.spin-button.active:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.4);
}

.spin-button.disabled {
    background: radial-gradient(circle at center, #727272, #3a3a3a);
    opacity: 0.8;
    cursor: not-allowed;
}

/* Nuevo contenedor flex para grid de items y recompensas */
.spin-flex-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid de Items Container */
.spin-items-grid-container {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid #a97c50;
    padding: 15px;
    padding-bottom: 25px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.5);
    max-height: 400px;
    position: relative;
    overflow: visible;
}

/* Grid de Items (3 filas x 4 columnas) */
.spin-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100%;
    flex: 1;
    min-height: 0;
    max-height: calc(100% - 70px);
    padding-bottom: 10px;
}

/* Item individual */
.spin-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    border: 2px solid;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: default;
    min-height: 0;
    overflow: hidden;
}

/* Colores según probabilidad */
.spin-item-green {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
}

.spin-item-blue {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.15);
}

.spin-item-turquoise {
    border-color: rgba(139, 111, 66, 0.8);
    background: rgba(139, 111, 66, 0.25);
}

.spin-item-purple {
    border-color: #9C27B0;
    background: rgba(156, 39, 176, 0.15);
}

.spin-item-gold {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Efecto highlight (borde dorado) */
.spin-item-highlighted {
    border-color: #FFD700 !important;
    border-width: 3px !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), inset 0 0 10px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
    z-index: 10;
}

/* Check overlay para item ganador */
.spin-item-claimed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    z-index: 15;
}

.spin-item-claimed-overlay i {
    font-size: 1.8rem;
    color: #4CAF50;
    text-shadow: 0 0 6px rgba(76, 175, 80, 0.8);
}

/* Contenedor de imagen */
.spin-item-image-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.spin-item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(169, 124, 80, 0.5));
}

/* Badge de cantidad (estilo battlepass) */
.spin-item-quantity-badge {
    position: absolute;
    top: -2px;
    right: -3px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #4CAF50;
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: bold;
    z-index: 2;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

/* Nombre del item */
.spin-item-name {
    font-size: 0.65rem;
    color: #e6c98a;
    text-align: center;
    margin-bottom: 2px;
    font-weight: 500;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Probabilidad */
.spin-item-probability {
    font-size: 0.6rem;
    color: #a97c50;
    text-align: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* Botón Play */
.spin-play-button {
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    background: linear-gradient(180deg, #d4b876 0%, #a97c50 50%, #8b6f42 100%);
    border: 2px solid #ffd700;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2), 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 20;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spin-play-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.spin-play-button.active {
    background: linear-gradient(180deg, #d4b876 0%, #a97c50 50%, #8b6f42 100%);
    transform: translateX(-50%) scale(1);
    cursor: pointer;
}

.spin-play-button.active:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.3), 0 6px 12px rgba(0, 0, 0, 0.6);
    border-color: #ffed4e;
}

.spin-play-button.disabled {
    background: linear-gradient(180deg, #727272 0%, #5a5a5a 50%, #3a3a3a 100%);
    border-color: #555;
    opacity: 0.8;
    cursor: not-allowed;
    transform: translateX(-50%) scale(1);
}

/* Tooltip personalizado para botón desactivado */
.spin-disabled-tooltip .tooltip-inner {
    background-color: #000000 !important;
    color: #fff !important;
    border: 1.5px solid rgba(212, 175, 55, 0.6) !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: 'Cinzel', serif !important;
    max-width: 250px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), inset 0 0 3px rgba(212, 175, 55, 0.2) !important;
}

.spin-disabled-tooltip .tooltip-arrow::before {
    border-top-color: rgba(212, 175, 55, 0.6) !important;
}

.spin-disabled-tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(212, 175, 55, 0.6) !important;
}

.spin-disabled-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: rgba(212, 175, 55, 0.6) !important;
}

.spin-disabled-tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: rgba(212, 175, 55, 0.6) !important;
}

.spin-disabled-tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: rgba(212, 175, 55, 0.6) !important;
}

.spin-flex-container .recent-rewards {
    width: 45%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid #a97c50;
    padding: 12px;
    padding-bottom: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.5);
    max-height: 400px;
    height: 100%;
    overflow: hidden;
}

/* Recent Rewards */
.recent-rewards {
    max-width: 320px;
    padding: 10px;
}

.recent-rewards h2 {
    font-size: 1rem;
    color: #a97c50;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
    text-align: center;
}

.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spin-flex-container .rewards-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    padding-bottom: 5px;
    min-height: 0;
    max-height: calc(100% - 50px);
}

.spin-flex-container .rewards-list::-webkit-scrollbar {
    width: 6px;
}

.spin-flex-container .rewards-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.spin-flex-container .rewards-list::-webkit-scrollbar-thumb {
    background-color: rgba(169, 124, 80, 0.5);
    border-radius: 10px;
}

.reward-item {
    display: flex;
    align-items: center;
    padding: 5px 6px;
    border-radius: 5px;
    background: rgba(46, 24, 9, 0.7);
    border: 1px solid rgba(169, 124, 80, 0.3);
    font-size: 0.8rem;
}

.reward-item.special {
    background: rgba(158, 75, 17, 0.3);
    border-color: rgba(212, 175, 55, 0.5);
}

.reward-item.rare {
    background: rgba(110, 52, 18, 0.3);
}

.reward-image {
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reward-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.reward-details {
    flex: 1;
    padding: 0 6px;
    min-width: 0;
}

.reward-name {
    font-size: 0.7rem;
    color: #fff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reward-amount {
    font-size: 0.65rem;
    color: #a97c50;
}

.reward-date {
    font-size: 0.6rem;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Modal de recompensa */
/* Modal de recompensa para Spin */
#rewardModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.9) !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#rewardModal .reward-modal-content {
    background: linear-gradient(180deg, #4b1e0e 0%, #2d1a0a 100%);
    border: 3px solid #a97c50;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 50px rgba(169, 124, 80, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.5);
    margin: auto;
    z-index: 100000;
}

#rewardModal .reward-modal-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #a97c50;
}

#rewardModal .reward-modal-header h2 {
    color: #a97c50;
    margin: 0;
    font-family: 'Cinzel', serif;
}

#closeModal {
    color: #a97c50;
    font-size: 24px;
    cursor: pointer;
}

#rewardModal .reward-modal-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#rewardModal .reward-modal-body .reward-image-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#rewardImage {
    max-width: 50px;
    max-height: 50px;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

#rewardModal .reward-modal-body .reward-details {
    text-align: center;
}

#rewardName {
    font-size: 1.2rem;
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

#rewardAmount {
    font-size: 1.5rem;
    color: #a97c50;
}

/* Modal de confirmación para reset spins */
.reset-spin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.reset-spin-modal-content {
    background: linear-gradient(180deg, #4b1e0e 0%, #2d1a0a 100%);
    border: 3px solid #a97c50;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 50px rgba(169, 124, 80, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 100001;
}

.reset-spin-modal-header {
    padding: 20px;
    border-bottom: 1px solid #a97c50;
}

.reset-spin-modal-header h3 {
    color: #a97c50;
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    text-align: center;
}

.reset-spin-modal-body {
    padding: 25px;
    text-align: center;
}

.reset-spin-modal-body p {
    color: #e6c98a;
    margin: 10px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.reset-spin-silk-amount {
    margin-top: 15px !important;
    font-size: 1.2rem !important;
}

.reset-spin-silk-amount strong {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.3rem;
}

.reset-spin-modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #a97c50;
}

.reset-spin-btn-cancel,
.reset-spin-btn-confirm {
    flex: 1;
    padding: 12px 20px !important;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    line-height: normal !important;
    box-sizing: border-box;
}

.reset-spin-btn-cancel {
    background: rgba(139, 111, 66, 0.3);
    border-color: #8b6f42;
    color: #e6c98a;
}

.reset-spin-btn-cancel:hover {
    background: rgba(139, 111, 66, 0.5);
    border-color: #a97c50;
}

.reset-spin-btn-confirm {
    background: linear-gradient(180deg, #d4b876 0%, #a97c50 50%, #8b6f42 100%);
    border-color: #ffd700;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.reset-spin-btn-confirm:hover {
    background: linear-gradient(180deg, #e6c98a 0%, #bf8f5f 50%, #9d6f42 100%);
    border-color: #ffed4e;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: scale(1.02);
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    .spin-flex-container {
        flex-direction: column;
    }
    
    .spin-flex-container .spin-wheel-container,
    .spin-flex-container .recent-rewards {
        width: 100%;
    }
    
    .spin-flex-container .recent-rewards {
        margin-top: 20px;
    }
}




.specialoffert-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.specialoffert-header {
    text-align: center;
    padding: 10px 0;
    position: relative;
    border-bottom: 1px solid rgba(169, 124, 80, 0.3);
}


.specialoffert-title {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    color: #a97c50;
    text-shadow: 0 0 10px rgba(169, 124, 80, 0.5);
}

.specialoffert-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9a7047;
    color: #fff;
    border: 1px solid #a97c50;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s;
}

.specialoffert-close-button:hover {
    background: #a97c50;
}

/* --- Special Offer Styles --- */
.specialoffert-grid {
    display: flex
;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: flex-start;
    margin-top: 32px;
    padding: 50px;
}

.specialoffert-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid #7c5a2b;
    border-radius: 12px;
    width: 180px;
    min-height: 260px;
    padding: 16px 10px 12px 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px #0002;
    transition: box-shadow 0.2s, border-color 0.2s;
    min-width: 180px;
}
.specialoffert-box.recommended {
    border-color: #ffd700;
    box-shadow: 0 0 12px #ffd70044;
}
.specialoffert-box.soldout {
    opacity: 0.7;
    filter: grayscale(0.3);
}
.specialoffert-star {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}
.specialoffert-amount {
    position: absolute;
    top: 8px;
    right: 12px;
    background: #2d1a0b;
    color: #ffd700;
    font-weight: bold;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 8px;
    z-index: 2;
    border: 1px solid #7c5a2b;
}
.specialoffert-timer-label {
    font-size: 11px;
    color: #e6c98a;
    margin-top: 2px;
    margin-bottom: 0;
    text-align: center;
}
.specialoffert-timer {
    font-size: 13px;
    color: #ffd700;
    margin-bottom: 6px;
    text-align: center;
}
.specialoffert-img {
    position: relative;
    margin: 12px 0 6px 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1207;
    border-radius: 8px;
    border: 1.5px solid #7c5a2b;
    box-shadow: 0 1px 4px #0003;
}
.specialoffert-img img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.specialoffert-item-name {
    min-height: 3.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    color: #ffd700;
    font-weight: bold;
    margin: 6px 0 2px 0;
    word-break: break-word;
}
.specialoffert-price {
    font-size: 14px;
    color: #e6c98a;
    margin-bottom: 8px;
    text-align: center;
}
.silk-icon {
    color: #ffd700;
    font-weight: bold;
    margin-left: 2px;
}
.specialoffert-buy-btn {
    background: linear-gradient(90deg, #ffd700 60%, #e6c98a 100%);
    color: #2d1a0b;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 6px 21px;
    font-size: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    box-shadow: 0 1px 4px #0002;
    transition: background 0.2s, color 0.2s;
    line-height: 1.8rem;
    height: 2.8rem;
}
.specialoffert-buy-btn:hover {
    background: linear-gradient(90deg, #ffe066 60%, #ffd700 100%);
    color: #7c5a2b;
}
.specialoffert-available {
    font-size: 12px;
    color: #ffd700;
    margin-bottom: 2px;
    text-align: center;
}
.specialoffert-check {
    margin: 8px 0 2px 0;
    text-align: center;
}

.specialoffert-amount-on-img {
    position: absolute;
    top: -12px;
    right: -27px;
    background: #2d1a0b;
    color: #ffd700;
    font-weight: bold;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 8px;
    z-index: 3;
    border: 1px solid #7c5a2b;
    pointer-events: none;
}


/* Calendar Carousel */
.specialoffert-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 5%;
    margin-top: 10px;
    flex: 1;
}

.specialoffert-carousel {
    display: flex;
    gap: 40px;
    padding: 20px 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #e6c98a rgba(0, 0, 0, 0.2);
}

.specialoffert-carousel::-webkit-scrollbar {
    height: 8px;
}

.specialoffert-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.specialoffert-carousel::-webkit-scrollbar-thumb {
    background-color: rgba(169, 124, 80, 0.5);
    border-radius: 10px;
}

/* --- Auction House Styles --- */
.auction-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    position: relative;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Agregar botón de regresar (flecha) al estilo de calendar */
.auction-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9a7047;
    color: #fff;
    border: 1px solid #a97c50;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s;
}

.auction-close-button:hover {
    background: #a97c50;
}

/* Nuevo grid para los dos box (auction-left y auction-right) */
.auction-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    flex: 1;
}

/* Ajustar auction-content para que use el grid */
.auction-content {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    flex: 1;
    padding: 0 18px;
    gap: 18px;
    margin-top: 18px;
}

/* (Opcional) Ajustar auction-left y auction-right para que ocupen el 100% de su columna */
.auction-left, .auction-right {
    width: 100%;
    margin-top: 12px;
}
.auction-header {
    text-align: center;
    padding: 15px 0 15px 0;
    border-bottom: 1.5px solid rgba(169, 124, 80, 0.3);
    background: rgba(0, 0, 0, 0.12);
}
.auction-title {
    font-size: 2rem;
    font-family: 'Cinzel', serif;
    color: #ffd700;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-shadow: 0 0 10px #a97c50cc, 0 1px 2px #000a;
}
.auction-status {
    width: 100%;
    text-align: center;
    margin-bottom: 18px;
}
.auction-status-active {
    color: #ffff00;
    font-size: 1.25rem;
    font-weight: bold;
    text-shadow: 0 0 8px #fff70099, 0 1px 2px #000a;
    display: block;
    margin-bottom: 4px;
}
.auction-status-concluded {
    color: #ffff00;
    font-size: 1.25rem;
    font-weight: bold;
    text-shadow: 0 0 8px #fff70099, 0 1px 2px #000a;
    display: block;
    margin-bottom: 4px;
}
.auction-status-upcoming {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 0 8px #ffd70099, 0 1px 2px #000a;
    display: block;
    margin-bottom: 4px;
}
.auction-timer {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.auction-winner {
    color: #00ff99;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.auction-bid-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.auction-bid-row {
    display: flex
;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
    max-width: 200px;
}
.auction-bid-input {
    width: 200px;
    height: 40px;
    font-size: 1.1rem;
    border: 1.5px solid #a97c50;
    border-radius: 7px;
    background: #1a1207;
    color: #ffd700;
    padding: 0 12px;
    outline: none;
    box-shadow: 0 1px 4px #0002;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -moz-appearance: textfield; /* Firefox */
}

/* Remove spinner buttons for Chrome, Safari, Edge, Opera */
.auction-bid-input::-webkit-outer-spin-button,
.auction-bid-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.auction-higher-btn {
    width: 200px;
    height: 40px;
    background: #333;
    color: #ffd700;
    border: 1.5px solid #a97c50;
    border-radius: 7px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.auction-higher-btn:hover {
    background: #444;
    color: #fff;
}
.auction-bid-btn {
    width: 200px;
    height: 40px;
    background: linear-gradient(90deg, #00ff99 60%, #00cfff 100%);
    color: #2d1a0b;
    border: none;
    border-radius: 7px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 4px #0002;
    transition: background 0.2s, color 0.2s;
}
.auction-bid-btn:hover {
    background: linear-gradient(90deg, #00cfff 60%, #00ff99 100%);
    color: #fff;
}
.auction-current-bid {
    color: #ffd700;
    font-size: 1.1rem;
    margin-top: 8px;
    text-align: center;
}
.auction-bid-amount {
    color: #00ff99;
    font-weight: bold;
}
.auction-bid-user {
    color: #fff;
    font-weight: bold;
}
.auction-bid-concluded-msg, .auction-upcoming-msg {
    color: #ffd700;
    font-size: 1.1rem;
    margin-top: 18px;
    text-align: center;
}
.auction-item-img {
    width: 80%;
    background: #e6c98a center / cover no-repeat;
    border-radius: 10px;
    border: 2px solid #a97c50;
    box-shadow: 0 2px 12px #0005;
    display: block;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.auction-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 1px 8px #0006;
}
.auction-item-name {
    width: 80%;
    font-size: 1.2rem;
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-align: center;
    margin-top: 4px;
}

/* --- Title Manager Styles --- */
.titlemanager-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.titlemanager-header {
    text-align: center;
    padding: 10px 0;
    position: relative;
    border-bottom: 1px solid rgba(169, 124, 80, 0.3);
}

.titlemanager-title {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    color: #a97c50;
    text-shadow: 0 0 10px rgba(169, 124, 80, 0.5);
}

.titlemanager-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9a7047;
    color: #fff;
    border: 1px solid #a97c50;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s;
}

.titlemanager-close-button:hover {
    background: #a97c50;
}

.titlemanager-content {
    padding: 10px 20px;
    min-height: 500px;
}

.titlemanager-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

/* Title Manager List Styles */
.titlemanager-list {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #a97c50;
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    min-height: 400px;
    overflow-y: auto;
}

.titlemanager-table {
    width: 100%;
    border-collapse: collapse;
}

.titlemanager-table th {
    color: #a97c50;
    font-weight: bold;
    text-align: left !important;
    padding: 6px 6px;
    border-bottom: 1px solid rgba(169, 124, 80, 0.3);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    width: 100%;
}

.titlemanager-table td {
    padding: 6px 6px;
    border-bottom: 1px solid rgba(169, 124, 80, 0.1);
    vertical-align: middle;
}

.title-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-text {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.titlemanager-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.titlemanager-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #a97c50;
    background: rgba(0, 0, 0, 0.3);
    color: #a97c50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.titlemanager-action-btn i {
    font-size: 1rem;
}

.titlemanager-action-btn:hover {
    background: #a97c50;
    color: #fff;
    transform: scale(1.1);
}

.titlemanager-action-btn:active {
    transform: scale(0.95);
}

/* Scrollbar styles for the list */
.titlemanager-list::-webkit-scrollbar {
    width: 8px;
}

.titlemanager-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.titlemanager-list::-webkit-scrollbar-thumb {
    background: rgba(169, 124, 80, 0.5);
    border-radius: 4px;
}

.titlemanager-list::-webkit-scrollbar-thumb:hover {
    background: rgba(169, 124, 80, 0.7);
}

/* Right box - Title editor */
.titlemanager-editor {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #a97c50;
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.titlemanager-input-group {
    display: flex;
    gap: 10px;
}

.titlemanager-input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #a97c50;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1rem;
}

.titlemanager-btn {
    padding: 0 20px;
    height: 40px;
    border: 1px solid #a97c50;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: #a97c50;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.titlemanager-btn:hover {
    background: #a97c50;
    color: #fff;
}

/* Title Manager Color Palette Styles */
.titlemanager-color-palette {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid rgba(169, 124, 80, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.color-option:hover {
    transform: scale(1.1);
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    z-index: 1;
}

.color-option.selected {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.color-option::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    border: 1px solid #a97c50;
    z-index: 2;
}

.color-option:hover::after {
    opacity: 1;
}

.color-preview {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #a97c50;
    border-radius: 8px;
    padding: 15px;
    margin-top: 30px;
}

.color-preview h4 {
    color: #a97c50;
    font-size: 1rem;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
    text-align: center;
}

.preview-text {
    font-size: 1.2rem;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    color: #FFFFFF;
    transition: color 0.2s ease;
}

/* Color Picker Styles */
.color-picker-container {
    position: relative;
    margin-bottom: 20px;
}

#colorPicker {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    margin-top: 10px;
}

.pickr {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid #a97c50 !important;
    border-radius: 8px !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.pickr .pcr-app {
    background: rgba(0, 0, 0, 0.8) !important;
    border: none !important;
    box-shadow: none !important;
}

.pickr .pcr-app .pcr-selection .pcr-color-preview {
    border: 1px solid #a97c50 !important;
}

.pickr .pcr-app .pcr-selection .pcr-color-chooser,
.pickr .pcr-app .pcr-selection .pcr-color-opacity,
.pickr .pcr-app .pcr-selection .pcr-color-palette {
    border: 1px solid #a97c50 !important;
}

.pickr .pcr-app .pcr-interaction input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #a97c50 !important;
    color: #fff !important;
}

.pickr .pcr-app .pcr-interaction .pcr-result {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #a97c50 !important;
    color: #fff !important;
}

.pickr .pcr-app .pcr-interaction .pcr-type.active {
    background: #a97c50 !important;
    color: #fff !important;
}

.pickr .pcr-app .pcr-interaction .pcr-save,
.pickr .pcr-app .pcr-interaction .pcr-cancel,
.pickr .pcr-app .pcr-interaction .pcr-clear {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #a97c50 !important;
    color: #a97c50 !important;
}

.pickr .pcr-app .pcr-interaction .pcr-save:hover,
.pickr .pcr-app .pcr-interaction .pcr-cancel:hover,
.pickr .pcr-app .pcr-interaction .pcr-clear:hover {
    background: #a97c50 !important;
    color: #fff !important;
}

.recent-colors {
    margin-top: 20px;
}

.recent-colors h4 {
    color: #a97c50;
    font-size: 1rem;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

.color-grid {
    display: grid
;
    grid-template-columns: repeat(16, 1fr);
    gap: 8px;
}

.color-option {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.color-option.selected {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.color-option::after {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.color-option:hover::after {
    opacity: 1;
}

/* Title Manager Price Styles */
.titlemanager-prices {
    margin-top: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #a97c50;
}

.price-amount {
    color: #ffd700;
    font-weight: bold;
}

/* Title Manager Tab Styles */
.titlemanager-tabs {
    display: flex
;
    justify-content: center;
    gap: 20px;
    margin: 13px auto 6px;
    padding: 0 20px;
    max-width: 600px;
}

.titlemanager-tab-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #a97c50;
    border-radius: 8px;
    padding: 12px 24px;
    color: #a97c50;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    height: 2rem;
}

.titlemanager-tab-btn i {
    font-size: 1.2rem;
}

.titlemanager-tab-btn:hover {
    background: rgba(169, 124, 80, 0.2);
    transform: translateY(-2px);
}

.titlemanager-tab-btn.active {
    background: #a97c50;
    color: #fff;
    box-shadow: 0 0 15px rgba(169, 124, 80, 0.3);
    height: 2rem;
}

.titlemanager-tab-content {
    position: relative;
    width: 100%;
    margin-top: -10px;
}

.titlemanager-tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.titlemanager-tab-pane.active {
    display: block;
    opacity: 1;
}

.titlemanager-content {
    padding: 10px 20px;
    min-height: 500px;
}

/* Icon Tab Styles */
.icon-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-preview {
    font-size: 1.4rem;
    color: #FFD700;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #fff;
}

.icon-preview-large {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid #a97c50;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.icon-preview-large i {
    font-size: 2.5rem;
    color: #FFD700;
}

.icon-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.icon-category-btn {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #a97c50;
    border-radius: 6px;
    padding: 8px 16px;
    color: #a97c50;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-category-btn:hover {
    background: rgba(169, 124, 80, 0.2);
}

.icon-category-btn.active {
    background: #a97c50;
    color: #fff;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Tag Tab Styles */
.tag-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag-preview {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #a97c50;
    border-radius: 4px;
    padding: 4px 8px;
    color: #FFD700;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
}

.tag-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #fff;
}

.tag-preview-large {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid #a97c50;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
}

.tag-text {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #FFD700;
}

.tag-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tag-category-btn {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #a97c50;
    border-radius: 6px;
    padding: 8px 16px;
    color: #a97c50;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-category-btn:hover {
    background: rgba(169, 124, 80, 0.2);
}

.tag-category-btn.active {
    background: #a97c50;
    color: #fff;
}

/* Tag Tab Styles */
.tagmanager-content {
    padding: 10px 20px;
    min-height: 500px;
}

.tagmanager-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.tagmanager-list {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #a97c50;
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    min-height: 400px;
    overflow-y: auto;
}

.tagmanager-table {
    width: 100%;
    border-collapse: collapse;
}

.tagmanager-table th {
    color: #a97c50;
    font-weight: bold;
    text-align: left !important;
    padding: 6px 6px;
    border-bottom: 1px solid rgba(169, 124, 80, 0.3);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    width: 100%;
}

.tagmanager-table td {
    padding: 6px 6px;
    border-bottom: 1px solid rgba(169, 124, 80, 0.1);
    vertical-align: middle;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-text {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tagmanager-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.tagmanager-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #a97c50;
    background: rgba(0, 0, 0, 0.3);
    color: #a97c50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.tagmanager-action-btn i {
    font-size: 1rem;
}

.tagmanager-action-btn:hover {
    background: #a97c50;
    color: #fff;
    transform: scale(1.1);
}

.tagmanager-action-btn:active {
    transform: scale(0.95);
}

/* Scrollbar styles for the tag list */
.tagmanager-list::-webkit-scrollbar {
    width: 8px;
}

.tagmanager-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.tagmanager-list::-webkit-scrollbar-thumb {
    background: rgba(169, 124, 80, 0.5);
    border-radius: 4px;
}

.tagmanager-list::-webkit-scrollbar-thumb:hover {
    background: rgba(169, 124, 80, 0.7);
}

/* Right box - Tag editor */
.tagmanager-editor {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #a97c50;
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.tagmanager-input-group {
    display: flex;
    gap: 10px;
}

.tagmanager-input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #a97c50;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1rem;
}

.tagmanager-btn {
    padding: 0 20px;
    height: 40px;
    border: 1px solid #a97c50;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: #a97c50;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.tagmanager-btn:hover {
    background: #a97c50;
    color: #fff;
}

/* Tag Manager Price Styles */
.tagmanager-prices {
    margin-top: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
}

/* Icon Manager Styles */
.iconmanager-content {
    padding: 10px 20px;
    min-height: 400px;
}

.iconmanager-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.iconmanager-list {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 4px;
    padding: 15px;
    height: 100%;
    overflow-y: auto;
    margin-bottom: 35px;
}

.iconmanager-table {
    width: 100%;
    border-collapse: collapse;
}

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

.iconmanager-table th {
    color: #FFD700;
    font-weight: 600;
    font-size: 14px;
}

.iconmanager-editor {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 4px;
    padding: 15px;
    height: 100%;
    padding-bottom: 35px;
}

/* Separador decorativo para icon manager */
.iconmanager-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0 18px 0;
}
.iconmanager-separator-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg,rgba(255,215,0,0.1),#FFD700 60%,rgba(255,215,0,0.1));
    border-radius: 2px;
}
.iconmanager-separator-icon {
    color: #FFD700;
    margin: 0 10px;
    font-size: 1.1rem;
}

/* Icon Manager Flag Styles */
.iconmanager-flag {
    width: 32px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px #0007;
    border: 2px solid #FFD700;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.1s;
    cursor: pointer;
    background: #2a120a;
}
.iconmanager-flag:hover {
    box-shadow: 0 0 12px #FFD700, 0 2px 8px #0007;
    border-color: #ffe066;
    transform: scale(1.08);
}
.iconmanager-flag-active {
    box-shadow: 0 0 24px 4px #FFD700, 0 2px 8px #0007;
    border-color: #fff700;
    z-index: 2;
    position: relative;
    transform: scale(1.12);
}

/* Icon Manager - Nueva funcionalidad */
.iconmanager-search {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.iconmanager-search input {
    flex: 1;
}

.iconmanager-price-label {
    color: #FFD700;
    font-size: 14px;
    white-space: nowrap;
}

.iconmanager-price-label i {
    margin-right: 5px;
}

.iconmanager-header {
    text-align: center;
    font-size: 1.1rem;
    color: #FFD700;
    font-family: 'Cinzel', serif;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.iconmanager-active-preview {
    text-align: center;
    padding: 15px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 10px;
}

.iconmanager-active-icon {
    width: 48px;
    height: 48px;
    border: 2px solid #FFD700;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.iconmanager-active-name {
    color: #FFD700;
    font-size: 12px;
    margin-top: 8px;
    font-family: 'Cinzel', serif;
}

.iconmanager-no-icon {
    color: #888;
    font-style: italic;
    font-size: 12px;
}

.iconmanager-icons-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 10px;
    max-height: 300px;
    overflow: auto;
}

.iconmanager-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.iconmanager-icon img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.iconmanager-icon.owned {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.iconmanager-icon.owned:hover {
    border-color: #8BC34A;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    transform: scale(1.1);
}

.iconmanager-icon.not-owned {
    opacity: 0.5;
    filter: grayscale(50%);
    border-color: #666;
}

.iconmanager-icon.not-owned:hover {
    opacity: 1;
    filter: grayscale(0%);
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.iconmanager-icon .icon-price {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #FFD700;
    color: #000;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iconmanager-icon.active {
    border-color: #4CAF50;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.7);
}

.iconmanager-icon .icon-active-check {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.iconmanager-no-icons {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
}

.titlemanager-btn-remove {
    background: #d9534f !important;
    color: #fff !important;
    width: 100%;
    margin-top: 5px;
}

.titlemanager-btn-remove:hover {
    background: #c9302c !important;
}

.stats-placeholder {
    color: #dfdfdf;
}

.info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.race-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.value {
    color: #926a48;
}

.separator {
    height: 2px;
    margin: 15px 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #926a48 20%, 
        #e6c98a 50%, 
        #926a48 80%, 
        transparent 100%
    );
    box-shadow: 0 0 8px rgba(230, 201, 138, 0.3);
    border-radius: 2px;
}

.vip-info {
    color: #e6c98a;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(230, 201, 138, 0.3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vip-upgrade-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.4) 60%, rgba(191, 167, 106, 0.4) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 12px #0007;
    color: #fff;
}

.vip-upgrade-btn:hover {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.5) 60%, rgba(191, 167, 106, 0.5) 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px #0003;
}

.vip-upgrade-btn svg {
    width: 12px;
    height: 12px;
    color: inherit;
}

.vip-upgrade-btn svg path {
    stroke: currentColor;
}

.vip-upgrade-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(230, 201, 138, 0.5);
}

.stats-placeholder {
    color: #e6c98a;
} 

.vip-table-wrapper {
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 32px auto 0 auto;
    max-width: 900px;
    width: 100%;
    line-height: 2rem;
    max-height: 400px;
}

.vip-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1.05em;
    box-shadow: 0 2px 16px #0006;
    border-radius: 8px;
    overflow: hidden;
}

.vip-table th, .vip-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #333;
    font-size: 1.2rem;
    font-weight: 400;
}

.vip-table th {
    background: #18140c;
    color: #e6c98a;
    font-size: 0.8em;
    letter-spacing: 1px;
}

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

.vip-icon {
    font-size: 0.8em;
    margin-right: 8px;
    vertical-align: middle;
}

.vip-x {
    color: #ff3333;
    font-size: 0.8em;
    font-weight: bold;
    text-align: center;
}

.vip-table-note {
    color: #00ff00;
    font-size: 1.05em;
    text-align: center;
    font-weight: 500;
}

.ranking-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.ranking-sidebar {
    width: 18%;
    min-width: 180px;
    max-width: 250px;
    background: rgba(24, 20, 12, 0.97);
    border-right: 2px solid #2c3136;
    padding: 20px 12px 0 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px #0005;
    z-index: 10;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none!important;
}

.sidebar-link {
    display: block;
    color: #e6c98a;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 4px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-link:hover {
    background: #2c1a0a;
    color: #ffd700;
}

.sidebar-section {
    margin-bottom: 8px;
}

.sidebar-toggle {
    width: 100%;
    background: none;
    border: none;
    color: #ffd700;
    font-size: 1.1rem
11px
;
    font-weight: bold;
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 2px;
    transition: background 0.2s, color 0.2s;
    line-height: 1.3rem;
}

.sidebar-toggle.active, .sidebar-toggle:hover {
    background: #2c1a0a;
    color: #fff;
}

.sidebar-submenu {
    padding-left: 16px;
    margin-bottom: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
    opacity: 0;
    list-style: none;
}

.sidebar-toggle.active + .sidebar-submenu {
    display: block;
    max-height: 500px;
    opacity: 1;
}

.sidebar-section .sidebar-submenu .sidebar-link {
    font-size: 1em;
    color: #e6c98a;
    background: none;
    margin-bottom: 2px;
    padding-left: 18px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-section .sidebar-submenu .sidebar-link:hover {
    background: #2c1a0a;
    color: #ffd700;
}

.sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    vertical-align: middle;
}

.sidebar-toggle .sidebar-icon,
.sidebar-link .sidebar-icon {
    margin-right: 8px;
}

.sidebar-toggle svg,
.sidebar-link svg {
    display: inline-block;
    vertical-align: middle;
    transition: filter 0.2s;
    filter: drop-shadow(0 1px 2px #0006);
}

.sidebar-toggle.active .sidebar-icon svg {
    filter: drop-shadow(0 0 6px #ffd700);
}

.ranking-content {
    width: 82%;
    padding: 20px 16px;
    overflow-y: auto;
    height: 600px;
}

.sidebar-link.active, .sidebar-link.active:hover {
    background: #2c1a0a;
    color: #ffd700;
}

.sidebar-menu li.active > .sidebar-link,
.sidebar-menu li.active > .sidebar-link:hover {
    background: #2c1a0a;
    color: #ffd700;
}

ul.collapsible, .collapsible-body {
    border: none;
    padding: 0;
}

ul.sidebar-ul li a {
    color: #daa741;
    font-size: 1.5rem;
    padding: 5px 15px;
    border-radius: 6px;
}

ul.sidebar-ul {
    padding: 5px 15px;
    border-radius: 6px;
    margin: 0;
}

ul#ranking-collapsible {
    background: transparent;
    box-shadow: none;
}

ul.sidebar-ul li{
    padding: 5px 5px;
    border-radius: 6px;
    width: 100%;
    margin: 0;
}

.sidebar-ul li.active, .sidebar-ul li:hover {
    background: #2c1a0a;
    color: #ffd700;
    padding: 5px 5px;
    border-radius: 6px;
    margin: 0;
}

/* --- RANKING PAGE CLASSES --- */
.ranking-header {
    display: flex
;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.ranking-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e6c98a;
    font-family: 'Cinzel', serif;
}
.ranking-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ranking-last-update {
    color: #ffd700;
    font-size: 0.95rem;
}
.ranking-back-home {
    color: #e6c98a;
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.ranking-back-home:hover {
    color: #ffd700;
}
.ranking-back-home svg {
    margin-right: 4px;
}

/* Ranking Table - Copia exacta de drop-table */
.ranking-table {
    width: 100%;
    background: #18130c;
    color: #fff;
    border-radius: 8px;
    table-layout: fixed;
    overflow: hidden;
    font-size: 1.08rem;
}
.ranking-table th,
.ranking-table td {
    text-align: left;
    padding: 10px 12px;
}
.ranking-table th {
    background: #18140c;
    color: #e6c98a;
    font-size: 0.98em;
    letter-spacing: 1px;
}
/* Anchos de columnas */
.ranking-table th:nth-child(1),
.ranking-table td:nth-child(1) {
    width: 50px;
}
.ranking-table th:nth-child(2),
.ranking-table td:nth-child(2) {
    width: auto;
}
.ranking-table th:nth-child(3),
.ranking-table td:nth-child(3) {
    width: 250px;
}
.ranking-table th:nth-child(4),
.ranking-table td:nth-child(4) {
    width: 100px;
    text-align: left !important;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    padding: 10px 6px;
}
.ranking-table>tbody>tr:nth-child(odd) {
    background-color: #14110e9e !important;
}
.ranking-table td {
    border-bottom: 1px solid #222;
    vertical-align: middle;
}

/* Ranking Character Cell */
.ranking-character-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ranking-char-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    border-radius: 4px;
    object-fit: contain;
}
.ranking-char-level {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.9em;
}
.ranking-race-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    object-fit: contain;
}
.ranking-char-name {
    font-weight: bold;
    color: #e6c98a;
}
.ranking-char-mastery {
    color: #aaa;
    font-size: 0.9em;
}
.ranking-points {
    font-weight: bold;
    color: #ffd700;
}
.character-cell {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}
.char-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 4px;;
    object-fit: contain;
}
.race-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin: 0 4px;
    object-fit: contain;
}
.char-level {
    color: #ffd700;
    font-weight: bold;
    margin-right: 2px;
}
.char-name {
    font-weight: bold;
    color: #e6c98a;
    margin-right: 2px;
}
.char-mastery {
    color: #aaa;
    font-size: 0.95em;
    margin-left: 2px;
}

/* Ranking Filters */
.ranking-filters-container {
    width: 100%;
    background: rgba(60, 40, 20, 0.6);
    border: 1px solid rgba(169, 124, 80, 0.5);
    border-radius: 4px 4px 0 0;
    padding: 10px 15px;
}

.ranking-filters {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px;
    flex-wrap: nowrap;
}

.ranking-filter-group {
    flex: 1;
    min-width: 0;
    display: flex !important;
    align-items: stretch;
}

.ranking-filter-input,
.ranking-filter-select {
    width: 100% !important;
    padding: 6px 10px !important;
    background: rgba(30, 20, 10, 0.8) !important;
    border: 1px solid rgba(169, 124, 80, 0.4) !important;
    border-radius: 4px !important;
    color: #e6c98a !important;
    font-size: 0.85em !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
    height: 32px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    appearance: auto !important;
}

.ranking-filter-input::placeholder {
    color: rgba(230, 201, 138, 0.5);
}

.ranking-filter-input:focus,
.ranking-filter-select:focus {
    outline: none !important;
    border-color: #a97c50 !important;
    box-shadow: 0 0 4px rgba(169, 124, 80, 0.3) !important;
}

.ranking-filter-select option {
    background: #1a0a05;
    color: #e6c98a;
}

.ranking-filter-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ranking-filter-btn {
    padding: 0 12px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px;
    height: 32px !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
    align-self: stretch;
    margin: 0 !important;
}

.ranking-filter-btn i {
    font-size: 1.1em;
}

.ranking-filter-btn-apply {
    background: #a97c50 !important;
    color: #fff !important;
}

.ranking-filter-btn-apply:hover {
    background: #ffd700 !important;
    color: #1a0a05 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.ranking-filter-btn-reset {
    background: rgba(169, 124, 80, 0.2) !important;
    color: #e6c98a !important;
    border: 1px solid rgba(169, 124, 80, 0.4) !important;
}

.ranking-filter-btn-reset:hover {
    background: rgba(255, 69, 69, 0.3) !important;
    border-color: #ff4545 !important;
    color: #ffaaaa !important;
}

.ranking-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 8px 8px;
}

.ranking-table tbody tr {
    cursor: pointer;
    transition: background 0.15s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(169, 124, 80, 0.15) !important;
}

/* DataTables pagination for ranking */
.ranking-table-wrapper .dataTables_wrapper {
    width: 100%;
}

.ranking-table-wrapper .dataTables_paginate {
    padding: 15px 20px;
    text-align: center;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(169, 124, 80, 0.2);
}

.ranking-table-wrapper .dataTables_paginate span {
    display: flex !important;
    gap: 8px;
}

.ranking-table-wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0;
    background: rgba(169, 124, 80, 0.15);
    border: 1px solid rgba(169, 124, 80, 0.3);
    border-radius: 4px;
    color: #e6c98a !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block !important;
    font-size: 0.9em;
}

.ranking-table-wrapper .dataTables_paginate .paginate_button:hover:not(.disabled) {
    background: rgba(169, 124, 80, 0.4);
    color: #fff !important;
    border-color: rgba(169, 124, 80, 0.6);
}

.ranking-table-wrapper .dataTables_paginate .paginate_button.current {
    background: #a97c50;
    color: #fff !important;
    border-color: #a97c50;
}

.ranking-table-wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ranking-table-wrapper .dataTables_paginate .ellipsis {
    color: #666;
    padding: 6px 8px;
}
/* --- END RANKING PAGE CLASSES --- */

/* Unique History Table Styles */
.unique-table-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0px auto 0 auto;
    max-width: 800px;
    width: 100%;
    line-height: 1.5rem;
    max-height: 420px;
    overflow-y: auto;
    /* Agrega estas líneas: */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 16px #0006;
}
.unique-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 0.9em;
    /* Quita estos si están aquí: */
    /* background: rgba(0, 0, 0, 0.3); */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 16px #0006; */
    overflow: hidden;
}

.unique-table th, .unique-table td {
    padding: 8px 8px;
    text-align: left;
    border-bottom: 1px solid #333;
    font-size: 1.2rem;
}

.unique-table th {
    background: #18140c;
    color: #e6c98a;
    font-size: 0.85em;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

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

.unique-table tr:hover {
    background: rgba(169, 124, 80, 0.1);
}

.unique-name {
    color: #ffd700;
    font-weight: 500;
}

.unique-charname {
    color: #e6c98a;
    font-weight: 500;
}

.unique-status {
    font-weight: 500;
}

.unique-status.alive {
    color: #4CAF50;
}

.unique-status.dead {
    color: #f44336;
}

.unique-map {
    color: #a97c50;
}

.unique-time {
    color: #888;
    font-size: 0.85em;
}

/* Scrollbar styles for unique table */
.unique-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.unique-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.unique-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(169, 124, 80, 0.5);
    border-radius: 4px;
}

.unique-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(169, 124, 80, 0.7);
}

td.unique-map {
    font-weight: 700;
}

/* --- Schedule Grid Styles --- */
.schedule-grid {
    max-width: 800px;
    width: 100%;
    max-height: 430px;
    overflow-x: auto;
    overflow-y: hidden;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.schedule-box {
    background: rgb(28 11 5);
    border: 3px solid;
    border-image: linear-gradient(45deg, #dd8615, #a97c50, #dd8615) 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 8px;
    min-height: 140px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.schedule-box .icon {
    font-size: 2.5rem;
}

.schedule-box .title {
    font-size: 1rem;
    font-weight: bold;
    color: #dd8615;
    text-align: center;
    margin-top: -15px;
    text-transform: uppercase;
}

.schedule-box .time {
    font-size: 1.1rem;
    color: #a97c50;
    margin-top: 6px;
    text-align: center;
}

.schedule-box-active {
    box-shadow: 0 0 4px #3cff7a, 0 0 10px rgba(0, 0, 0, 0.2);
    border-color: #3cff7a;
}

/* --- Schedule Countdown Styles --- */
.schedule-box .event-separator {
    width: 60%;
    margin: 10px auto 12px auto;
    height: 2px;
    background: linear-gradient(90deg, #a97c50 0%, #fff0 100%);
    border-radius: 2px;
}

.schedule-box .countdown-labels {
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 0.6em;
    color: #a97c50;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.schedule-box .time {
    font-size: 0.8;
    font-family: monospace;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.schedule-box .time span {
    display: inline-block;
    width: 20px;
    text-align: center;
}

/* --- Register Styles --- */
.register-btn {
    background: linear-gradient(90deg, #dd8610 60%, #ab6d137a 100%);
    color: #2d1a0b;
    font-weight: bold;
    border: none;
    border-radius: 3px;
    padding: 3px 24px;
    font-size: 0.9rem;
    margin-top: 8px;
    cursor: pointer;
    box-shadow: 0 1px 4px #0002;
    transition: all 0.2s ease;
    line-height: 0.4rem;
    height: 2.0rem;
    position: relative;
    min-width: 100px;
}

.register-btn.enabled {
    background: linear-gradient(90deg, #ffa500 60%, #ff8c00 100%);
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4), 0 0 12px rgba(255, 165, 0, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4), 0 0 12px rgba(255, 165, 0, 0.2);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 165, 0, 0.6), 0 0 20px rgba(255, 165, 0, 0.4);
    }
}

.register-btn.enabled:hover:not(:disabled) {
    background: linear-gradient(90deg, #ffe066 60%, #ffd700 100%);
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.4);
}

.register-btn:hover:not(:disabled):not(.enabled) {
    background: linear-gradient(90deg, #ffe066 60%, #ffd700 100%);
    transform: scale(1.05);
    box-shadow: 0 2px 8px #0003;
}

.register-btn:disabled,
.register-btn.disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.register-btn:disabled::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.register-btn:disabled::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.event-description {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

/* --- Register Grid Styles --- */
.register-grid {
    max-width: 850px;
    width: 100%;
    max-height: 500px;
    overflow-x: auto;
    overflow-y: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 10px;
}

@media (max-width: 900px) {
    .register-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.register-box {
    background: rgb(28 11 5);
    border: 3px solid;
    border-image: linear-gradient(45deg, #dd8615, #a97c50, #dd8615) 1;
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 8px;
    min-height: 150px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    min-width: 160px;
}

.register-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(169, 124, 80, 0.3);
}

.register-box .icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.register-box .title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #dd8615;
    margin-top: -45px;
    text-align: center;
    font-family: 'Cinzel', serif;
}

.register-box .event-separator {
    width: 60%;
    margin: 10px auto 12px auto;
    height: 2px;
    background: linear-gradient(90deg, #a97c50 0%, #fff0 100%);
    border-radius: 2px;
}

.register-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    position: relative;
}

/* Drop Table Styles (igual que ranking pero con nuevas clases) */
.drop-table {
    width: 100%;
    background: #18130c;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    font-size: 1.08rem;
}
.drop-table th {
    background: #18140c;
    color: #e6c98a;
    font-size: 0.98em;
    letter-spacing: 1px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    padding: 10px 6px;
}
.drop-table>tbody>tr:nth-child(odd) {
    background-color: #14110e9e !important;
}
.drop-table td {
    padding: 5px 4px;
    border-bottom: 1px solid #222;
    vertical-align: middle;
}
.drop-character-cell {

    align-items: center;
    gap: 6px;
}
.drop-char-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 4px;
    object-fit: contain;
}
.drop-item-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 4px;
    object-fit: contain;
}

.log-table-wrapper {
    width: 100%;
}

.drop-table > tr {
    padding: 10px;
}

.drop-table thead {
    padding: 10px 5px;
}

.drop-item-icon-wrapper {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
}

/* Icono de grupo para múltiples items */
.battlepass-group-icon {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: rgba(212, 175, 55, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 16;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1.5px solid #d4af37;
    pointer-events: none;
}
.battlepass-group-icon i {
    color: #1a0904;
    font-size: 10px;
    font-weight: bold;
}

/* Estilos del popover de grupos de items del battlepass */
/* Sobrescribir estilos por defecto de Bootstrap Popover */
.popover {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.popover-arrow {
    display: none !important;
}
.popover-arrow::before,
.popover-arrow::after {
    display: none !important;
}
.popover-body {
    padding: 0 !important;
    background: transparent !important;
}

.bp-group-popover {
    max-width: 280px;
    padding: 8px;
    background-color: rgba(28, 30, 52, 0.95);
    border: 1px solid #808bba;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    font-family: "Tahoma", "Geneva", sans-serif;
    font-size: 12px;
}
.bp-group-popover-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bp-group-popover-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
}
.bp-group-popover-item:hover {
    background: rgba(128, 139, 186, 0.2);
}
.bp-group-popover-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 3px;
    border: 1px solid rgba(128, 139, 186, 0.4);
    background: rgba(0, 0, 0, 0.4);
    padding: 2px;
}
.bp-group-popover-name {
    flex: 1;
    font-size: 11px;
    color: #fff;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.bp-group-popover-default {
    font-size: 12px;
    color: #f2e43d;
    margin-left: 4px;
}
.bp-group-popover-item-default {
    border-color: rgba(242, 228, 61, 0.6) !important;
    background: rgba(242, 228, 61, 0.1) !important;
}

.battlepass-item-plus {
    position: absolute;
    top: 12px;
    left: 10px;
    width: 28px;
    height: 28px;
    pointer-events: none;
    background: url('../images/icon/itemplus.png') 0 0;
    z-index: 2;
    animation: itemplus-anim 1.8s steps(32) infinite;
}

.calendar-item-plus {
    position: absolute;
    top: 7px;
    left: 6px;
    width: 24px;
    height: 24px;
    pointer-events: none;
    background: url(../images/icon/itemplus.png) 0 0;
    z-index: 2;
    animation: itemplus-anim 1.8s steps(32) infinite;
}

.drop-item-plus {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    pointer-events: none;
    background: url('../images/icon/itemplus.png') 0 0;
    z-index: 2;
    animation: itemplus-anim 1.8s steps(32) infinite;
    /* Ajusta steps(N) según la cantidad de frames */
}

.profile-item-plus {
    position: absolute;
    top: 8px;
    left: 7px;
    width: 28px;
    height: 28px;
    pointer-events: none;
    background: url(../images/icon/itemplus.png) 0 0;
    z-index: 2;
    animation: itemplus-anim 1.8s steps(32) infinite;
}

/* Iconos de candado para items bloqueados - z-index: 3 (por encima de rare effect) */
.drop-item-lock-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    pointer-events: none;
    background: url('../images/icon/com_item_lock.PNG') center/contain no-repeat;
    z-index: 3;
}

.profile-item-icon-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-block;
}

.profile-item-lock-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    background: url('../images/icon/com_item_lock.PNG') center/contain no-repeat;
    z-index: 3;
}

.inventory-item-lock-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    background: url('../images/icon/com_item_lock.PNG') center/contain no-repeat;
    z-index: 3;
}

/* Asegurar que los contenedores de items tengan position relative para el posicionamiento absoluto */
.drop-item-icon-wrapper,
.equipment-slot.filled,
.attached-item,
.inventory-item,
.profile-item-icon-wrapper,
.inventory-item-icon-wrapper,
.attached-item-icon-wrapper {
    position: relative;
}

@keyframes itemplus-anim {
    to {
        background-position: -1024px
    }
}

span.drop-char-name {
    font-weight: 600;
    color: #dd8615;
}

.drop-item-cell {
    width: 45px;
}

td.drop-itemname-cell {
    font-weight: 600;
    color: #e0ac49;
}

nav, nav .nav-wrapper i, nav a.sidenav-trigger, nav a.sidenav-trigger i {
    height: 3rem;
    line-height: 1.2rem;
    background: #15120ecf;
    color: white;
    border-radius: 15px;
    text-align: center;
}

div.dt-container .dt-paging .dt-paging-button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    padding: .2em 2.2px 0.3em;
    margin-left: 2px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    color: inherit !important;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    line-height: 1rem;
    height: 1rem;
    padding: 10px;
}

button.dt-paging-button.current {
    background: #a97c50 !important;
height: 30px !important;
}

div.dt-container .dt-paging .dt-paging-button.disabled, div.dt-container .dt-paging .dt-paging-button.disabled:hover, div.dt-container .dt-paging .dt-paging-button.disabled:active {
    cursor: default;
    color: rgb(169 124 80 / 54%) !important;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    padding: 10px 5px;
}

#customSearchBox {
    width: 120px;
    display: inline-block;
    background: #18130c;
    border: 1.5px solid #e6c98a;
    color: #e6c98a;
    border-radius: 6px 0 0 6px;
    padding: 5px 10px;
    font-size: 0.98rem;
    font-family: 'Cinzel', serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-left: 10px;
    vertical-align: middle;
    height: 1.8rem;
}
#customSearchBox:focus {
    border-color: #ffdb8a;
    box-shadow: 0 0 0 2px #e6c98a44;
    background: #22190e;
}
#customSearchBtn {
    display: inline-block;
    background: linear-gradient(90deg, #e6c98a 60%, #b88c2b 100%);
    color: #18130c;
    border: 1.5px solid #e6c98a;
    border-left: none;
    border-radius: 0 6px 6px 0;
    padding: 5px 16px 5px 12px;
    font-size: 1rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-shadow: 0 2px 8px 0 #00000022;
    height: 1.8rem;
}
#customSearchBtn:hover {
    background: linear-gradient(90deg, #ffdb8a 60%, #e6c98a 100%);
    color: #a86c00;
    border-color: #ffdb8a;
}

/* Ajuste para que el input y el botón estén bien alineados con el título */
.calendar-title {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    color: #a97c50;
    text-shadow: 0 0 10px rgba(169, 124, 80, 0.5);
}
.calendar-title-text {
    flex: 1;
    text-align: center;
    font-size: 1.4rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #e6c98a;
    letter-spacing: 1px;
}
.calendar-title-search {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Battlepass reward image borders and states */
.bp-reward-img-claimable {
    border: 3px solid #FFD700 !important; /* Amarillo */
    border-radius: 8px;
    transition: border 0.2s;
    filter: none;
    opacity: 1;
    box-shadow: none !important;
}
.bp-reward-img-claimed {
    border: 2px solid #4CAF50 !important; /* Verde sutil */
    border-radius: 8px;
    transition: border 0.2s;
    filter: none;
    opacity: 1;
    box-shadow: none !important;
}
.bp-reward-img-not_unlocked {
    border: 2px solid #888 !important; /* Gris */
    border-radius: 8px;
    opacity: 0.5;
    filter: grayscale(1);
    transition: border 0.2s;
    cursor: default !important;
    box-shadow: none !important;
}
.bp-reward-img-locked {
    border: 2px solid #888 !important; /* Gris para locked premium */
    border-radius: 8px;
    filter: grayscale(1) brightness(0.8);
    transition: border 0.2s;
    cursor: not-allowed !important;
    box-shadow: none !important;
}
.claimed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.claimed-overlay i {
    font-size: 2.5rem;
    color: #4CAF50;
}

/* =========================
   Battlepass Reward Styles
   ========================= */
.battlepass-carousel-cell.claimed {
    position: relative;
}

.claimed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.claimed-overlay i {
    font-size: 2rem;
    color: #4CAF50;
}

.claim-reward-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s;
}

.claim-reward-btn:hover {
    background: #45a049;
}

.claim-reward-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.claim-reward-btn.premium {
    background: #FFD700;
    color: #000;
}

.claim-reward-btn.premium:hover {
    background: #FFC800;
}

/* Estilos para el modal de recompensa */
.reward-icon {
    font-size: 4rem;
    color: #4CAF50;
}

.reward-message {
    font-size: 1.2rem;
    margin: 1rem 0;
}

/* Animación de "tragar" la imagen */
@keyframes reward-claim-absorb {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    80% {
        transform: scale(0.7);
        opacity: 0.5;
    }
    100% {
        transform: scale(0.2);
        opacity: 0;
    }
}

.reward-claim-absorb {
    animation: reward-claim-absorb 0.5s cubic-bezier(.4, 1.4, .6, 1) forwards;
    z-index: 3;
}

/* Loader/spinner dorado */
.reward-claim-spinner {
    position: absolute;
    width: 38px;
    height: 38px;
    left: 8px;
    top: 8px;
    border: 3px solid #ffd70055;
    border-top: 3px solid #ffd700;
    border-radius: 50%;
    animation: reward-claim-spin 0.8s linear infinite;
    z-index: 10;
    background: none;
    pointer-events: none;
}

@keyframes reward-claim-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animación de check */
.reward-claim-check-animate {
    animation: reward-claim-check-pop 0.7s cubic-bezier(.23, 1.12, .62, 1.01);
    z-index: 20;
}

@keyframes reward-claim-check-pop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación de éxito: rebote al reaparecer */
@keyframes reward-claim-pop {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 #4CAF50;
    }
    30% {
        transform: scale(1.15);
        box-shadow: 0 0 16px #4CAF50aa;
    }
    60% {
        transform: scale(0.95);
        box-shadow: 0 0 8px #4CAF5077;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 #4CAF50;
    }
}

.reward-claim-pop {
    animation: reward-claim-pop 0.7s cubic-bezier(.23, 1.12, .62, 1.01);
    z-index: 3;
}

/* Animación de error: temblor y rojo */
@keyframes reward-claim-shake {
    0% {
        transform: translateX(0);
        filter: none;
    }
    20% {
        transform: translateX(-6px);
        filter: drop-shadow(0 0 6px #f44336);
    }
    40% {
        transform: translateX(6px);
        filter: drop-shadow(0 0 8px #f44336);
    }
    60% {
        transform: translateX(-4px);
        filter: drop-shadow(0 0 6px #f44336);
    }
    80% {
        transform: translateX(4px);
        filter: drop-shadow(0 0 8px #f44336);
    }
    100% {
        transform: translateX(0);
        filter: none;
    }
}

.reward-claim-error {
    animation: reward-claim-shake 0.6s cubic-bezier(.36, .07, .19, .97);
    z-index: 3;
}

/* Estilos para el contador de cantidad en recompensas del battlepass */
.battlepass-carousel-cell-imgbox {
    position: relative;
}

.battlepass-quantity-badge {
    position: absolute;
    top: -2px;
    right: -3px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #4CAF50;
    color: #fff;
    padding: 2px 2px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.battlepass-carousel-cell.locked .battlepass-quantity-badge {
    border-color: #FFD700;
}

.premium-effect {
    background: linear-gradient(45deg, #4b1e2e 0%, #2a0a18 100%) !important;
    animation: shine 2s infinite alternate;
}

@keyframes shine {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.4); }
}

/* Eliminar el CSS de las partículas (premium-particles, premium-particle, y su keyframes) */
/* Eliminar .premium-particles, .premium-particle, y su keyframes */

.battlepass-expbar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffe082 0%, #d4af37 100%);
  border-radius: 8px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* Icono de información de experiencia del Battle Pass - Sidebar */
.battlepass-info-icon-sidebar {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #d4af37;
    font-size: 11px;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.battlepass-info-icon-sidebar:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: #d4af37;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.battlepass-info-icon-sidebar:active {
    transform: scale(0.95);
}

.battlepass-info-icon-sidebar i {
    font-size: 11px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Modal de información de experiencia del Battle Pass */
.battlepass-exp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.battlepass-exp-modal.battlepass-exp-modal-open {
    opacity: 1;
    visibility: visible;
}

.battlepass-exp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.battlepass-exp-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(21, 13, 11, 0.98) 0%, rgba(34, 40, 46, 0.98) 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 32px rgba(212, 175, 55, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
}

.battlepass-exp-modal.battlepass-exp-modal-open .battlepass-exp-modal-content {
    transform: scale(1) translateY(0);
}

.battlepass-exp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.05);
}

.battlepass-exp-modal-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #d4af37;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.battlepass-exp-modal-title i {
    font-size: 1.2em;
}

.battlepass-exp-modal-close {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #d4af37;
    font-size: 16px;
    padding: 0;
}

.battlepass-exp-modal-close:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: #d4af37;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.battlepass-exp-modal-body {
    padding: 24px;
}

.battlepass-exp-grid-lines {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 8px;
}

.battlepass-exp-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.battlepass-exp-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
    position: relative;
    cursor: default;
}

.battlepass-exp-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(212, 175, 55, 0.1);
    transition: width 0.3s ease;
}

.battlepass-exp-line:hover {
    background: rgba(212, 175, 55, 0.05);
    border-bottom-color: rgba(212, 175, 55, 0.3);
    padding-left: 16px;
}

.battlepass-exp-line:hover::before {
    width: 3px;
}

.battlepass-exp-line:last-child {
    border-bottom: none;
}

.battlepass-exp-icon {
    font-size: 20px;
    color: #d4af37;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
    width: 24px;
    text-align: center;
}

.battlepass-exp-label {
    font-size: 0.9em;
    color: #e0e0e0;
    line-height: 1.5;
    flex: 1;
}

/* Responsive: ajustar columnas según tamaño de pantalla */
@media (max-width: 768px) {
    .battlepass-exp-grid-lines {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .battlepass-exp-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .battlepass-exp-modal-header {
        padding: 16px 20px;
    }
    
    .battlepass-exp-modal-title {
        font-size: 1.2em;
    }
    
    .battlepass-exp-modal-body {
        padding: 20px;
    }
    
    .battlepass-exp-line {
        padding: 8px 10px;
    }
    
    .battlepass-exp-icon {
        font-size: 18px;
        width: 20px;
    }
    
    .battlepass-exp-label {
        font-size: 0.85em;
    }
}

/* Scrollbar personalizado para el modal */
.battlepass-exp-modal-content::-webkit-scrollbar {
    width: 8px;
}

.battlepass-exp-modal-content::-webkit-scrollbar-track {
    background: rgba(34, 40, 46, 0.5);
    border-radius: 4px;
}

.battlepass-exp-modal-content::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 4px;
}

.battlepass-exp-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* Daily Login check-in animation and button states */
.reward-claim-absorb {
    opacity: 0.6;
    pointer-events: none;
    filter: blur(1px);
    transition: all 0.2s;
}
.reward-claim-spinner {
    position: absolute;
    top: 50%; left: 50%;
    width: 24px; height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #a97c50;
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 2;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
.reward-claim-pop {
    animation: popScale 0.7s;
}
@keyframes popScale {
    0% { transform: scale(1);}
    50% { transform: scale(1.2);}
    100% { transform: scale(1);}
}
.reward-claim-error {
    animation: shake 0.6s;
    background: #ffdddd;
}
@keyframes shake {
    0% { transform: translateX(0);}
    20% { transform: translateX(-5px);}
    40% { transform: translateX(5px);}
    60% { transform: translateX(-5px);}
    80% { transform: translateX(5px);}
    100% { transform: translateX(0);}
}
.checked-in {
    color: #28a745 !important;
}

/* Calendar Check-in Status (migrado desde inline) */


.checkin-icon-blue {
    color: #007bff;
    font-size: 1.6em;
}

.checkin-icon-green {
    color: #28a745;
    font-size: 1.6em;
}



.claim-icon-gift {
    color: #ffd700;
    font-size: 1.6em;
}

.checkin-icon-green {
    color: #28a745;
    font-size: 1.6em;
}

/* Nueva clase para el botón de claim (estilo premium) */
.claim-btn {
    background: linear-gradient(180deg, #4b1e0e 0%, #2a120a 100%);
    border: 2px solid #a97c50;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px 2px rgba(169, 125, 80, 0.2);
    padding: 6px 12px;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    font-size: 1.6em;
    color: #a97c50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    outline: none;
    height: 25px;
}

.claim-btn:hover {
    box-shadow: 0 0 12px 2px rgba(169, 125, 80, 0.4);
    border-color: #ffd700;
}

.claim-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.claim-btn i {
    filter: drop-shadow(0 2px 8px #fdc894);
    opacity: 0.7;
    font-size: 1rem;
}

.checkin-btn {
    background: linear-gradient(180deg, #4b1e0e 0%, #2a120a 100%);
    border: 2px solid #a97c50;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px 2px rgba(169, 125, 80, 0.2);
    padding: 6px 12px;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    font-size: 1.6em;
    color: #a97c50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    outline: none;
    height: 25px;
}

.checkin-btn:hover {
    box-shadow: 0 0 12px 2px rgba(169, 125, 80, 0.4);
    border-color: #ffd700;
}

.checkin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkin-btn i {
    color: #ffd700;
    filter: drop-shadow(0 2px 8px #fdc894);
    opacity: 0.85;
}

.auction-promo-img img {
    display: block;
    max-width: 350px!important;
    height: auto;
    margin: 0 auto 10px auto;
}

.auction-promo-img {
    text-align: center;
}
.auction-promo-img img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px auto;
}

.auction-promo-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.auction-promo-img img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: block;
}

.auction-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.auction-promo-img {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.auction-promo-img img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: 1px solid #e3e3e3;
}
.card-header {
    border-bottom: 1px solid #e3e3e3;
    background: #f8f9fa;
    font-size: 1.1rem;
}
.card-body {
    padding: 2rem 1.5rem;
}
.form-label {
    font-weight: 500;
}
.form-text {
    color: #6c757d;
    font-size: 0.95em;
}
#preview_img {
    max-width: 160px;
    max-height: 160px;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.card .row > div {
    margin-bottom: 1.5rem;
}
@media (max-width: 767px) {
    .card-body {
        padding: 1rem 0.5rem;
    }
    #preview_img {
        max-width: 100px;
        max-height: 100px;
    }
}

.auction-item-img img {
    width: 32px;
}

/* Box de últimas pujas en subasta */
.auction-bids-box {
    margin: 10px 0 0 0;
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 220px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid #a97c50;
    padding: 10px;
    height: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.5);
    font-size: 0.98em;
}
.auction-bids-box .auction-bids-title {
    font-size: 1.5rem;
    color: #a97c50;
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
    text-align: center;
}
.auction-bids-table {
    width: 100%;
    color: #fff;
    font-size: 0.97em;
    border-collapse: separate;
    border-spacing: 0 0px;
    padding-bottom: 0;
    margin-bottom: 5px;
}
.auction-bids-avatar {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: #ffd70022;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-weight: 700;
    color: #ffd700;
    margin-right: 6px;
}
.auction-bids-name {
    vertical-align: middle;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    white-space: nowrap;
}
.auction-bids-amount {
    text-align: right;
    color: #e6c98a;
    font-weight: 600;
    padding-left: 8px;
}
@media (max-width: 600px) {
    .auction-bids-box {
        max-width: 100%;
        font-size: 0.95em;
    }
    .auction-bids-name {
        max-width: 50px;
    }
}

.auction-bids-center {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.auction-bids-avatar-img {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    border: 1.5px solid #ffd70044;
    background: #222;
}

.auction-bids-table td {
    padding: 5px 5px;
    height: 2rem;
}

.auction-bids-table tr {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.5) !important;
}

/* Hacer el estilo más específico para asegurar que se aplique */
.auction-bids-box .auction-bids-table tr {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.5) !important;
}

/* También aplicar a las celdas individuales si es necesario */
.auction-bids-box .auction-bids-table td {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.5) !important;
}

.schedule-box .icon img{
    width: 100px;
    height: auto;
}

/* Schedule - 2 columnas, cada evento en una fila horizontal (estilo task list) */
.schedule-wrapper {
    width: 100%;
    padding: 0 5%;
    overflow-y: hidden;
}

.schedule-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 15px;
    min-height: 470px;
    overflow: hidden;
}

.schedule-event-row {
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid #7c5a2b;
    border-radius: 8px;
    padding: 8px 8px 8px 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 40px;
    margin-top: 5px;
}

.schedule-event-row:hover {
    border-color: rgba(230, 201, 138, 0.6);
    box-shadow: 0 4px 15px rgba(230, 201, 138, 0.2);
}

.schedule-event-active {
    border-color: rgba(76, 175, 80, 0.5) !important;
}

.schedule-event-icon {
    position: absolute;
    left: -15px;
    top: -15px;
    width: 80px;
    height: 80px;;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

.schedule-event-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.schedule-event-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-left: 20px;
}

.schedule-event-label {
    background: linear-gradient(90deg, #7c5a2b, #a08450);
    color: #000000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.schedule-event-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e6c98a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-event-time {
    font-size: 0.85rem;
    color: #d4b876;
    font-weight: 600;
    font-family: monospace;
    flex-shrink: 0;
    margin-left: auto;
}

.schedule-event-countdown {
    font-size: 0.8rem;
    color: #dfdfdf;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}

.schedule-event-active .schedule-event-countdown {
    color: #4CAF50;
    font-weight: 600;
}

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

.register-box .icon img{
    width: 95px;
    height: auto;
}

/* Modal de Selección de Skills */
.skills-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-out;
}

.skills-modal-content {
    position: relative;
    background: rgba(24, 27, 31, 0.98);
    border: 2px solid #d4b876;
    border-radius: 12px;
    padding: 20px 20px 10px 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 10001;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.skills-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 184, 118, 0.3);
    position: relative;
}

.skills-modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #e6c98a;
    margin: 0;
    text-align: center;
}

.skills-modal-close {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.skills-modal-close:hover {
    color: #fff;
}

.skills-modal-body {
    margin-bottom: 20px;
}

.skills-section {
    margin-bottom: 20px;
}

.skills-section-title {
    font-size: 0.85rem;
    color: #2d1a0b;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(90deg, transparent 0%, #d4b876 20%, #a08450 50%, #d4b876 80%, transparent 100%);
    padding: 6px 20px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
    margin: 0 auto 12px auto;
}

.skills-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.skill-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: #1a1207;
    border: 2px solid #7c5a2b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.skill-icon:hover:not(.skill-icon-fixed) {
    transform: scale(1.15);
    border-color: #d4b876;
    box-shadow: 0 4px 12px rgba(212, 184, 118, 0.4);
}

.skill-icon.selected .skill-img {
    content: attr(data-focus-src);
}

.skill-icon.selected {
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.skill-icon-fixed {
    cursor: default;
    opacity: 0.9;
}

.skill-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.skill-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    color: #4CAF50;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
}

.skill-icon.selected .skill-check {
    opacity: 1;
}

.skill-badge-auto {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Animación de error para skills no seleccionados */
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.skills-section-error {
    animation: shakeError 0.4s ease-in-out;
}

.skills-section-error .skills-section-title {
    background: linear-gradient(90deg, transparent 0%, #f44336 20%, #d32f2f 50%, #f44336 80%, transparent 100%);
    color: #fff;
}

.skills-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid rgba(212, 184, 118, 0.3);
}

.skills-modal-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-modal-btn-cancel {
    background: rgba(124, 90, 43, 0.3);
    color: #d4b876;
    border: 1.5px solid #7c5a2b;
}

.skills-modal-btn-cancel:hover {
    background: rgba(124, 90, 43, 0.5);
    border-color: #d4b876;
}

.skills-modal-btn-submit {
    background: linear-gradient(90deg, #dd8610, #ab6d13);
    color: #2d1a0b;
    font-weight: bold;
}

.skills-modal-btn-submit:hover {
    background: linear-gradient(90deg, #ffa500, #ff8c00);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

/* Chatbot Container - Estructura igual que calendar-container */
.chatbot-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-container .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chatbot-container .chat-input-container {
    flex-shrink: 0;
    padding: 16px 20px;
    background: rgba(20, 20, 20, 0.95);
    border-top: 2px solid #a97c50;
}

.chatbot-container .chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chatbot-container #chat-input {
    flex: 1;
    background: rgba(26, 13, 5, 0.9);
    border: 1.5px solid #a97c50;
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffe6b0;
    font-size: 15px;
    resize: none;
    max-height: 120px;
    outline: none;
}

.chatbot-container #chat-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 2px #e6c98a55;
}

.chatbot-container .send-btn {
    min-width: 80px;
    height: 44px;
    background: linear-gradient(90deg, #e6c98a 0%, #a97c50 100%);
    border: none;
    border-radius: 12px;
    color: #3a1a0a;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.chatbot-container .send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 201, 138, 0.4);
}

.chatbot-container .message {
    display: flex;
    gap: 12px;
    max-width: 100%;
    animation: fadeIn 0.3s ease;
}

.chatbot-container .message.user {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.chatbot-container .message.user .message-content {
    background: linear-gradient(90deg, #e6c98a 0%, #a97c50 100%);
    color: #3a1a0a;
    border: 1px solid #ffd700;
    margin-left: auto;
    max-width: 70%;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chatbot-container .message.user .message-avatar {
    border: 2px solid #ffd700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.chatbot-container .message.assistant {
    flex-direction: row;
    justify-content: flex-start;
}

.chatbot-container .message.assistant .message-content {
    max-width: 85%;
}

.chatbot-container .message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e6c98a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.chatbot-container .message-avatar svg {
    color: #3a1a0a;
}

.chatbot-container .message-content {
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(75, 30, 14, 0.8);
    border: 1px solid #a97c50;
    color: #ffe6b0;
    font-size: 15px;
    line-height: 1.7;
    word-wrap: break-word;
    border-bottom-left-radius: 4px;
}

.chatbot-container .markdown-body strong {
    color: #ffd700;
}

/* Corregir formato de listas numeradas en el chatbot */
.chatbot-container .markdown-body ol {
    padding-left: 0;
    margin-left: 0;
}

.chatbot-container .markdown-body ol li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-left: 0;
}

.chatbot-container .markdown-body ol li::before {
    content: counter(list-item) ". ";
    counter-increment: list-item;
    font-weight: bold;
    color: #ffd700;
    margin-right: 8px;
    flex-shrink: 0;
}

.chatbot-container .markdown-body ol li p {
    margin: 0;
    display: inline;
}

.chatbot-container .markdown-body ol {
    counter-reset: list-item;
}

/* Estilos para listas no ordenadas (ul) - solo puntos */
.chatbot-container .markdown-body ul {
    padding-left: 0;
    margin-left: 0;
    list-style: none;
}

.chatbot-container .markdown-body ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    margin-top: 4px;
    padding-left: 0;
}

.chatbot-container .markdown-body ul li::before {
    content: "• ";
    font-weight: bold;
    color: #ffd700;
    margin-right: 8px;
    flex-shrink: 0;
}

.chatbot-container .markdown-body ul li p {
    margin: 0;
    display: inline;
}

.chatbot-container .chat-input-info {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    font-size: 12px;
    color: #bfa77a;
}

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

/* ========================================
   TOOLTIPS DE ÍTEMS - Sistema Silkroad
   ======================================== */

.tooltip-item {
    position: fixed;
    font-size: 12px;
    width: 220px;
    min-height: 200px;
    background-color: rgba(28, 30, 52, .8);
    color: #fff;
    padding: 6px;
    border: 1px solid #808bba;
    border-radius: 5px;
    box-shadow: none;
    font-family: "Tahoma", "Geneva", sans-serif;
    line-height: 15px;
    font-weight: lighter;
    z-index: 9999;
    pointer-events: none;
    display: none;
}

.tooltip-item .tooltip-content {
    width: 100%;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Título del ítem normal */
.tooltip-item .tooltip-title {
    color: #ffffff;
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tooltip-rare-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Título para ítems con blues */
.tooltip-item .tooltip-title-blue {
    color: #50cecd;
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
}

/* Título para ítems SOX */
.tooltip-item .tooltip-title-sox {
    color: #f2e43d;
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
    animation: tooltip-shimmer 2s ease-in-out infinite;
}

@keyframes tooltip-shimmer {
    0%, 100% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 10px rgba(242, 228, 61, 0.5);
    }
    50% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 20px rgba(242, 228, 61, 0.8);
    }
}

/* Seal (amarillo dorado) */
.tooltip-item .tooltip-seal {
    color: #f2e43d;
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 4px;
    display: block;
    text-align: left;
}

/* Información básica (beige) */
.tooltip-item .tooltip-info,
.tooltip-item .tooltip-type,
.tooltip-item .tooltip-degree {
    color: #efdaa4;
    font-size: 10px;
    margin-bottom: 2px;
    display: block;
    text-align: left;
}

/* WhiteStats (blanco) */
.tooltip-item .tooltip-whitestat {
    color: #ffffff;
    margin-bottom: 2px;
    font-size: 10px;
    display: block;
    text-align: left;
}

/* Blues positivos (cyan) */
.tooltip-item .tooltip-blue {
    color: #50cecd;
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 10px;
    display: block;
    text-align: left;
}

/* Blues negativos (rojo) */
.tooltip-item .tooltip-blue-negative {
    color: #ff2f51;
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 10px;
    display: block;
    text-align: left;
}

/* Advanced Elixir */
.tooltip-item .tooltip-adv {
    color: #ffffff;
    font-weight: bold;
    margin-top: 4px;
    text-align: left;
    font-size: 9px;
    display: block;
}

/* ========================================
   CHARACTER PROFILE - Vista de Perfil
   ======================================== */

.character-profile-container {
    width: 100%;
    padding: 10px 5% 10px 5%;
    margin-top: 10px;
    box-sizing: border-box;
}

/* Tabs de Inventory/Avatar (debajo del personaje) */
.inventory-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0;
}

.inventory-tab-btn {
    background: rgba(75, 30, 14, 0.5);
    border: 2px solid #6b4423;
    color: #d4a574;
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 0;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 0;
    min-width: 42px;
    min-height: 42px;
    width: 42px;
    height: 42px;
    position: relative;
}

.inventory-tab-btn::before,
.inventory-tab-btn::after {
    display: none !important;
    content: '' !important;
}

.inventory-tab-btn:hover {
    background: rgba(75, 30, 14, 0.8);
    border-color: #a97c50;
    color: #e6c98a;
}

.inventory-tab-btn.active {
    background: rgba(230, 201, 138, 0.2);
    border-color: #e6c98a;
    color: #e6c98a;
    box-shadow: 0 0 10px rgba(230, 201, 138, 0.3);
}

.inventory-tab-btn svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none;
    position: relative;
    z-index: 1;
    margin: 0;
}

.inventory-tab-btn svg,
.inventory-tab-btn svg * {
    stroke: #d4a574 !important;
    fill: none !important;
}

.inventory-tab-btn.active svg,
.inventory-tab-btn.active svg * {
    stroke: #e6c98a !important;
}

.inventory-tab-btn:hover svg,
.inventory-tab-btn:hover svg * {
    stroke: #e6c98a !important;
}

/* Overlay de buffs ENCIMA de todo (dentro de .character-display-wrapper) */
.buffs-absolute-overlay {
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 5%;
    z-index: 5;
    justify-content: center;
    align-items: center;
}

/* Asegurar que character-display-wrapper tenga position relative */
.character-display-wrapper {
    position: relative;
}

.buffs-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buffs-title {
    font-size: 1rem;
    color: #e6c98a;
    font-weight: 700;
    text-align: center;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(230, 201, 138, 0.6),
                 0 0 20px rgba(230, 201, 138, 0.4),
                 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
}

.buffs-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
    align-items: center;
    max-width: 450px;
}

.buff-icon-wrapper {
    width: 32px;
    height: 32px;
    position: relative;
    border: 2px solid #6b4423;
    border-radius: 4px;
    background: rgba(20, 10, 5, 0.8);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.buff-icon-wrapper:hover {
    border-color: #e6c98a;
    background: rgba(75, 30, 14, 0.9);
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(230, 201, 138, 0.5);
}

.buff-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.no-buffs {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Grid de Equipamiento (Inventory) - 12 slots en 2 columnas */
.inventory-grid-equipment {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 15px;
}

.equipment-column-left,
.equipment-column-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inventory-grid-slot {
    width: 48px;
    height: 48px;
    background: rgba(20, 10, 5, 0.8);
    border: 2px solid #6b4423;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.inventory-grid-slot.filled:hover {
    border-color: #e6c98a;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(230, 201, 138, 0.4);
}

.inventory-grid-slot.empty {
    opacity: 0.4;
    cursor: default;
}

.inventory-grid-slot .inventory-item-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
}

.inventory-grid-slot .item-stack {
    position: absolute;
    bottom: 2px;
    left: 2px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
}

.character-profile-container .row {
    display: flex;
    gap: 20px;
    margin: 0 -10px;
}

.character-profile-container .col-6 {
    flex: 0 0 48%;
    max-width: 48%;
    padding: 0 5px;
}

/* Perfil del Personaje */
.character-profile {
    background: rgba(75, 30, 14, 0.5);
    border: 2px solid #a97c50;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Información inline del personaje (sin cuadro) */
.character-info-inline {
    margin-bottom: 15px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

.character-info-inline .char-line-1,
.character-info-inline .char-line-2,
.character-info-inline .char-line-3 {
    margin-bottom: 5px;
    text-align: center;
}

.character-info-inline .char-race-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.character-info-inline .char-name {
    color: #e6c98a;
    font-weight: bold;
    font-size: 16px;
}

.character-info-inline .char-mastery {
    color: #99ccff;
    font-weight: bold;
}

.character-info-inline .char-level {
    color: #ffcc66;
    font-weight: bold;
}

.character-info-inline .char-stat {
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.character-info-inline .char-separator {
    color: #e6c98a;
    font-size: 12px;
    margin: 0 8px;
    opacity: 0.7;
}

.character-info-inline .char-guild {
    color: #66ff99;
    font-style: italic;
}

.character-model-container {
    text-align: center;
    padding: 5px;
    background: transparent;
    border-radius: 0;
    border: none;
}

.character-model {
    max-width: 140px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Layout con personaje en centro y equipos a los lados */
.character-display-wrapper {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 10px;
}

.equipment-left-side,
.equipment-right-side {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 360px;
    justify-content: flex-start;
}

.character-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 30%;
}

/* Equipamiento dinámico (cuando se cambia de tab) */
.character-equipment {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.equipment-left,
.equipment-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.equipment-slot {
    width: 48px;
    height: 48px;
    background: rgba(20, 10, 5, 0.8);
    border: 2px solid #6b4423;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.equipment-slot:hover {
    border-color: #e6c98a;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(230, 201, 138, 0.4);
}

.equipment-slot.empty {
    opacity: 0.4;
    cursor: default;
}

.equipment-slot.empty:hover {
    transform: none;
    border-color: #6b4423;
    box-shadow: none;
}

.equipment-slot .item-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
    display: block;
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
}

.equipment-slot .item-icon[alt]:after {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    background: url('/assets/images/icon/icon_default.webp') no-repeat center;
    background-size: contain;
}

.equipment-slot .slot-empty-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.5;
    display: block;
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
}

.equipment-slot .item-plus {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid #ffd700;
}


/* Sección de Stats (columna derecha) */
.character-stats-section {
    background: rgba(75, 30, 14, 0.5);
    border: 2px solid #a97c50;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-height: auto;
}

.stats-placeholder {
    background: rgba(58, 26, 10, 0.3);
    border: 1px dashed #a97c50;
    border-radius: 6px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-spinner .spinner {
    border: 4px solid rgba(230, 201, 138, 0.2);
    border-top: 4px solid #e6c98a;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    color: #d4a574;
    margin-top: 20px;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Wrapper del perfil */
.character-profile-wrapper {
    min-height: 400px;
}

/* Error message */
.error-message {
    background: rgba(139, 0, 0, 0.2);
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.error-message h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

.error-message p {
    color: #d4a574;
}

/* ========================================
   RESPONSIVE - Character Profile
   ======================================== */

@media (max-width: 992px) {
    .character-profile-container .row {
        flex-direction: column;
    }
    
    .character-profile-container .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .character-display-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .equipment-left-side,
    .equipment-right-side {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .character-equipment {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .equipment-left,
    .equipment-right {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .equipment-slot {
        width: 50px;
        height: 50px;
    }
    
    .equipment-slot .item-icon,
    .equipment-slot .slot-empty-icon {
        width: 30px;
        height: 30px;
    }
    
    .character-model {
        max-height: 300px;
    }
}

/* ============================================================
   MESSAGES SYSTEM - Chat WebSocket
   ============================================================ */

/* Container principal */
.chat-main-container {
    width: 100%;
    padding: 0;
}

.chat-container {
    display: flex;
    height: 520px;
    background: rgba(20, 15, 10, 0.95);
    border: 1px solid rgba(169, 124, 80, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

/* Sidebar de conversaciones */
.conversations-sidebar {
    width: 300px;
    min-width: 300px;
    border-right: 1px solid rgba(169, 124, 80, 0.3);
    background: rgba(40, 25, 15, 0.95);
    display: flex;
    flex-direction: column;
}

.conversations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(169, 124, 80, 0.3);
}

.conversations-header h3 {
    font-family: 'Cinzel', serif;
    color: #e6c98a;
    font-size: 1.2em;
    margin: 0;
}

.btn-new-chat {
    background: linear-gradient(135deg, #4a7c59 0%, #2d5a3a 100%);
    border: 1px solid #5a9c6f;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
}

.btn-new-chat svg {
    stroke: white;
    width: 20px !important;
    height: 20px !important;
    display: block;
}

.btn-new-chat:hover {
    background: linear-gradient(135deg, #5a9c6f 0%, #3d6a4a 100%);
    box-shadow: 0 0 10px rgba(90, 156, 111, 0.5);
    transform: scale(1.1);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(169, 124, 80, 0.15);
    transition: background 0.2s ease;
}

.conversation-item:hover {
    background: rgba(169, 124, 80, 0.1);
}

.conversation-item.active {
    background: rgba(169, 124, 80, 0.25);
    border-left: 3px solid #a97c50;
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(169, 124, 80, 0.5);
    margin-right: 12px;
    flex-shrink: 0;
}

.conversation-details {
    flex: 1;
    min-width: 0;
}

.conversation-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.conversation-name {
    font-family: 'Cinzel', serif;
    color: #e6c98a;
    font-weight: 600;
    font-size: 0.95em;
}

.conversation-time {
    color: #888;
    font-size: 0.75em;
}

.conversation-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-preview {
    color: #aaa;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-badge {
    background: #ff4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7em;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Ventana de chat */
.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(30, 20, 15, 0.95);
}

.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
}

.chat-empty-state svg {
    stroke: #666;
    margin-bottom: 20px;
    opacity: 0.5;
    width: 64px !important;
    height: 64px !important;
    display: block;
}

.chat-empty-state p {
    font-family: 'Cinzel', serif;
    color: #888;
}

.chat-active-window {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(169, 124, 80, 0.3);
    background: rgba(40, 25, 15, 0.8);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(169, 124, 80, 0.5);
}

.chat-user-details {
    display: flex;
    flex-direction: column;
}

.chat-user-name {
    font-family: 'Cinzel', serif;
    color: #e6c98a;
    font-weight: 600;
    font-size: 1em;
}

.chat-user-status {
    font-size: 0.8em;
    color: #888;
}

.chat-user-status.status-online {
    color: #5cb85c;
    font-weight: 500;
}

.chat-user-status.typing-indicator {
    color: #a97c50;
    font-style: italic;
}

/* Área de mensajes */
.messages-area {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.loading-messages,
.no-messages {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-family: 'Cinzel', serif;
}

.message-bubble {
    display: flex;
    margin-bottom: 8px;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-bubble.sent {
    justify-content: flex-end;
}

.message-bubble.received {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 12px;
    position: relative;
}

.message-bubble.sent .message-content {
    background: linear-gradient(135deg, #4a7c59 0%, #2d5a3a 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble.received .message-content {
    background: rgba(60, 40, 20, 0.8);
    border: 1px solid rgba(169, 124, 80, 0.3);
    color: #e6c98a;
    border-bottom-left-radius: 4px;
}

.message-text {
    margin: 0;
    word-wrap: break-word;
    line-height: 1.4;
}

.message-footer {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
}

.message-time {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.6);
    line-height: 14px;
}

.message-bubble.received .message-time {
    color: rgba(230, 201, 138, 0.5);
}

.translate-msg-btn {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(74, 158, 255, 0.2);
    border: 1px solid #4a9eff;
    border-radius: 3px;
    color: #4a9eff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    vertical-align: baseline;
}

.translate-msg-btn:hover {
    background: rgba(74, 158, 255, 0.3);
    border-color: #6ab5ff;
    transform: scale(1.15);
}

.translate-msg-btn.translated {
    background: rgba(111, 212, 111, 0.2);
    border-color: #6fd46f;
    color: #6fd46f;
}

.translate-msg-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message-bubble.sent .translate-msg-btn {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.6);
}

.message-bubble.sent .translate-msg-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.8);
}

.message-bubble.sent .translate-msg-btn.translated {
    background: rgba(111, 212, 111, 0.3);
    border-color: #6fd46f;
    color: #6fd46f;
}

/* Item adjunto en mensaje */
.attached-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(169, 124, 80, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.attached-item:hover {
    background: rgba(169, 124, 80, 0.2);
    border-color: #a97c50;
    box-shadow: 0 2px 8px rgba(169, 124, 80, 0.4);
}

.attached-item-icon-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-block;
    flex-shrink: 0;
}

.attached-item-icon-img {
    width: 32px;
    height: 32px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    display: block;
}

.attached-item-name-label {
    font-size: 0.9em;
    color: #ffd700;
    font-weight: 500;
    flex: 1;
}

/* Área de input */
.chat-input-area {
    padding: 15px 20px;
    border-top: 1px solid rgba(169, 124, 80, 0.3);
    background: rgba(40, 25, 15, 0.8);
    flex-shrink: 0;
}

.attached-item-preview {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(74, 124, 89, 0.2);
    border: 1px solid #4a7c59;
    border-radius: 6px;
    margin-bottom: 10px;
}

.attached-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.attached-item-name {
    flex: 1;
    color: #e6c98a;
    font-size: 0.9em;
}

.remove-attached-item {
    background: #7c4a4a;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    padding: 0 !important;
}

.remove-attached-item:hover {
    background: #ff4545;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-attach {
    background: rgba(169, 124, 80, 0.2);
    border: 1px solid rgba(169, 124, 80, 0.4);
    color: #e6c98a;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0 !important;
}

.btn-attach svg {
    stroke: #e6c98a;
    width: 20px !important;
    height: 20px !important;
    display: block;
}

.btn-attach:hover {
    background: rgba(169, 124, 80, 0.3);
    border-color: #a97c50;
}

.btn-attach:hover svg {
    stroke: #ffd700;
}

.message-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(60, 40, 20, 0.8);
    border: 1px solid rgba(169, 124, 80, 0.4);
    border-radius: 8px;
    color: #e6c98a;
    font-family: Arial, sans-serif;
    font-size: 0.95em;
    resize: none;
    height: 40px;
}

.message-input:focus {
    outline: none;
    border-color: #a97c50;
    background: rgba(60, 40, 20, 0.95);
}

.message-input::placeholder {
    color: rgba(230, 201, 138, 0.4);
}

.btn-send {
    background: linear-gradient(135deg, #4a7c59 0%, #2d5a3a 100%);
    border: 1px solid #5a9c6f;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0 !important;
}

.btn-send svg {
    fill: white;
    stroke: white;
    width: 20px !important;
    height: 20px !important;
    display: block;
}

.btn-send:hover {
    background: linear-gradient(135deg, #5a9c6f 0%, #3d6a4a 100%);
    box-shadow: 0 0 10px rgba(90, 156, 111, 0.5);
}

/* Modales */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: linear-gradient(180deg, rgba(40, 25, 15, 0.98) 0%, rgba(30, 20, 12, 0.98) 100%);
    border: 2px solid #a97c50;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(169, 124, 80, 0.3);
}

.modal-header h3 {
    font-family: 'Cinzel', serif;
    color: #e6c98a;
    margin: 0;
    font-size: 1.2em;
}

.modal-close {
    background: none;
    border: none;
    color: #e6c98a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 69, 69, 0.2);
    color: #ff4545;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(169, 124, 80, 0.3);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Modal búsqueda jugadores */
.search-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(60, 40, 20, 0.8);
    border: 1px solid rgba(169, 124, 80, 0.4);
    border-radius: 8px;
    color: #e6c98a;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.search-input:focus {
    outline: none;
    border-color: #a97c50;
}

.search-input::placeholder {
    color: rgba(230, 201, 138, 0.4);
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(60, 40, 20, 0.5);
    border: 1px solid rgba(169, 124, 80, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-item:hover {
    background: rgba(169, 124, 80, 0.2);
    border-color: #a97c50;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(169, 124, 80, 0.5);
}

.player-name {
    font-family: 'Cinzel', serif;
    color: #e6c98a;
    font-weight: 500;
}

/* Modal inventario */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.inventory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: rgba(60, 40, 20, 0.5);
    border: 1px solid rgba(169, 124, 80, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    min-height: 48px;
}

.inventory-item:hover {
    background: rgba(169, 124, 80, 0.2);
    border-color: #a97c50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 124, 80, 0.3);
}

.inventory-item-icon-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-block;
}

.inventory-item-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    display: block;
}

.inventory-item-name {
    font-size: 0.75em;
    color: #e6c98a;
    word-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.no-items {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-family: 'Cinzel', serif;
}

.btn-cancel {
    padding: 8px 20px !important;
    background: rgba(169, 124, 80, 0.2);
    border: 1px solid rgba(169, 124, 80, 0.4);
    color: #e6c98a;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.9em;
    transition: all 0.2s ease;
    line-height: 1 !important;
}

.btn-cancel:hover {
    background: rgba(255, 69, 69, 0.3);
    border-color: #ff4545;
    color: #ffaaaa;
}

/* Badge de notificaciones */
.quick-action-btn {
    position: relative;
}

.badge-unread {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid rgba(40, 25, 15, 0.95);
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.5);
}

.pulse-animation {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Loading states */
.loading-conversations,
.loading-players,
.loading-inventory {
    text-align: center;
    color: #888;
    padding: 20px;
    font-family: 'Cinzel', serif;
}

.no-conversations,
.no-players {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-family: 'Cinzel', serif;
}

/* Scrollbar personalizado para áreas de mensajes */
.messages-area::-webkit-scrollbar,
.conversations-list::-webkit-scrollbar,
.players-list::-webkit-scrollbar,
.inventory-grid::-webkit-scrollbar {
    width: 8px;
}

.messages-area::-webkit-scrollbar-track,
.conversations-list::-webkit-scrollbar-track,
.players-list::-webkit-scrollbar-track,
.inventory-grid::-webkit-scrollbar-track {
    background: rgba(20, 15, 10, 0.5);
}

.messages-area::-webkit-scrollbar-thumb,
.conversations-list::-webkit-scrollbar-thumb,
.players-list::-webkit-scrollbar-thumb,
.inventory-grid::-webkit-scrollbar-thumb {
    background: rgba(169, 124, 80, 0.4);
    border-radius: 4px;
}

.messages-area::-webkit-scrollbar-thumb:hover,
.conversations-list::-webkit-scrollbar-thumb:hover,
.players-list::-webkit-scrollbar-thumb:hover,
.inventory-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(169, 124, 80, 0.6);
}

/* Daily Tasks Styles */
.dailytasks-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.dailytasks-global-progress {
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid #7c5a2b;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 12px;
}

.dailytasks-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.dailytasks-progress-header h3 {
    margin: 0;
    color: #e6c98a;
    font-size: 0.9em;
    font-weight: bold;
}

.dailytasks-progress-text {
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
}

.dailytasks-progress-bar-container {
    width: 100%;
    height: 14px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid rgba(124, 90, 43, 0.3);
    position: relative;
}

.dailytasks-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #ffd700 50%, #d4af37 100%);
    transition: width 0.5s ease;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}

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

.dailytasks-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid #7c5a2b;
    border-radius: 8px;
    padding: 8px;
    transition: all 0.3s ease;
}

.dailytasks-item:hover {
    border-color: rgba(230, 201, 138, 0.6);
    box-shadow: 0 4px 15px rgba(230, 201, 138, 0.2);
}

.dailytasks-item.completed {
    border-color: rgba(76, 175, 80, 0.5);
}

.dailytasks-item.claimed {
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.25);
}

.dailytasks-item-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dailytasks-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dailytasks-item-task-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #1a1207;
    border: 1.5px solid #7c5a2b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.dailytasks-item-task-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.dailytasks-item-info {
    flex: 1;
    min-width: 0;
}

.dailytasks-item-name {
    margin: 0 0 1px 0;
    color: #e6c98a;
    font-size: 0.9em;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dailytasks-item-description {
    margin: 0;
    color: #aaa;
    font-size: 0.75em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dailytasks-item-reward-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.dailytasks-item-reward-icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #1a1207;
    border: 1.5px solid #7c5a2b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: border 0.2s, transform 0.2s, box-shadow 0.2s;
}

.dailytasks-item-reward-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: opacity 0.2s;
}

/* Estado: Disponible para reclamar (borde verde) */
.dailytasks-reward-img-claimable {
    border: 2px solid #4CAF50 !important;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.4) !important;
}

.dailytasks-reward-img-claimable:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6) !important;
}

/* Estado: Ya reclamado (borde verde sutil) */
.dailytasks-reward-img-claimed {
    border: 1.5px solid #4CAF50 !important;
    opacity: 0.8;
    filter: brightness(0.9);
}

/* Estado: No disponible (borde gris) */
.dailytasks-reward-img-incomplete {
    border: 1.5px solid #888 !important;
    opacity: 0.5;
    filter: grayscale(1);
    cursor: default !important;
}

.dailytasks-claimed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    z-index: 10;
    pointer-events: none;
}

.dailytasks-claimed-overlay i {
    font-size: 18px;
    color: #4CAF50;
    text-shadow: 0 0 6px rgba(76, 175, 80, 0.8);
}

.dailytasks-item-reward-badge {
    position: absolute;
    top: 24px;
    right: 26px;
    background: #2d1a0b;
    color: #ffd700;
    font-weight: bold;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 6px;
    z-index: 3;
    border: 1px solid #7c5a2b;
    pointer-events: none;
}

.dailytasks-item-check {
    flex-shrink: 0;
}

.dailytasks-item-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dailytasks-item-progress-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 100px;
}

.dailytasks-status-text {
    color: #999;
    font-size: 0.75em;
}

.dailytasks-progress-numbers {
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
}

.dailytasks-item-progress-bar-container {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(124, 90, 43, 0.3);
    position: relative;
}

.dailytasks-item-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 50%, #4CAF50 100%);
    transition: width 0.5s ease;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
}



.dailytasks-claimed-text {
    color: #4CAF50;
    font-weight: bold;
    font-size: 0.95em;
}

.dailytasks-incomplete-text {
    color: #999;
    font-size: 0.9em;
}

.dailytasks-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1em;
}

.dailytasks-final-rewards {
    background: rgba(34, 40, 46, 0.9);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    padding: 25px;
    margin-top: 40px;
}

.dailytasks-final-title {
    color: #d4af37;
    font-size: 1.5em;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.dailytasks-final-description {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.dailytasks-final-rewards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dailytasks-final-reward-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(230, 201, 138, 0.3);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.dailytasks-final-reward-item:hover {
    border-color: rgba(230, 201, 138, 0.6);
}

.dailytasks-final-reward-item.claimed {
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.2);
}

.dailytasks-final-reward-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.dailytasks-final-reward-info {
    flex: 1;
}

.dailytasks-final-reward-text {
    color: #fff;
    font-size: 1em;
    font-weight: bold;
}

.dailytasks-final-claim-btn {
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.dailytasks-final-claim-btn:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.dailytasks-final-claim-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dailytasks-final-claimed-text {
    color: #4CAF50;
    font-weight: bold;
    font-size: 0.95em;
}

.dailytasks-final-incomplete-text {
    color: #999;
    font-size: 0.9em;
}

/* ========================================
   JOB SYSTEM STYLES
   ======================================== */

.jobsystem-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.jobsystem-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid #7c5a2b;
    border-radius: 8px;
    padding: 8px;
    transition: all 0.3s ease;
}

.jobsystem-item:hover {
    border-color: rgba(230, 201, 138, 0.6);
    box-shadow: 0 4px 15px rgba(230, 201, 138, 0.2);
}

.jobsystem-item-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jobsystem-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jobsystem-item-job-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #1a1207;
    border: 1.5px solid #7c5a2b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.jobsystem-item-job-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.jobsystem-item-info {
    flex: 1;
    min-width: 0;
}

.jobsystem-item-name {
    margin: 0 0 1px 0;
    color: #e6c98a;
    font-size: 0.9em;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jobsystem-item-description {
    margin: 0;
    color: #aaa;
    font-size: 0.75em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jobsystem-item-reward-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.jobsystem-item-reward-icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #1a1207;
    border: 1.5px solid #7c5a2b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.jobsystem-item-reward-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: opacity 0.2s;
}

/* Estado: Disponible para reclamar (borde verde) */
.jobsystem-reward-img-claimable {
    border: 2px solid #4CAF50 !important;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.4) !important;
}

.jobsystem-reward-img-claimable:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6) !important;
}

/* Estado: Ya reclamado (borde verde sutil) */
.jobsystem-reward-img-claimed {
    border: 1.5px solid #4CAF50 !important;
    opacity: 0.8;
    filter: brightness(0.9);
}

/* Estado: No disponible (borde gris) */
.jobsystem-reward-img-incomplete {
    border: 1.5px solid #888 !important;
    opacity: 0.5;
    filter: grayscale(1);
    cursor: default !important;
}

.jobsystem-claimed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    z-index: 2;
}

.jobsystem-claimed-overlay i {
    font-size: 18px;
    color: #4CAF50;
    text-shadow: 0 0 6px rgba(76, 175, 80, 0.8);
}

.jobsystem-item-reward-badge {
    position: absolute;
    top: 24px;
    right: 26px;
    background: #2d1a0b;
    color: #ffd700;
    font-weight: bold;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 6px;
    z-index: 3;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.jobsystem-item-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jobsystem-item-progress-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 100px;
}

.jobsystem-status-text {
    color: #999;
    font-size: 0.75em;
}

.jobsystem-progress-numbers {
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
}

.jobsystem-item-progress-bar-container {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(124, 90, 43, 0.3);
    position: relative;
}

.jobsystem-item-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 50%, #4CAF50 100%);
    transition: width 0.5s ease;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
}

.jobsystem-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1em;
}

/* Logs Styles */
.jobsystem-logs-container {
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid #7c5a2b;
    border-radius: 8px;
    padding: 15px;
}

.jobsystem-logs-title {
    color: #e6c98a;
    font-size: 1em;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.jobsystem-logs-list {
    overflow-x: auto;
}

.jobsystem-logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.jobsystem-logs-table thead {
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #7c5a2b;
}

.jobsystem-logs-table th {
    color: #e6c98a;
    padding: 8px 12px;
    text-align: left;
    font-weight: bold;
    font-size: 0.9em;
}

.jobsystem-logs-table td {
    color: #fff;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(124, 90, 43, 0.2);
}

.jobsystem-logs-table tbody tr:hover {
    background: rgba(230, 201, 138, 0.1);
}

.jobsystem-log-city {
    color: #e6c98a;
    font-weight: 600;
}

.jobsystem-log-arrow {
    color: #999;
    margin: 0 8px;
}

.jobsystem-log-gold {
    color: #ffd700;
    font-weight: bold;
}

.jobsystem-log-time {
    color: #4CAF50;
}

.jobsystem-log-date {
    color: #aaa;
}

.jobsystem-empty-logs {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 0.95em;
}
/* ==================== Survey System Styles ==================== */

/* Survey Listing */
.surveys-header {
    margin-bottom: 30px;
}

.surveys-header h2 {
    color: #e6c98a;
    font-size: 1.8em;
    margin: 0 0 10px 0;
}

.surveys-header p {
    color: #aaa;
    font-size: 0.95em;
}

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

.survey-card {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(230,201,138,0.2);
    transition: all 0.3s;
}

.survey-card:hover {
    border-color: rgba(230,201,138,0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.survey-card-header {
    margin-bottom: 15px;
}

.survey-card-header h3 {
    color: #e6c98a;
    font-size: 1.3em;
    margin: 0 0 10px 0;
}

.survey-card-header p {
    color: #999;
    font-size: 0.85em;
    margin: 0;
}

.survey-card p {
    color: #ccc;
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.5;
}

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

.survey-card-footer span {
    color: #999;
    font-size: 0.9em;
}

.survey-badge-completed {
    background: #28a745;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.survey-btn-take {
    background: #e6c98a;
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s;
    display: inline-block;
}

.survey-btn-take:hover {
    background: #f0d8a0;
    transform: scale(1.05);
}

.surveys-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.surveys-empty p {
    font-size: 1.1em;
}

/* Survey Questions */
.survey-header {
    margin-bottom: 30px;
}

.survey-header h2 {
    color: #e6c98a;
    font-size: 1.8em;
    margin: 0 0 10px 0;
}

.survey-header p {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.6;
}

.survey-header a {
    color: #e6c98a;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 15px;
}

.survey-question {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(230,201,138,0.2);
}

.question-header h4 {
    color: #e6c98a;
    font-size: 1.1em;
    margin: 0 0 5px 0;
}

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

.survey-option {
    display: block;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.survey-option:hover {
    background: rgba(230,201,138,0.1);
    border-color: rgba(230,201,138,0.4);
}

.survey-option input {
    margin-right: 10px;
}

.survey-option input:checked + span {
    color: #e6c98a;
    font-weight: 600;
}

.survey-option span {
    color: #ddd;
}

/* Rating Widget */
.rating-widget {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rating-star {
    font-size: 2em;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
}

.rating-star:hover,
.rating-star.active {
    color: #ffd700;
}

.rating-star input {
    display: none;
}

.rating-label {
    color: #999;
    margin-left: 10px;
    font-size: 0.9em;
}

/* Text Input */
.survey-question textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(230,201,138,0.3);
    border-radius: 4px;
    color: #ddd;
    font-size: 0.95em;
    resize: vertical;
    font-family: inherit;
}

/* Submit Button */
.survey-submit {
    margin-top: 30px;
    text-align: center;
}

.survey-btn-submit {
    background: #e6c98a;
    color: #000;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.survey-btn-submit:hover {
    background: #f0d8a0;
    transform: scale(1.05);
}

.survey-btn-submit:active {
    transform: scale(0.95);
}

/* Survey Results */
.survey-stats {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(230,201,138,0.2);
}

.survey-stats p {
    color: #e6c98a;
    font-size: 1.1em;
    margin: 0;
}

.result-question {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(230,201,138,0.2);
}

.result-question h4 {
    color: #e6c98a;
    font-size: 1.2em;
    margin: 0 0 20px 0;
}

.result-question canvas {
    max-height: 300px;
}

.result-question p {
    color: #999;
    font-style: italic;
}

/* Text responses */
.result-question .text-response {
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid rgba(230,201,138,0.5);
    margin-bottom: 10px;
    border-radius: 4px;
}

.result-question .text-response p {
    color: #ddd;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
    font-style: normal;
}

/* --- Survey System Styles --- */
.surveys-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.survey-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    width: 100%;
}

.survey-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.survey-info {
    flex: 1;
}

.survey-title {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

.survey-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #aaa;
}

.survey-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.survey-action {
    margin-left: 20px;
    min-width: 140px;
    display: flex;
    justify-content: flex-end;
}

.survey-btn-take {
    background: linear-gradient(45deg, #d4af37, #b4941f);
    color: #000;
    text-decoration: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.survey-btn-take:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    color: #000;
    background: linear-gradient(45deg, #f4cf57, #d4af37);
}

.survey-status.completed {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4CAF50;
    font-weight: 500;
    background: rgba(76, 175, 80, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    font-size: 0.9rem;
}

.surveys-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

/* Survey View Styles */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.survey-question-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

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

.question-text h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
}

.question-number {
    color: #aaa;
    margin-right: 8px;
    font-size: 1.1rem;
}

.required-mark {
    color: #ff4444;
    margin-left: 4px;
}

.question-input {
    display: flex;
    justify-content: flex-end;
}

.options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-end;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.option-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(230, 201, 138, 0.3);
}

.option-item input {
    margin: 0;
}

.option-text {
    color: #ccc;
    font-size: 0.85rem;
}

.option-item input[type="checkbox"]:checked + .option-text,
.option-item input[type="radio"]:checked + .option-text {
    color: #e6c98a;
    font-weight: 500;
}

.option-item input[type="checkbox"]:checked ~ .option-text,
.option-item input[type="radio"]:checked ~ .option-text {
    color: #e6c98a;
    font-weight: 500;
}

.rating-widget {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stars-container {
    display: flex;
    gap: 5px;
}

.rating-star {
    font-size: 1.8rem;
    color: #444;
    cursor: pointer;
    transition: color 0.2s;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.rating-star.active,
.rating-star:hover {
    color: #FFD700;
}

.rating-star input {
    display: none;
}

.rating-label {
    font-size: 0.9rem;
    color: #888;
    min-width: 80px;
}

.text-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.text-input-wrapper textarea {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    padding: 8px 12px;
    resize: none;
    min-height: 38px;
}

.text-input-wrapper textarea:focus {
    border-color: #d4af37;
    outline: none;
}

.btn-apply-text {
    background: #d4af37;
    color: #000;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
}

.btn-apply-text:hover {
    background: #f4cf57;
    transform: scale(1.05);
}

.survey-submit-section {
    margin-top: 30px;
    text-align: right;
}

.survey-btn-submit {
    background: linear-gradient(45deg, #d4af37, #b4941f);
    color: #000;
    border: none;
    padding: 0 24px;
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.survey-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    background: linear-gradient(45deg, #f4cf57, #d4af37);
}

.survey-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   NOTIFICATIONS STYLES
   ======================================== */

.notifications-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

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

.notifications-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid #7c5a2b;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notifications-item:hover {
    border-color: rgba(230, 201, 138, 0.6);
    box-shadow: 0 4px 15px rgba(230, 201, 138, 0.2);
    transform: translateY(-2px);
}

.notifications-item.unread {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.5);
}

.notifications-item.read {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(40, 167, 69, 0.3);
    opacity: 0.85;
}

.notifications-item-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notifications-item-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notifications-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #1a1207;
    border: 1.5px solid #7c5a2b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    color: #e6c98a;
}

.notifications-item-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.notifications-item-info {
    flex: 1;
    min-width: 0;
}

.notifications-item-title {
    margin: 0 0 4px 0;
    color: #e6c98a;
    font-size: 1em;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notifications-item-type {
    color: #999;
    font-size: 0.8em;
    background: rgba(124, 90, 43, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.notifications-item-status {
    flex-shrink: 0;
    font-size: 24px;
}

.notifications-item-date {
    color: #666;
    font-size: 0.75em;
    margin-top: 4px;
}

.notifications-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1em;
}

/* Notification Detail Styles */
.notification-detail-container {
    width: 100%;
    height: 100vh;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Scrollbar personalizada para notification-detail-container */
.notification-detail-container::-webkit-scrollbar {
    width: 12px;
}

.notification-detail-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(124, 90, 43, 0.2);
}

.notification-detail-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(124, 90, 43, 0.6) 0%, rgba(212, 175, 55, 0.4) 100%);
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.notification-detail-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(124, 90, 43, 0.8) 0%, rgba(212, 175, 55, 0.6) 100%);
}

/* Firefox */
.notification-detail-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.6) rgba(0, 0, 0, 0.3);
}

.notification-detail-content {
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid #7c5a2b;
    border-radius: 12px;
    padding: 20px;
    margin: 20px;
    max-width: calc(100% - 40px);
    width: calc(100% - 40px);
}

.notification-detail-banner {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.notification-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(124, 90, 43, 0.3);
}

.notification-detail-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #1a1207;
    border: 2px solid #7c5a2b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e6c98a;
}

.notification-detail-title-section {
    flex: 1;
}

.notification-detail-title {
    margin: 0 0 8px 0;
    color: #e6c98a;
    font-size: 1.5em;
    font-weight: bold;
}

.notification-detail-type {
    color: #999;
    font-size: 0.9em;
    background: rgba(124, 90, 43, 0.3);
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
}

.notification-detail-body {
    color: #ddd;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.notification-detail-body h1,
.notification-detail-body h2,
.notification-detail-body h3,
.notification-detail-body h4,
.notification-detail-body h5,
.notification-detail-body h6 {
    color: #e6c98a;
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

.notification-detail-body h1 {
    font-size: 1.5em;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

.notification-detail-body h2 {
    font-size: 1.3em;
    margin-top: 1.1em;
    margin-bottom: 0.55em;
}

.notification-detail-body h3 {
    font-size: 1.15em;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.notification-detail-body h4 {
    font-size: 1.05em;
    margin-top: 0.9em;
    margin-bottom: 0.45em;
}

.notification-detail-body h5 {
    font-size: 1em;
    margin-top: 0.8em;
    margin-bottom: 0.4em;
}

.notification-detail-body h6 {
    font-size: 0.9em;
    margin-top: 0.7em;
    margin-bottom: 0.35em;
}

.notification-detail-body p {
    margin-bottom: 12px;
}

.notification-detail-body ul,
.notification-detail-body ol {
    margin-left: 0;
    margin-bottom: 12px;
    padding-left: 0;
    list-style: none;
}

.notification-detail-body ul li,
.notification-detail-body ol li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    line-height: 1.6;
    padding-left: 0;
}

.notification-detail-body ul li::before {
    content: "•";
    color: #e6c98a;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 0.2em;
}

.notification-detail-body ol {
    counter-reset: list-item;
}

.notification-detail-body ol li::before {
    content: counter(list-item) ".";
    counter-increment: list-item;
    color: #e6c98a;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 0.2em;
}

.notification-detail-body ul li p,
.notification-detail-body ol li p {
    display: inline;
    margin: 0;
    flex: 1;
}

.notification-detail-body ul li > *,
.notification-detail-body ol li > * {
    flex: 1;
}

.notification-detail-body a {
    color: #d4af37;
    text-decoration: underline;
}

.notification-detail-dates {
    color: var(--gold, #ffd700);
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(124, 90, 43, 0.3);
    font-size: 0.9em;
}

.notification-detail-dates small,
.notification-detail-dates .text-muted {
    color: var(--gold, #ffd700) !important;
    opacity: 0.95;
}

.notification-detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(124, 90, 43, 0.3);
}

.notification-like-btn,
.notification-dislike-btn {
    flex: 1;
    padding: 12px 20px;
    border: 1.5px solid #7c5a2b;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #e6c98a;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notification-like-btn:hover,
.notification-dislike-btn:hover {
    background: rgba(124, 90, 43, 0.3);
    border-color: rgba(230, 201, 138, 0.6);
    transform: translateY(-2px);
}

.notification-like-btn.liked {
    background: rgba(40, 167, 69, 0.4) !important;
    border-color: #28a745 !important;
    color: #4CAF50 !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.notification-like-btn.liked:hover {
    background: rgba(40, 167, 69, 0.6) !important;
    border-color: #28a745 !important;
}

.notification-dislike-btn.disliked {
    background: rgba(220, 53, 69, 0.4) !important;
    border-color: #dc3545 !important;
    color: #ff6b6b !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.notification-dislike-btn.disliked:hover {
    background: rgba(220, 53, 69, 0.6) !important;
    border-color: #dc3545 !important;
}

/* Cuando un botón está activo, desactivar visualmente el otro */
.notification-like-btn.liked ~ .notification-dislike-btn,
.notification-dislike-btn.disliked ~ .notification-like-btn {
    opacity: 0.5;
    filter: grayscale(0.3);
}

.notification-detail-back {
    padding-top: 16px;
    border-top: 1px solid rgba(124, 90, 43, 0.3);
}

.notification-detail-back .btn {
    background: rgba(124, 90, 43, 0.3);
    border: 1.5px solid #7c5a2b;
    color: #e6c98a;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.notification-detail-back .btn:hover {
    background: rgba(124, 90, 43, 0.5);
    border-color: rgba(230, 201, 138, 0.6);
    transform: translateY(-2px);
}

/* ========================================
   SETTINGS - Vista de Configuración
   ======================================== */

.settings-container-full {
    width: 100vw;
    height: 100vh;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Main Wrapper */
.settings-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
}

/* Settings Tabs - Centered */
.settings-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    padding: 0.25em 1em;
    border-bottom: 1px solid rgba(169, 124, 80, 0.3);
}

.settings-tab-btn {
    background: transparent;
    border: 1px solid #a97c50;
    border-radius: 6px;
    padding: 0.5em 1em;
    color: #a97c50;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5em;
    height: 2.5em;
    line-height: 1;
    white-space: nowrap;
}

.settings-tab-btn i {
    font-size: 1em;
}

.settings-tab-btn:hover {
    background: rgba(169, 124, 80, 0.2);
}

.settings-tab-btn.active {
    background: #a97c50;
    color: #fff;
}

.settings-tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.settings-tab-pane {
    display: none;
    height: 100%;
}

.settings-tab-pane.active {
    display: block;
}

/* Modern Form Grid */
.settings-form-modern {
    width: 100%;
    max-width: 100%;
    padding: 1em;
}

.settings-form-row {
    display: flex;
    gap: 1em;
    margin-bottom: 1em;
}

.settings-form-col-6 {
    flex: 1;
    min-width: 0;
}

.settings-form-col-12 {
    width: 100%;
}

.settings-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.settings-form-field label {
    color: #e6c98a;
    font-size: 0.85em;
    font-weight: 500;
}

.settings-select,
.settings-input-text {
    width: 100%;
    height: 2.5em;
    padding: 0 0.8em;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9em;
    transition: all 0.2s ease;
    box-sizing: border-box;
    display: block;
    visibility: visible;
    opacity: 1;
}

.settings-select:focus,
.settings-input-text:focus {
    outline: none;
    border-color: #a97c50;
    box-shadow: 0 0 6px rgba(169, 124, 80, 0.3);
}

.settings-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 0.5em;
}

/* Forzar selects e inputs nativos del navegador (no Materialize) */
select.settings-select.browser-default,
input.settings-input-text.browser-default {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 100% !important;
    height: 2.5em !important;
    padding: 0 0.8em !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #444 !important;
    border-radius: 4px !important;
    color: #fff !important;
    font-size: 0.9em !important;
    box-sizing: border-box !important;
}

select.settings-select.browser-default {
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
}

input.settings-input-text.browser-default {
    -webkit-appearance: textfield !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* Compact Buttons - Fixed Height */
.settings-btn-compact {
    height: 2.2em;
    padding: 0 1em;
    background: rgba(169, 124, 80, 0.3);
    border: 1px solid #a97c50;
    color: #a97c50;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 1;
}

.settings-btn-compact:hover {
    background: rgba(169, 124, 80, 0.5);
}

.settings-btn-submit {
    height: 2.5em;
    padding: 0 2em;
    background: #a97c50;
    border: 1px solid #a97c50;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
    box-sizing: border-box;
    line-height: 1;
}

.settings-btn-submit:hover {
    background: #8b6738;
}

.settings-form-actions {
    margin-top: 1.5em;
    display: flex;
    justify-content: flex-end;
}

/* Status Badges */
.settings-status-badge {
    display: flex;
    align-items: center;
    height: 2.2em;
}

.settings-status-verified {
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.85em;
}

.settings-status-unverified {
    color: #ffc107;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.85em;
}

.settings-status-verified i,
.settings-status-unverified i {
    font-size: 1em;
}

/* WhatsApp */
.settings-whatsapp-status {
    display: flex;
    align-items: center;
    gap: 0.5em;
    height: 2.2em;
    color: #28a745;
    font-size: 0.9em;
}

.settings-whatsapp-form {
    display: flex;
    gap: 0.5em;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================
   SISTEMA DE CUPONES
   ========================================== */

/* Contenedor principal */
.cupons-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.cupons-title {
    color: #e6c98a;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

/* Mensajes */
.cupons-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1em;
}

.cupons-message-info {
    background: rgba(23, 162, 184, 0.2);
    border: 1px solid rgba(23, 162, 184, 0.5);
    color: #17a2b8;
}

.cupons-message-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

.cupons-message-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
}

/* Card de información */
.cupons-info-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(169, 124, 80, 0.3);
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 15px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.cupons-name {
    color: #ffd700;
    font-size: 1.2em;
    margin-bottom: 6px;
    text-align: center;
    font-weight: 600;
}

.cupons-description {
    color: #e6c98a;
    font-size: 0.85em;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cupons-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.85em;
}

.cupons-meta-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #e6c98a;
}

.cupons-meta-inline i {
    font-size: 1.1em;
    color: #a97c50;
}

.cupons-meta-separator {
    color: #666;
    font-size: 1em;
    margin: 0 5px;
}

/* Recompensas */
.cupons-rewards {
    margin-bottom: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cupons-rewards-title {
    color: #e6c98a;
    font-size: 0.95em;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.cupons-rewards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
    justify-content: center;
}

.cupons-reward-item {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(169, 124, 80, 0.3);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    transition: all 0.3s ease;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cupons-reward-item:hover {
    border-color: #a97c50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 124, 80, 0.3);
}

.cupons-reward-image {
    width: 48px;
    height: 48px;
    margin: 0 auto 6px;
    position: relative;
}

.cupons-reward-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cupons-quantity-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #4CAF50;
    color: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
    line-height: 1;
}

.cupons-reward-details {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cupons-reward-name {
    color: #e6c98a;
    font-size: 0.75em;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sección de reclamar */
.cupons-claim-section {
    text-align: center;
    margin: 15px auto;
    max-width: 350px;
}

.cupons-claim-btn {
    background: linear-gradient(135deg, #a97c50 0%, #8b6738 100%);
    border: 2px solid #a97c50;
    color: #fff;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cupons-claim-btn i {
    font-size: 1.2em;
}

.cupons-claim-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #b88d5f 0%, #9c7847 100%);
    box-shadow: 0 4px 15px rgba(169, 124, 80, 0.5);
    transform: translateY(-2px);
}

.cupons-claim-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cupons-claim-btn-claimed {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%) !important;
    border-color: #1e7e34 !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

.cupons-claim-btn-claimed:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%) !important;
    box-shadow: none !important;
    transform: none !important;
}

.cupons-claim-btn-claimed i {
    display: inline-block !important;
    margin-right: 8px;
    vertical-align: middle;
}

.cupons-claim-info {
    color: #a97c50;
    font-size: 0.75em;
    margin-top: 6px;
}

/* Verificación */
.cupons-verification-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(169, 124, 80, 0.4);
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    max-width: 380px;
    margin: 15px auto 0;
}

.cupons-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cupons-verification-title {
    color: #e6c98a;
    font-size: 1.1em;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.cupons-verification-info {
    color: #a97c50;
    font-size: 0.85em;
    margin: 0;
    line-height: 1.3;
}

.cupons-verification-expires {
    color: #ffc107;
    font-size: 0.8em;
    margin: 6px 0 0 0;
    font-weight: 500;
}

/* Inputs de código */
.cupon-code-input-group {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    margin: 12px 0 8px 0;
}

.cupon-code-input {
    width: 32px;
    height: 40px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #444;
    border-radius: 5px;
    color: #e6c98a;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.cupon-code-input:focus {
    outline: none;
    border-color: #a97c50;
    box-shadow: 0 0 8px rgba(169, 124, 80, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

.cupon-code-input:hover {
    border-color: #666;
}

.cupon-code-separator {
    width: 8px;
    height: 2px;
    background: #666;
    border-radius: 1px;
}

/* Mensajes de error/éxito */
.cupons-error-message {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #dc3545;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 8px 0 0 0;
    font-size: 0.8em;
}

.cupons-success-message {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 8px 0 0 0;
    font-size: 0.8em;
}

/* Botón de submit */
.cupons-submit-btn {
    background: linear-gradient(135deg, #a97c50 0%, #8b6738 100%);
    border: 2px solid #a97c50;
    color: #fff;
    padding: 5px 30px;
    font-size: 0.95em;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 8px;
}

.cupons-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #b88d5f 0%, #9c7847 100%);
    box-shadow: 0 4px 15px rgba(169, 124, 80, 0.5);
    transform: translateY(-2px);
}

.cupons-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Botón de reenviar */
.cupons-resend-btn {
    background: transparent;
    border: none;
    color: #a97c50;
    padding: 6px 12px;
    font-size: 0.75em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
    text-decoration: underline;
}

.cupons-resend-btn:hover:not(:disabled) {
    color: #b88d5f;
    text-decoration: none;
}

.cupons-resend-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
}

.settings-whatsapp-form-visible {
    display: flex !important;
}

.settings-whatsapp-form-hidden {
    display: none !important;
}

.settings-whatsapp-code-section {
    display: none;
}

.settings-whatsapp-code-section-visible {
    display: flex !important;
    gap: 0.5em;
    width: 100%;
    margin-top: 0.5em;
    align-items: center;
}

.settings-whatsapp-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    gap: 0.5em;
}

.settings-country-code {
    padding: 0 0.8em;
    background: rgba(169, 124, 80, 0.2);
    color: #a97c50;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid #444;
    border-radius: 4px;
    height: 2.2em;
    line-height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -15px;
    box-sizing: border-box;
}

.settings-whatsapp-input-wrapper input.settings-input-text {
    flex: 1;
    min-width: 0;
    height: 2.2em;
}

.settings-whatsapp-form > button {
    flex-shrink: 0;
}


.settings-whatsapp-form #whatsapp-code-section input {
    flex: 1;
    min-width: 100px;
}

.settings-whatsapp-form #whatsapp-message {
    width: 100%;
    font-size: 0.8em;
    margin-top: 0.3em;
    min-height: 1.2em;
    line-height: 1.4;
}

.settings-whatsapp-message-success {
    color: #28a745;
}

.settings-whatsapp-message-error {
    color: #dc3545;
}

/* Mensajes visuales de error/éxito */
.settings-message-error {
    padding: 0.75em 1em;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 4px;
    color: #dc3545;
    font-size: 0.9em;
    margin-bottom: 1em;
}

.settings-message-success {
    padding: 0.75em 1em;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    border-radius: 4px;
    color: #28a745;
    font-size: 0.9em;
    margin-bottom: 1em;
}

/* Toggle Switch - Diseño Hermoso */
.settings-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    cursor: pointer;
}

.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.3s;
    border-radius: 30px;
    border: 2px solid #666;
    box-sizing: border-box;
}

.settings-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
    box-sizing: border-box;
}

.settings-toggle input:checked + .settings-toggle-slider {
    background-color: #28a745;
    border-color: #28a745;
}

.settings-toggle input:checked + .settings-toggle-slider:before {
    transform: translateX(28px);
}

.settings-toggle:hover .settings-toggle-slider {
    box-shadow: 0 0 8px rgba(169, 124, 80, 0.4);
}

/* Notifications List */
.settings-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.settings-notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75em;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.settings-notification-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: #a97c50;
}

.settings-notification-info {
    flex: 1;
}

.settings-notification-name {
    color: #fff;
    font-size: 0.9em;
    margin: 0;
    font-weight: 500;
}

.settings-notification-controls {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

/* Validation Status */
.settings-validation-status {
    padding: 1em;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid #444;
}

.settings-time-remaining {
    text-align: center;
    padding: 1em;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    margin-bottom: 1em;
}

.settings-time-display {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffd700;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    gap: 0.5em;
    align-items: baseline;
}

.settings-time-display span {
    padding: 0.3em 0.6em;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
}

.settings-validation-warning {
    padding: 0.75em;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    border-radius: 6px;
    margin-top: 0.75em;
    text-align: center;
    font-size: 0.85em;
}

.settings-validation-info {
    padding: 0.75em;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    border-radius: 6px;
    margin-top: 0.75em;
    text-align: center;
    font-size: 0.85em;
}

.settings-validation-expired {
    padding: 1em;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9em;
}

.settings-validation-methods {
    margin-top: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.settings-method-btn {
    height: 2.5em;
    background: rgba(169, 124, 80, 0.3);
    border: 1px solid #a97c50;
    color: #a97c50;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    box-sizing: border-box;
    line-height: 1;
}

.settings-method-btn:hover:not(:disabled) {
    background: rgba(169, 124, 80, 0.5);
}

.settings-method-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.settings-method-btn small {
    font-size: 0.8em;
    color: #999;
}

.settings-empty {
    text-align: center;
    padding: 2.5em;
    color: #999;
    font-size: 0.9em;
}

.settings-reminder-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.settings-reminder-input {
    width: 70px;
    height: 2.2em;
    padding: 0 0.6em;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 0.85em;
    box-sizing: border-box;
}

.settings-reminder-input:focus {
    outline: none;
    border-color: #a97c50;
    box-shadow: 0 0 6px rgba(169, 124, 80, 0.3);
}

.settings-reminder-label {
    color: #999;
    font-size: 0.85em;
    white-space: nowrap;
}

.settings-reminder-save-btn {
    width: 2.2em;
    height: 2.2em;
    padding: 0;
    background: rgba(169, 124, 80, 0.3);
    border: 1px solid #a97c50;
    border-radius: 4px;
    color: #a97c50;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.settings-reminder-save-btn:hover {
    background: rgba(169, 124, 80, 0.5);
    border-color: #c99966;
    color: #c99966;
}

.settings-reminder-save-btn:active {
    transform: scale(0.95);
}

.settings-reminder-save-btn i {
    font-size: 1em;
}

/* Content wrapper for tabs */
.settings-content {
    height: 100%;
    overflow-y: auto;
    padding: 1em;
}

.settings-time-description {
    color: #999;
    margin-top: 10px;
    font-size: 0.85em;
}

.settings-warning-text {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.settings-info-text {
    color: #28a745;
    font-size: 0.9em;
}

.settings-expired-text {
    color: #fff;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.settings-no-hwid-text {
    color: #999;
    font-size: 0.9em;
}

/* Estilos para Select2 en Settings */
.select2-container {
    width: 100% !important;
    max-width: 100%;
}

.select2-container--default .select2-selection--single {
    height: 2.3em !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #444 !important;
    border-radius: 4px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    line-height: 2.3em !important;
    padding-left: 0.8em !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 2.5em !important;
    right: 0.5em !important;
    color: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent !important;
}

.select2-dropdown {
    background: rgba(0, 0, 0, 0.5) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #444 !important;
}

.select2-container--default .select2-dropdown {
    background: rgba(0, 0, 0, 0.5) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.select2-results {
    background: rgba(0, 0, 0, 0.5) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.select2-results__options {
    background: rgba(0, 0, 0, 0.5) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.select2-results__option {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.5) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    padding: 0.5em 0.8em !important;
}

.select2-results__option--highlighted {
    background: rgba(169, 124, 80, 0.3) !important;
    color: #fff !important;
}

.select2-search--dropdown .select2-search__field {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    padding: 0.5em !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(169, 124, 80, 0.2) !important;
    color: #fff !important;
}

/* Forzar fondo en todos los elementos del dropdown con especificidad máxima */
.select2-dropdown,
.select2-dropdown.select2-container--default,
.select2-dropdown.select2-container--default *,
.select2-dropdown *,
.select2-dropdown .select2-results,
.select2-dropdown .select2-results__options,
.select2-dropdown .select2-results__option,
.select2-dropdown .select2-search--dropdown,
.select2-dropdown .select2-search--dropdown .select2-search__field {
    background: rgba(0, 0, 0, 0.5) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.select2-search--dropdown {
    background: rgba(0, 0, 0, 0.5) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* ========================================
   Character Stats System - PVP Stats (Sidebar)
   ======================================== */

/* Container principal de stats */
.character-stats-section {
    background: rgba(20, 8, 3, 0.90);
    border: 2px solid #6b4e31;
    border-radius: 10px;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.stats-main-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Tabs superiores con iconos (estilo inventory) */
.stats-main-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    background: rgba(30, 15, 5, 0.8);
    border-bottom: 2px solid #6b4e31;
    padding: 12px;
}

.stats-main-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    background: rgba(40, 20, 10, 0.6);
    border: 2px solid #6b4e31;
    border-radius: 8px;
    color: #808080;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stats-main-tab:hover {
    background: rgba(60, 30, 15, 0.8);
    border-color: #8b6e51;
    transform: translateY(-2px);
}

.stats-main-tab.active {
    background: rgba(80, 40, 20, 0.9);
    border-color: #d4a76a;
    box-shadow: 0 0 15px rgba(212, 167, 106, 0.3), inset 0 0 10px rgba(212, 167, 106, 0.1);
}

.stats-main-tab svg {
    transition: all 0.3s ease;
}

.stats-main-tab:hover svg {
    stroke: #d4a76a;
}

.stats-main-tab.active svg {
    stroke: #e6c98a;
}

/* Contenido de tabs */
.stats-tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.stats-panel {
    display: none;
}

.stats-panel.active {
    display: block;
}

/* ===== Event Victories Grid ===== */
.stats-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-event-box {
    background: linear-gradient(135deg, rgba(40, 20, 10, 0.8), rgba(30, 15, 5, 0.6));
    border: 2px solid #6b4e31;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-event-box:hover {
    border-color: #d4a76a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 167, 106, 0.2);
}

.stat-event-emoji {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    line-height: 1;
}

.stat-event-name {
    font-size: 0.75rem;
    color: #a0a0a0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.stat-event-count {
    font-size: 1.6rem;
    color: #e6c98a;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(230, 201, 138, 0.4);
    margin-bottom: 2px;
    line-height: 1;
}

.stat-event-unit {
    font-size: 0.65rem;
    color: #808080;
    text-transform: uppercase;
}

/* ===== Combat History Grid ===== */
.stats-combat-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
}

.stat-combat-box {
    background: linear-gradient(135deg, rgba(40, 20, 10, 0.8), rgba(30, 15, 5, 0.6));
    border: 2px solid #6b4e31;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-combat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-combat-box.highlight-red {
    border-color: #c73232;
}

.stat-combat-box.highlight-red:hover {
    box-shadow: 0 4px 12px rgba(199, 50, 50, 0.3);
}

.stat-combat-box.highlight-gold {
    border-color: #d4a76a;
}

.stat-combat-box.highlight-gold:hover {
    box-shadow: 0 4px 12px rgba(212, 167, 106, 0.3);
}

.stat-combat-box.highlight-blue {
    border-color: #4a9eff;
}

.stat-combat-box.highlight-blue:hover {
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.stat-combat-icon {
    font-size: 2rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    line-height: 1;
}

.stat-combat-label {
    font-size: 0.75rem;
    color: #a0a0a0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.stat-combat-value {
    font-size: 1.6rem;
    color: #e6c98a;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(230, 201, 138, 0.4);
    line-height: 1;
}

/* ===== Globals Container ===== */
.globals-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.global-pill {
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: rgba(40, 20, 10, 0.6);
    border: 1px solid #4a9eff;
    border-left: 3px solid #4a9eff;
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.2s ease;
}

.global-pill:hover {
    background: rgba(50, 25, 12, 0.8);
    border-color: #6ab5ff;
    transform: translateX(3px);
}

.global-icon-img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
    align-self: center;
}

.global-text {
    color: #e0e0e0;
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.translate-btn {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(74, 158, 255, 0.2);
    border: 1px solid #4a9eff;
    border-radius: 3px;
    color: #4a9eff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    vertical-align: baseline;
}

.translate-btn:hover {
    background: rgba(74, 158, 255, 0.3);
    border-color: #6ab5ff;
    transform: scale(1.1);
}

.translate-btn.translated {
    background: rgba(111, 212, 111, 0.2);
    border-color: #6fd46f;
    color: #6fd46f;
}

.translate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.translate-spinner {
    width: 8px;
    height: 8px;
    border: 2px solid #4a9eff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.global-date {
    color: #808080;
    font-size: 0.75rem;
    flex-shrink: 0;
    line-height: 18px;
}

.global-date.time-ago {
    color: #6fd46f;
    font-weight: 600;
}

/* ===== Activity List ===== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(40, 20, 10, 0.4);
    border-left: 3px solid #6b4e31;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: rgba(50, 25, 12, 0.6);
    transform: translateX(3px);
}

.activity-item.activity-win { border-left-color: #d4a76a; }
.activity-item.activity-kill { border-left-color: #c73232; }
.activity-item.activity-unique { border-left-color: #e6c98a; }
.activity-item.activity-global { border-left-color: #4a9eff; }

.activity-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
    line-height: 1;
}

.activity-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.activity-text {
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-time {
    color: #808080;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.activity-time.time-ago {
    color: #6fd46f;
    font-weight: 600;
}



/* Loading states */
.stats-loading-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #a0a0a0;
    font-size: 0.85rem;
}

.no-data-compact, .error-small {
    text-align: center;
    padding: 40px 20px;
    color: #808080;
    font-style: italic;
    font-size: 0.85rem;
}

/* Scrollbar para stats */
.stats-tab-content::-webkit-scrollbar,
.globals-container::-webkit-scrollbar,
.activity-list::-webkit-scrollbar {
    width: 8px;
}

.stats-tab-content::-webkit-scrollbar-track,
.globals-container::-webkit-scrollbar-track,
.activity-list::-webkit-scrollbar-track {
    background: rgba(20, 8, 3, 0.5);
    border-radius: 4px;
}

.stats-tab-content::-webkit-scrollbar-thumb,
.globals-container::-webkit-scrollbar-thumb,
.activity-list::-webkit-scrollbar-thumb {
    background: rgba(169, 124, 80, 0.5);
    border-radius: 4px;
}

.stats-tab-content::-webkit-scrollbar-thumb:hover,
.globals-container::-webkit-scrollbar-thumb:hover,
.activity-list::-webkit-scrollbar-thumb:hover {
    background: rgba(169, 124, 80, 0.7);
}

/* Donation System Styles */
.donation-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.donation-part {
    max-width: 100%;
    width: 100%;
}

.donation-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    max-width: 100%;
}

.donation-package-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid #7c5a2b;
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.donation-package-box:hover {
    border-color: rgba(230, 201, 138, 0.6);
    box-shadow: 0 4px 15px rgba(230, 201, 138, 0.2);
    transform: translateY(-2px);
}

.donation-package-box.selected {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.donation-package-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffd700;
    color: #000;
    font-size: 0.75em;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.donation-package-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #e6c98a;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.donation-package-silks-amount {
    font-size: 1.8em;
    font-weight: bold;
    color: #e6c98a;
    margin-bottom: 3px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.donation-package-silks-label-small {
    font-size: 0.5em;
    font-weight: normal;
    color: #a97c50;
    text-transform: lowercase;
}

.donation-package-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.donation-package-price i {
    font-size: 0.9em;
}

.donation-package-price span {
    font-weight: bold;
}

.donation-package-vip-small {
    font-size: 0.7em;
    color: #a97c50;
    margin-top: 2px;
}

.donation-package-promo-label {
    font-size: 0.85em;
    color: #00ff00;
    font-weight: 600;
    margin-top: 5px;
}

.donation-payment-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.donation-summary-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid #7c5a2b;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.donation-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donation-summary-label {
    color: #a97c50;
    font-weight: 600;
    font-size: 0.95em;
}

.donation-summary-value {
    color: #e6c98a;
    font-weight: bold;
    font-size: 1em;
}

.donation-back-btn {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #a97c50;
    border-radius: 5px;
    color: #e6c98a;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
    font-weight: bold;
    white-space: nowrap;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.donation-back-btn:hover {
    background: rgba(230, 201, 138, 0.1);
    border-color: #e6c98a;
}

.donation-btn {
    padding: 12px 30px;
    background: rgba(230, 201, 138, 0.2);
    border: 2px solid #e6c98a;
    border-radius: 5px;
    color: #e6c98a;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.donation-btn:hover {
    background: #e6c98a;
    color: #000;
}

.donation-btn-primary {
    background: #e6c98a;
    color: #000;
}

.donation-btn-primary:hover {
    background: #ffd700;
}

.donation-methods-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.donation-method-tab {
    padding: 12px 25px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #a97c50;
    border-radius: 5px;
    color: #e6c98a;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
    font-size: 1em;
}

.donation-method-tab i {
    font-size: 1.2em;
}

.donation-method-tab:hover {
    border-color: #e6c98a;
    background: rgba(230, 201, 138, 0.1);
}

.donation-method-tab.active {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.donation-payment-method {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

