/* ============================================
   NEET HUB — PROFILE SYSTEM
   Shared across all pages
   ============================================ */

/* ============ NAV PROFILE BUTTON ============ */
.nav-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(0,245,255,0.15);
    background: rgba(0,245,255,0.05);
    transition: all 0.2s;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.85rem;
    color: #fff;
}
.nav-profile-btn:hover {
    background: rgba(0,245,255,0.12);
    border-color: rgba(0,245,255,0.35);
    box-shadow: 0 0 10px rgba(0,245,255,0.15);
}
.nav-profile-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(0,245,255,0.3);
    background: var(--neon-purple, #b829e3);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: #fff;
    overflow: hidden;
}
.nav-profile-avatar img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.nav-profile-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .nav-profile-name { display: none; }
    .nav-profile-btn { padding: 0.2rem 0.4rem; }
}

/* ============ PROFILE OVERLAY ============ */
.profile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: profileFadeIn 0.2s ease;
}
.profile-overlay.active {
    display: flex;
}
@keyframes profileFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============ PROFILE CARD (Main Container) ============ */
.profile-card {
    width: 480px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-secondary, #12121a);
    border: 1px solid rgba(0,245,255,0.15);
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(0,0,0,0.6), 0 0 30px rgba(0,245,255,0.08);
    animation: profileSlideIn 0.25s ease;
}
.profile-card::-webkit-scrollbar { width: 6px; }
.profile-card::-webkit-scrollbar-track { background: transparent; }
.profile-card::-webkit-scrollbar-thumb { background: rgba(0,245,255,0.2); border-radius: 3px; }

@keyframes profileSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============ BANNER ============ */
.profile-banner {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0030 0%, #0a1628 50%, #0d0d1a 100%);
}
.profile-banner img {
    width: 100%; height: 100%; object-fit: cover;
}
.profile-banner-edit {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.15s;
}
.profile-banner-edit:hover {
    background: rgba(0,245,255,0.15);
    color: #fff;
    border-color: rgba(0,245,255,0.3);
}
.profile-close-btn {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.15s;
}
.profile-close-btn:hover {
    background: rgba(255,50,50,0.3);
    color: #fff;
}

