/* ==========================================
   VISUAL REFRESH v3.0 - Fantasy RPG Theme
   COMPLETE OVERRIDE - Polished & Immersive
   ==========================================
   
   DESIGN PHILOSOPHY:
   - Clean, modern fantasy (not cartoonish)
   - Strong contrast for readability
   - Consistent geometry (perfect circles, smooth curves)
   - Smooth, performant animations
   - Desktop-first, mobile-responsive
   
   COLOR PALETTE:
   - Primary: Deep Sapphire Blue #1A3A5C → #2D5A87
   - Secondary: Emerald Green #1B5E3C → #2D8A5B  
   - Accent: Royal Gold #C9A227 → #E5B82A
   - Danger: Ruby Red #B83A3A → #D14545
   - Magic: Amethyst Purple #6B4C9A → #8B6CB8
   - Background: Deep Navy #0A1628 → #142238
   - Cards: Dark Slate #1A2540 → #243352
   - Text: Pure White, Soft Cream, Muted Gray
   ========================================== */

/* ==========================================
   1. CSS VARIABLES - Master Theme
   ========================================== */
:root {
    /* Primary Fantasy Palette */
    --fantasy-primary: #2D5A87;
    --fantasy-primary-dark: #1A3A5C;
    --fantasy-primary-light: #4A7BAA;
    --fantasy-primary-glow: rgba(45, 90, 135, 0.5);
    
    --fantasy-secondary: #2D8A5B;
    --fantasy-secondary-dark: #1B5E3C;
    --fantasy-secondary-light: #3FA67A;
    --fantasy-secondary-glow: rgba(45, 138, 91, 0.5);
    
    --fantasy-accent: #E5B82A;
    --fantasy-accent-dark: #C9A227;
    --fantasy-accent-light: #F5D04A;
    --fantasy-accent-glow: rgba(229, 184, 42, 0.5);
    
    --fantasy-danger: #D14545;
    --fantasy-danger-dark: #B83A3A;
    --fantasy-danger-light: #E56B6B;
    
    --fantasy-magic: #8B6CB8;
    --fantasy-magic-dark: #6B4C9A;
    --fantasy-magic-light: #A88CD0;
    --fantasy-magic-glow: rgba(139, 108, 184, 0.5);
    
    /* Background Layers */
    --fantasy-bg-deep: #0A1628;
    --fantasy-bg-base: #0E1B30;
    --fantasy-bg-elevated: #142238;
    --fantasy-bg-surface: #1A2A45;
    --fantasy-bg-card: #1E3148;
    --fantasy-bg-hover: #243B55;
    
    /* Text Colors - High Contrast */
    --fantasy-text-primary: #FFFFFF;
    --fantasy-text-secondary: #C5D4E8;
    --fantasy-text-muted: #8A9AB5;
    --fantasy-text-disabled: #5A6A80;
    --fantasy-text-dark: #1A2030;
    
    /* Border Colors */
    --fantasy-border: rgba(255, 255, 255, 0.12);
    --fantasy-border-strong: rgba(255, 255, 255, 0.25);
    --fantasy-border-accent: rgba(229, 184, 42, 0.5);
    
    /* Shadows */
    --fantasy-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --fantasy-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --fantasy-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
    --fantasy-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.55);
    --fantasy-shadow-glow: 0 0 20px var(--fantasy-primary-glow);
    
    /* Border Radius - Consistent */
    --fantasy-radius-xs: 6px;
    --fantasy-radius-sm: 10px;
    --fantasy-radius-md: 14px;
    --fantasy-radius-lg: 20px;
    --fantasy-radius-xl: 28px;
    --fantasy-radius-pill: 999px;
    --fantasy-radius-circle: 50%;
    
    /* Transitions */
    --fantasy-transition-fast: 0.15s ease-out;
    --fantasy-transition-normal: 0.25s ease-out;
    --fantasy-transition-slow: 0.4s ease-out;
    --fantasy-transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Gradients */
    --fantasy-gradient-primary: linear-gradient(135deg, var(--fantasy-primary-dark) 0%, var(--fantasy-primary) 100%);
    --fantasy-gradient-secondary: linear-gradient(135deg, var(--fantasy-secondary-dark) 0%, var(--fantasy-secondary) 100%);
    --fantasy-gradient-accent: linear-gradient(135deg, var(--fantasy-accent-dark) 0%, var(--fantasy-accent) 100%);
    --fantasy-gradient-magic: linear-gradient(135deg, var(--fantasy-magic-dark) 0%, var(--fantasy-magic) 100%);
    --fantasy-gradient-danger: linear-gradient(135deg, var(--fantasy-danger-dark) 0%, var(--fantasy-danger) 100%);
    --fantasy-gradient-card: linear-gradient(180deg, var(--fantasy-bg-card) 0%, var(--fantasy-bg-surface) 100%);
    --fantasy-gradient-surface: linear-gradient(180deg, var(--fantasy-bg-surface) 0%, var(--fantasy-bg-elevated) 100%);
    
    /* Legacy Variable Overrides */
    --primary: var(--fantasy-primary) !important;
    --primary-dark: var(--fantasy-primary-dark) !important;
    --primary-light: var(--fantasy-primary-light) !important;
    --secondary: var(--fantasy-secondary) !important;
    --secondary-dark: var(--fantasy-secondary-dark) !important;
    --accent: var(--fantasy-accent) !important;
    --accent-dark: var(--fantasy-accent-dark) !important;
    --bg-gradient-start: var(--fantasy-bg-deep) !important;
    --bg-gradient-mid: var(--fantasy-bg-base) !important;
    --bg-gradient-end: var(--fantasy-bg-elevated) !important;
}

/* ==========================================
   2. GLOBAL BODY & BACKGROUND
   ========================================== */
html, body {
    background:
        linear-gradient(135deg, 
            rgba(10, 22, 40, 0.88) 0%, 
            rgba(14, 27, 48, 0.85) 50%, 
            rgba(20, 34, 56, 0.88) 100%),
        url('../images/destinations/Fundo.jpg') !important;
    background-size: cover, cover !important;
    background-position: center, center !important;
    background-attachment: fixed, fixed !important;
    background-repeat: no-repeat, no-repeat !important;
    color: var(--fantasy-text-primary) !important;
    font-family: 'Nunito', 'Quicksand', sans-serif !important;
}

body::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: radial-gradient(ellipse at 30% 20%, rgba(45, 90, 135, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(139, 108, 184, 0.12) 0%, transparent 50%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Atmospheric elements - subtle and immersive */
.mystical-fog,
.energy-orbs,
.css-particles {
    opacity: 0.25 !important;
    filter: hue-rotate(200deg) saturate(0.7) brightness(1.2) !important;
}

/* ==========================================
   3. LOGIN SCREEN - Fantasy Portal
   ========================================== */
#login-screen {
    background:
        linear-gradient(135deg, 
            rgba(10, 22, 40, 0.92) 0%, 
            rgba(20, 34, 56, 0.88) 50%,
            rgba(26, 58, 92, 0.85) 100%),
        url('../images/destinations/Fundo.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
}

#login-screen .login-container,
.login-container {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-border-strong) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    box-shadow: var(--fantasy-shadow-xl), 0 0 60px rgba(45, 90, 135, 0.25) !important;
    backdrop-filter: blur(12px) !important;
}

/* Login text - high contrast */
#login-screen .logo p,
.login-container .logo p,
.login-container p {
    color: var(--fantasy-text-secondary) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.login-version {
    color: var(--fantasy-text-muted) !important;
}

/* Login Buttons - Fantasy Styled */
#login-screen .lore-btn,
.login-container .lore-btn,
.lore-btn {
    background: var(--fantasy-gradient-magic) !important;
    border: 3px solid rgba(139, 108, 184, 0.5) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    color: var(--fantasy-text-primary) !important;
    box-shadow: 0 6px 0 rgba(107, 76, 154, 0.6), var(--fantasy-shadow-md) !important;
    transition: all var(--fantasy-transition-bounce) !important;
}

.lore-btn:hover {
    background: linear-gradient(135deg, var(--fantasy-magic) 0%, var(--fantasy-magic-light) 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 0 rgba(107, 76, 154, 0.6), var(--fantasy-shadow-lg), 0 0 25px var(--fantasy-magic-glow) !important;
}

#login-screen .google-btn,
.login-container .google-btn,
.google-btn,
#google-login-btn {
    background: var(--fantasy-gradient-secondary) !important;
    border: 3px solid rgba(45, 138, 91, 0.5) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    color: var(--fantasy-text-primary) !important;
    box-shadow: 0 6px 0 rgba(27, 94, 60, 0.6), var(--fantasy-shadow-md) !important;
    transition: all var(--fantasy-transition-bounce) !important;
}

.google-btn:hover,
#google-login-btn:hover {
    background: linear-gradient(135deg, var(--fantasy-secondary) 0%, var(--fantasy-secondary-light) 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 0 rgba(27, 94, 60, 0.6), var(--fantasy-shadow-lg), 0 0 25px var(--fantasy-secondary-glow) !important;
}

.help-project-btn,
#login-screen .help-btn,
.login-container .help-btn,
.help-btn {
    background: var(--fantasy-gradient-accent) !important;
    border: 3px solid rgba(229, 184, 42, 0.5) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    color: var(--fantasy-text-dark) !important;
    box-shadow: 0 6px 0 rgba(201, 162, 39, 0.6), var(--fantasy-shadow-md) !important;
    transition: all var(--fantasy-transition-bounce) !important;
    font-weight: 700 !important;
}

.help-btn:hover,
.help-project-btn:hover {
    background: linear-gradient(135deg, var(--fantasy-accent) 0%, var(--fantasy-accent-light) 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 0 rgba(201, 162, 39, 0.6), var(--fantasy-shadow-lg), 0 0 25px var(--fantasy-accent-glow) !important;
}

/* ==========================================
   4. TOP HEADER / NAVBAR - Fantasy Theme
   ========================================== */
.top-header {
    background: linear-gradient(180deg, var(--fantasy-bg-surface) 0%, var(--fantasy-bg-elevated) 100%) !important;
    border-bottom: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    backdrop-filter: blur(10px) !important;
}

/* Player info in header */
.player-info,
.header-left .player-info-compact,
.player-info-compact {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border-strong) !important;
    border-radius: var(--fantasy-radius-lg) !important;
    padding: 8px 16px !important;
    transition: all var(--fantasy-transition-normal) !important;
}

.player-info:hover,
.player-info-compact:hover {
    border-color: var(--fantasy-primary) !important;
    box-shadow: 0 0 15px var(--fantasy-primary-glow) !important;
}

.player-info-compact .player-name,
.player-name {
    color: var(--fantasy-text-primary) !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

/* Avatar - Perfect Circle */
.avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: var(--fantasy-radius-circle) !important;
    border: 3px solid var(--fantasy-primary) !important;
    box-shadow: 0 0 10px var(--fantasy-primary-glow) !important;
    object-fit: cover !important;
}

/* Level Circle - Perfect Circle */
.player-level-circle,
.player-info-compact .player-level-badge,
.player-level-badge {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    background: var(--fantasy-gradient-accent) !important;
    border-radius: var(--fantasy-radius-circle) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: var(--fantasy-text-dark) !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px var(--fantasy-accent-glow) !important;
}

/* Currency displays */
.currency-display,
.currency,
.coins-display,
.gems-display {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-md) !important;
    padding: 6px 12px !important;
    color: var(--fantasy-text-primary) !important;
    transition: all var(--fantasy-transition-fast) !important;
}

.currency-display:hover,
.currency:hover {
    border-color: var(--fantasy-accent) !important;
}

.currency-display .currency-value,
.currency span,
.coins-display span,
.gems-display span,
#player-gems,
#player-coins,
#player-gems-mobile,
#player-coins-mobile {
    color: var(--fantasy-text-primary) !important;
    font-weight: 700 !important;
}

