.guildlogo{
    padding:0;
    position:relative;
}
.guildlogo img {
    border-radius: 16px;
}
.guildlogo .div1{left:50%;position:absolute;z-index:1; transform: translateX(-50%);}
.guildlogo .div2{left:50%;position:absolute;z-index:2; transform: translateX(-50%);}
.guildlogo .div3{position:relative;z-index:3;}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.alert p {
    margin-bottom: 0;
}

.img-viewItemMall {
    max-width: 100%;
}

.btn-primary {
    background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 100%);
    border: none;
    padding: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
}

.form-control:focus,
.form-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.15);
}

.rounded-4 {
    border-radius: 20px !important;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex !important;
    justify-content: center !important;
    padding: 2rem 0 !important;
}

/* Remove default bootstrap look */
.page-item {
    margin: 0 0.2rem !important;
}

.page-link {
    background: rgba(15, 15, 20, 0.95) !important;
    border: 2px solid rgba(80, 100, 140, 0.5) !important;
    color: #aabbcc !important;
    padding: 0.6rem 1rem !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    min-width: 42px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;

    /* Remove Bootstrap focus ring */
    box-shadow: none !important;
}

/* Hover */
.page-link:hover:not(.disabled):not(.active) {
    background: rgba(40, 60, 100, 0.8) !important;
    border-color: rgba(100, 150, 255, 0.7) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(50, 100, 200, 0.4) !important;
}

/* Active */
.page-item.active .page-link {
    background: rgba(50, 80, 140, 0.9) !important;
    border-color: rgba(100, 150, 255, 0.8) !important;
    color: #6dd5ff !important;
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.4) !important;
}

/* Disabled */
.page-item.disabled .page-link {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.page-item.disabled .page-link:hover {
    background: rgba(15, 15, 20, 0.95) !important;
    border-color: rgba(80, 100, 140, 0.5) !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.text-white {
    color: white !important;
}

.nav-link.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
}

.nav-tabs {
    border-color: #3b82f6 !important;
}

.text-red {
    color: rgb(224, 49, 66) !important;
}

.font-weight-bold {
    font-weight: bold !important;
}

.table > :not(caption) > * > * {
    background: none !important;
}

/* Wrapper */
.dataTables_paginate {
    display: flex !important;
    justify-content: center !important;
    padding: 2rem 0 !important;
}

/* Remove Bootstrap styles */
.pagination {
    display: flex !important;
    gap: 0.4rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Pagination buttons */
.pagination li a {
    background: rgba(15, 15, 20, 0.95) !important;
    border: 2px solid rgba(80, 100, 140, 0.5) !important;
    color: #aabbcc !important;
    padding: 0.6rem 1rem !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    min-width: 42px !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    text-decoration: none !important;
}

/* Hover (not disabled) */
.pagination li:not(.disabled) a:hover {
    background: rgba(40, 60, 100, 0.8) !important;
    border-color: rgba(100, 150, 255, 0.7) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(50, 100, 200, 0.4) !important;
}

/* Active page */
.pagination li.active a {
    background: rgba(50, 80, 140, 0.9) !important;
    border-color: rgba(100, 150, 255, 0.8) !important;
    color: #6dd5ff !important;
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.4) !important;
    transform: none !important;
}

/* Disabled state */
.pagination li.disabled a {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Disabled hover (keep same style) */
.pagination li.disabled a:hover {
    background: rgba(15, 15, 20, 0.95) !important;
    border-color: rgba(80, 100, 140, 0.5) !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}


/* Container must be relative */
.table-wrapper {
    position: relative;
}

/* Overlay */
.table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.8);  /* dark frosted */
    backdrop-filter: blur(2px);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9cc7ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Visible state */
.table-loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Spinner inside overlay */
.table-loading-overlay i {
    font-size: 32px;
    margin-right: 12px;
}

.dataTables_processing {
    display: none !important;
}

.category-tab.active {
    pointer-events: none;
}

.view-filter {
    padding: 0 10px;
}

[data-notify="dismiss"] {
    background: none;
    outline: none;
    border: 0;
    font-size: 16px !important;
}

.btn-buy[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.font-weight-bold {
    font-weight: bold !important;
}

.btn--primary {
    padding: 0.7rem 2rem;
    background: #00bcd4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: fit-content;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.btn-simple {
    color: rgb(59, 130, 246); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: 0.3s; padding-left: 0.5rem;
    border: 0;
    outline: none;
    margin-bottom: 10px;
}

.btn-simple:hover {
    background: none;
    transform: translateX(5px);
}

.m-t-sm{
    padding-top: 10px;
}
.m-t-md{
    padding-top: 20px;
}
.m-t-lg{
    padding-top: 40px;
}

.btn-disabled {
    padding: 0.7rem 2rem;
    background: #9ca3af;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: not-allowed;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-active {
    padding: 0.7rem 2rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.text-blue {
    color: #00bcd4 !important;
}

.text-yellow {
    color: #f59e0b !important;
}

.select2-results__option--highlighted {
    background: #100c63 !important;
}

.select2-container--bootstrap.select2-container--focus .select2-selection, .select2-container--bootstrap.select2-container--open .select2-selection {
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(0, 55, 99, 0.6) !important;
    border-color: #100c63 !important;
}

.select2-container--bootstrap .select2-dropdown {
    border-color: #100c63 !important;
}

legend{
    color: darkslategrey;
    cursor: default;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
    border-bottom: solid 1px transparent;
}

fieldset {
    border-radius: 5px;
    padding: 15px !important;
}

fieldset legend {
    font-family: Orbitron, cursive;
    background: #100c63;
    color: #fff;
    padding: 5px 10px ;
    font-size: 20px;
    border-radius: 5px;
    box-shadow: 0 0 0 5px #ddd;
    display: block;
    width: 100%;
}

.info-value {
    font-weight: bold;
    color: #100c63;
}

#drop-result .row {
    margin-left: 0;
    margin-right: 0;
}

#drop-result .row .droplist:nth-child(odd) {
    padding: 10px;
    background: #eaeaea;
}

#drop-result .row .droplist:nth-child(even) {
    padding: 10px;
    background: #ffffff;
}

