/* ============================================================
   PROFILE V2 - RPG REDESIGN STYLES
   ============================================================ */

:root {
    --profile-bg: #0a0a0f;
    --profile-card: rgba(15, 15, 25, 0.8);
    --profile-border: rgba(255, 255, 255, 0.1);
    --profile-accent: #00d4ff;
    --profile-accent-2: #a855f7;
    --profile-gold: #fbbf24;
    --profile-text: #e5e5e5;
    --profile-text-muted: #9ca3af;
}

.profile-v2-wrapper {
    min-height: 100vh;
    background: var(--profile-bg);
    color: var(--profile-text);
    font-family: 'Rajdhani', sans-serif;
    position: relative;
}

/* Ambient Background Effects */
.profile-v2-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 25%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.profile-v2-wrapper::after {
    content: '';
    position: fixed;
    bottom: 0;
    right: 25%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   HEADER BAR
   ============================================================ */

.profile-header-bar {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--profile-border);
    padding: 1rem 1.5rem;
}

.profile-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-class-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--profile-gold), #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.profile-identity-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-identity-text .subtitle {
    font-size: 0.9rem;
    color: var(--profile-text-muted);
    margin: 0;
}

/* Prestige Badge */
.prestige-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    border: 1px solid rgba(251, 191, 36, 0.5);
    font-size: 0.75rem;
}

.prestige-badge .stars {
    color: var(--profile-gold);
}

.prestige-badge .title {
    color: #fcd34d;
    font-weight: 600;
}

/* Header Actions */
.profile-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.codecoin-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--profile-border);
    border-radius: 12px;
}

.codecoin-display img {
    width: 24px;
    height: 24px;
}

.codecoin-display span {
    font-weight: 700;
    color: var(--profile-gold);
}

/* Prestige Display in Header - Full Info */
.prestige-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.2), rgba(255, 50, 50, 0.15));
    border: 2px solid rgba(255, 100, 0, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 320px;
}

.prestige-display:hover {
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.3), rgba(255, 50, 50, 0.25));
    border-color: #ff6400;
    box-shadow: 0 0 25px rgba(255, 100, 0, 0.5);
    transform: scale(1.02);
}

.prestige-badge-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 100, 0, 0.7));
    border-radius: 8px;
}

.prestige-info-full {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.prestige-rank {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prestige-title-name {
    font-size: 0.85rem;
    color: #ffcc88;
    font-weight: 500;
}

.prestige-buffs-mini {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.prestige-buff-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    background: rgba(255, 100, 0, 0.3);
    border-radius: 4px;
    color: #ffaa66;
    font-family: 'Rajdhani', sans-serif;
}

/* Legacy classes kept for compatibility */
.prestige-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 100, 0, 0.6));
}

.prestige-text {
    display: flex;
    flex-direction: column;
}

.prestige-level {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ff6400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prestige-title {
    font-size: 0.8rem;
    color: #ffaa66;
    font-style: italic;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--profile-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */

.profile-main {
    position: relative;
    z-index: 5;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Hero Grid */
.profile-hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .profile-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Avatar Viewer Container */
.avatar-viewer-container {
    position: relative;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.8), rgba(20, 20, 35, 0.6));
    border: 1px solid var(--profile-border);
    border-bottom: none;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.avatar-viewer-container #avatarViewerSection {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}

/* Hide equipment overlay icons */
.equipment-overlay,
.equipment-slot,
#avatarViewerSection .equipment-overlay {
    display: none !important;
}

/* Avatar Edit Buttons */
.avatar-edit-buttons {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.avatar-edit-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar-edit-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   STATS PANEL (Right Sidebar)
   ============================================================ */

.stats-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    padding: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.8), rgba(20, 20, 35, 0.6));
    border: 1px solid var(--profile-border);
    backdrop-filter: blur(10px);
}

/* Level Card */
.level-card .level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.level-card .level-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--profile-text-muted);
}

.level-card .level-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--profile-accent), var(--profile-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* XP Bar */
.xp-bar-container {
    position: relative;
    height: 18px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--profile-accent), var(--profile-accent-2));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.xp-bar-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.xp-to-next {
    text-align: center;
    font-size: 0.8rem;
    color: var(--profile-text-muted);
}

/* Prestige Card */
.prestige-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border-color: rgba(251, 191, 36, 0.3);
}

.prestige-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prestige-card-inner .prestige-icon {
    font-size: 2rem;
}

.prestige-card-inner .prestige-info h3 {
    margin: 0;
    color: var(--profile-gold);
    font-weight: 700;
}

.prestige-card-inner .prestige-info p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(252, 211, 77, 0.8);
}