/* Header buttons - Perfect Circles */
.notification-btn,
.header-daily-rewards-btn,
.header-icon-btn,
.header-btn,
.edit-name-btn,
.logout-btn-small {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-circle) !important;
    color: var(--fantasy-text-secondary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all var(--fantasy-transition-bounce) !important;
    cursor: pointer !important;
}

.notification-btn:hover,
.header-daily-rewards-btn:hover,
.header-icon-btn:hover,
.header-btn:hover,
.edit-name-btn:hover,
.logout-btn-small:hover {
    background: var(--fantasy-bg-hover) !important;
    border-color: var(--fantasy-primary) !important;
    color: var(--fantasy-text-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px var(--fantasy-primary-glow) !important;
}

/* Notification badge - Perfect Circle */
.notification-badge,
.streak-badge-header {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    background: var(--fantasy-danger) !important;
    border-radius: var(--fantasy-radius-circle) !important;
    border: 2px solid var(--fantasy-bg-surface) !important;
    color: var(--fantasy-text-primary) !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Navigation menu */
.top-nav,
.nav-menu,
.header-nav,
.nav-tabs {
    background: transparent !important;
}

.nav-item,
.nav-tab,
.header-nav button {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid transparent !important;
    border-radius: var(--fantasy-radius-md) !important;
    color: var(--fantasy-text-secondary) !important;
    padding: 10px 16px !important;
    transition: all var(--fantasy-transition-normal) !important;
    cursor: pointer !important;
}

.nav-item .label,
.nav-item .icon {
    color: inherit !important;
}

.nav-item:hover,
.nav-tab:hover,
.header-nav button:hover {
    background: var(--fantasy-bg-hover) !important;
    color: var(--fantasy-text-primary) !important;
    border-color: var(--fantasy-border-strong) !important;
}

.nav-item.active,
.nav-tab.active,
.header-nav button.active {
    background: var(--fantasy-gradient-primary) !important;
    color: var(--fantasy-text-primary) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px var(--fantasy-primary-glow) !important;
}

.nav-item.active .label,
.nav-item.active .icon {
    color: var(--fantasy-text-primary) !important;
}

/* ==========================================
   5. DASHBOARD / HOME SECTION
   ========================================== */
#home-section,
#dashboard-screen .home-section,
.section {
    background: transparent !important;
}

/* Home Stats Bar */
.home-stats-bar {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-lg) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    padding: 20px !important;
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.home-stat {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-md) !important;
    padding: 16px 20px !important;
    flex: 1 !important;
    min-width: 140px !important;
    text-align: center !important;
    transition: all var(--fantasy-transition-normal) !important;
}

.home-stat:hover {
    border-color: var(--fantasy-primary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px var(--fantasy-primary-glow) !important;
}

.home-stat-icon {
    font-size: 1.5rem !important;
    margin-bottom: 6px !important;
}

.home-stat-value {
    color: var(--fantasy-accent) !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    text-shadow: 0 0 10px var(--fantasy-accent-glow) !important;
}

.home-stat-label {
    color: var(--fantasy-text-secondary) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.home-stat-timer {
    color: var(--fantasy-text-muted) !important;
    font-size: 0.75rem !important;
}

/* Home Action Cards Grid */
.home-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 24px !important;
}

.home-action-card {
    background: var(--fantasy-gradient-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    padding: 24px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all var(--fantasy-transition-normal) !important;
}

.home-action-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: var(--fantasy-gradient-primary) !important;
}

.home-action-card.expedition::before {
    background: var(--fantasy-gradient-secondary) !important;
}

.home-action-card.battle::before {
    background: var(--fantasy-gradient-danger) !important;
}

.home-action-card:hover {
    border-color: var(--fantasy-primary) !important;
    transform: translateY(-5px) !important;
    box-shadow: var(--fantasy-shadow-lg), 0 0 30px var(--fantasy-primary-glow) !important;
}

.action-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.action-icon {
    font-size: 2rem !important;
}

.action-card-header h3 {
    color: var(--fantasy-text-primary) !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.action-card-content {
    color: var(--fantasy-text-secondary) !important;
    margin-bottom: 16px !important;
}

.action-card-content p {
    color: var(--fantasy-text-secondary) !important;
    margin: 0 0 12px 0 !important;
}

/* Expedition rewards preview */
.expedition-rewards-preview,
.battle-rewards-preview {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.expedition-rewards-preview span,
.battle-rewards-preview span {
    background: var(--fantasy-bg-hover) !important;
    padding: 6px 12px !important;
    border-radius: var(--fantasy-radius-sm) !important;
    font-size: 0.85rem !important;
    color: var(--fantasy-text-secondary) !important;
}

/* Expedition Level Display */
.expedition-level-display {
    background: var(--fantasy-bg-hover) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-md) !important;
    padding: 12px !important;
    margin-bottom: 16px !important;
}

.expedition-level-info {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
}

.expedition-level-label {
    color: var(--fantasy-text-secondary) !important;
}

.expedition-level-number {
    color: var(--fantasy-accent) !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
}

.expedition-level-bar {
    height: 8px !important;
    background: var(--fantasy-bg-card) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    overflow: hidden !important;
    margin-bottom: 6px !important;
}

.expedition-level-progress {
    height: 100% !important;
    background: var(--fantasy-gradient-accent) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    transition: width 0.5s ease-out !important;
}

.expedition-level-xp {
    color: var(--fantasy-text-muted) !important;
    font-size: 0.8rem !important;
    text-align: right !important;
}

/* Home Secondary Grid - Team & Items */
.home-secondary-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 24px !important;
}

.home-card {
    background: var(--fantasy-gradient-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-lg) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    overflow: hidden !important;
    transition: all var(--fantasy-transition-normal) !important;
}

.home-card:hover {
    border-color: var(--fantasy-primary) !important;
    box-shadow: var(--fantasy-shadow-lg) !important;
}

.home-card-header {
    background: var(--fantasy-bg-hover) !important;
    padding: 14px 18px !important;
    border-bottom: 2px solid var(--fantasy-border) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.home-card-header h4 {
    color: var(--fantasy-text-primary) !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.team-preview-grid,
.items-preview-grid {
    padding: 16px !important;
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    min-height: 80px !important;
}

.empty-team,
.no-items {
    color: var(--fantasy-text-muted) !important;
    font-style: italic !important;
    width: 100% !important;
    text-align: center !important;
    padding: 20px !important;
}

.home-action-card .action-btn:hover {
    background: linear-gradient(135deg, #A899D4 0%, #8E7CC3 100%) !important;
    box-shadow: 0 6px 20px rgba(142, 124, 195, 0.4) !important;
}

.home-action-card .action-btn.secondary {
    background: linear-gradient(135deg, rgba(142, 124, 195, 0.2) 0%, rgba(143, 164, 232, 0.2) 100%) !important;
    color: #8E7CC3 !important;
}

/* ==========================================
   6. ALL MODALS - Fantasy Theme
   ========================================== */
.modal,
.modal-overlay {
    background: rgba(10, 22, 40, 0.85) !important;
    backdrop-filter: blur(12px) !important;
}

.modal-content {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-border-strong) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    box-shadow: var(--fantasy-shadow-xl), 0 0 60px rgba(45, 90, 135, 0.3) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4 {
    color: var(--fantasy-text-primary) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.modal-content p,
.modal-content span:not(.stat-value):not(.currency-value),
.modal-content label {
    color: var(--fantasy-text-secondary) !important;
}

/* Modal header */
.modal-header {
    background: var(--fantasy-bg-hover) !important;
    border-bottom: 2px solid var(--fantasy-border) !important;
    padding: 20px 24px !important;
    border-radius: var(--fantasy-radius-xl) var(--fantasy-radius-xl) 0 0 !important;
}

.modal-body {
    padding: 24px !important;
}

.modal-footer {
    background: var(--fantasy-bg-hover) !important;
    border-top: 2px solid var(--fantasy-border) !important;
    padding: 16px 24px !important;
    border-radius: 0 0 var(--fantasy-radius-xl) var(--fantasy-radius-xl) !important;
}

/* Modal close buttons - Perfect Circle */
.modal-close,
.close-modal,
.modal-content .close-btn,
.btn-close-modal {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-circle) !important;
    color: var(--fantasy-text-secondary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all var(--fantasy-transition-bounce) !important;
    cursor: pointer !important;
}

.modal-close:hover,
.close-modal:hover,
.modal-content .close-btn:hover {
    background: var(--fantasy-danger) !important;
    border-color: var(--fantasy-danger) !important;
    color: var(--fantasy-text-primary) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

/* ==========================================
   7. DAILY STREAK MODAL - Fantasy Theme
   ========================================== */
#daily-streak-modal .modal-content {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-accent) !important;
    max-width: 580px !important;
    box-shadow: var(--fantasy-shadow-xl), 0 0 40px var(--fantasy-accent-glow) !important;
}

.streak-modal-header {
    text-align: center !important;
    padding: 20px !important;
}

.streak-modal-title {
    color: var(--fantasy-accent) !important;
    text-shadow: 0 0 20px var(--fantasy-accent-glow) !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
}

.streak-modal-subtitle {
    color: var(--fantasy-text-secondary) !important;
}

/* Streak Stats */
.streak-stats-bar {
    display: flex !important;
    gap: 16px !important;
    justify-content: center !important;
    padding: 0 20px 20px !important;
}

.streak-stat {
    background: var(--fantasy-bg-hover) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-md) !important;
    padding: 16px 20px !important;
    text-align: center !important;
    flex: 1 !important;
    transition: all var(--fantasy-transition-normal) !important;
}

.streak-stat:hover {
    border-color: var(--fantasy-accent) !important;
    box-shadow: 0 0 15px var(--fantasy-accent-glow) !important;
}

.streak-stat-value {
    color: var(--fantasy-accent) !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    text-shadow: 0 0 15px var(--fantasy-accent-glow) !important;
}

.streak-stat-label {
    color: var(--fantasy-text-muted) !important;
    font-size: 0.85rem !important;
}

/* Calendar Grid */
#streak-calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 8px !important;
    padding: 20px !important;
}

.streak-day-card {
    background: var(--fantasy-bg-hover) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-sm) !important;
    padding: 12px 8px !important;
    text-align: center !important;
    transition: all var(--fantasy-transition-normal) !important;
    cursor: pointer !important;
}

.streak-day-card .streak-day-number {
    color: var(--fantasy-text-muted) !important;
    font-size: 0.85rem !important;
}

.streak-day-card .streak-day-reward {
    color: var(--fantasy-text-secondary) !important;
    font-size: 1.1rem !important;
}

/* Claimed days */
.streak-day-card.claimed {
    background: linear-gradient(135deg, rgba(45, 138, 91, 0.2) 0%, rgba(45, 138, 91, 0.3) 100%) !important;
    border-color: var(--fantasy-secondary) !important;
}

.streak-day-card.claimed .streak-day-status {
    color: var(--fantasy-secondary) !important;
}

/* Available days */
.streak-day-card.available {
    background: linear-gradient(135deg, rgba(229, 184, 42, 0.15) 0%, rgba(229, 184, 42, 0.25) 100%) !important;
    border-color: var(--fantasy-accent) !important;
    animation: streakPulse 2s ease-in-out infinite !important;
}

@keyframes streakPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--fantasy-accent-glow); }
    50% { box-shadow: 0 0 20px 5px var(--fantasy-accent-glow); }
}

