/*
 * profile.css - Profile und NFT Gallery Styles für Rocket100 NFT Battle Mini App
 * Enthält: Profile Header, Avatar, Stats, NFT Gallery, Credits, Wallet
 */

/* --- User Credits Display --- */
.user-credits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--credit-gold);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    animation: userCreditsGlow 4s ease-in-out infinite;
}

.user-credits::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    animation: creditShimmer 3s ease-in-out infinite;
}

.credit-icon-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--credit-gold);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 60%),
                linear-gradient(135deg, var(--credit-gold), #FFB300);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 0 15px var(--credit-glow);
    animation: coinSpin 4s linear infinite;
    z-index: 2;
}

.credit-info {
    text-align: center;
    z-index: 2;
}

.credit-amount {
    font-family: 'Orbitron', monospace;
    font-size: 32px;
    font-weight: 900;
    color: var(--credit-gold);
    text-shadow: 
        0 0 15px var(--credit-glow),
        0 0 30px var(--credit-glow),
        0 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1;
    margin-bottom: 5px;
    animation: creditPulse 2s ease-in-out infinite;
}

.credit-label {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Credit History --- */
.credit-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.credit-history-title {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--primary-blue);
}

.credit-history-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.credit-history-summary {
    margin-bottom: 20px;
}

.summary-card {
    background: linear-gradient(135deg, rgba(6, 110, 225, 0.1), rgba(0, 255, 255, 0.05));
    border: 1px solid var(--primary-blue);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.summary-stat {
    text-align: center;
    flex: 1;
}

.summary-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    margin-bottom: 5px;
}

.summary-stat .stat-value.positive {
    color: var(--accent-green);
}

.summary-stat .stat-value.negative {
    color: var(--accent-red);
}

.summary-stat .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credit-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credit-transaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    font-size: 14px;
}

.credit-transaction:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.credit-transaction.recent {
    border-color: var(--accent-green);
    background: rgba(0, 255, 0, 0.05);
}

.transaction-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.transaction-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.transaction-info {
    flex: 1;
}

.transaction-description {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
}

.transaction-date {
    color: var(--text-secondary);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-badge {
    background: var(--accent-green);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-amount {
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.transaction-amount.positive {
    color: var(--accent-green);
    background: rgba(0, 255, 0, 0.1);
}

.transaction-amount.negative {
    color: var(--accent-red);
    background: rgba(255, 0, 0, 0.1);
}

.transaction-amount.neutral {
    color: var(--text-secondary);
}

.credit-transaction:last-child {
    border-bottom: none;
}

/* --- Profile Header --- */
.profile-header {
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border: 2px solid var(--accent-cyan);
    box-shadow: var(--shadow-glow) rgba(0, 255, 255, 0.3);
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    animation: profileGlow 8s linear infinite;
    pointer-events: none;
}

.profile-avatar-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50% !important;
    border: 4px solid var(--accent-gold) !important;
    overflow: visible;
    background: var(--glass-bg);
    box-shadow: 
        var(--shadow-glow) rgba(255, 215, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.4);
    animation: avatarPulse 3s ease-in-out infinite;
}

.profile-avatar .user-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 50%;
}

.refresh-emoji-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 2px solid var(--accent-gold);
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.refresh-emoji-btn:hover {
    background: var(--accent-gold);
    transform: rotate(180deg);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.profile-rocket {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    font-size: 14px;
    background: radial-gradient(circle at 30% 30%, #fff2 0%, #0000 60%), linear-gradient(135deg, #FFD700, #FFB300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 2px solid var(--text-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.35), 0 0 8px rgba(255,215,0,0.5);
    z-index: 5;
    pointer-events: none;
    animation: rocketBounce 2s ease-in-out infinite;
}

.profile-info {
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
}

.profile-name {
    font-family: 'Orbitron', monospace;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 0 0 15px var(--accent-cyan);
    margin-bottom: 8px;
}

.profile-wallet {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

.wallet-icon {
    font-size: 14px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    z-index: 2;
    position: relative;
}

.profile-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 8px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    flex: 1;
    min-width: 60px;
    transition: all 0.3s ease;
}

.profile-stat:first-child {
    border-color: var(--credit-gold);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: var(--shadow-glow) rgba(255, 215, 0, 0.2);
}

.profile-stat:first-child .profile-stat-value {
    color: var(--credit-gold);
    text-shadow: 0 0 12px var(--credit-glow);
}

.profile-stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 900;
    color: var(--accent-green);
    text-shadow: 0 0 8px var(--accent-green);
    margin-bottom: 4px;
}

.profile-stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- NFT Collection --- */
.nft-collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.nft-collection-title {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--primary-blue);
    margin: 0;
}

.nft-collection-count {
    background: rgba(0, 255, 255, 0.2);
    color: var(--accent-cyan);
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid var(--accent-cyan);
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 0 8px var(--accent-cyan);
}

.nft-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.nft-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nft-card:hover {
    transform: translateY(-8px) rotateY(5deg);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        var(--shadow-glow) rgba(6, 110, 225, 0.8);
    border-color: var(--accent-cyan);
}

.nft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.nft-card:hover::before {
    left: 100%;
}

.nft-image {
    width: 100%;
    aspect-ratio: 1000/1250;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
    box-shadow: 
        var(--shadow-soft),
        var(--shadow-glow) rgba(6, 110, 225, 0.4);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, rgba(6, 110, 225, 0.1), rgba(0, 255, 255, 0.1));
}