/* Combat Stats */
.combat-stats h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--profile-text-muted);
    margin: 0 0 1rem 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .stat-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-row .stat-name.attack { color: #f87171; }
.stat-row .stat-name.defense { color: #60a5fa; }
.stat-row .stat-name.hp { color: #f472b6; }
.stat-row .stat-name.crit { color: #fbbf24; }

.stat-row .stat-value {
    font-weight: 700;
}

.stat-row .stat-bonus {
    color: #4ade80;
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

.view-stats-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.6rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--profile-border);
    color: var(--profile-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.view-stats-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* Active Buffs */
.buffs-card h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--profile-text-muted);
    margin: 0 0 0.75rem 0;
}

.buff-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.buff-row .buff-icon {
    font-size: 1rem;
}

.buff-row .buff-name {
    flex: 1;
    color: var(--profile-text);
}

.buff-row .buff-effect {
    font-size: 0.8rem;
    color: var(--profile-accent);
}

.no-buffs {
    color: var(--profile-text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* ============================================================
   TAB NAVIGATION
   ============================================================ */

.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--profile-border);
    color: var(--profile-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.profile-tab:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.profile-tab.active {
    background: linear-gradient(135deg, var(--profile-accent), var(--profile-accent-2));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.profile-tab .tab-icon {
    font-size: 1rem;
}

/* ============================================================
   TAB CONTENT AREA
   ============================================================ */

.tab-content-area {
    min-height: 400px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.8), rgba(20, 20, 35, 0.6));
    border: 1px solid var(--profile-border);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.tab-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Quick Stats Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-stat-card {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--profile-border);
}

.quick-stat-card .label {
    font-size: 0.8rem;
    color: var(--profile-text-muted);
    margin-bottom: 0.25rem;
}

.quick-stat-card .value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.quick-stat-card .value.cyan { color: var(--profile-accent); }
.quick-stat-card .value.purple { color: var(--profile-accent-2); }
.quick-stat-card .value.gold { color: var(--profile-gold); }
.quick-stat-card .value.orange { color: #f97316; }

/* ============================================================
   BATTLE CARDS - RESTORED CLASSIC STYLING
   ============================================================ */

.battle-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.battle-card {
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   GAUNTLET CARD - CLASSIC DUNGEON THEME
   ============================================================ */

.battle-card.gauntlet {
    background: url('/Themes/assets/gauntlet/Gauntlet_card.png') center center no-repeat !important;
    background-size: cover !important;
    border: 4px solid #ffcc00 !important;
    border-radius: 16px !important;
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.6) !important;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 2rem 1.5rem !important;
}

.battle-card.gauntlet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.battle-card.gauntlet .battle-icon,
.battle-card.gauntlet h3,
.battle-card.gauntlet p,
.battle-card.gauntlet .battle-desc,
.battle-card.gauntlet .battle-btn {
    position: relative;
    z-index: 1;
}

.battle-card.gauntlet .battle-icon {
    font-size: 3rem !important;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(255, 204, 0, 0.8));
}

.battle-card.gauntlet h3 {
    font-family: 'Cinzel', serif !important;
    font-size: 2.5rem !important;
    color: #ffee70 !important;
    margin: 0 0 1rem 0 !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 204, 0, 0.5) !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.battle-card.gauntlet p,
.battle-card.gauntlet .battle-desc {
    font-family: 'Cinzel', serif !important;
    font-size: 1.1rem !important;
    color: #d0ffd0 !important;
    line-height: 1.6 !important;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9) !important;
    margin-bottom: 1.5rem;
}

.battle-card.gauntlet .battle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem !important;
    border: 3px solid #00ffff !important;
    border-radius: 10px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: #00ffff !important;
    font-family: 'Cinzel', serif !important;
    font-size: 1.3rem !important;
    font-weight: bold !important;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4) !important;
    transition: all 0.3s ease;
}

.battle-card.gauntlet .battle-btn::before {
    content: "⚔️ ";
    font-size: 1.5rem;
}

.battle-card.gauntlet .battle-btn:hover {
    background: #00ffff !important;
    color: #000 !important;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8) !important;
    text-shadow: none !important;
}

/* ============================================================
   CRUCIBLE CARD - CLASSIC FIRE THEME
   ============================================================ */

.battle-card.crucible {
    background: linear-gradient(135deg, #140800, #2a0b00 60%, #140800) !important;
    border: 3px solid rgba(255, 106, 0, 0.6) !important;
    border-radius: 18px !important;
    box-shadow: 0 0 25px rgba(255, 106, 0, 0.4), inset 0 0 30px rgba(255, 36, 0, 0.2) !important;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 2.5rem 2rem !important;
}

.battle-card.crucible::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff4400, #ff6600, #ff4400, transparent);
    animation: fireGlow 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes fireGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.battle-card.crucible::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 140, 0, 0.15), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.battle-card.crucible .battle-icon,
.battle-card.crucible h3,
.battle-card.crucible p,
.battle-card.crucible .battle-desc,
.battle-card.crucible .battle-btn {
    position: relative;
    z-index: 1;
}

.battle-card.crucible .battle-icon {
    font-size: 3rem !important;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(255, 106, 0, 0.8));
}