.streak-day-card.available:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 25px var(--fantasy-accent-glow) !important;
}

.streak-day-card.available .streak-day-status {
    color: var(--fantasy-accent) !important;
}

/* Special day */
.streak-day-card.special {
    background: linear-gradient(135deg, rgba(139, 108, 184, 0.2) 0%, rgba(139, 108, 184, 0.35) 100%) !important;
    border-color: var(--fantasy-magic) !important;
}

.streak-special-badge {
    background: var(--fantasy-gradient-magic) !important;
    color: var(--fantasy-text-primary) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    padding: 2px 8px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
}

/* Locked days */
.streak-day-card.locked {
    opacity: 0.4 !important;
    background: var(--fantasy-bg-card) !important;
    cursor: not-allowed !important;
}

/* Reward popup */
.streak-reward-popup {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-accent) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    box-shadow: var(--fantasy-shadow-xl), 0 0 50px var(--fantasy-accent-glow) !important;
}

.streak-reward-popup.special {
    border-color: var(--fantasy-magic) !important;
    box-shadow: var(--fantasy-shadow-xl), 0 0 50px var(--fantasy-magic-glow) !important;
}

/* Daily streak button */
.daily-streak-btn,
.claim-streak-btn {
    background: var(--fantasy-gradient-accent) !important;
    border: 3px solid rgba(229, 184, 42, 0.5) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    color: var(--fantasy-text-dark) !important;
    font-weight: 800 !important;
    padding: 12px 24px !important;
    box-shadow: 0 5px 0 rgba(201, 162, 39, 0.6), var(--fantasy-shadow-md) !important;
    transition: all var(--fantasy-transition-bounce) !important;
}

.daily-streak-btn:hover,
.claim-streak-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 0 rgba(201, 162, 39, 0.6), var(--fantasy-shadow-lg), 0 0 25px var(--fantasy-accent-glow) !important;
}

/* ==========================================
   8. CARDS - Creature Cards (Visual Only)
   NO STRUCTURAL CHANGES - Only colors, shadows, borders
   ========================================== */
.creature-card,
.creature-card-new,
.card-unified,
.collection-card {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    transition: transform var(--fantasy-transition-normal), box-shadow var(--fantasy-transition-normal), border-color var(--fantasy-transition-normal) !important;
}

.creature-card:hover,
.creature-card-new:hover,
.card-unified:hover,
.collection-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: var(--fantasy-shadow-lg), 0 0 25px var(--fantasy-primary-glow) !important;
    border-color: var(--fantasy-primary) !important;
}

/* Card header zone */
.card-header-zone,
.creature-card .card-header {
    background: var(--fantasy-bg-hover) !important;
    border-bottom: 2px solid var(--fantasy-border) !important;
}

/* Rarity badge */
.rarity-badge {
    border-radius: var(--fantasy-radius-pill) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.65rem !important;
    padding: 3px 8px !important;
}

/* Type badge */
.type-badge {
    border-radius: var(--fantasy-radius-pill) !important;
    font-weight: 600 !important;
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
}

/* Card body zone */
.card-body-zone,
.creature-card .card-body {
    background: transparent !important;
}

/* Card name */
.creature-card .creature-name,
.card-unified .creature-name,
.card-name-text {
    color: var(--fantasy-text-primary) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    font-weight: 700 !important;
}

/* Card footer zone - stats */
.card-footer-zone,
.creature-card .card-footer,
.creature-stats {
    background: var(--fantasy-bg-hover) !important;
    border-top: 2px solid var(--fantasy-border) !important;
}

/* Stats container - flex layout, no absolute positioning */
.stat-container,
.creature-stats {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 8px !important;
}