.nft-card:hover .nft-image {
    border-color: var(--accent-cyan);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        var(--shadow-glow) rgba(0, 255, 255, 0.8);
}

.nft-info {
    text-align: center;
    margin-top: 10px;
}

.nft-name {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 0 8px var(--primary-blue);
}

.nft-buffs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}

.nft-buff-count {
    color: var(--accent-green);
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-shadow: 0 0 8px var(--accent-green);
}

.nft-buff-power {
    color: var(--accent-gold);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-shadow: 0 0 8px var(--accent-gold);
}

.nft-battle-stats {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-green);
    padding: 4px 8px;
    border-radius: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 8px;
    font-weight: 700;
    border: 1px solid var(--accent-green);
    text-shadow: 0 0 8px var(--accent-green);
}

.nft-victory-crown {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 16px;
    animation: crownFloat 3s ease-in-out infinite;
}

/* --- Empty States --- */
.nft-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.nft-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px dashed var(--glass-border);
    border-radius: 15px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.6;
    animation: emptyStateFloat 3s ease-in-out infinite;
}

.empty-state-title {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--primary-blue);
}

.empty-state-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* --- Wallet Status --- */
.wallet-status {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.wallet-connected {
    border-color: var(--accent-green);
    background: rgba(0, 255, 127, 0.1);
    box-shadow: var(--shadow-glow) rgba(0, 255, 127, 0.2);
}

.wallet-address {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    word-break: break-all;
}

/* --- Profile Photo Styles --- */
.user-profile-image, .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    background: var(--glass-bg);
}

/* 🗑️ REMOVE: Alte Profile Photo Section */
.profile-photo-section {
    display: none !important;
}

/* 🚀 NEW: Profile Tabs System */
.profile-tabs-card {
    margin-bottom: 15px;
}

.profile-tabs-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.profile-tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-tab-btn.active {
    background: var(--accent-cyan);
    color: white;
    border-color: var(--accent-cyan);
}

.profile-tab-btn:hover:not(.active) {
    background: var(--bg-tertiary);
    border-color: var(--accent-cyan);
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* 🚀 NEW: Battle Buffs System */
.battle-buffs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.battle-buffs-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.battle-buffs-count {
    font-size: 14px;
    color: var(--accent-gold);
    font-weight: 600;
}

.battle-buffs-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.buff-category-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buff-category-btn.active {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.buff-category-btn:hover:not(.active) {
    background: var(--bg-tertiary);
    border-color: var(--accent-orange);
}

.battle-buffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.battle-buff-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(6, 110, 225, 0.05) 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(6, 110, 225, 0.1);
}

.battle-buff-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 20px rgba(6, 110, 225, 0.2);
}