.battle-card.crucible h3 {
    font-family: 'Cinzel', serif !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    margin-bottom: 1rem !important;
    background: linear-gradient(180deg, #fff, #ffcc66, #ff6a00, #ff2400) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    filter: drop-shadow(0 0 25px rgba(255, 106, 0, 0.8));
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.battle-card.crucible p,
.battle-card.crucible .battle-desc {
    font-family: 'Cinzel', serif !important;
    font-size: 1.1rem !important;
    color: #f0c9a0 !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem;
}

.battle-card.crucible .battle-btn {
    display: inline-block !important;
    padding: 0.9rem 2.5rem !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #000 !important;
    background: linear-gradient(135deg, #ffcc66, #ff6a00) !important;
    border: none !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    box-shadow: 0 6px 0 #b34700, 0 0 25px rgba(255, 106, 0, 0.6) !important;
    transition: all 0.25s ease !important;
}

.battle-card.crucible .battle-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 0 #b34700, 0 0 40px rgba(255, 36, 0, 0.9) !important;
}

.battle-card.crucible .battle-btn:active {
    transform: translateY(2px) !important;
    box-shadow: 0 4px 0 #b34700, 0 0 20px rgba(255, 36, 0, 0.7) !important;
}

/* ============================================================
   DAILY QUIZ CARD - EPIC FANTASY THEME
   ============================================================ */

.battle-card.daily-quiz {
    background: 
        linear-gradient(135deg, rgba(5, 20, 35, 0.98) 0%, rgba(10, 30, 50, 0.95) 50%, rgba(5, 15, 25, 0.98) 100%),
        radial-gradient(ellipse at top center, rgba(0, 212, 255, 0.18) 0%, transparent 60%);
    border: 3px solid rgba(0, 212, 255, 0.5) !important;
    border-radius: 18px !important;
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.3),
        inset 0 0 50px rgba(0, 100, 200, 0.15) !important;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 2.5rem 2rem !important;
}

.battle-card.daily-quiz::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00d4ff, #33e0ff, #00d4ff, transparent);
    animation: dailyGlow 3s ease-in-out infinite;
}

@keyframes dailyGlow {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 10px rgba(0, 212, 255, 0.4); }
    50% { opacity: 1; box-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
}

.battle-card.daily-quiz::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at top center, rgba(0, 212, 255, 0.15), transparent 50%),
        radial-gradient(circle at bottom center, rgba(0, 150, 255, 0.1), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.battle-card.daily-quiz .battle-icon,
.battle-card.daily-quiz h3,
.battle-card.daily-quiz p,
.battle-card.daily-quiz .battle-desc,
.battle-card.daily-quiz .battle-btn {
    position: relative;
    z-index: 1;
}

.battle-card.daily-quiz .battle-icon {
    font-size: 3.5rem !important;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    animation: iconPulse 2.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 30px rgba(0, 212, 255, 1)); }
}