.stat-item,
.stat-box {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.stat-icon {
    font-size: 1rem !important;
}

.stat-value {
    color: var(--fantasy-text-primary) !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

/* Rarity colors - visual enhancement only */
.rarity-comum,
[data-rarity="comum"] {
    border-color: #7A8599 !important;
}

.rarity-incomum,
[data-rarity="incomum"] {
    border-color: var(--fantasy-secondary) !important;
}

.rarity-raro,
[data-rarity="raro"] {
    border-color: var(--fantasy-primary) !important;
}

.rarity-epico,
.rarity-épico,
[data-rarity="epico"],
[data-rarity="épico"] {
    border-color: var(--fantasy-magic) !important;
    box-shadow: var(--fantasy-shadow-md), 0 0 15px var(--fantasy-magic-glow) !important;
}

.rarity-lendario,
.rarity-lendário,
[data-rarity="lendario"],
[data-rarity="lendário"] {
    border-color: var(--fantasy-accent) !important;
    box-shadow: var(--fantasy-shadow-md), 0 0 20px var(--fantasy-accent-glow) !important;
}

.rarity-mitico,
.rarity-mítico,
[data-rarity="mitico"],
[data-rarity="mítico"] {
    border-color: #FF6B9D !important;
    box-shadow: var(--fantasy-shadow-md), 0 0 25px rgba(255, 107, 157, 0.5) !important;
    animation: mythicGlow 2s ease-in-out infinite !important;
}

@keyframes mythicGlow {
    0%, 100% { box-shadow: var(--fantasy-shadow-md), 0 0 20px rgba(255, 107, 157, 0.4); }
    50% { box-shadow: var(--fantasy-shadow-md), 0 0 35px rgba(255, 107, 157, 0.6); }
}

/* ==========================================
   9. BUTTONS - Fantasy 3D Style
   ========================================== */
.btn,
.btn-primary,
button.primary,
.action-btn,
.game-btn {
    background: var(--fantasy-gradient-primary) !important;
    border: 3px solid rgba(45, 90, 135, 0.4) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    color: var(--fantasy-text-primary) !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    box-shadow: 0 5px 0 rgba(26, 58, 92, 0.6), var(--fantasy-shadow-md) !important;
    transition: all var(--fantasy-transition-bounce) !important;
    cursor: pointer !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.btn:hover,
.btn-primary:hover,
button.primary:hover,
.action-btn:hover,
.game-btn:hover {
    background: linear-gradient(135deg, var(--fantasy-primary) 0%, var(--fantasy-primary-light) 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 0 rgba(26, 58, 92, 0.6), var(--fantasy-shadow-lg), 0 0 20px var(--fantasy-primary-glow) !important;
}

.btn:active,
.btn-primary:active,
button.primary:active {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 rgba(26, 58, 92, 0.6), var(--fantasy-shadow-sm) !important;
}

/* Secondary Button */
.btn-secondary,
button.secondary {
    background: var(--fantasy-bg-card) !important;
    border: 3px solid var(--fantasy-border-strong) !important;
    color: var(--fantasy-text-secondary) !important;
    box-shadow: 0 4px 0 rgba(20, 34, 56, 0.5), var(--fantasy-shadow-md) !important;
}

.btn-secondary:hover,
button.secondary:hover {
    background: var(--fantasy-bg-hover) !important;
    border-color: var(--fantasy-primary) !important;
    color: var(--fantasy-text-primary) !important;
}

/* Success Button */
.btn-success,
.btn-green,
button.success {
    background: var(--fantasy-gradient-secondary) !important;
    border: 3px solid rgba(45, 138, 91, 0.4) !important;
    box-shadow: 0 5px 0 rgba(27, 94, 60, 0.6), var(--fantasy-shadow-md) !important;
}

.btn-success:hover,
.btn-green:hover {
    box-shadow: 0 8px 0 rgba(27, 94, 60, 0.6), var(--fantasy-shadow-lg), 0 0 20px var(--fantasy-secondary-glow) !important;
}

/* Danger Button */
.btn-danger,
.btn-red,
button.danger {
    background: var(--fantasy-gradient-danger) !important;
    border: 3px solid rgba(183, 58, 58, 0.4) !important;
    box-shadow: 0 5px 0 rgba(150, 45, 45, 0.6), var(--fantasy-shadow-md) !important;
}

.btn-danger:hover,
.btn-red:hover {
    box-shadow: 0 8px 0 rgba(150, 45, 45, 0.6), var(--fantasy-shadow-lg), 0 0 20px rgba(209, 69, 69, 0.5) !important;
}

/* Warning/Gold Button */
.btn-warning,
.btn-yellow,
.btn-gold,
button.warning {
    background: var(--fantasy-gradient-accent) !important;
    border: 3px solid rgba(229, 184, 42, 0.4) !important;
    color: var(--fantasy-text-dark) !important;
    box-shadow: 0 5px 0 rgba(201, 162, 39, 0.6), var(--fantasy-shadow-md) !important;
}

.btn-warning:hover,
.btn-yellow:hover,
.btn-gold:hover {
    box-shadow: 0 8px 0 rgba(201, 162, 39, 0.6), var(--fantasy-shadow-lg), 0 0 20px var(--fantasy-accent-glow) !important;
}

/* Magic/Purple Button */
.btn-magic,
.btn-purple,
.btn-mystic {
    background: var(--fantasy-gradient-magic) !important;
    border: 3px solid rgba(139, 108, 184, 0.4) !important;
    box-shadow: 0 5px 0 rgba(107, 76, 154, 0.6), var(--fantasy-shadow-md) !important;
}

.btn-magic:hover,
.btn-purple:hover,
.btn-mystic:hover {
    box-shadow: 0 8px 0 rgba(107, 76, 154, 0.6), var(--fantasy-shadow-lg), 0 0 20px var(--fantasy-magic-glow) !important;
}

/* Small Button */
.btn-sm,
.btn-small {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    box-shadow: 0 3px 0 rgba(26, 58, 92, 0.6) !important;
}

/* Large Button */
.btn-lg,
.btn-large {
    padding: 16px 32px !important;
    font-size: 1.1rem !important;
    box-shadow: 0 6px 0 rgba(26, 58, 92, 0.6), var(--fantasy-shadow-md) !important;
}

/* Icon Button - Perfect Circle */
.btn-icon,
.icon-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: var(--fantasy-radius-circle) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Disabled state */
.btn:disabled,
button:disabled,
.btn.disabled {
    opacity: 0.5 !important;
    filter: grayscale(0.4) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover,
button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================
   10. PROGRESS BARS
   ========================================== */
.progress-bar,
.xp-bar,
.xp-bar-container,
.hp-bar,
.exp-bar {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    overflow: hidden !important;
    height: 12px !important;
}

.progress-bar-fill,
.xp-bar-fill,
.xp-fill,
.progress-fill,
.exp-fill {
    background: linear-gradient(90deg, var(--fantasy-primary) 0%, var(--fantasy-magic) 100%) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    box-shadow: 0 0 10px var(--fantasy-primary-glow) !important;
    height: 100% !important;
    transition: width 0.5s ease-out !important;
}

.hp-bar-fill,
.health-fill {
    background: linear-gradient(90deg, var(--fantasy-secondary) 0%, var(--fantasy-secondary-light) 100%) !important;
    box-shadow: 0 0 10px var(--fantasy-secondary-glow) !important;
}

.hp-bar-fill.low,
.health-fill.low {
    background: linear-gradient(90deg, var(--fantasy-danger) 0%, var(--fantasy-danger-light) 100%) !important;
}

/* ==========================================
   11. TABS & FILTERS
   ========================================== */
.tab-btn,
.filter-btn,
.scoreboard-tabs button,
.filter-tabs button,
.category-tabs button,
.shop-tab {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    color: var(--fantasy-text-secondary) !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    transition: all var(--fantasy-transition-normal) !important;
    cursor: pointer !important;
}

.tab-btn:hover,
.filter-btn:hover,
.scoreboard-tabs button:hover,
.filter-tabs button:hover,
.shop-tab:hover {
    background: var(--fantasy-bg-hover) !important;
    border-color: var(--fantasy-primary) !important;
    color: var(--fantasy-text-primary) !important;
}

.tab-btn.active,
.filter-btn.active,
.scoreboard-tabs button.active,
.filter-tabs button.active,
.category-tabs button.active,
.shop-tab.active {
    background: var(--fantasy-gradient-primary) !important;
    color: var(--fantasy-text-primary) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px var(--fantasy-primary-glow) !important;
}

/* ==========================================
   12. RANKING & PODIUM - Fantasy Theme
   ========================================== */
.ranking-section,
#ranking-section {
    background: transparent !important;
}

.ranking-page-header {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.ranking-page-title {
    color: var(--fantasy-text-primary) !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
}

.ranking-page-subtitle {
    color: var(--fantasy-text-secondary) !important;
}

.podium-card,
.podium-item,
.ranking-item {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-lg) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    padding: 16px !important;
    transition: all var(--fantasy-transition-normal) !important;
}

.podium-card:hover,
.ranking-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--fantasy-shadow-lg) !important;
    border-color: var(--fantasy-primary) !important;
}

/* Podium positions - Gold, Silver, Bronze */
.podium-1,
.podium-card.first,
[data-position="1"] {
    border-color: var(--fantasy-accent) !important;
    box-shadow: var(--fantasy-shadow-md), 0 0 25px var(--fantasy-accent-glow) !important;
}

.podium-2,
.podium-card.second,
[data-position="2"] {
    border-color: #A0A8B8 !important;
    box-shadow: var(--fantasy-shadow-md), 0 0 15px rgba(160, 168, 184, 0.4) !important;
}

.podium-3,
.podium-card.third,
[data-position="3"] {
    border-color: #CD7F32 !important;
    box-shadow: var(--fantasy-shadow-md), 0 0 15px rgba(205, 127, 50, 0.4) !important;
}

.ranking-item .rank-number,
.podium-card .position,
.position-number {
    color: var(--fantasy-accent) !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
}

.ranking-item .player-name,
.podium-card .player-name {
    color: var(--fantasy-text-primary) !important;
    font-weight: 700 !important;
}

.ranking-item .player-score,
.ranking-item .player-stats,
.podium-card .player-score {
    color: var(--fantasy-text-secondary) !important;
}

/* Ranking list */
.ranking-list-section {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    padding: 20px !important;
}

.ranking-search-input {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-md) !important;
    color: var(--fantasy-text-primary) !important;
    padding: 12px 16px !important;
}

.ranking-search-input:focus {
    border-color: var(--fantasy-primary) !important;
    box-shadow: 0 0 0 3px var(--fantasy-primary-glow) !important;
}

/* ==========================================
   13. SHOP - Fantasy Theme
   ========================================== */
#shop-section,
.shop-section {
    background: transparent !important;
}

.shop-header {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.shop-title,
.shop-page-title {
    color: var(--fantasy-text-primary) !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
}

.shop-item,
.shop-card,
.shop-item-modern {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-lg) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    transition: all var(--fantasy-transition-normal) !important;
    overflow: hidden !important;
}

.shop-item:hover,
.shop-card:hover,
.shop-item-modern:hover {
    border-color: var(--fantasy-accent) !important;
    transform: translateY(-4px) !important;
    box-shadow: var(--fantasy-shadow-lg), 0 0 20px var(--fantasy-accent-glow) !important;
}

.shop-item .item-name,
.shop-card .item-name,
.shop-item-name {
    color: var(--fantasy-text-primary) !important;
    font-weight: 700 !important;
}

.shop-item .item-description,
.shop-item-description {
    color: var(--fantasy-text-secondary) !important;
}

.shop-item .item-price,
.shop-card .item-price,
.price-tag,
.shop-item-price {
    background: var(--fantasy-gradient-accent) !important;
    color: var(--fantasy-text-dark) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    padding: 6px 14px !important;
    font-weight: 800 !important;
}

/* ==========================================
   14. FRIENDS - Fantasy Theme
   ========================================== */
#friends-section,
.friends-section {
    background: transparent !important;
}

.friends-header {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    padding: 24px !important;
}

.friend-card,
.friend-item {
    background: var(--fantasy-gradient-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-lg) !important;
    padding: 16px !important;
    transition: all var(--fantasy-transition-normal) !important;
}

.friend-card:hover,
.friend-item:hover {
    border-color: var(--fantasy-primary) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.friend-card .friend-name,
.friend-item .friend-name {
    color: var(--fantasy-text-primary) !important;
    font-weight: 700 !important;
}

.friend-card .friend-status,
.friend-item .friend-status {
    color: var(--fantasy-text-secondary) !important;
}

.friend-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: var(--fantasy-radius-circle) !important;
    border: 3px solid var(--fantasy-primary) !important;
}

/* Online status indicator */
.friend-status.online::before,
.status-indicator.online {
    background: var(--fantasy-secondary) !important;
    box-shadow: 0 0 8px var(--fantasy-secondary-glow) !important;
}

/* ==========================================
   15. INPUTS & FORMS - Fantasy Theme
   ========================================== */
input,
select,
textarea {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-md) !important;
    color: var(--fantasy-text-primary) !important;
    padding: 12px 16px !important;
    transition: all var(--fantasy-transition-fast) !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--fantasy-primary) !important;
    box-shadow: 0 0 0 3px var(--fantasy-primary-glow) !important;
    outline: none !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--fantasy-text-muted) !important;
}