/* ============ AVATAR SECTION ============ */
.profile-avatar-section {
    position: relative;
    margin-top: -45px;
    padding: 0 1.2rem;
    display: flex;
    align-items: flex-end;
    gap: 0.8rem;
}
.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.profile-avatar-lg {
    width: 90px; height: 90px;
    border-radius: 50%;
    border: 4px solid var(--bg-secondary, #12121a);
    background: var(--neon-purple, #b829e3);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: #fff;
    overflow: hidden;
    object-fit: cover;
}
.profile-avatar-lg img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.profile-avatar-edit {
    position: absolute;
    bottom: 2px; right: 2px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.15s;
}
.profile-avatar-edit:hover { background: rgba(0,245,255,0.2); color: #fff; }

.profile-name-section {
    flex: 1;
    padding-bottom: 0.3rem;
    min-width: 0;
}
.profile-display-name {
    font-family: var(--font-display, 'Orbitron', sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-role-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}
.profile-role-badge.admin { background: rgba(255,23,68,0.2); color: #ff1744; border: 1px solid rgba(255,23,68,0.3); }
.profile-role-badge.mod { background: rgba(0,245,255,0.15); color: #00f5ff; border: 1px solid rgba(0,245,255,0.25); }
.profile-role-badge.member { background: rgba(255,255,255,0.06); color: #888; border: 1px solid rgba(255,255,255,0.1); }
.profile-online-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    margin-left: 0.4rem; vertical-align: middle;
}
.profile-online-dot.online { background: #39ff14; box-shadow: 0 0 6px #39ff14; }
.profile-online-dot.offline { background: #555; }

/* ============ CUSTOM STATUS ============ */
.profile-status-bar {
    padding: 0 1.2rem;
    margin-top: 0.5rem;
}
.profile-custom-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted, #888);
}

/* ============ BIO ============ */
.profile-bio-section {
    padding: 0.6rem 1.2rem 0;
}
.profile-bio-text {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.5;
    word-break: break-word;
}
.profile-bio-text.empty { color: #555; font-style: italic; }

/* ============ ACTIVITY (Currently...) ============ */
.profile-activity-section {
    padding: 0.5rem 1.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.profile-activity-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #aaa;
}
.profile-activity-icon { font-size: 0.85rem; }
.profile-activity-label { color: #666; }
.profile-activity-value { color: #ddd; }

/* ============ STATS ROW ============ */
.profile-stats-row {
    display: flex;
    gap: 0;
    padding: 0.6rem 1.2rem;
    margin-top: 0.4rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.profile-stat-item {
    flex: 1;
    text-align: center;
    padding: 0.3rem 0;
}
.profile-stat-item + .profile-stat-item {
    border-left: 1px solid rgba(255,255,255,0.06);
}
.profile-stat-val {
    display: block;
    font-family: var(--font-mono, 'Share Tech Mono', monospace);
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-cyan, #00f5ff);
}
.profile-stat-key {
    display: block;
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

/* ============ SOCIALS ============ */
.profile-socials-section {
    padding: 0.5rem 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.profile-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 0.75rem;
    color: #ccc;
    text-decoration: none;
    transition: all 0.15s;
}
.profile-social-link:hover {
    background: rgba(0,245,255,0.1);
    border-color: rgba(0,245,255,0.25);
    color: #fff;
}

/* ============ MUSIC SECTION ============ */
.profile-music-section {
    padding: 0 1.2rem 0.5rem;
}
.profile-music-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    background: rgba(30,215,96,0.06);
    border: 1px solid rgba(30,215,96,0.15);
    border-radius: 8px;
    font-size: 0.78rem;
    color: #1ed760;
}

/* ============ JOINED / FOOTER ============ */
.profile-footer {
    padding: 0.5rem 1.2rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #555;
}

/* ============ EDIT TOGGLE BUTTON ============ */
.profile-edit-toggle {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #ccc;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.03em;
}
.profile-edit-toggle:hover {
    background: rgba(0,245,255,0.08);
    border-color: rgba(0,245,255,0.25);
    color: #fff;
}

/* ============ EDIT PROFILE FORM ============ */
.profile-edit-section {
    padding: 0.8rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.profile-edit-section h4 {
    font-family: var(--font-display, 'Orbitron', sans-serif);
    font-size: 0.75rem;
    color: var(--neon-cyan, #00f5ff);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0.6rem 0 0.4rem;
}
.profile-edit-section h4:first-child { margin-top: 0; }

.profile-field {
    margin-bottom: 0.5rem;
}
.profile-field label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.profile-field input,
.profile-field textarea,
.profile-field select {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
    color: #ddd;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.profile-field input:focus,
.profile-field textarea:focus {
    border-color: rgba(0,245,255,0.4);
}
.profile-field textarea {
    resize: vertical;
    min-height: 50px;
}
.profile-field-row {
    display: flex;
    gap: 0.5rem;
}
.profile-field-row .profile-field { flex: 1; }

.profile-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.2rem;
}
.profile-color-swatch {
    width: 24px; height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
}
.profile-color-swatch:hover { transform: scale(1.15); }
.profile-color-swatch.active { border-color: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.3); }

/* ============ BUTTONS ============ */
.profile-save-btn {
    display: block;
    width: 100%;
    padding: 0.55rem;
    background: linear-gradient(135deg, rgba(0,245,255,0.2), rgba(184,41,227,0.2));
    border: 1px solid rgba(0,245,255,0.3);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-display, 'Orbitron', sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.6rem;
}
.profile-save-btn:hover {
    background: linear-gradient(135deg, rgba(0,245,255,0.3), rgba(184,41,227,0.3));
    box-shadow: 0 0 15px rgba(0,245,255,0.2);
}
.profile-action-btn {
    padding: 0.35rem 0.7rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #ccc;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
}
.profile-action-btn:hover {
    background: rgba(0,245,255,0.1);
    border-color: rgba(0,245,255,0.25);
    color: #fff;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 520px) {
    .profile-card { border-radius: 12px; }
    .profile-banner { height: 100px; }
    .profile-avatar-lg { width: 70px; height: 70px; font-size: 1.5rem; }
    .profile-avatar-section { margin-top: -35px; }
    .profile-display-name { font-size: 1rem; }
}

/* ============================================
   PROFILE BADGES SECTION
   ============================================ */
.profile-badges-section {
    padding: 0.6rem 1.2rem;
}
.profile-badges-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.profile-badges-title {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted, #7777a0);
}
.profile-badges-viewall {
    background: none;
    border: 1px solid rgba(0, 245, 255, 0.2);
    color: var(--neon-cyan, #00f5ff);
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.profile-badges-viewall:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.4);
}
.profile-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.profile-badge-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-badge-item:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateY(-2px);
}
.profile-badge-icon {
    font-size: 1.2rem;
}

/* ============================================
   BADGE HOVER TOOLTIP
   ============================================ */
.badge-tooltip {
    position: fixed;
    z-index: 10000;
    background: #1a1a2e;
    border: 1px solid rgba(0, 245, 255, 0.25);
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%) scale(0.9);
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}
.badge-tooltip.visible {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
}
.badge-tip-icon {
    font-size: 1.3rem;
}
.badge-tip-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.badge-tip-name {
    font-family: var(--font-display, 'Orbitron', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    color: #e0e0e0;
}
.badge-tip-rarity {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-tip-desc {
    font-size: 0.7rem;
    color: var(--text-muted, #7777a0);
}

/* ============================================
   FULL ACHIEVEMENTS OVERLAY
   ============================================ */
.achievements-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.achievements-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.achievements-panel {
    background: #0d0d1a;
    border: 1px solid rgba(0, 245, 255, 0.15);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    animation: achievePanelIn 0.25s ease-out;
}
@keyframes achievePanelIn {
    from { transform: scale(0.95) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.achievements-panel::-webkit-scrollbar { width: 6px; }
.achievements-panel::-webkit-scrollbar-track { background: transparent; }
.achievements-panel::-webkit-scrollbar-thumb { background: rgba(0, 245, 255, 0.15); border-radius: 3px; }

.achievements-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}
.achievements-title {
    font-family: var(--font-display, 'Orbitron', sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon-cyan, #00f5ff);
    flex: 1;
}
.achievements-count {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.8rem;
    color: var(--text-muted, #7777a0);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}
.achievements-close {
    font-size: 1.2rem;
    color: var(--text-muted, #7777a0);
    cursor: pointer;
    padding: 0.2rem;
    transition: color 0.2s;
}
.achievements-close:hover { color: #fff; }

.achievements-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    margin-bottom: 1.2rem;
    overflow: hidden;
}
.achievements-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan, #00f5ff), var(--neon-purple, #b829e3));
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

.achievements-category {
    margin-bottom: 1rem;
}
.achievements-cat-header {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted, #7777a0);
    margin-bottom: 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}
.achievement-card.earned {
    background: rgba(0, 245, 255, 0.04);
    border-color: rgba(0, 245, 255, 0.12);
}
.achievement-card.locked {
    opacity: 0.55;
}
.achievement-card.locked .achievement-icon-wrap {
    filter: grayscale(0.8);
}
.achievement-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.achievement-icon-wrap {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    flex-shrink: 0;
}
.achievement-icon {
    font-size: 1.5rem;
}
.achievement-info {
    flex: 1;
    min-width: 0;
}
.achievement-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.1rem;
}
.achievement-name {
    font-family: var(--font-display, 'Orbitron', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    color: #e0e0e0;
}
.achievement-rarity {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}
.achievement-card.earned .achievement-name {
    color: #fff;
}
.achievement-desc {
    font-size: 0.72rem;
    color: var(--text-muted, #7777a0);
    margin-bottom: 0.3rem;
}
.achievement-earned-date {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.6rem;
    color: var(--neon-green, #39ff14);
    opacity: 0.8;
}
.achievement-howto {
    font-size: 0.65rem;
    color: #555;
    font-style: italic;
}

/* Progress bar inside achievement card */
.achievement-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.achievement-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}
.achievement-progress-fill {
    height: 100%;
    background: var(--neon-cyan, #00f5ff);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.achievement-progress-text {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.6rem;
    color: var(--text-muted, #7777a0);
    white-space: nowrap;
}
.achievements-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted, #7777a0);
}

/* Mobile */
@media (max-width: 500px) {
    .achievements-panel {
        width: 95%;
        padding: 1rem;
        max-height: 85vh;
    }
    .achievement-icon-wrap {
        width: 36px;
        height: 36px;
    }
    .achievement-icon { font-size: 1.2rem; }
}

/* ===== Profile XP Bar ===== */
.profile-xp-section {
    margin: 12px 0 8px 0;
    padding: 10px 14px;
    background: rgba(0, 245, 255, 0.04);
    border: 1px solid rgba(0, 245, 255, 0.12);
    border-radius: 10px;
}

.profile-xp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.profile-xp-level {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}

.profile-xp-tier {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-xp-bar {
    width: 100%;
    height: 14px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-xp-fill {
    height: 100%;
    border-radius: 7px;
    background: linear-gradient(90deg, #00f5ff, #7b2ffc);
    position: relative;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    min-width: 2px;
}

.profile-xp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
    border-radius: 7px 7px 0 0;
}

.profile-xp-count {
    text-align: center;
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 5px;
    letter-spacing: 0.3px;
}

.profile-xp-count span {
    color: #00f5ff;
    font-weight: 600;
}

/* Tier-specific XP bar colors */
.profile-xp-section[data-tier="Godlike"] .profile-xp-fill {
    background: linear-gradient(90deg, #FF4500, #FF8C00);
}
.profile-xp-section[data-tier="Godlike"] .profile-xp-tier {
    color: #FF4500;
    border-color: rgba(255, 69, 0, 0.3);
}

.profile-xp-section[data-tier="Immortal"] .profile-xp-fill {
    background: linear-gradient(90deg, #00FFFF, #00CED1);
}
.profile-xp-section[data-tier="Immortal"] .profile-xp-tier {
    color: #00FFFF;
    border-color: rgba(0, 255, 255, 0.3);
}

.profile-xp-section[data-tier="Eternal"] .profile-xp-fill {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}
.profile-xp-section[data-tier="Eternal"] .profile-xp-tier {
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.4);
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

@media (max-width: 500px) {
    .profile-xp-section {
        padding: 8px 10px;
    }
    .profile-xp-bar {
        height: 10px;
    }
}

/* ============================================
   VIBE PICKER (in profile edit section)
   ============================================ */
.profile-vibe-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}
.profile-vibe-picker .vibe-chip {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary, #999);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.profile-vibe-picker .vibe-chip:hover {
    background: rgba(0, 245, 255, 0.08);
    border-color: rgba(0, 245, 255, 0.2);
    color: var(--text-primary, #fff);
}
.profile-vibe-picker .vibe-chip.active {
    background: rgba(0, 245, 255, 0.12);
    border-color: var(--neon-cyan, #00f5ff);
    color: var(--neon-cyan, #00f5ff);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.15);
}

/* ============ QUICK SECTIONS (Status, 2FA, Actions) ============ */
.profile-quick-section {
    padding: 0.7rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.profile-quick-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted, #8888b0);
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.profile-status-select {
    width: 100%;
    background: var(--bg-tertiary, #1a1a2e);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 0.5rem 0.6rem;
    color: var(--text-primary, #fff);
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s;
}
.profile-status-select:focus {
    outline: none;
    border-color: var(--neon-cyan, #00f5ff);
}

/* 2FA Row */
.profile-tfa-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
}
.profile-tfa-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.profile-tfa-info {
    flex: 1;
    min-width: 0;
}
.profile-tfa-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
}
.profile-tfa-desc {
    font-size: 0.7rem;
    color: var(--text-muted, #8888b0);
    margin-top: 0.1rem;
}
.profile-tfa-btn {
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    background: rgba(0,245,255,0.1);
    border: 1px solid rgba(0,245,255,0.3);
    color: var(--neon-cyan, #00f5ff);
}
.profile-tfa-btn:hover {
    background: rgba(0,245,255,0.2);
    box-shadow: 0 0 8px rgba(0,245,255,0.2);
}
.profile-tfa-btn.enabled {
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.3);
    color: #00ff88;
}

/* Actions (View Full Profile + Sign Out) */
.profile-actions-section {
    padding: 0.8rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    gap: 0.6rem;
}
.profile-view-full-btn {
    flex: 1;
    background: rgba(0,245,255,0.08);
    border: 1px solid rgba(0,245,255,0.2);
    color: var(--neon-cyan, #00f5ff);
    padding: 0.55rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}
.profile-view-full-btn:hover {
    background: rgba(0,245,255,0.15);
    box-shadow: 0 0 10px rgba(0,245,255,0.15);
}
.profile-signout-btn {
    flex: 1;
    background: rgba(255,23,68,0.1);
    border: 1px solid rgba(255,23,68,0.2);
    color: #ff1744;
    padding: 0.55rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}
.profile-signout-btn:hover {
    background: rgba(255,23,68,0.2);
    box-shadow: 0 0 10px rgba(255,23,68,0.2);
}