.news-wrapper {
    position: relative;
    background: linear-gradient( 145deg, rgba(13, 71, 161, 0.35), rgba(74, 20, 140, 0.35) );
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    padding: 4rem 3rem;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 700px;
    margin: 0 auto;
}

.news-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient( 180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50% );
    pointer-events: none;
}

.news-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.6), 0 0 100px rgba(74, 20, 140, 0.4);
    border-color: rgba(255, 255, 255, 0.35);
}

.news-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px; /* space between items */
}

.news-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #fff; /* 1px white border */
}

.news-list__item__main {
    display: flex;
    align-items: center;
    gap: 12px; /* space between badge & title */
    flex: 1;
}

.news-list__item__type .badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 80px;
}

.news-list__item__content {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-list__item__content:hover {
    text-decoration: underline;
}

.news-list__item__date {
    font-size: 0.85rem;
    opacity: 0.8;
    white-space: nowrap;
}

/* BASE BADGE */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* COLORS (Bootstrap-style) */
.badge-primary {
    background-color: #0d6efd; /* Bootstrap primary */
    color: #fff;
}

.badge-success {
    background-color: #198754; /* Bootstrap success */
    color: #fff;
}

.badge-warning {
    background-color: #ffc107; /* Bootstrap warning */
    color: #000;
}

.badge-danger {
    background-color: #dc3545; /* Bootstrap danger */
    color: #fff;
}

.badge-info {
    background-color: #0dcaf0; /* Bootstrap info */
    color: #000;
}

.badge-secondary {
    background-color: #6c757d; /* Bootstrap secondary */
    color: #fff;
}

.badge-dark {
    background-color: #212529; /* Bootstrap dark */
    color: #fff;
}

.badge-light {
    background-color: #f8f9fa; /* Bootstrap light */
    color: #000;
}

@media (max-width: 767px) {
    .stats-wrapper {
        grid-template-columns: 1fr !important;
    }

    .stat-item {
        justify-content: start !important;
    }

    .news-list__item__content {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .news-list__item__content {
        max-width: 100px;
    }
}