.battle-card.daily-quiz h3 {
    font-family: 'Cinzel', serif !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    color: #7dd3fc !important;
    text-shadow: 
        0 0 15px rgba(0, 212, 255, 0.8),
        0 0 30px rgba(0, 212, 255, 0.5),
        0 3px 6px rgba(0, 0, 0, 0.9) !important;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.battle-card.daily-quiz p,
.battle-card.daily-quiz .battle-desc {
    font-family: 'Cinzel', serif !important;
    font-size: 1.05rem !important;
    color: #c7e9fb !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.battle-card.daily-quiz .battle-btn {
    display: inline-block !important;
    padding: 0.9rem 2.5rem !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #000 !important;
    background: linear-gradient(135deg, #00d4ff, #0099cc) !important;
    border: none !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    box-shadow: 0 6px 0 #006080, 0 0 25px rgba(0, 212, 255, 0.5) !important;
    transition: all 0.25s ease !important;
    position: relative;
    overflow: hidden;
}

.battle-card.daily-quiz .battle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.battle-card.daily-quiz .battle-btn:hover::before {
    left: 100%;
}

.battle-card.daily-quiz .battle-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 0 #006080, 0 0 40px rgba(0, 212, 255, 0.8) !important;
    background: linear-gradient(135deg, #33e0ff, #00b8e6) !important;
}

.battle-card.daily-quiz .battle-btn:active {
    transform: translateY(2px) !important;
    box-shadow: 0 4px 0 #006080, 0 0 20px rgba(0, 212, 255, 0.6) !important;
}

.battle-card.daily-quiz:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 
        0 15px 50px rgba(0, 212, 255, 0.4),
        0 0 60px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Quiz Results */
.quiz-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid;
}

.quiz-result-row.green {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.quiz-result-row.amber {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.quiz-result-row.red {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.quiz-result-row .quiz-info h4 {
    margin: 0;
    font-weight: 600;
}

.quiz-result-row .quiz-info .date {
    font-size: 0.8rem;
    color: var(--profile-text-muted);
}

.quiz-result-row .quiz-score {
    text-align: right;
}

.quiz-result-row .quiz-score .percent {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.quiz-result-row.green .quiz-score .percent { color: #22c55e; }
.quiz-result-row.amber .quiz-score .percent { color: #fbbf24; }
.quiz-result-row.red .quiz-score .percent { color: #ef4444; }

.quiz-result-row .quiz-score .raw {
    font-size: 0.8rem;
    color: var(--profile-text-muted);
}

/* Center Content (for Store/BattlePass tabs) */
.tab-center-content {
    text-align: center;
    padding: 3rem 1rem;
}

.tab-center-content .big-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.tab-center-content h2 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.tab-center-content p {
    color: var(--profile-text-muted);
    margin-bottom: 1.5rem;
}

.tab-center-content .action-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--profile-accent), var(--profile-accent-2));
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.tab-center-content .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

/* ============================================================
   BATTLEPASS SEASON DISPLAY
   ============================================================ */

.battlepass-season-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95), rgba(30, 40, 60, 0.9));
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.battlepass-banner {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.battlepass-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.8) 70%, rgba(15, 23, 42, 1) 100%);
}

.battlepass-content-wrapper {
    padding: 2rem;
    position: relative;
}

.battlepass-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.season-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
}

.battlepass-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.season-description {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.battlepass-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.bp-stat-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.bp-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.bp-stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.bp-stat-info {
    display: flex;
    flex-direction: column;
}

.bp-stat-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bp-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #a78bfa;
}

.season-progress-container {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.season-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-percent {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #a78bfa;
}

.season-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.season-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa, #c4b5fd);
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.season-dates {
    display: flex;
    justify-content: space-between;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #94a3b8;
}

.battlepass-cta-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: 2px solid #a78bfa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.battlepass-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #9d6dff, #8b5cf6);
    border-color: #c4b5fd;
    color: #fff;
}

.battlepass-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .battlepass-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .battlepass-header h2 {
        font-size: 2rem;
    }
    
    .season-icon-large {
        font-size: 3rem;
    }
}

/* ============================================================
   STORE SHOWCASE
   ============================================================ */

.store-showcase-container {
    max-width: 1000px;
    margin: 0 auto;
}

.store-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.store-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6));
    animation: storeIconFloat 3s ease-in-out infinite;
}

@keyframes storeIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.store-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.store-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #cbd5e1;
}

.store-balance-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(217, 119, 6, 0.1));
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.2);
}

.balance-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent 70%);
    pointer-events: none;
}

.balance-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8));
    z-index: 1;
}

.balance-info {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.balance-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}

.balance-currency {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: #cbd5e1;
}

.store-section {
    margin-bottom: 3rem;
}

.store-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    text-align: left;
    letter-spacing: 1px;
}

.store-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.store-item-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.store-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rarity-color), transparent);
    opacity: 0.6;
}

.store-item-card:hover {
    transform: translateY(-8px);
    border-color: var(--rarity-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 30px var(--rarity-color);
}

.item-rarity-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.item-icon {
    font-size: 4rem;
    margin: 1rem 0;
    filter: drop-shadow(0 0 15px var(--rarity-color));
    transition: transform 0.3s ease;
}

.store-item-card:hover .item-icon {
    transform: scale(1.1) rotate(5deg);
}

.item-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.3rem;
}

.item-type {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: var(--rarity-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.item-description {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 1rem;
    min-height: 3rem;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    margin-top: auto;
}

.item-price .price-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.item-price span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fbbf24;
}

.store-cta-section {
    text-align: center;
}

.store-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: 2px solid #fcd34d;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    position: relative;
    overflow: hidden;
}

.store-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.store-cta-btn:hover::before {
    left: 100%;
}

.store-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.6);
    border-color: #fde68a;
    color: #fff;
}

.store-cta-btn .btn-icon {
    font-size: 1.5rem;
}

