.preload {
    background-color: rgb(22, 20, 19);
    min-width: 320px;
    position: fixed;
    z-index: 500;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
}

.preload__items {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.preload__item {
    width: 12px;
    height: 12px;
    background-color: #d79d39;
    border-radius: 50%;
    animation: preloadBounce 0.6s infinite alternate;
}

.preload__item:nth-child(2) {
    animation-delay: 0.2s;
}

.preload__item:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes preloadBounce {
    from {
        transform: translateY(0);
        opacity: 0.3;
    }

    to {
        transform: translateY(-10px);
        opacity: 1;
        box-shadow: 0 5px 15px rgba(215, 157, 57, 0.4);
    }
}
.bonus-badge {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #be3636;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    z-index: 2000;
    box-shadow: 0 0 12px rgba(255, 90, 0, .35)
}

.bonus-badge .track {
    position: relative;
    font-size: 16px;
    font-family: 'BeaufortforLOL', sans-serif;
    white-space: nowrap;
    will-change: transform;
    animation: bonus-marquee 11s linear infinite;
    font-weight: 800;
    letter-spacing: .6px;
    padding-left: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    text-transform: uppercase
}

.bonus-badge:hover .track {
    animation-play-state: paused
}

@keyframes bonus-marquee {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-100%)
    }
}

.bonus-badge.hidden {
    display: none
}

/* Premium Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.premium-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #dcb158;
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
    padding: 30px;
    color: #fff;
    box-shadow: 0 0 30px rgba(220, 177, 88, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #dcb158;
    transition: color 0.3s;
}

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

.modal-title {
    text-align: center;
    color: #dcb158;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(220, 177, 88, 0.3);
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(220, 177, 88, 0.5);
}

.event-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, background 0.3s;
}

.event-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(220, 177, 88, 0.3);
}

.event-icon {
    font-size: 28px;
    color: #dcb158;
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.event-details h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.event-details p {
    margin: 0;
    color: #aaa;
    font-size: 13px;
    line-height: 1.4;
}

.btn-discord {
    display: block;
    width: 100%;
    text-align: center;
    background: #5865F2;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

 .character-profile-container {
     padding-top: 50px;
     padding-bottom: 80px;
     background: radial-gradient(circle at top, rgba(215, 157, 57, 0.05) 0%, transparent 70%);
 }

.profile-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(215, 157, 57, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    overflow: visible;
}

.profile-header {
    background: linear-gradient(135deg, rgba(215, 157, 57, 0.1) 0%, transparent 100%);
    padding: 20px;
    border-bottom: 1px solid rgba(215, 157, 57, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-header h2 {
    margin: 0;
    color: #ffb751;
    font-weight: 700;
    font-size: 1.8rem;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-online {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.status-offline {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.character-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
}

.equipment-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.character-model {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.character-model img {
    max-width: 250px;
    height: auto;
    max-height: 450px;
    filter: drop-shadow(0 0 15px rgba(255, 183, 81, 0.3));
    transition: transform 0.3s ease;
}

.character-model img:hover {
    transform: scale(1.05);
}

.inventory-grid {
    display: none; /* Hide old grid */
}

.item-slot {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(215, 157, 57, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Rarity Animation Overlay */
.rarity-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/item/itemplus.png');
    background-size: cover;
    background-repeat: no-repeat;
    animation: rotate 2s linear infinite;
    pointer-events: none; /* Let clicks pass through */
    z-index: 2;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.item-slot img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.item-slot .empty-slot {
    width: 100%;
    height: 100%;
    opacity: 0.5;
    object-fit: cover;
}

.item-tooltip {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #ffb751;
    padding: 5px;
    width: 180px;
    z-index: 9999;
    border-radius: 5px;
    display: none;
    pointer-events: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    font-size: 0.75rem;
    line-height: 1.3;
}

.item-slot:hover .item-tooltip {
    display: block;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    color: #aea599;
    font-weight: 600;
}

.stat-value {
    color: #fff;
    font-weight: 700;
}

.history-table {
    width: 100%;
    font-size: 0.85rem;
}

.history-table th {
    color: #ffb751;
    padding: 10px;
    border-bottom: 1px solid rgba(215, 157, 57, 0.2);
}

.history-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    color: #aea599;
    font-weight: 700;
    padding: 5px 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #ffb751;
    border-bottom: 2px solid #ffb751;
}

.buffs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 15px;
}

.buff-icon {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(215, 157, 57, 0.3);
    border-radius: 4px;
}

/* Tab Content Visibility Fix */
.tab-content > .tab-pane {
    display: none;
}
.tab-content > .active {
    display: block;
}
.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}
.fade.show {
    opacity: 1;
}

/* Season Rank Styles */
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.rank-bronze { color: #cd7f32; }
.rank-silver { color: #e0e0e0; text-shadow: 0 0 5px rgba(224, 224, 224, 0.3); }
.rank-gold { color: #ffd700; text-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
.rank-platinum { color: #7fffd4; text-shadow: 0 0 8px rgba(127, 255, 212, 0.4); }
.rank-diamond { color: #00bfff; text-shadow: 0 0 10px rgba(0, 191, 255, 0.5); }
.rank-master { color: #ff4500; text-shadow: 0 0 10px rgba(255, 69, 0, 0.5); }
.rank-elite { color: #ff00ff; text-shadow: 0 0 12px rgba(255, 0, 255, 0.6); }


/**********/

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    color: #e8d1a6;
    overflow: hidden;
}

.table th {
    background: transparent;
    border: none;
    color: #ffb751;
    font-family: var(--font-1);
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-align: left;
}

.table td {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    padding: 15px 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: none;
}

.table tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    font-family: var(--font-1);
    font-weight: 700;
    color: #ffb751;
}

.table tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.table tbody tr:hover td {
    background: rgba(215, 157, 57, 0.1);
    color: #fff;
    transform: scale(1.01);
}

.table th,
.table td {
    vertical-align: middle;
}

.table tbody tr:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.025);
}

.table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.04);
}

.table td:last-child {
    text-align: center;
}
.table thead th {
    position: sticky;
    top: 0;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(6px);
    z-index: 1;
    border-bottom: 1px solid rgba(255, 183, 81, 0.2);
    text-align: center;
}
#content-ranking form {
    display: none;
}
.tab-content.ranking-table-card {
    padding: 0 !important;
}
.social__list {
    display: flex;
    justify-content: end;
}
.social__item {
    width: 106px;
    height: 106px;
}

.sro-item-detail .item > img {
    left: 0;
}

.table.table-inventory td, .table.table-inventory th {
    background: none !important;
    border: none !important;
}
.sro-item-detail .item {
    background: url("../images/clean-bath/item-bg.png") no-repeat center center;
    background-size: 100%;
}
.sro-item-detail.sro-item-special {
    background: none;
}
.sro-item-detail {
    background: none;
}
.table-inventory tbody tr:hover td {
    transform: none !important;
}
.table-inventory {
    border-collapse: initial;
    border-spacing: initial;
}
.profile-card {
    backdrop-filter: none;
    box-shadow: none;
}
.btn:hover {
    color: #292120;
}

.dashboard-content-card .card {
    background-color: transparent;
    border: none;
    border-radius: 0;
}
.dashboard-content-card .card .card {
    background-color: rgba(22, 20, 19, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 10px;
}

.logotype__img {
    width: auto !important;
    max-height: 125px;
}

/*
.hero__countdown {
    display: none !important;
}
*/