/* ── Profile Card ── */
.profile-card {
    background: var(--bg-row);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Avatar + info */
.profile-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: var(--bg-input);
    border: 2px solid var(--border-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-settings-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-settings-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

/* ── XP Bar ── */
.xp-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.xp-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xp-bar-wrap {
    width: 100%;
    height: 8px;
    background: var(--bg-input);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #7c4dff);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(74, 158, 255, 0.5);
}

.xp-text {
    font-size: 10px;
    color: var(--text-settings-muted);
    white-space: nowrap;
    font-weight: 500;
}

.level-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-bg);
    border: 1px solid var(--accent-glow);
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

/* Stats row */
.profile-stats {
    display: flex;
    gap: 6px;
}

.stat-chip {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    transition: border-color 0.2s;
}

.stat-chip.clickable {
    cursor: pointer;
}

.stat-chip.clickable:hover {
    border-color: var(--accent-glow);
}

.stat-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-settings-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-settings-primary);
}

/* Login */
.login-google-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.login-google-btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: #f8f8f8;
}

.google-logo {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Logout btn */
.logout-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-settings-muted);
    font-size: 13px;
    padding: 5px;
    cursor: pointer;
    font-family: var(--font);
    transition: border-color 0.2s, color 0.2s;
}

.logout-btn:hover {
    border-color: rgba(255,80,80,0.4);
    color: #ff5050;
}

.coin-package {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.coin-package:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
}

.coin-package.popular {
    border-color: rgba(255,152,0,0.3);
}

.coin-package.popular:hover {
    border-color: rgba(255,152,0,0.5);
}
/* ── Reserved Nicks tabla ── */
#shopNickList {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.nick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    transition: background 0.15s;
}

.nick-row:last-child {
    border-bottom: none;
}

.nick-row:hover {
    background: rgba(255,255,255,0.03);
}

.nick-row-name {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font);
    flex: 1;
}

.nick-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nick-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.nick-color-swatch:hover {
    transform: scale(1.15);
}
/* ── Reserved Nicks scroll ── */
#currentNickBox {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#shopNickList {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

#shopNickList::-webkit-scrollbar {
    width: 4px;
}

#shopNickList::-webkit-scrollbar-track {
    background: transparent;
}

#shopNickList::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
    /* Solo aparece cuando hay suficiente contenido */
    min-height: 20px;
}

#shopNickList::-webkit-scrollbar-thumb:hover {
    background: #7c4dff;
}

.perk-hint {
    font-size: 10px;
    font-weight: 700;
    color: #4a9eff;
    background: rgba(74,158,255,0.12);
    border: 1px solid rgba(74,158,255,0.25);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: default;
    position: relative;
}

.perk-hint::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #0e0e14;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    font-family: var(--font);
    width: 200px;
    line-height: 1.5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    white-space: normal;
}

.perk-hint:hover::after {
    opacity: 1;
}
/* ── Shop Boosts scroll ── */
#shopContentBoosts {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(74,158,255,0.4) transparent;
    padding-right: 4px;
}

#shopContentBoosts::-webkit-scrollbar {
    width: 4px;
}

#shopContentBoosts::-webkit-scrollbar-track {
    background: transparent;
}

#shopContentBoosts::-webkit-scrollbar-thumb {
    background: rgba(74,158,255,0.4);
    border-radius: 4px;
    min-height: 20px;
}

#shopContentBoosts::-webkit-scrollbar-thumb:hover {
    background: #4a9eff;
}

/* ── Shop Coins scroll ── */
#shopContentCoins {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(74,158,255,0.4) transparent;
    padding-right: 4px;
}

#shopContentCoins::-webkit-scrollbar {
    width: 4px;
}

#shopContentCoins::-webkit-scrollbar-track {
    background: transparent;
}

#shopContentCoins::-webkit-scrollbar-thumb {
    background: rgba(74,158,255,0.4);
    border-radius: 4px;
    min-height: 20px;
}

#shopContentCoins::-webkit-scrollbar-thumb:hover {
    background: #4a9eff;
}