.store-cta-btn .btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.store-cta-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.store-hint {
    margin-top: 1.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: #94a3b8;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .store-items-grid {
        grid-template-columns: 1fr;
    }
    
    .store-header h2 {
        font-size: 2rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .store-balance-card {
        flex-direction: column;
        text-align: center;
    }
    
    .store-section-title {
        font-size: 1.5rem;
    }
}

/* Power-ups Grid */
.powerups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.powerup-card {
    padding: 1.25rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--profile-border);
    text-align: center;
}

.powerup-card h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.powerup-card .powerup-meta {
    font-size: 0.85rem;
    color: var(--profile-text-muted);
    margin-bottom: 1rem;
}

.powerup-card .cooldown-warning {
    color: #f87171;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.powerup-card .activate-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--profile-accent), var(--profile-accent-2));
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.powerup-card .activate-btn:hover {
    transform: scale(1.05);
}

/* Selector Dropdowns Container */
.selector-dropdowns {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(20, 20, 35, 0.98);
    border: 1px solid var(--profile-border);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.selector-dropdowns.show {
    display: block;
}

/* Password Prompt */
.password-prompt-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 35, 0.98);
    border: 2px solid var(--profile-gold);
    border-radius: 16px;
    padding: 2rem;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .profile-identity {
        width: 100%;
        justify-content: center;
    }
    
    .prestige-display {
        min-width: auto;
        padding: 0.5rem 0.75rem;
    }
    
    .prestige-badge-img {
        width: 45px;
        height: 45px;
    }
    
    .prestige-rank {
        font-size: 0.85rem;
    }
    
    .prestige-buffs-mini {
        display: none;
    }
    
    .prestige-icon {
        width: 40px;
        height: 40px;
    }
    
    .profile-header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .profile-hero-grid {
        grid-template-columns: 1fr;
    }
    
    .avatar-viewer-container #avatarViewerSection {
        height: 350px;
    }
    
    .stats-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .level-card, .buffs-card {
        grid-column: span 2;
    }
    
    .profile-tabs {
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .battle-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Message Alert */
.profile-alert {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
    text-align: center;
}

/* Badge Popup Styles */
.badge-popup-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.badge-popup {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #111, #1b1b1b);
    border: 2px solid gold;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 0 25px rgba(255,215,0,.6);
    opacity: 0;
    transform: translateX(120%);
    transition: all .5s ease;
}

.badge-popup.show {
    opacity: 1;
    transform: translateX(0);
}

.badge-popup img {
    width: 56px;
    height: 56px;
}

.badge-info h4 {
    margin: 0;
    color: gold;
    font-size: 1rem;
}

.badge-info p {
    margin: 0;
    font-size: .85rem;
    color: #ccc;
}

/* Theme Unlock Popup */
.theme-unlock-popup {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(99, 102, 241, 0.9));
    border: 2px solid var(--profile-gold);
    border-radius: 16px;
    padding: 1.5rem 2.5rem;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: popIn 0.4s ease;
}

@keyframes popIn {
    from { opacity: 0; transform: translateX(-50%) scale(0.8); }
    to { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* Quick Play Cards (Overview Tab) */
.quick-play-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .quick-play-grid {
        grid-template-columns: 1fr;
    }
}

.quick-play-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.2s;
    min-height: 100px;
}

.quick-play-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: white;
}

.quick-play-card .qp-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quick-play-card .qp-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.quick-play-card.daily {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.quick-play-card.daily:hover {
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.quick-play-card.gauntlet {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.quick-play-card.gauntlet:hover {
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.quick-play-card.crucible {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.quick-play-card.crucible:hover {
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

/* Companion Widget Styling Fix */
#companionLevelWidget:empty {
    display: none;
}

#companionLevelWidget .stat-card {
    padding: 0;
}

/* ============================================================
   COMPACT BUFFS IN SIDEBAR
   ============================================================ */
.buffs-card {
    padding: 0.75rem !important;
}

.buffs-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.buff-row-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
}

.buff-icon-small {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.buff-name-small {
    flex: 1;
    color: var(--profile-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buff-value-small {
    color: var(--profile-gold);
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
}

/* ============================================================
   COMPANION FULL WIDTH ROW
   ============================================================ */
.companion-fullwidth-row {
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
}

.companion-fullwidth-card {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 40, 0.8));
    border: 1px solid var(--profile-border);
    border-radius: 0 0 20px 20px;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    grid-column: 1;
}

@media (max-width: 1024px) {
    .companion-fullwidth-row {
        grid-template-columns: 1fr;
    }
    .companion-fullwidth-card {
        grid-column: 1;
    }
}

/* Legacy buffs-companion-fullrow kept for compatibility */
.buffs-companion-fullrow {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .buffs-companion-fullrow {
        grid-template-columns: 1fr;
    }
}

.fullrow-card {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 40, 0.8));
    border: 1px solid var(--profile-border);
    border-radius: 12px;
    padding: 1.25rem;
}

.fullrow-card h3 {
    margin: 0 0 1rem 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--profile-gold);
}

/* Buffs Full Card */
.buffs-fullcard {
    border-left: 3px solid var(--profile-accent);
}

.buffs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.buff-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.buff-item .buff-icon {
    font-size: 1.1rem;
}

.buff-item .buff-name {
    flex: 1;
    color: var(--profile-text);
    font-size: 0.9rem;
}

.buff-item .buff-value {
    color: var(--profile-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Companion Full Card */
.companion-fullcard {
    border-left: 3px solid #ffa500;
    padding: 0 !important;
    overflow: hidden;
}

.companion-fullcard:empty {
    display: none;
}

/* Crucible Card in Stats Panel */
.crucible-card {
    padding: 0 !important;
    overflow: hidden;
}

.crucible-modal-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.2), rgba(255, 50, 0, 0.1));
    border: none;
    color: #ff6600;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.crucible-modal-btn:hover {
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.4), rgba(255, 50, 0, 0.2));
    box-shadow: 0 0 20px rgba(255, 100, 0, 0.4);
}