/* Checkbox & Radio - ensure proper circles */
input[type="checkbox"],
input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    padding: 0 !important;
}

input[type="radio"] {
    border-radius: var(--fantasy-radius-circle) !important;
}

/* ==========================================
   16. NOTIFICATIONS & TOASTS - Fantasy Theme
   ========================================== */
.toast,
.notification,
#toast-container .toast {
    background: var(--fantasy-gradient-card) !important;
    border-left: 4px solid var(--fantasy-primary) !important;
    border-radius: var(--fantasy-radius-md) !important;
    box-shadow: var(--fantasy-shadow-lg) !important;
    color: var(--fantasy-text-primary) !important;
    padding: 16px 20px !important;
}

.toast.success,
.notification.success {
    border-left-color: var(--fantasy-secondary) !important;
}

.toast.error,
.notification.error {
    border-left-color: var(--fantasy-danger) !important;
}

.toast.warning,
.notification.warning {
    border-left-color: var(--fantasy-accent) !important;
}

/* ==========================================
   17. EXPEDITION - Fantasy Theme
   ========================================== */
#expedition-section,
.expedition-section {
    background: transparent !important;
}

.expedition-header {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    padding: 24px !important;
}

.expedition-card,
.location-card {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    overflow: hidden !important;
    transition: all var(--fantasy-transition-normal) !important;
}

.expedition-card:hover,
.location-card:hover {
    border-color: var(--fantasy-secondary) !important;
    transform: translateY(-4px) !important;
    box-shadow: var(--fantasy-shadow-lg), 0 0 20px var(--fantasy-secondary-glow) !important;
}

.location-card h3,
.expedition-card h3 {
    color: var(--fantasy-text-primary) !important;
    font-weight: 700 !important;
}

.location-card p,
.expedition-card p {
    color: var(--fantasy-text-secondary) !important;
}

.expedition-progress,
.expedition-bar {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    height: 10px !important;
}

.expedition-progress-fill,
.expedition-bar-fill {
    background: linear-gradient(90deg, var(--fantasy-secondary) 0%, var(--fantasy-secondary-light) 100%) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    box-shadow: 0 0 10px var(--fantasy-secondary-glow) !important;
}

/* ==========================================
   18. BATTLE - Fantasy Theme
   ========================================== */
#battle-section,
.battle-section {
    background: transparent !important;
}

.battle-container,
.battle-arena {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    box-shadow: var(--fantasy-shadow-lg) !important;
}

.battle-card,
.fighter-card {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-lg) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.battle-vs,
.vs-text {
    color: var(--fantasy-danger) !important;
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    text-shadow: 0 0 30px rgba(209, 69, 69, 0.6) !important;
    animation: vsPulse 1.5s ease-in-out infinite !important;
}

@keyframes vsPulse {
    0%, 100% { transform: scale(1); text-shadow: 0 0 20px rgba(209, 69, 69, 0.4); }
    50% { transform: scale(1.1); text-shadow: 0 0 40px rgba(209, 69, 69, 0.7); }
}

/* ==========================================
   19. COLLECTION - Fantasy Theme
   ========================================== */
#collection-section,
.collection-section {
    background: transparent !important;
}

.collection-header,
.collection-header-modern {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    padding: 24px !important;
}

.collection-page-title {
    color: var(--fantasy-text-primary) !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
}

.collection-page-subtitle {
    color: var(--fantasy-text-secondary) !important;
}

.collection-stats .stat-box,
.collection-stats-expanded .stat-box {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-md) !important;
    padding: 16px !important;
    transition: all var(--fantasy-transition-normal) !important;
}

.collection-stats .stat-box:hover {
    border-color: var(--fantasy-primary) !important;
}

.stat-box .stat-value {
    color: var(--fantasy-accent) !important;
    font-weight: 800 !important;
}

.stat-box .stat-label {
    color: var(--fantasy-text-secondary) !important;
}

/* Visual filters */
.visual-filters-section,
.collection-actions-bar {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-lg) !important;
    padding: 16px !important;
}

/* ==========================================
   20. TEAM SELECTION - Fantasy Theme
   ========================================== */
#team-section,
.team-section {
    background: transparent !important;
}

.team-header-unified {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    padding: 24px !important;
}

.team-title-premium {
    color: var(--fantasy-text-primary) !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
}

.team-subtitle-premium {
    color: var(--fantasy-text-secondary) !important;
}

.power-display-inline {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-accent) !important;
    border-radius: var(--fantasy-radius-lg) !important;
    padding: 12px 20px !important;
}

.power-value-premium {
    color: var(--fantasy-accent) !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    text-shadow: 0 0 15px var(--fantasy-accent-glow) !important;
}

.team-slot,
.slot-card,
.team-slot-new,
.slot-card-premium {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-lg) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    transition: all var(--fantasy-transition-normal) !important;
}

.team-slot:hover,
.slot-card:hover,
.slot-card-premium:hover {
    border-color: var(--fantasy-primary) !important;
    box-shadow: var(--fantasy-shadow-lg) !important;
}

.team-slot.empty,
.slot-card.empty,
.slot-card-premium.empty {
    background: var(--fantasy-bg-hover) !important;
    border: 3px dashed var(--fantasy-border-strong) !important;
}

.slot-empty-text,
.empty-slot-text {
    color: var(--fantasy-text-muted) !important;
}

/* ==========================================
   21. SCROLLBARS - Fantasy Theme
   ========================================== */
::-webkit-scrollbar {
    width: 10px !important;
    height: 10px !important;
}

::-webkit-scrollbar-track {
    background: var(--fantasy-bg-elevated) !important;
    border-radius: var(--fantasy-radius-pill) !important;
}

::-webkit-scrollbar-thumb {
    background: var(--fantasy-gradient-primary) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    border: 2px solid var(--fantasy-bg-elevated) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--fantasy-primary) 0%, var(--fantasy-primary-light) 100%) !important;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin !important;
    scrollbar-color: var(--fantasy-primary) var(--fantasy-bg-elevated) !important;
}

/* ==========================================
   22. LOADING STATES - Fantasy Theme
   ========================================== */
.loader-spinner {
    border-color: var(--fantasy-border) !important;
    border-top-color: var(--fantasy-primary) !important;
    border-radius: var(--fantasy-radius-circle) !important;
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--fantasy-bg-card) 0%,
        var(--fantasy-bg-hover) 50%,
        var(--fantasy-bg-card) 100%
    ) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.5s infinite !important;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.game-loading-overlay {
    background: linear-gradient(135deg, var(--fantasy-bg-deep) 0%, var(--fantasy-bg-elevated) 100%) !important;
}

.game-loading-overlay .loading-text {
    color: var(--fantasy-text-primary) !important;
}

/* ==========================================
   23. WELCOME MODAL - Fantasy Theme
   ========================================== */
#welcome-modal .modal-content,
.welcome-modal .modal-content {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-accent) !important;
}

/* ==========================================
   24. LORE MODAL - Fantasy Theme
   ========================================== */
#lore-modal .modal-content {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-magic) !important;
}

#lore-modal h2,
#lore-modal h3 {
    color: var(--fantasy-text-primary) !important;
}

#lore-modal p {
    color: var(--fantasy-text-secondary) !important;
}

/* ==========================================
   25. GLOBAL TYPOGRAPHY & MISC
   ========================================== */
/* All headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--fantasy-text-primary) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Paragraphs and text */
p, span, label {
    color: var(--fantasy-text-secondary);
}

/* Badge styling */
.badge,
.level-badge {
    background: var(--fantasy-gradient-primary) !important;
    color: var(--fantasy-text-primary) !important;
    border-radius: var(--fantasy-radius-pill) !important;
    padding: 4px 12px !important;
    font-weight: 700 !important;
}

/* Dividers */
hr,
.divider {
    border-color: var(--fantasy-border) !important;
}

/* Links */
a {
    color: var(--fantasy-primary-light) !important;
    transition: color var(--fantasy-transition-fast) !important;
}

a:hover {
    color: var(--fantasy-accent) !important;
}

/* Selection */
::selection {
    background: var(--fantasy-primary-glow) !important;
    color: var(--fantasy-text-primary) !important;
}

/* Focus states */
:focus-visible {
    outline: 2px solid var(--fantasy-primary) !important;
    outline-offset: 2px !important;
}

/* ==========================================
   26. ANIMATIONS - Fantasy Theme
   ========================================== */
@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes fantasyGlow {
    0%, 100% { box-shadow: var(--fantasy-shadow-md), 0 0 15px var(--fantasy-primary-glow); }
    50% { box-shadow: var(--fantasy-shadow-lg), 0 0 30px var(--fantasy-primary-glow); }
}

