@import url('https://fonts.cdnfonts.com/css/gg-sans-2');

@font-face {
    font-family: 'Minecraft';
    src: url('https://fonts.gstatic.com/s/minecraft/v1/1yBgrphPl1dXKlbM8A.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Minecraft Bold';
    src: url('https://github.com/IdreesInc/Minecraft-Font/raw/master/Minecraft-Bold.otf') format('opentype'),
         url('https://cdn.jsdelivr.net/gh/IdreesInc/Minecraft-Font@master/Minecraft-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Minecraftia Regular';
    src: url('https://cdn.jsdelivr.net/gh/AndrewTyler/Minecraftia@master/Minecraftia-Regular.ttf') format('truetype'),
         url('https://github.com/AndrewTyler/Minecraftia/raw/master/Minecraftia-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Minecraft Local';
    src: url('fontes/Minecraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #00000060;
    --bg-card: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #5865f2;
    --accent-hover: #4752c4;
    --border: rgba(255, 255, 255, .06);
    --role-icon-color: #5865f2;
    --badge-color: #5865f2;
    --overlay-bg: #00000080;
    --tooltip-bg: #0f0f0ffa;
    --tooltip-border: #ffffff1a;
    --server-tag-bg: rgba(30, 30, 30, 0.8);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.3);
    --selection-bg: #ffffff4d;
    --selection-color: #fff;
}

/* Modo claro */
html[data-theme="light"] {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff99;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --border: rgba(0, 0, 0, .08);
    --overlay-bg: #00000040;
    --tooltip-bg: #fffffffa;
    --tooltip-border: #0000001a;
    --server-tag-bg: rgba(0, 0, 0, 0.06);
    --input-bg: rgba(0, 0, 0, 0.06);
    --input-border: rgba(0, 0, 0, 0.12);
    --selection-bg: #5865f24d;
    --selection-color: #1a1a1a;
}

html[data-theme="light"] .videoOverlay {
    background-color: var(--overlay-bg);
}

html[data-theme="light"] .volumeMixer,
html[data-theme="light"] .themeToggle {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}

html[data-theme="light"] .volumeMixer:hover,
html[data-theme="light"] .themeToggle:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .volumeSlider {
    background: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .volumeSlider::-webkit-slider-thumb {
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .roleTooltip,
html[data-theme="light"] .badgeTooltip {
    background: var(--tooltip-bg);
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--tooltip-border);
}

html[data-theme="light"] .roleTooltip:before,
html[data-theme="light"] .badgeTooltip:before {
    border-bottom-color: var(--tooltip-bg);
}

html[data-theme="light"] .serverTagContainer {
    background: var(--server-tag-bg);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .serverTagText {
    color: rgba(0, 0, 0, 0.9);
}

html[data-theme="light"] .botSectionCommandName {
    background: rgba(88, 101, 242, 0.12);
}

html[data-theme="light"] .yinYang,
html[data-theme="light"] .yinYang img {
    filter: brightness(0) invert(0) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

html[data-theme="light"] .startOverlay {
    background-color: #f0f2f5e6;
}

html[data-theme="light"] .lockIcon {
    color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .lockIcon:hover:not(.unlocking) {
    color: rgba(0, 0, 0, 0.8);
}

html[data-theme="light"] .lockIcon.unlocking {
    color: #16a34a;
}

html[data-theme="light"] .backButton {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--border);
    color: var(--text-primary);
}

html[data-theme="light"] .backButton:hover {
    background: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .account:hover {
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .profileRoleBadge,
html[data-theme="light"] .profileBadgeItem,
html[data-theme="light"] .minecraftAccountCard,
html[data-theme="light"] .hytaleAccountCard {
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .profileBadgeItem:hover,
html[data-theme="light"] .minecraftAccountCard:hover,
html[data-theme="light"] .hytaleAccountCard:hover {
    background: rgba(0, 0, 0, 0.08);
}

::selection {
    background: var(--selection-bg);
    color: var(--selection-color);
}

::-moz-selection {
    background: var(--selection-bg);
    color: var(--selection-color);
}

body {
    font-family: 'gg sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: auto;
    min-height: 100vh;
}

#root {
    position: relative;
    min-height: 100vh;
    width: 100%;
}

/* Icon (Yin Yang ou imagem personalizada) */
.yinYang {
    position: fixed;
    top: 50px;
    left: 50%;
    width: 40px;
    height: 40px;
    z-index: 10;
    animation: spinYinYang 4s linear infinite;
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, .6));
    transform: translate(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.yinYang img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, .6));
}

.yinYang svg {
    width: 100%;
    height: 100%;
}

@keyframes spinYinYang {
    0% {
        transform: translate(-50%) rotate(0);
    }
    to {
        transform: translate(-50%) rotate(360deg);
    }
}

/* Background Carousel */
.backgroundCarousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.backgroundCarouselImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.backgroundCarouselImage.active {
    opacity: 0.3;
    z-index: 2;
}

.backgroundCarouselImage.fadeOut {
    opacity: 0;
    z-index: 1;
}

.videoOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #00000080;
    z-index: -1;
    pointer-events: none;
}

/* Start Overlay */
.startOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000d9;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease-in-out;
}

.startOverlay.fadingOut {
    animation: fadeOut 0.6s ease-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Lock Icon */
.lockIcon {
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.lockIcon:hover:not(.unlocking) {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.lockBody {
    stroke: currentColor;
    fill: none;
    transition: all 0.3s ease;
}

.lockShackle {
    stroke: currentColor;
    fill: none;
    transition: all 0.3s ease;
}

.lockShackleGroup {
    transform-origin: 12px 11px;
    transition: all 0.3s ease;
}

.lockIcon.unlocking {
    color: #4ade80;
}

.lockIcon.unlocking .lockShackleGroup {
    animation: shackleOpen 0.8s cubic-bezier(.68, -.55, .265, 1.55) forwards;
}

.lockIcon.unlocking .lockShackle {
    animation: shackleFade 0.8s ease-out forwards;
}

@keyframes shackleOpen {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    30% {
        transform: translateY(-2px) rotate(-5deg);
        opacity: 1;
    }
    70% {
        transform: translateY(-8px) rotate(10deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-16px) rotate(15deg);
        opacity: 0;
    }
}

@keyframes shackleFade {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
    }
}

/* Main Content */
.main {
    width: 100%;
    margin-top: 100px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Seção do bot Discord (WTroup-Stats) */
.botSectionContainer {
    width: 100%;
    max-width: 1400px;
    margin: 24px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.botSection {
    width: 100%;
}

.botSectionCard {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.botSectionCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.botSectionHeader {
    margin-bottom: 20px;
}

.botSectionBadge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 8px;
}

.botSectionTitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.botSectionDesc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px;
}

.botSectionInvite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.botSectionInvite:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.botSectionCommandsTitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.botSectionCommandsList {
    list-style: none;
    margin: 0;
    padding: 0;
}

.botSectionCommand {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.botSectionCommand:last-child {
    border-bottom: none;
}

.botSectionCommandName {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'gg sans', monospace;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.botSectionCommandDesc {
    color: var(--text-secondary);
    line-height: 1.4;
}

.columnsContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: start;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
    overflow: visible;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    width: 100%;
    overflow: visible;
    flex: 1;
}

/* Card */
.card {
    position: relative;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.cardInner {
    position: relative;
    z-index: 1;
    overflow: visible;
    width: auto;
    min-width: min-content;
}

.glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.rolesContainer {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    gap: 6px;
    align-items: center;
}

.roleIconContainer {
    position: relative;
    z-index: 3;
}

.roleIcon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), filter .3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roleIcon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.roleIconContainer:hover .roleIcon {
    transform: scale(1.03);
    filter: drop-shadow(0 0 8px var(--role-icon-color)) brightness(1.1);
}

.roleTooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%);
    background: #0f0f0ffa;
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 450;
    letter-spacing: .02em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 8px 24px #00000080, 0 0 0 1px #ffffff1a;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    opacity: 0;
    transition: opacity .25s cubic-bezier(.34, 1.56, .64, 1), transform .25s cubic-bezier(.34, 1.56, .64, 1);
    transform: translate(-50%) translateY(-8px) scale(.9);
    filter: blur(4px);
}

.roleIconContainer:hover .roleTooltip {
    opacity: 1;
    transform: translate(-50%) translateY(0) scale(1);
    filter: blur(0);
}

.roleTooltip:before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translate(-50%);
    border: 6px solid transparent;
    border-bottom-color: #0f0f0ffa;
    opacity: 0;
    transition: opacity .25s cubic-bezier(.34, 1.56, .64, 1), transform .25s cubic-bezier(.34, 1.56, .64, 1);
    transform: translate(-50%) translateY(-4px);
}

.roleIconContainer:hover .roleTooltip:before {
    opacity: 1;
    transform: translate(-50%) translateY(0);
}

/* Discord Section */
.discordSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
    overflow: visible;
    width: 100%;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.userInfo {
    width: 100%;
    overflow: visible;
    min-width: 0;
}

.displayNameContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.displayName {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.serverTagContainer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 12px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.serverTagIcon {
    height: 16px;
    width: 16px;
    object-fit: contain;
    filter: brightness(1.1);
}

.serverTagText {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.username {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.badges {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0 0;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.badgeContainer {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.badgeContainer:hover {
    z-index: 10000;
}

.badge {
    max-height: none;
    height: 24px;
    width: auto;
    padding: 2px;
    transition: transform .2s, filter .2s;
    object-fit: contain;
    object-position: center;
    display: block;
}

.badgeContainer:hover .badge {
    filter: drop-shadow(0 0 8px var(--badge-color)) brightness(1.2);
}

.badgeTooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%);
    background: #0f0f0ffa;
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 450;
    letter-spacing: .02em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 8px 24px #00000080, 0 0 0 1px #ffffff1a;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    opacity: 0;
    transition: opacity .25s cubic-bezier(.34, 1.56, .64, 1), transform .25s cubic-bezier(.34, 1.56, .64, 1);
    transform: translate(-50%) translateY(-8px) scale(.9);
    filter: blur(4px);
}

.badgeContainer:hover .badgeTooltip {
    opacity: 1;
    transform: translate(-50%) translateY(0) scale(1);
    filter: blur(0);
}

.badgeTooltip:before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translate(-50%);
    border: 6px solid transparent;
    border-bottom-color: #0f0f0ffa;
    opacity: 0;
    transition: opacity .25s cubic-bezier(.34, 1.56, .64, 1), transform .25s cubic-bezier(.34, 1.56, .64, 1);
    transform: translate(-50%) translateY(-4px);
}

.badgeContainer:hover .badgeTooltip:before {
    opacity: 1;
    transform: translate(-50%) translateY(0);
}

/* Mush Section */
.mushSection {
    padding-top: 24px;
    overflow: visible;
    width: 100%;
}

.accounts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    overflow: visible;
    min-width: min-content;
    width: auto;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.account:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.externalLinkIcon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--text-secondary);
}

.account:hover .externalLinkIcon {
    opacity: 1;
}

.externalLinkIcon svg {
    width: 100%;
    height: 100%;
}

.accountContent {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: min-content;
    overflow: visible;
    flex-shrink: 0;
}

.playerFace {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    flex-shrink: 0;
}

.playerName {
    flex: 0 1 auto;
    min-width: min-content;
    display: flex;
    align-items: center;
    font-family: 'Minecraft', monospace;
    font-size: 14px;
    color: var(--text-primary);
    overflow: visible;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nicknameSpan {
    font-family: 'Minecraft Local', 'Minecraft', monospace;
    font-weight: 400;
}

.prefixContainer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
}

.suffixSpan {
    margin-left: 8px;
    font-family: 'Minecraft Local', 'Minecraft', monospace;
    font-weight: 400;
}

.prefixItem {
    display: inline-block;
    font-family: 'Minecraft Bold', 'Minecraft', monospace;
    font-weight: 700;
}

.prefixItem.fadeIn {
    animation: fadeIn 0.3s ease-in;
}

.prefixItem.fadeOut {
    animation: fadeOut 0.3s ease-out;
}

.tagText {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    /* Prefix + Nick na mesma linha */
}

.suffixContainer {
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* Sufixo em linha separada abaixo */
}

.suffixContainer span {
    font-family: 'Minecraft Local', 'Minecraft', monospace;
    font-weight: 400;
}

.tagPagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.paginationBar {
    position: relative;
    width: 100%;
    height: 100%;
}

.progressBar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--progress-color) 0%, var(--progress-color) 100%);
    animation: progressFillAnimation 3.2s linear forwards;
    transform-origin: left;
}

.progressSegment {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 2px;
}

@keyframes segmentFill {
    0% {
        width: 0%;
        opacity: 0;
    }
    1% {
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

@keyframes progressFillAnimation {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 24px;
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

.discordLink {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: var(--text-secondary);
}

.discordLink:hover {
    transform: scale(1.1);
    color: var(--accent);
}

.discordIcon {
    width: 100%;
    height: 100%;
}

.copyright {
    font-size: 12px;
    color: var(--text-secondary);
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Volume Mixer Minimalista */
.volumeMixer {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.volumeMixer:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.volumeIcon {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.volumeIcon:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.volumeIcon:active {
    transform: scale(0.95);
}

.volumeIcon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.volumeSliderContainer {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 4px;
}

.volumeMixer:hover .volumeSliderContainer {
    width: 110px;
    opacity: 1;
}

.volumeSlider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.volumeSlider:hover {
    background: rgba(255, 255, 255, 0.2);
}

.volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                0 0 0 2px rgba(255, 255, 255, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.volumeSlider::-webkit-slider-thumb:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.3);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3),
                0 0 0 3px rgba(255, 255, 255, 0.4);
}

.volumeSlider::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

/* Controles de Música */
.musicControls {
    position: fixed;
    top: 90px;
    left: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.musicControls:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.musicControlButton {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.musicControlButton:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.musicControlButton:active {
    transform: scale(0.95);
}

.musicControlButton svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.volumeSlider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                0 0 0 2px rgba(255, 255, 255, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.volumeSlider::-moz-range-thumb:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.3);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3),
                0 0 0 3px rgba(255, 255, 255, 0.4);
}

.volumeSlider::-moz-range-thumb:active {
    transform: scale(1.1);
}

/* Botão tema claro/escuro */
.themeToggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.themeToggle:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

.themeToggle .themeIcon {
    width: 22px;
    height: 22px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.themeToggle .themeIconSun {
    opacity: 0;
}

.themeToggle .themeIconMoon {
    opacity: 1;
}

html[data-theme="light"] .themeToggle .themeIconSun {
    opacity: 1;
}

html[data-theme="light"] .themeToggle .themeIconMoon {
    opacity: 0;
}

/* Profile Page Styles */
.profilePage {
    width: 100%;
    max-width: 900px;
    margin: 80px auto 40px;
    padding: 0 20px;
    animation: fadeIn 0.3s ease-in;
}

.profileActions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.backButton {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.profileActions .backButton {
    margin-bottom: 0;
}

.backButton:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-4px);
}

a.backButton:hover {
    color: var(--text-primary);
}

.backButton svg {
    width: 20px;
    height: 20px;
}

.profileContainer {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.profileHeader {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.profileAvatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--border);
    flex-shrink: 0;
}

.profileInfo {
    flex: 1;
}

.profileDisplayNameContainer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.profileDisplayName {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.profileServerTagContainer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profileServerTagContainer .serverTagIcon {
    height: 20px;
    width: 20px;
    object-fit: contain;
    filter: brightness(1.1);
}

.profileServerTagContainer .serverTagText {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.profileUsername {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.profileRoles {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profileRoleBadge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 500;
}

.profileRoleBadge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.profileCapeSection {
    margin-bottom: 32px;
    width: 100%;
}

.profileCapeSection h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.capeContainer {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.capeImage {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 300px;
}

.profileBadges {
    margin-bottom: 32px;
}

.profileBadges h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.badgesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.profileBadgeItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.profileBadgeItem img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.profileBadgeItem span {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.profileMinecraftSection {
    margin-top: 32px;
}

.profileMinecraftSection h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.minecraftAccountsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.minecraftAccountCard {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.minecraftAccountAvatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    flex-shrink: 0;
}

.minecraftAccountInfo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.minecraftAccountName {
    font-family: 'Minecraft', monospace;
    font-size: 16px;
    color: var(--text-primary);
    white-space: nowrap;
    /* Prefix + Nick na mesma linha */
}

.minecraftAccountName .prefixSpan {
    font-family: 'Minecraft Bold', 'Minecraft', monospace;
    font-weight: 700;
}

.minecraftAccountName .nicknameSpan {
    font-family: 'Minecraft Local', 'Minecraft', monospace;
    font-weight: 400;
}

.suffixContainer {
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* Sufixo em linha separada abaixo (apenas na página de perfil) */
}

.suffixContainer span {
    font-family: 'Minecraft Local', 'Minecraft', monospace;
    font-weight: 400;
}

.profileHytaleSection {
    margin-top: 32px;
}

.profileHytaleSection h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hytaleAccountCard {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    max-width: 300px;
}

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

.hytaleAccountAvatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    flex-shrink: 0;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.hytaleAccountInfo {
    flex: 1;
    min-width: 0;
}

.hytaleAccountName {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .columnsContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .columnsContainer {
        grid-template-columns: 1fr;
    }
    
    .column {
        width: 100%;
    }
    
    .card {
        width: 100%;
    }
    
    .account {
        width: 100%;
    }
    
    .profileHeader {
        flex-direction: column;
        text-align: center;
    }
    
    .profileAvatar {
        width: 100px;
        height: 100px;
    }
    
    .profileDisplayName {
        font-size: 24px;
    }
    
    .badgesGrid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .minecraftAccountsGrid {
        grid-template-columns: 1fr;
    }
    
    .volumeMixer {
        top: 16px;
        left: 16px;
        padding: 8px 12px;
    }
    
    .themeToggle {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    .accounts {
        gap: 6px;
    }
    
    .card:hover {
        transform: translateY(-1px);
    }
}