.crucible-subtitle {
    font-size: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    color: #ffaa66;
    font-weight: 400;
}

/* Crucible Modal Overlay */
.crucible-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow-y: auto;
}

.crucible-modal-overlay.active {
    display: flex;
}

.crucible-modal-content {
    background: linear-gradient(180deg, #1a0a0a 0%, #2d1515 50%, #1a0808 100%);
    border: 2px solid #ff4400;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 68, 0, 0.4);
}

.crucible-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, rgba(255, 68, 0, 0.3), transparent, rgba(255, 68, 0, 0.3));
    border-bottom: 1px solid rgba(255, 68, 0, 0.5);
}

.crucible-modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    color: #ff6600;
    margin: 0;
    font-size: 1.3rem;
}

.crucible-modal-close {
    background: none;
    border: none;
    color: #ff6600;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.2s;
}

.crucible-modal-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.crucible-modal-body {
    padding: 1.5rem;
}

/* Daily Missions Full Width */
.daily-missions-fullwidth {
    margin-top: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
}

/* Stats Tab Grid Layout */
.stats-tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .stats-tab-grid {
        grid-template-columns: 1fr;
    }
}

.stats-column h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--profile-accent);
}

.stats-widget-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--profile-border);
}

/* ============================================================
   LEVEL + COMPANION ROW (50/50 Split)
   ============================================================ */

.level-companion-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .level-companion-row {
        grid-template-columns: 1fr;
    }
}

.level-companion-card {
    background: linear-gradient(135deg, rgba(20, 18, 35, 0.95), rgba(12, 10, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 180px;
}

.level-companion-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* LEFT CARD: PLAYER LEVEL */
.level-section {
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #00d4ff, #a855f7) 1;
    position: relative;
}

.level-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.level-card-inner {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.level-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.level-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.15));
    border: 2px solid rgba(0, 212, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.level-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.8));
}

.level-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.level-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.level-section .level-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #00d4ff, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Prestige Mini Badge in Level Card */
.level-prestige {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0.8rem;
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.15), rgba(255, 50, 0, 0.1));
    border: 1px solid rgba(255, 100, 0, 0.35);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.level-prestige:hover {
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.28), rgba(255, 50, 0, 0.18));
    border-color: rgba(255, 100, 0, 0.6);
    box-shadow: 0 0 25px rgba(255, 100, 0, 0.35);
    transform: scale(1.08);
}

.prestige-mini-badge {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 100, 0, 0.7));
}

.prestige-mini-level {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ff6600;
}

/* XP Progress in Level Card */
.level-progress-section {
    margin-top: 0.5rem;
}

.level-section .xp-bar-container {
    position: relative;
    height: 26px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 13px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.level-section .xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #6366f1, #a855f7);
    border-radius: 13px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.level-section .xp-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: xpShineNew 2.5s ease-in-out infinite;
}

@keyframes xpShineNew {
    0% { left: -100%; }
    100% { left: 100%; }
}