@keyframes accentGlow {
    0%, 100% { box-shadow: var(--fantasy-shadow-md), 0 0 15px var(--fantasy-accent-glow); }
    50% { box-shadow: var(--fantasy-shadow-lg), 0 0 30px var(--fantasy-accent-glow); }
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-pulse {
    animation: gentlePulse 2s ease-in-out infinite;
}

.animate-glow {
    animation: fantasyGlow 2s ease-in-out infinite;
}

.animate-float {
    animation: floatUp 3s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* ==========================================
   27. RESPONSIVE - Desktop First
   ========================================== */
@media (max-width: 1200px) {
    .home-actions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .top-header {
        padding: 10px 16px !important;
    }
    
    .nav-menu {
        padding: 8px !important;
    }
    
    .nav-item {
        padding: 8px 12px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .modal-content {
        border-radius: var(--fantasy-radius-lg) !important;
        margin: 10px !important;
        max-height: 95vh !important;
    }
    
    .home-action-card {
        border-radius: var(--fantasy-radius-lg) !important;
        padding: 18px !important;
    }
    
    .home-actions-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .home-stats-bar {
        flex-direction: column !important;
    }
    
    .home-stat {
        min-width: 100% !important;
    }
    
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.3rem !important; }
    h3 { font-size: 1.1rem !important; }
}

@media (max-width: 480px) {
    .streak-day-card {
        border-radius: var(--fantasy-radius-xs) !important;
        min-height: 50px !important;
        padding: 8px 4px !important;
    }
    
    #streak-calendar-grid {
        gap: 4px !important;
        grid-template-columns: repeat(7, 1fr) !important;
    }
    
    .btn,
    .action-btn {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }
    
    .avatar {
        width: 36px !important;
        height: 36px !important;
    }
    
    .player-level-circle,
    .player-level-badge {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 0.75rem !important;
    }
}

/* ==========================================
   28. ACCESSIBILITY
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --fantasy-border: rgba(255, 255, 255, 0.3) !important;
        --fantasy-border-strong: rgba(255, 255, 255, 0.5) !important;
    }
    
    .btn,
    .action-btn {
        border-width: 3px !important;
    }
}

/* ==========================================
   29. FINAL BACKGROUND OVERRIDE
   ========================================== */
html {
    background:
        linear-gradient(135deg, 
            rgba(10, 22, 40, 0.9) 0%, 
            rgba(14, 27, 48, 0.88) 50%, 
            rgba(20, 34, 56, 0.9) 100%),
        url('../images/destinations/Fundo.jpg') !important;
    background-size: cover, cover !important;
    background-position: center, center !important;
    background-attachment: fixed, fixed !important;
    background-repeat: no-repeat, no-repeat !important;
    min-height: 100vh !important;
}

body {
    background: transparent !important;
    min-height: 100vh !important;
}

#app,
.app-container,
#dashboard-screen {
    background: transparent !important;
}

/* ==========================================
   30. COLLECTION SECTION - Fantasy Override
   ========================================== */