.battle-buff-card.owned {
    border-color: var(--accent-green);
    background: var(--bg-success);
}

.battle-buff-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.battle-buff-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.battle-buff-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 6px;
}

.battle-buff-description {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.2;
}

.battle-buff-stats {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.battle-buff-stat {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
    background: var(--bg-tertiary);
}

.battle-buff-stat.attack {
    color: #ff6b6b;
}

.battle-buff-stat.defense {
    color: #4ecdc4;
}

.battle-buff-stat.heal {
    color: #96ceb4;
}

.battle-buff-actions {
    display: flex;
    gap: 6px;
}

.battle-buff-btn {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.battle-buff-btn.buy {
    background: var(--accent-orange);
    color: white;
}

.battle-buff-btn.buy:hover {
    background: var(--accent-orange-dark);
}

.battle-buff-btn.owned {
    background: var(--accent-green);
    color: white;
    cursor: default;
}

.battle-buff-btn.insufficient {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.battle-buffs-inventory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.inventory-buff-card {
    background: var(--bg-success);
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.inventory-buff-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.inventory-buff-stats {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* 🚀 NEW: Apply Buff Button */
.apply-buff-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.apply-buff-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}





.buff-application-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* 🚀 NEW: Confirmation Warning */
.confirmation-warning {
    text-align: center;
    padding: 20px;
}

.warning-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.warning-title {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 15px;
}

.warning-description {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.warning-details ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.warning-details li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.warning-details li:last-child {
    border-bottom: none;
}

/* 🚀 NEW: Danger Button */
.premium-btn.danger {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border: 2px solid #ff4757;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.premium-btn.danger:hover {
    background: linear-gradient(135deg, #ff3742, #ff2f3a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

/* 🚀 NEW: NFT Grid for Buff Application */
#nft-buff-application-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

#nft-buff-application-grid .nft-selection-card {
    display: flex !important;
    flex-direction: column !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
    border: 3px solid var(--primary-blue) !important;
    border-radius: 15px !important;
    padding: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    position: relative !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2) !important,
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

#nft-buff-application-grid .nft-selection-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 
        0 8px 25px rgba(6, 110, 225, 0.4) !important,
        0 0 20px rgba(6, 110, 225, 0.3) !important;
    border-color: var(--accent-cyan) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08)) !important;
}

#nft-buff-application-grid .nft-selection-card.selected {
    border-color: #ff6b35 !important;
    border-width: 3px !important;
    box-shadow: 
        0 0 25px rgba(255, 107, 53, 0.7) !important,
        0 8px 30px rgba(255, 107, 53, 0.4) !important,
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(247, 147, 30, 0.2)) !important;
    transform: scale(1.02) !important;
}

#nft-buff-application-grid .nft-selection-image {
    width: 100% !important;
    aspect-ratio: 4 / 5 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

#nft-buff-application-grid .nft-selection-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

#nft-buff-application-grid .nft-selection-card:hover .nft-selection-image img {
    transform: scale(1.05) !important;
}

#nft-buff-application-grid .nft-selection-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

#nft-buff-application-grid .nft-selection-name {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 6px !important;
    text-align: center !important;
    line-height: 1.2 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

#nft-buff-application-grid .nft-selection-stats {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 10px !important;
    color: #ffffff !important;
    gap: 3px !important;
}

#nft-buff-application-grid .nft-selection-stats span {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)) !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px) !important;
}

/* 🚀 NEW: Battle Buffs Indicator */
.battle-buffs-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    z-index: 2;
}

/* 🚀 NEW: NFT with Battle Buffs */
.nft-card.has-battle-buffs {
    border: 2px solid #ff6b35;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.nft-card.has-battle-buffs:hover {
    border-color: #f7931e;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

/* 🚀 NEW: Permanent Battle Buffs Display */
.nft-permanent-buffs {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: 6px;
    padding: 4px 6px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    border-radius: 6px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.nft-permanent-buffs span {
    font-size: 10px;
    font-weight: 600;
    color: #ff6b35;
    text-shadow: 0 0 4px rgba(255, 107, 53, 0.3);
}