.level-section .xp-bar-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.xp-stats-row {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.xp-total {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.xp-to-next {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: #00d4ff;
    font-weight: 600;
}

/* RIGHT CARD: COMPANION */
.companion-section {
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #ff8800, #ffaa00, #ffcc00) 1;
    position: relative;
}

.companion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(255, 150, 0, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.no-companion-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 150px;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
}

.companion-section .companion-level-widget {
    background: transparent !important;
    padding: 1.5rem !important;
    border: none !important;
}

.companion-section .companion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.companion-section .companion-header img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    border: 2px solid rgba(255, 150, 0, 0.5);
    box-shadow: 0 0 25px rgba(255, 150, 0, 0.35);
}

.companion-section .companion-name,
.companion-section .companion-header h3,
.companion-section .companion-header h4 {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1.2rem !important;
    color: #ffaa44 !important;
    margin: 0 !important;
}

.companion-section .companion-progress-bar {
    height: 22px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 11px !important;
    overflow: hidden;
}

.companion-section .companion-progress-bar > div {
    background: linear-gradient(90deg, #ff8800, #ffaa00, #ffcc00) !important;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5) !important;
}

.companion-section .companion-buffs-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 150, 0, 0.2);
}

.companion-section .companion-buff-tag {
    padding: 0.4rem 0.85rem;
    background: linear-gradient(135deg, rgba(255, 150, 0, 0.18), rgba(255, 100, 0, 0.12));
    border: 1px solid rgba(255, 150, 0, 0.35);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #ffcc88;
}

/* ============================================================
   AVATAR BUFFS CARD (Stats Panel)
   ============================================================ */

.avatar-buffs-card {
    background: linear-gradient(135deg, rgba(25, 20, 45, 0.95), rgba(15, 12, 30, 0.98)) !important;
    border: 1px solid rgba(168, 85, 247, 0.25) !important;
    position: relative;
    overflow: hidden;
}

.avatar-buffs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #a855f7, #8b5cf6, #a855f7, transparent);
}

.avatar-buffs-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.avatar-buffs-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(139, 92, 246, 0.15));
    border: 2px solid rgba(168, 85, 247, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.avatar-buffs-title h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #c4b5fd;
    margin: 0;
}

.avatar-buffs-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: rgba(196, 181, 253, 0.6);
}

.avatar-buffs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avatar-buff-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: rgba(168, 85, 247, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.avatar-buff-item .buff-icon {
    font-size: 1rem;
}

.avatar-buff-item .buff-type {
    flex: 1;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.avatar-buff-item .buff-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: #c4b5fd;
    font-weight: 600;
}

.no-buffs-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    padding: 1rem;
}

/* Section Titles */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.section-title.gold {
    color: #fbbf24;
}

.section-title-spaced {
    margin-top: 1.5rem;
}

.badges-section h3,
.achievements-section h3,
.quick-arena-links h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.achievements-section {
    margin-top: 2rem;
}

.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 3rem 1rem;
}

.empty-state.full-width {
    grid-column: 1 / -1;
}

/* Battle card description text */
.battle-card .battle-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.25rem;
}

.profile-selectors-toolbar,
.selector-dropdown,
.selector-menu {
    position: relative !important;
    overflow: visible !important;
    z-index: 99999 !important;
}

.level-section,
.level-companion-card,
.level-card-inner {
    overflow: visible !important;
}

.avatar-edit-btn,
.avatar-edit-buttons {
    pointer-events: auto !important;
    z-index: 9999999 !important;
}
/* =========================================================
   EDIT AVATAR MODAL – FULL STYLE OVERRIDE
   ========================================================= */

/* ===== Modal Container ===== */
.modal-content.pixel-card {
    position: relative;
    background: linear-gradient(145deg, #1e1f26, #252733);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    color: #f5f6fa;
    overflow: hidden;
}

/* Subtle top glow */
.modal-content.pixel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, rgba(79,209,197,0.08), transparent 60%);
    pointer-events: none;
}

/* ===== Header ===== */
.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1.2rem 1.8rem;
    background: rgba(0,0,0,0.2);
}

.modal-header h5,
.modal-title {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    margin: 0;
    color: #fff;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.6;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* ===== Body ===== */
.modal-body {
    padding: 2rem;
}

/* ===== Footer ===== */
.modal-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.2rem 2rem;
    background: rgba(0,0,0,0.15);
}

/* =========================================================
   TABS – Platform / Boss Battle
   ========================================================= */

.nav-tabs {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    background: transparent;
    border: none;
    color: #9aa0b5;
    font-weight: 500;
    padding: 0.7rem 1.4rem;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #fff;
}

.nav-tabs .nav-link.active {
    color: #4fd1c5;
    border-bottom: 3px solid #4fd1c5;
    background: rgba(79,209,197,0.08);
}

/* =========================================================
   FORM LABELS
   ========================================================= */

.modal-body label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8f94a8;
    margin-bottom: 0.6rem;
    display: block;
}

/* =========================================================
   SELECT DROPDOWNS
   ========================================================= */

