@keyframes t5-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.t5-wrap {
    width: 180px;
    margin: 0 auto 10px;
    border-radius: 0;
    overflow: hidden;
    background: #0a1424;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    border: 2px solid #d4af37;
}

.t5-header {
    position: relative;
    background: linear-gradient(180deg, #1e3a5f 0%, #0a1a2f 100%);
    color: #ffd966;
    font-weight: 800;
    text-align: center;
    padding: 5px 8px;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-bottom: 1px solid #d4af37;
}

.t5-header-dot {
    position: absolute;
    top: 8px;
    width: 12px;
    height: 12px;
    background: radial-gradient(#ffd966, #e6b800);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    animation: t5-pulse 2s infinite;
}

.t5-header-dot--l { left: 8px; }
.t5-header-dot--r { right: 8px; }

.t5-body {
    padding: 8px;
    color: #e9eef9;
    font-size: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.t5-card {
    background: rgba(30, 58, 95, 0.3);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 5;
}

.t5-card:last-of-type {
    margin-bottom: 0;
}

.t5-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    color: #0a1424;
    border: 2px solid #d4af37;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.t5-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.t5-outfit {
    width: 48px;
    height: 48px;
    background: rgba(10, 20, 36, 0.7);
    border-radius: 8px;
    border: 2px solid #ffd966;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -3px;
    left: -3px;
    overflow: hidden;
}

.t5-outfit img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    position: relative;
    top: -12px;
    left: -12px;
    image-rendering: pixelated;
}

.t5-info {
    flex: 1;
    min-width: 0;
    text-align: left;
    padding-left: 5px;
}

.t5-name {
    color: #4da6ff;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 2px;
    text-align: left;
}

.t5-name:hover {
    color: #80c0ff;
}

.t5-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.t5-lvl {
    color: #ffd966;
    font-weight: 800;
    font-size: 11px;
}

.t5-voc {
    color: #fff;
    font-size: 11px;
}

.t5-footer {
    text-align: center;
    margin-top: 10px;
    position: relative;
    z-index: 9;
}

.t5-all {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(180deg, #e6b800, #b8860b);
    color: #fff;
    border-radius: 10px;
    font-weight: 800;
    font-size: 11px;
    text-decoration: none;
    box-shadow: 0 3px 0 #8b6910, 0 6px 12px rgba(230, 184, 0, 0.3);
    border: 1px solid #d4af37;
    width: 100%;
    box-sizing: border-box;
}

.t5-all:hover {
    filter: brightness(1.08);
    color: #fff;
}

/* Castle / promoção (mesma família visual) */
.t5-castle-card {
    background: rgba(30, 58, 95, 0.3);
    border-radius: 8px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

a.t5-castle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

a.t5-castle-row:hover .t5-castle-guild {
    color: #80c0ff;
}

.t5-emblem {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: rgba(10, 20, 36, 0.7);
    border-radius: 8px;
    border: 2px solid #ffd966;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.t5-emblem img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.t5-emblem--guild {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.t5-castle-meta {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.t5-castle-kicker {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #d4af37;
    margin-bottom: 4px;
}

.t5-castle-guild {
    font-size: 12px;
    font-weight: 800;
    color: #4da6ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.t5-castle-free {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #9aa8c4;
    padding: 8px 4px;
}

.t5-castle-next {
    margin-top: 10px;
    padding: 8px 6px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
    color: #e9eef9;
}

.t5-castle-next strong {
    color: #ffd966;
    display: block;
    margin-bottom: 2px;
}

.t5-promo-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.t5-promo-link:hover .t5-promo-name {
    color: #ffe08a;
}

.t5-promo-inner {
    text-align: center;
    padding: 4px 2px 0;
}

.t5-promo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(10, 20, 36, 0.7);
    border-radius: 10px;
    border: 2px solid #ffd966;
    margin: 0 auto 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.t5-promo-icon img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    object-fit: contain;
}

.t5-promo-name {
    font-size: 11px;
    font-weight: 800;
    color: #ffd966;
    line-height: 1.25;
    margin-bottom: 6px;
    max-height: 2.5em;
    overflow: hidden;
}

.t5-promo-discount {
    font-size: 15px;
    font-weight: 900;
    color: #4da6ff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.t5-promo-stock {
    margin-top: 10px;
    font-size: 10px;
    color: #9aa8c4;
    text-align: center;
}

.t5-promo-stock span {
    color: #ff9f6b;
    font-weight: 800;
}

.t5-empty {
    text-align: center;
    font-size: 11px;
    color: #9aa8c4;
    padding: 12px 6px;
}

/* Idiomas (change_language) */
#ChangeLanguage.t5-wrap {
    margin-left: auto;
    margin-right: auto;
}

#ChangeLanguage .t5-lang-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.t5-lang-flags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 4px 2px 2px;
}

.t5-lang-flags a {
    display: block;
    border: 2px solid #d4af37;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.t5-lang-flags a:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45);
}

.t5-lang-flags img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: cover;
    vertical-align: middle;
}