.collection-header-modern {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.collection-header-modern .collection-page-title,
.collection-page-title {
    color: var(--fantasy-text-primary) !important;
}

.collection-header-modern .collection-page-subtitle,
.collection-page-subtitle {
    color: var(--fantasy-text-secondary) !important;
}

.collection-stats-expanded {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.collection-stats-expanded .stat-box,
.stats-main .stat-box {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
}

.collection-stats-expanded .stat-box:hover,
.stats-main .stat-box:hover {
    border-color: var(--fantasy-primary) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.collection-stats-expanded .stat-label,
.stats-main .stat-label {
    color: var(--fantasy-text-secondary) !important;
}

.collection-stats-expanded .stat-value,
.stats-main .stat-value {
    color: var(--fantasy-accent) !important;
}

.collection-progress-bar {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
}

.collection-progress-bar .progress-fill {
    background: linear-gradient(90deg, var(--fantasy-primary) 0%, var(--fantasy-magic) 100%) !important;
    box-shadow: 0 0 15px var(--fantasy-primary-glow) !important;
}

/* View Toggle Buttons */
.view-toggle .view-btn,
.view-btn {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    color: var(--fantasy-text-secondary) !important;
}

.view-toggle .view-btn:hover,
.view-btn:hover {
    background: var(--fantasy-bg-hover) !important;
    border-color: var(--fantasy-primary) !important;
    color: var(--fantasy-text-primary) !important;
}

.view-toggle .view-btn.active,
.view-btn.active {
    background: var(--fantasy-gradient-primary) !important;
    border-color: transparent !important;
    color: var(--fantasy-text-primary) !important;
}

/* Visual Filters Section */
.visual-filters-section .filter-section-title,
.filter-section-title {
    color: var(--fantasy-text-primary) !important;
}

.visual-filters .filter-btn,
.filter-row .filter-btn {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    color: var(--fantasy-text-secondary) !important;
}

.visual-filters .filter-btn:hover,
.filter-row .filter-btn:hover {
    background: var(--fantasy-bg-hover) !important;
    border-color: var(--fantasy-primary) !important;
}

.visual-filters .filter-btn.active,
.filter-row .filter-btn.active {
    background: var(--fantasy-gradient-primary) !important;
    border-color: transparent !important;
    color: var(--fantasy-text-primary) !important;
}

.visual-filters .filter-btn span,
.filter-row .filter-btn span {
    color: inherit !important;
}

/* Fusion Button - Magic Style */
.fusion-btn,
.btn-fusion,
[class*="fusion"] button {
    background: var(--fantasy-gradient-magic) !important;
    border: 3px solid rgba(139, 108, 184, 0.4) !important;
    color: var(--fantasy-text-primary) !important;
    box-shadow: 0 5px 0 rgba(107, 76, 154, 0.6), var(--fantasy-shadow-md) !important;
}

.fusion-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 0 rgba(107, 76, 154, 0.6), var(--fantasy-shadow-lg), 0 0 20px var(--fantasy-magic-glow) !important;
}

/* Clear Button */
.clear-btn,
.btn-clear,
button[class*="limpar"],
button[class*="clear"] {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border-strong) !important;
    color: var(--fantasy-text-muted) !important;
}

/* ==========================================
   31. INVENTORY SECTION - Fantasy Override
   ========================================== */
.inventory-sidebar,
.inventory-section,
.inventory-panel {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.inventory-sidebar h3,
.inventory-section h3,
.inventory-title {
    color: var(--fantasy-text-primary) !important;
}

.inventory-item,
.item-slot {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-md) !important;
    transition: all var(--fantasy-transition-normal) !important;
}

.inventory-item:hover,
.item-slot:hover {
    border-color: var(--fantasy-primary) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.inventory-item .item-name,
.item-slot .item-name {
    color: var(--fantasy-text-primary) !important;
}

.inventory-item .item-count,
.item-slot .item-count {
    background: var(--fantasy-gradient-primary) !important;
    color: var(--fantasy-text-primary) !important;
    border-radius: var(--fantasy-radius-pill) !important;
}

/* Use Button */
.use-btn,
.btn-use,
button.usar {
    background: var(--fantasy-gradient-secondary) !important;
    border: 2px solid rgba(45, 138, 91, 0.4) !important;
    color: var(--fantasy-text-primary) !important;
}

.use-btn:hover {
    box-shadow: 0 0 15px var(--fantasy-secondary-glow) !important;
}

/* ==========================================
   32-38. FINAL CLEANUP - Remove Old Pastel
   All these sections now use CSS variables defined above
   ========================================== */

/* Ensure all sections use transparent background */
#ranking-section,
.ranking-section,
.ranking-container,
#friends-section,
#shop-section,
#collection-section,
#team-section,
#battle-section,
#expedition-section {
    background: transparent !important;
}

/* Section headers unified */
.section-header,
.page-header,
[class*="-header-modern"] {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-xl) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.section-header h1,
.section-header h2,
.page-header h1,
.page-header h2,
[class*="-header-modern"] h1,
[class*="-header-modern"] h2,
[class*="-page-title"] {
    color: var(--fantasy-text-primary) !important;
}

.section-header p,
.page-header p,
[class*="-header-modern"] p,
[class*="-page-subtitle"] {
    color: var(--fantasy-text-secondary) !important;
}

/* Podium Cards - Fantasy Override */
.podium-cards-grid {
    gap: 24px !important;
}

.podium-card {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.podium-card:hover {
    box-shadow: var(--fantasy-shadow-lg) !important;
}

.podium-card.first {
    border-color: var(--fantasy-accent) !important;
    box-shadow: var(--fantasy-shadow-md), 0 0 25px var(--fantasy-accent-glow) !important;
}

.podium-card.second {
    border-color: #A0A8B8 !important;
}

.podium-card.third {
    border-color: #CD7F32 !important;
}

.podium-card-name {
    color: var(--fantasy-text-primary) !important;
}

.podium-card-score {
    color: var(--fantasy-accent) !important;
}

.podium-card-stats .podium-stat {
    background: var(--fantasy-bg-hover) !important;
}

.podium-stat-value {
    color: var(--fantasy-accent) !important;
}

.podium-stat-label {
    color: var(--fantasy-text-secondary) !important;
}

/* Ranking List - Fantasy Override */
.ranking-list-section {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.ranking-list-header {
    border-bottom: 2px solid var(--fantasy-border) !important;
}

.ranking-list-title {
    color: var(--fantasy-text-primary) !important;
}

.ranking-search-input {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    color: var(--fantasy-text-primary) !important;
}

.ranking-search-input:focus {
    border-color: var(--fantasy-primary) !important;
}

.ranking-search-input::placeholder {
    color: var(--fantasy-text-muted) !important;
}

/* Ranking Items */
.ranking-item {
    background: var(--fantasy-gradient-card) !important;
    border: 2px solid var(--fantasy-border) !important;
}

.ranking-item:hover {
    border-color: var(--fantasy-primary) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.ranking-item-position {
    color: var(--fantasy-accent) !important;
}

.ranking-item-name {
    color: var(--fantasy-text-primary) !important;
}

.ranking-item-level,
.ranking-item-stats {
    color: var(--fantasy-text-secondary) !important;
}

.ranking-item-score {
    color: var(--fantasy-accent) !important;
}

.ranking-item-avatar {
    border: 3px solid var(--fantasy-primary) !important;
    border-radius: var(--fantasy-radius-circle) !important;
}

/* Stage Floor / Podium Stage */
.stage-floor {
    background: var(--fantasy-gradient-surface) !important;
    border: 3px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-lg) !important;
}

.stage-floor::before,
.stage-floor::after {
    background: radial-gradient(circle, var(--fantasy-primary-glow) 0%, transparent 70%) !important;
}

.ranking-stage::before {
    background: radial-gradient(ellipse at center, var(--fantasy-primary-glow) 0%, transparent 70%) !important;
}

/* Podium Places */
.podium-place {
    background: var(--fantasy-gradient-card) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.podium-place.first {
    border-color: var(--fantasy-accent) !important;
    box-shadow: var(--fantasy-shadow-lg), 0 0 30px var(--fantasy-accent-glow) !important;
}

.podium-place.second {
    border-color: #A0A8B8 !important;
}

.podium-place.third {
    border-color: #CD7F32 !important;
}

.podium-place .player-name,
.podium-place h3 {
    color: var(--fantasy-text-primary) !important;
}

.podium-place .player-score,
.podium-place .score {
    color: var(--fantasy-accent) !important;
}

/* ==========================================
   FINAL SECTION OVERRIDES - All use CSS vars
   ========================================== */

/* All section backgrounds transparent */
#friends-section,
.friends-section,
.friends-container,
#shop-section,
.shop-section,
.shop-container,
#team-section,
.team-section,
.team-container,
#home-section,
.home-section,
#expedition-section,
.expedition-section {
    background: transparent !important;
}

/* All headers use fantasy surface */
.friends-header,
.friends-page-header,
.shop-header,
.shop-page-header,
.team-header,
.team-page-header,
.home-page-header,
.expedition-header {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

/* All header titles */
.friends-header h2,
.friends-page-title,
.shop-header h2,
.shop-page-title,
.team-header h2,
.team-page-title,
.home-page-title,
.expedition-header h2 {
    color: var(--fantasy-text-primary) !important;
}

/* All header subtitles */
.home-page-subtitle {
    color: var(--fantasy-text-secondary) !important;
}

/* Lists and grids */
.friends-list,
.shop-items,
.shop-grid,
.team-slots,
.team-grid,
.home-action-cards,
.expedition-locations {
    gap: 20px !important;
}

/* Friend cards */
.friend-card {
    background: var(--fantasy-gradient-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.friend-card:hover {
    border-color: var(--fantasy-primary) !important;
    box-shadow: var(--fantasy-shadow-lg) !important;
}

.friend-info h3,
.friend-name {
    color: var(--fantasy-text-primary) !important;
}

.friend-status {
    color: var(--fantasy-text-secondary) !important;
}

.friend-avatar {
    background: var(--fantasy-gradient-primary) !important;
    border: 3px solid var(--fantasy-primary) !important;
    border-radius: var(--fantasy-radius-circle) !important;
}

.friend-stats .friend-stat {
    background: var(--fantasy-bg-hover) !important;
    border: 2px solid var(--fantasy-border) !important;
}

.friend-stat-value {
    color: var(--fantasy-accent) !important;
}

.friend-stat-label {
    color: var(--fantasy-text-secondary) !important;
}

.friend-actions button {
    background: var(--fantasy-gradient-primary) !important;
    border: 2px solid var(--fantasy-border) !important;
    color: var(--fantasy-text-primary) !important;
}

/* Shop item override */
.shop-item-name,
.shop-card h3 {
    color: var(--fantasy-text-primary) !important;
}

.shop-item-description,
.shop-card p {
    color: var(--fantasy-text-secondary) !important;
}

/* Team slot name */
.team-slot h3,
.slot-card h3,
.creature-name {
    color: var(--fantasy-text-primary) !important;
}

.team-slot .creature-stats,
.slot-card .creature-stats {
    color: var(--fantasy-text-secondary) !important;
}

/* Home action card overrides */
.home-action-card .card-title {
    color: var(--fantasy-text-primary) !important;
}

.home-action-card .card-description {
    color: var(--fantasy-text-secondary) !important;
}

.home-action-card .stat-item {
    background: var(--fantasy-bg-hover) !important;
    border: 2px solid var(--fantasy-border) !important;
}

.home-action-card .stat-value {
    color: var(--fantasy-accent) !important;
}

.home-action-card .stat-label {
    color: var(--fantasy-text-secondary) !important;
}

/* Location card overrides */
.location-card h3 {
    color: var(--fantasy-text-primary) !important;
}

.location-card p {
    color: var(--fantasy-text-secondary) !important;
}

/* ==========================================
   44. BATTLE SECTION - Fantasy Override
   ========================================== */
.battle-header {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
}

.battle-header h2 {
    color: var(--fantasy-text-primary) !important;
}

.battle-arena,
.battle-field {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
}

.fighter-card {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-border) !important;
}

.fighter-card h3 {
    color: var(--fantasy-text-primary) !important;
}

/* ==========================================
   45. GLOBAL TEXT OVERRIDES - Fantasy Theme
   ========================================== */
/* Names and titles */
[class*="-name"],
[class*="-title"]:not(.modal-content [class*="-title"]) {
    color: var(--fantasy-text-primary) !important;
}

/* Subtitles and descriptions */
[class*="-subtitle"],
[class*="-description"],
[class*="-label"]:not(.modal-content [class*="-label"]) {
    color: var(--fantasy-text-secondary) !important;
}

/* Values and scores */
[class*="-value"],
[class*="-score"],
[class*="-position"] {
    color: var(--fantasy-accent) !important;
}

/* ==========================================
   46. SCOREBOARD TABS - Fantasy Override
   ========================================== */
.scoreboard-tabs {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-lg) !important;
    padding: 8px !important;
}

.scoreboard-tabs button {
    background: transparent !important;
    color: var(--fantasy-text-secondary) !important;
    border: 2px solid transparent !important;
}

.scoreboard-tabs button:hover {
    background: var(--fantasy-bg-hover) !important;
    color: var(--fantasy-text-primary) !important;
}

.scoreboard-tabs button.active {
    background: var(--fantasy-gradient-primary) !important;
    color: var(--fantasy-text-primary) !important;
}

/* ==========================================
   47. NAVIGATION - Fantasy Override
   ========================================== */
.nav-menu {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.nav-item {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid transparent !important;
}

.nav-item:hover {
    background: var(--fantasy-bg-hover) !important;
    border-color: var(--fantasy-border-strong) !important;
}

.nav-item.active {
    background: var(--fantasy-gradient-primary) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px var(--fantasy-primary-glow) !important;
}

.nav-item .label {
    color: var(--fantasy-text-secondary) !important;
}

.nav-item:hover .label {
    color: var(--fantasy-text-primary) !important;
}

.nav-item.active .label {
    color: var(--fantasy-text-primary) !important;
}

/* ==========================================
   48-50. FINAL OVERRIDES - All Fantasy Theme
   ========================================== */
.team-header-unified {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.team-title-premium {
    color: var(--fantasy-text-primary) !important;
}

.team-subtitle-premium {
    color: var(--fantasy-text-secondary) !important;
}

.power-display-inline {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-accent) !important;
}

.power-label-premium {
    color: var(--fantasy-text-secondary) !important;
}

.power-value-premium {
    color: var(--fantasy-accent) !important;
    text-shadow: 0 0 10px var(--fantasy-accent-glow) !important;
}

.team-slots-premium {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.section-title-premium {
    color: var(--fantasy-text-primary) !important;
}

.section-desc-premium {
    color: var(--fantasy-text-secondary) !important;
}

.slot-card-premium {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.slot-card-premium:hover {
    border-color: var(--fantasy-primary) !important;
    box-shadow: var(--fantasy-shadow-lg) !important;
}

.slot-card-premium.selected {
    border-color: var(--fantasy-magic) !important;
    box-shadow: var(--fantasy-shadow-lg), 0 0 20px var(--fantasy-magic-glow) !important;
}

.slot-card-premium .creature-name,
.slot-card-premium h3 {
    color: var(--fantasy-text-primary) !important;
}

.slot-card-premium .creature-stats,
.slot-card-premium p {
    color: var(--fantasy-text-secondary) !important;
}

/* Empty slots */
.slot-card-premium.empty,
.slot-empty {
    background: var(--fantasy-bg-hover) !important;
    border: 3px dashed var(--fantasy-border-strong) !important;
}

.slot-empty-text,
.empty-slot-text {
    color: var(--fantasy-text-muted) !important;
}

/* ==========================================
   50. SHOP - Fantasy Override
   ========================================== */
.shop-title,
.shop-page-title {
    color: var(--fantasy-text-primary) !important;
}

.shop-subtitle,
.shop-page-subtitle {
    color: var(--fantasy-text-secondary) !important;
}

.shop-tabs {
    background: transparent !important;
}

.shop-tab {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    color: var(--fantasy-text-secondary) !important;
}

.shop-tab:hover {
    background: var(--fantasy-bg-hover) !important;
    border-color: var(--fantasy-primary) !important;
    color: var(--fantasy-text-primary) !important;
}

.shop-tab.active {
    background: var(--fantasy-gradient-primary) !important;
    border-color: transparent !important;
    color: var(--fantasy-text-primary) !important;
    box-shadow: 0 4px 15px var(--fantasy-primary-glow) !important;
}

.shop-item {
    background: var(--fantasy-gradient-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.shop-item:hover {
    border-color: var(--fantasy-accent) !important;
    box-shadow: var(--fantasy-shadow-lg), 0 0 15px var(--fantasy-accent-glow) !important;
}

.shop-item-image {
    background: var(--fantasy-bg-hover) !important;
    border: 2px solid var(--fantasy-border) !important;
}

.shop-item-name {
    color: var(--fantasy-text-primary) !important;
}

.shop-item-description {
    color: var(--fantasy-text-secondary) !important;
}

.shop-item-price {
    color: var(--fantasy-accent) !important;
}

.shop-item-buy {
    background: var(--fantasy-gradient-accent) !important;
    border: 2px solid rgba(229, 184, 42, 0.4) !important;
    color: var(--fantasy-text-dark) !important;
}

.shop-item-buy:hover {
    box-shadow: 0 0 20px var(--fantasy-accent-glow) !important;
}

/* ==========================================
   51. FRIENDS MENU - Fantasy Override
   ========================================== */
.friend-item,
.friends-sidebar .friend-card,
.menu-friends .friend-item {
    background: var(--fantasy-gradient-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    transition: all var(--fantasy-transition-normal) !important;
}

.friend-item:hover,
.friends-sidebar .friend-card:hover,
.menu-friends .friend-item:hover {
    background: var(--fantasy-bg-hover) !important;
    border-color: var(--fantasy-primary) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.friend-item.selected,
.friend-item.active,
.friends-sidebar .friend-card.selected {
    border-color: var(--fantasy-primary) !important;
    box-shadow: 0 0 15px var(--fantasy-primary-glow) !important;
}

/* Friend Item Redesign - Prevent conflicts and flickering */
.friend-item-redesign {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.friend-item-redesign .friend-action-btn {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 5 !important;
}

.friend-item-redesign .friend-action-btn:hover {
    transform: none !important;
}

/* ==========================================
   52. FLOATING PARTICLES - Magic Orbs
   ========================================== */
@keyframes floatMagic {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-40px) translateX(20px) scale(1.1);
        opacity: 0.7;
    }
}

.floating-orbs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-orb {
    position: absolute;
    border-radius: var(--fantasy-radius-circle);
    background: radial-gradient(circle at 30% 30%, var(--fantasy-accent-glow), transparent);
    animation: floatMagic 10s ease-in-out infinite;
}

/* Subtle magic particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 10% 20%, var(--fantasy-accent-glow) 0%, transparent 1.5%),
        radial-gradient(circle at 85% 15%, var(--fantasy-primary-glow) 0%, transparent 1%),
        radial-gradient(circle at 25% 70%, var(--fantasy-magic-glow) 0%, transparent 2%),
        radial-gradient(circle at 70% 60%, var(--fantasy-accent-glow) 0%, transparent 1.2%),
        radial-gradient(circle at 50% 40%, var(--fantasy-primary-glow) 0%, transparent 1.5%);
    animation: floatMagic 20s ease-in-out infinite;
    opacity: 0.5;
}

/* ==========================================
   53. SECTION TRANSPARENCY
   ========================================== */
#home-section,
#collection-section,
#team-section,
#battle-section,
#ranking-section,
#shop-section,
#friends-section,
#expedition-section,
#profile-section {
    background: transparent !important;
}

/* ==========================================
   54. FINAL BACKGROUND - Fantasy Theme
   ========================================== */
html {
    background:
        linear-gradient(135deg, 
            rgba(10, 22, 40, 0.92) 0%, 
            rgba(14, 27, 48, 0.9) 50%, 
            rgba(20, 34, 56, 0.92) 100%),
        url('../images/destinations/Fundo.jpg') !important;
    background-size: cover, cover !important;
    background-position: center, center !important;
    background-attachment: fixed, fixed !important;
    background-repeat: no-repeat, no-repeat !important;
    min-height: 100vh !important;
}

body {
    background: transparent !important;
    min-height: 100vh !important;
}

.app-container,
.main-content,
.content-wrapper,
#app,
main {
    background: transparent !important;
}

.mystical-fog,
.energy-orbs,
.css-particles {
    opacity: 0.2 !important;
}

/* ==========================================
   55. HOME CARDS - Fantasy Override
   ========================================== */
.home-secondary-grid {
    gap: 20px !important;
}

.home-card,
.home-card.team-card,
.home-card.items-card {
    background: var(--fantasy-gradient-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.home-card:hover {
    border-color: var(--fantasy-primary) !important;
    box-shadow: var(--fantasy-shadow-lg) !important;
}

.home-card-header {
    border-bottom: 2px solid var(--fantasy-border) !important;
}

.home-card-header h4 {
    color: var(--fantasy-text-primary) !important;
}

.home-card .empty-team,
.home-card .no-items,
.empty-team,
.no-items {
    color: var(--fantasy-text-muted) !important;
}

.team-preview-grid,
.items-preview-grid {
    color: var(--fantasy-text-primary) !important;
}

/* ==========================================
   56. AVAILABLE CREATURES - Fantasy Override
   ========================================== */
.available-creatures-premium {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    border-radius: var(--fantasy-radius-xl) !important;
}

.available-creatures-premium .section-title-premium,
.available-creatures-premium h2 {
    color: var(--fantasy-text-primary) !important;
}

.filters-premium {
    background: var(--fantasy-bg-hover) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-lg) !important;
}

.filter-btn-premium {
    background: var(--fantasy-bg-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    color: var(--fantasy-text-secondary) !important;
}

.filter-btn-premium:hover {
    background: var(--fantasy-bg-hover) !important;
    border-color: var(--fantasy-primary) !important;
    color: var(--fantasy-text-primary) !important;
}

.filter-btn-premium.active {
    background: var(--fantasy-gradient-primary) !important;
    border-color: transparent !important;
    color: var(--fantasy-text-primary) !important;
}

/* ==========================================
   57. SHOP MODERN - Fantasy Override
   ========================================== */
.shop-grid-modern {
    gap: 24px !important;
}

.shop-category-modern {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
    border-radius: var(--fantasy-radius-xl) !important;
}

.shop-category-modern .category-header {
    border-bottom: 2px solid var(--fantasy-border) !important;
}

.shop-category-modern .category-header h3 {
    color: var(--fantasy-text-primary) !important;
}

.shop-items-modern {
    gap: 16px !important;
}

.shop-item-modern {
    background: var(--fantasy-gradient-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-sm) !important;
    border-radius: var(--fantasy-radius-lg) !important;
}

.shop-item-modern:hover {
    border-color: var(--fantasy-accent) !important;
    box-shadow: var(--fantasy-shadow-md), 0 0 15px var(--fantasy-accent-glow) !important;
}

.shop-item-modern .item-name,
.shop-item-modern h4 {
    color: var(--fantasy-text-primary) !important;
}

.shop-item-modern .item-description,
.shop-item-modern p {
    color: var(--fantasy-text-secondary) !important;
}

.shop-item-modern .item-price,
.shop-item-modern .price {
    color: var(--fantasy-accent) !important;
    font-weight: 700 !important;
}

.shop-item-modern .buy-btn,
.shop-item-modern button {
    background: var(--fantasy-gradient-accent) !important;
    border: 2px solid rgba(229, 184, 42, 0.4) !important;
    color: var(--fantasy-text-dark) !important;
}

/* ==========================================
   58. FRIENDS SIDEBAR - Fantasy Override
   ========================================== */
.friends-sidebar,
.friends-panel,
.friends-list-sidebar {
    background: var(--fantasy-gradient-surface) !important;
    border: 2px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.friends-sidebar h3,
.friends-panel h3,
.friends-list-title {
    color: var(--fantasy-text-primary) !important;
}

.friend-item,
.friend-list-item,
.sidebar-friend {
    background: var(--fantasy-gradient-card) !important;
    border: 2px solid var(--fantasy-border) !important;
    border-radius: var(--fantasy-radius-md) !important;
    transition: all var(--fantasy-transition-normal) !important;
}

.friend-item:hover,
.friend-list-item:hover,
.sidebar-friend:hover {
    background: var(--fantasy-bg-hover) !important;
    border-color: var(--fantasy-primary) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.friend-item .friend-name,
.friend-list-item .friend-name,
.sidebar-friend .name {
    color: var(--fantasy-text-primary) !important;
}

.friend-item .friend-level,
.friend-item .friend-status,
.friend-list-item .status {
    color: var(--fantasy-text-secondary) !important;
}

/* ==========================================
   59. TEXT VISIBILITY - Fantasy Theme
   ========================================== */
/* Empty states */
.no-expedition,
.expedition-empty,
.empty-expedition,
.battle-hint,
.battle-description,
.battle-empty,
.no-battles,
.empty-state,
.empty-message,
.placeholder-text,
.hint-text,
.no-data,
.no-results,
.modifiers-hint,
.no-modifiers {
    color: var(--fantasy-text-muted) !important;
}

/* Paragraphs in containers */
.home-card p,
.shop-category-modern p,
.available-creatures-premium p,
.team-slots-premium p,
.ranking-list-section p,
.friends-sidebar p,
.expedition-card p,
.section p,
.card p,
.panel p {
    color: var(--fantasy-text-secondary) !important;
}

/* ==========================================
   60. CREATURE CARDS - Fantasy Override
   ========================================== */
.creatures-grid-premium .creature-card,
.available-creatures-grid .creature-card,
.inventory-grid .creature-card {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-border) !important;
}

.creatures-grid-premium .creature-card:hover,
.available-creatures-grid .creature-card:hover {
    border-color: var(--fantasy-primary) !important;
    box-shadow: var(--fantasy-shadow-lg) !important;
}

.creature-card .creature-name {
    color: var(--fantasy-text-primary) !important;
}

.creature-card .creature-level,
.creature-card .creature-type {
    color: var(--fantasy-text-secondary) !important;
}

.creature-card .creature-stats {
    color: var(--fantasy-accent) !important;
}

/* ==========================================
   61. PROFILE CARDS - Fantasy Override
   ========================================== */
.profile-team-cards,
.profile-team-cards-redesign {
    gap: 16px !important;
}

.profile-team-card,
.profile-team-card-redesign {
    background: var(--fantasy-gradient-card) !important;
    border: 3px solid var(--fantasy-border) !important;
    box-shadow: var(--fantasy-shadow-md) !important;
}

.profile-team-card:hover,
.profile-team-card-redesign:hover {
    border-color: var(--fantasy-primary) !important;
    box-shadow: var(--fantasy-shadow-lg) !important;
}

.profile-team-card h4,
.profile-team-card-redesign h4,
.profile-team-card-header {
    color: var(--fantasy-text-primary) !important;
    border-bottom-color: var(--fantasy-border) !important;
}

.profile-team-card p,
.profile-team-card-redesign p {
    color: var(--fantasy-text-secondary) !important;
}

/* ==========================================
   END OF VISUAL REFRESH - FANTASY THEME
   ========================================== */