.modal-body select,
.modal-body .form-select {
    width: 100%;
    background: #2d3142;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.modal-body select:hover,
.modal-body .form-select:hover {
    border-color: rgba(79,209,197,0.4);
}

.modal-body select:focus,
.modal-body .form-select:focus {
    outline: none;
    border-color: #4fd1c5;
    box-shadow: 0 0 0 3px rgba(79,209,197,0.25);
}

/* Disabled / empty style */
.modal-body select option[value=""],
.modal-body select option:disabled {
    color: #888;
}

/* =========================================================
   SAVE BUTTON
   ========================================================= */

.modal-footer .btn-success,
.modal-footer .btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(34,197,94,0.35);
    transition: all 0.2s ease;
    color: #fff;
}

.modal-footer .btn-success:hover,
.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(34,197,94,0.5);
}

/* Icon spacing inside button */
.modal-footer .btn i,
.modal-footer .btn svg {
    margin-right: 6px;
}

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */

@media (max-width: 768px) {
    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem;
    }

    .nav-tabs .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
/* =========================================================
   SELECT2 DROPDOWN PANEL (THE WHITE AREA)
   ========================================================= */

/* The outer dropdown box */
.select2-container--default .select2-dropdown {
    background: #1f2330 !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 45px rgba(0,0,0,0.65) !important;
}

/* The scrolling results container */
.select2-container--default .select2-results {
    background: #1f2330 !important;
}

/* The actual list */
.select2-container--default .select2-results__options {
    background: #1f2330 !important;
    padding: 6px !important;
}

/* Each row */
.select2-container--default .select2-results__option {
    background: transparent !important;
    color: rgba(233,236,245,0.92) !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    margin: 4px 2px !important;
}

/* Hover */
.select2-container--default 
.select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(79,209,197,0.14) !important;
    color: #4fd1c5 !important;
}

/* Selected */
.select2-container--default .select2-results__option--selected {
    background: rgba(99,102,241,0.18) !important;
    color: #ffffff !important;
}

/* Disabled */
.select2-container--default .select2-results__option--disabled {
    color: rgba(255,255,255,0.35) !important;
}

/* Optgroup headings */
.select2-container--default .select2-results__group {
    background: transparent !important;
    color: #7dd3fc !important;
    font-weight: 700 !important;
    padding: 10px 12px 6px !important;
}

/* Scrollbar */
.select2-results__options::-webkit-scrollbar {
    width: 10px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: rgba(79,209,197,0.35);
    border-radius: 10px;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: rgba(79,209,197,0.55);
}
/* ============================= */
/* HEADER CONTAINER */
/* ============================= */

.profile-header-bar {
    width: 100%;
    padding: 22px 36px;
    background: linear-gradient(to right, #04060d, #0b0f1c 40%, #05070e);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.profile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1500px;
    margin: 0 auto;
}


/* ============================= */
/* LEFT – IDENTITY */
/* ============================= */

.profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.profile-class-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffb347, #ff9800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 20px rgba(255,160,0,0.5);
}

.profile-identity-text h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.subtitle {
    margin: 6px 0 0 0;
    font-size: 14px;
    opacity: 0.75;
}


/* ============================= */
/* CENTER – PRESTIGE */
/* ============================= */

.prestige-display {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 26px;
    border-radius: 18px;
    background: linear-gradient(145deg, #3a1400, #6b2300);
    border: 1px solid rgba(255,140,0,0.4);
    box-shadow: 
        0 0 20px rgba(255,120,0,0.3),
        inset 0 0 12px rgba(255,180,80,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.prestige-display:hover {
    transform: scale(1.03);
    box-shadow: 
        0 0 28px rgba(255,150,0,0.5),
        inset 0 0 16px rgba(255,200,100,0.25);
}

.prestige-badge-img {
    width: 60px;
    height: 60px;
}

.prestige-info-full {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prestige-rank {
    font-weight: 800;
    font-size: 18px;
    color: #ffb347;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,160,0,0.6);
}

.prestige-title-name {
    font-size: 14px;
    opacity: 0.9;
}

.prestige-buffs-mini {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.prestige-buff-tag {
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
}


/* ============================= */
/* RIGHT – BADGES + COINS */
/* ============================= */

.profile-header-actions {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-shrink: 0;
}

/* BADGE COUNTER */

.badge-counter-display {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: #ffd36b;
    text-shadow: 0 0 12px rgba(255,200,50,0.6);
}

.badge-counter-display img {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 10px rgba(255,200,50,0.5));
    transition: transform 0.2s ease;
}

.badge-counter-display:hover img {
    transform: scale(1.1);
}

/* CODECOINS */

.codecoin-display {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: #f6c343;
    text-shadow: 0 0 12px rgba(255,215,0,0.6);
}

.codecoin-display img {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.5));
    transition: transform 0.2s ease;
}

.codecoin-display:hover img {
    transform: scale(1.1);
}
