/*
 * components.css - Wiederverwendbare Komponenten für Rocket100 NFT Battle Mini App
 * Enthält: Buttons, Cards, Modals, Loading, Messages, Inputs
 */

/* 🚀 NEW: Discover Sub-Navigation Styles */
.discover-nav {
    margin-bottom: 20px;
    padding: 15px;
}

.discover-nav-buttons {
    display: flex;
    gap: 8px;
}

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

.discover-nav-btn:hover {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-dark);
    color: var(--text-primary);
}

.discover-nav-btn.active {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.discover-section {
    display: none;
}

.discover-section.active {
    display: block;
}

/* 🚀 NEW: Home Page Optimization Styles */

/* Compact Header */
.home-header-card {
    padding: 12px 15px;
    margin-bottom: 15px;
}

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

.home-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.home-credits {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
}

.credit-icon-small {
    width: 16px;
    height: 16px;
}

.home-wallet-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* 🔧 NEW: Battle Limits Display */
.battle-limits-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 8px 0;
}

.battle-limits-title {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.battle-slots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.battle-slot {
    font-size: 16px;
    padding: 4px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.battle-slot.used {
    opacity: 0.3;
    filter: grayscale(100%);
    background: rgba(128, 128, 128, 0.2);
    border-color: var(--text-muted);
}

.battle-slot.available {
    background: rgba(0, 255, 127, 0.2);
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
}

.home-wallet-status {
    font-size: 12px;
    color: var(--text-secondary);
}

.home-connect-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    background: var(--accent-orange);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-connect-btn:hover {
    background: var(--accent-orange-dark);
    transform: translateY(-1px);
}

/* Quick Actions Hub */
.quick-actions-card {
    margin-bottom: 15px;
}

.quick-actions-header {
    margin-bottom: 15px;
}

.quick-actions-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.quick-action-btn.primary {
    border-color: var(--accent-cyan);
    background: linear-gradient(135deg, var(--accent-cyan-dark), var(--accent-cyan));
}

.quick-action-btn.primary:hover {
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
}

.quick-action-btn.secondary {
    border-color: var(--accent-purple);
    background: linear-gradient(135deg, var(--accent-purple-dark), var(--accent-purple));
}

.quick-action-btn.accent {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, var(--accent-gold-dark), var(--accent-gold));
}

.quick-action-btn.info {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, var(--accent-blue-dark), var(--accent-blue));
}

.quick-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.quick-action-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.quick-action-text {
    font-size: 12px;
    font-weight: 600;
    color: white;
}

/* Daily Tasks System */
.daily-tasks-card {
    margin-bottom: 15px;
}

/* Task Type Switcher */
.task-type-switcher {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding: 4px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.task-type-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.task-type-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.task-type-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.3);
}

.task-section {
    display: none;
}

.task-section.active {
    display: block;
}

/* 🚀 NEW: Battles Page Sub-Navigation */
.battles-nav {
    margin-bottom: 20px;
    padding: 15px;
}

.battles-nav-buttons {
    display: flex;
    gap: 8px;
}

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

.battles-nav-btn:hover {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-dark);
    color: var(--text-primary);
}

.battles-nav-btn.active {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.battles-section {
    display: none;
}

.battles-section.active {
    display: block;
}

/* Create Battle Section Styles */
.create-battle-card {
    text-align: center;
    padding: 30px 20px;
}

.create-battle-header {
    margin-bottom: 25px;
}

.create-battle-header h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.create-battle-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.create-battle-actions {
    margin-bottom: 25px;
}

.premium-btn.large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    min-height: 50px;
}

.create-battle-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-secondary);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.info-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 🚀 NEW: Discover Buffs Styles */
.buff-category {
    margin-bottom: 20px;
}

.buff-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-secondary);
}

.buff-category-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.buff-count {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 8px;
}

.buff-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buff-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.buff-item:hover {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-dark);
}

.buff-info {
    flex: 1;
}

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

.buff-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.buff-power {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.daily-tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.daily-tasks-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.tasks-progress {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-cyan);
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 8px;
}

.daily-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.task-item:hover {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-dark);
}

.task-item.completed {
    opacity: 0.7;
    background: var(--bg-success);
    border-color: var(--accent-green);
}

.task-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-info-btn {
    background: var(--accent-cyan);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.task-info-btn:hover {
    background: var(--accent-cyan-dark);
    transform: scale(1.1);
}

.task-reward {
    font-size: 12px;
    color: var(--accent-gold);
    font-weight: 600;
}

.task-action {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.task-action.go {
    background: var(--accent-orange);
    color: white;
}

.task-action.go:hover {
    background: var(--accent-orange-dark);
    transform: translateY(-1px);
}

.task-action.completed {
    background: var(--accent-green);
    color: white;
    cursor: default;
}

.task-action.claim {
    background: var(--accent-gold);
    color: var(--bg-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --- Premium Cards --- */
.premium-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 
        var(--shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        var(--shadow-glow) rgba(6, 110, 225, 0.2);
    border-color: var(--primary-blue);
}

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

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

/* --- Premium Buttons --- */
.premium-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: var(--text-primary);
    border: 2px solid transparent;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 
        var(--shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        var(--shadow-glow) rgba(6, 110, 225, 0.4);
    border-color: var(--accent-cyan);
}

.premium-btn:active {
    transform: translateY(-1px);
}

.premium-btn.success {
    background: linear-gradient(135deg, #00FF7F, #20c997);
    box-shadow: var(--shadow-glow) rgba(0, 255, 127, 0.3);
}

.premium-btn.warning {
    background: linear-gradient(135deg, var(--accent-gold), #FFA500);
    color: var(--dark-bg);
    box-shadow: var(--shadow-glow) rgba(255, 215, 0, 0.3);
}

.premium-btn.danger {
    background: linear-gradient(135deg, #FF4757, #FF3742);
    box-shadow: var(--shadow-glow) rgba(255, 71, 87, 0.3);
}

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

.premium-btn:hover::before {
    left: 100%;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    /* 🚀 FIX: Prevent scroll issues */
    overflow: hidden;
    touch-action: none;
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.nft-modal {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 3px solid var(--primary-blue);
    border-radius: 20px;
    padding: 25px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: auto;
    min-width: 320px;
    box-shadow: 
        var(--shadow-glow) rgba(6, 110, 225, 0.5),
        0 30px 80px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 71, 87, 0.2);
    border: 2px solid #FF4757;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FF4757;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #FF4757;
    color: white;
    transform: scale(1.1);
}

/* --- NFT Modal Specific Styles --- */
.nft-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.nft-modal-image {
    width: 280px;
    height: 350px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid var(--primary-blue);
    box-shadow: 
        var(--shadow-glow) rgba(6, 110, 225, 0.8),
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    background: linear-gradient(145deg, rgba(6, 110, 225, 0.1), rgba(0, 255, 255, 0.1));
}

.nft-modal-image:hover {
    transform: scale(1.03) rotateY(2deg);
    box-shadow: 
        var(--shadow-glow) rgba(6, 110, 225, 1),
        0 30px 80px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--accent-cyan);
}

.nft-modal-name {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 900;
    color: var(--accent-cyan);
    text-shadow: 0 0 15px var(--accent-cyan);
    margin-bottom: 20px;
    line-height: 1.2;
}

.nft-modal-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.nft-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    min-width: 80px;
}

.nft-stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-gold);
    text-shadow: 0 0 15px var(--accent-gold);
}

.nft-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 🚀 NEW: Battle Stats Section Styles */
.nft-battle-stats-section {
    margin-bottom: 25px;
}

.battle-stats-title {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--accent-gold);
}

.battle-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.battle-stat-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
}

.battle-stat-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

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

.battle-stat-icon {
    font-size: 16px;
    margin-right: 8px;
}

.battle-stat-name {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.battle-stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 0 8px var(--accent-gold);
}

.battle-stat-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.battle-stat-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
    border-radius: 4px;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 🚀 NEW: Standard Buffs Section Styles */
.nft-standard-buffs-section {
    margin-top: 20px;
}

.standard-buffs-title {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--accent-cyan);
}

.standard-buffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.standard-buff-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 12px;
}

.standard-buff-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.standard-buff-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 11px;
}

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

/* 🚀 NEW: Applied Battle Buffs Display */
.applied-buffs-title {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--accent-cyan);
}

.applied-buffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.applied-buff-item {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(6, 110, 225, 0.1) 100%);
    border: 1px solid var(--accent-cyan);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 12px;
}

.applied-buff-item:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(6, 110, 225, 0.2) 100%);
    transform: scale(1.05);
    border-color: var(--accent-gold);
}

.applied-buff-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 11px;
}

.applied-buff-power {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan);
}

.nft-buffs-section {
    margin-top: 30px;
}

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

.nft-buff-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.nft-buff-item:hover {
    border-color: var(--primary-blue);
    background: rgba(6, 110, 225, 0.1);
    transform: translateX(5px);
}

.nft-buff-info {
    flex: 1;
}

.nft-buff-name {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.nft-buff-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.nft-buff-percentage {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 900;
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green);
    margin-left: 15px;
    background: rgba(0, 255, 127, 0.1);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--accent-green);
}

/* --- Loading Animations --- */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(6, 110, 225, 0.3);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
    box-shadow: var(--shadow-glow) rgba(6, 110, 225, 0.5);
}

/* --- Messages --- */
.message {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(20px);
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

.message.success {
    background: rgba(0, 255, 127, 0.2);
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: var(--shadow-glow) rgba(0, 255, 127, 0.3);
}

.message.error {
    background: rgba(255, 71, 87, 0.2);
    border-color: #FF4757;
    color: #FF4757;
    box-shadow: var(--shadow-glow) rgba(255, 71, 87, 0.3);
}

.message.info {
    background: rgba(6, 110, 225, 0.2);
    border-color: var(--primary-blue);
    color: var(--accent-cyan);
    box-shadow: var(--shadow-glow) rgba(6, 110, 225, 0.3);
}

.message.fade-out {
    animation: messageSlideOut 0.5s ease forwards;
}

/* --- Input Enhancements --- */
.enhanced-input {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 500;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 
        var(--shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.enhanced-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 
        var(--shadow-glow) rgba(6, 110, 225, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(6, 110, 225, 0.05);
}

.enhanced-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

/* --- Disabled States --- */
.premium-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.premium-btn:disabled:hover {
    transform: none !important;
    box-shadow: var(--shadow-soft);
}

/* --- NFT Selection Modal Styles --- */
.nft-selection-modal {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 2px solid var(--primary-blue);
    border-radius: 20px;
    padding: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: auto;
    min-width: 300px;
    box-shadow: 
        var(--shadow-glow) rgba(6, 110, 225, 0.5),
        0 30px 80px rgba(0, 0, 0, 0.8);
}

/* 🚀 ENHANCED: Buff Application Modal Styles - HIGH SPECIFICITY */
#nft-buff-application-modal .buff-application-info {
    margin-bottom: 20px !important;
}

#nft-buff-application-modal .buff-application-buff {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.4), rgba(247, 147, 30, 0.4)) !important;
    border: 3px solid #ff6b35 !important;
    border-radius: 15px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    box-shadow: 
        0 0 25px rgba(255, 107, 53, 0.6) !important,
        0 8px 30px rgba(0, 0, 0, 0.4) !important,
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    position: relative !important;
    overflow: hidden !important;
}

#nft-buff-application-modal .buff-application-buff::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%) !important;
    animation: shimmer 2s infinite !important;
    pointer-events: none !important;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#nft-buff-application-modal .buff-application-buff #buff-application-name {
    font-weight: 900 !important;
    color: #ff6b35 !important;
    font-size: 20px !important;
    text-shadow: 
        0 0 20px rgba(255, 107, 53, 1) !important,
        0 0 40px rgba(255, 107, 53, 0.6) !important,
        0 0 60px rgba(255, 107, 53, 0.3) !important;
    position: relative !important;
    z-index: 2 !important;
}

#nft-buff-application-modal .buff-application-buff #buff-application-stats {
    font-size: 16px !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8) !important,
        0 0 30px rgba(255, 255, 255, 0.4) !important;
    position: relative !important;
    z-index: 2 !important;
}

#nft-buff-application-modal .buff-application-description {
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    text-align: center !important;
    padding: 18px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) !important;
    border-radius: 15px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2) !important,
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* 🚀 ENHANCED: Modal Container Styles */
#nft-buff-application-modal .nft-selection-modal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)) !important;
    backdrop-filter: blur(30px) !important;
    border: 3px solid #ff6b35 !important;
    border-radius: 25px !important;
    padding: 30px !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    width: auto !important;
    min-width: 350px !important;
    box-shadow: 
        0 0 50px rgba(255, 107, 53, 0.6) !important,
        0 30px 100px rgba(0, 0, 0, 0.8) !important,
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* 🚀 ENHANCED: NFT Grid for Buff Application - EXACTLY LIKE BATTLE MODAL */
#nft-buff-application-modal #nft-buff-application-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    padding: 8px 0 !important;
    justify-content: center !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* 🚀 ENHANCED: NFT Cards for Buff Application - EXACTLY LIKE BATTLE MODAL */
#nft-buff-application-modal #nft-buff-application-grid .nft-selection-card {
    flex: 0 0 calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
    min-height: 250px !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    border: 2px solid var(--glass-border) !important;
    border-radius: 15px !important;
    padding: 8px !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

#nft-buff-application-modal #nft-buff-application-grid .nft-selection-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6) !important,
        var(--shadow-glow) rgba(6, 110, 225, 0.6) !important;
    border-color: var(--primary-blue) !important;
}

#nft-buff-application-modal #nft-buff-application-grid .nft-selection-card.selected {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.7) !important,
        var(--shadow-glow) rgba(0, 255, 255, 0.8) !important;
    border-color: var(--accent-cyan) !important;
    background: rgba(0, 255, 255, 0.1) !important;
}

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

#nft-buff-application-modal #nft-buff-application-grid .nft-selection-card:hover::before,
#nft-buff-application-modal #nft-buff-application-grid .nft-selection-card.selected::before {
    left: 100% !important;
}

/* 🚀 ENHANCED: NFT Images for Buff Application - EXACTLY LIKE BATTLE MODAL */
#nft-buff-application-modal #nft-buff-application-grid .nft-selection-image {
    width: 100% !important;
    aspect-ratio: 1000/1250 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid var(--primary-blue) !important;
    box-shadow: 
        var(--shadow-soft) !important,
        var(--shadow-glow) rgba(6, 110, 225, 0.4) !important;
    transition: all 0.4s ease !important;
    background: linear-gradient(135deg, rgba(6, 110, 225, 0.1), rgba(0, 255, 255, 0.1)) !important;
}

#nft-buff-application-modal #nft-buff-application-grid .nft-selection-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}

#nft-buff-application-modal #nft-buff-application-grid .nft-selection-card:hover .nft-selection-image,
#nft-buff-application-modal #nft-buff-application-grid .nft-selection-card.selected .nft-selection-image {
    border-color: var(--accent-cyan) !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.6) !important,
        var(--shadow-glow) rgba(0, 255, 255, 0.8) !important;
}

/* 🚀 ENHANCED: NFT Info for Buff Application - EXACTLY LIKE BATTLE MODAL */
#nft-buff-application-modal #nft-buff-application-grid .nft-selection-info {
    text-align: center !important;
    margin-top: 8px !important;
    padding: 0 4px !important;
}

#nft-buff-application-modal #nft-buff-application-grid .nft-selection-name {
    font-family: 'Orbitron', monospace !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

#nft-buff-application-modal #nft-buff-application-grid .nft-selection-stats {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 8px !important;
    color: var(--text-secondary) !important;
    gap: 2px !important;
}

#nft-buff-application-modal #nft-buff-application-grid .nft-selection-stats span {
    background: var(--bg-tertiary) !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
    font-size: 7px !important;
    font-weight: 500 !important;
    border: 1px solid var(--border-secondary) !important;
}

/* 🚀 ENHANCED: Modal Title */
#nft-buff-application-modal .nft-selection-title {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8) !important,
        0 0 40px rgba(255, 255, 255, 0.4) !important;
}

/* 🚀 ENHANCED: Modal Close Button */
#nft-buff-application-modal .modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 25px !important;
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #ff4757, #ff3742) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 22px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    box-shadow: 
        0 0 20px rgba(255, 71, 87, 0.6) !important,
        0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

#nft-buff-application-modal .modal-close:hover {
    background: linear-gradient(135deg, #ff3742, #ff2f3a) !important;
    transform: scale(1.15) !important;
    box-shadow: 
        0 0 30px rgba(255, 71, 87, 0.9) !important,
        0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

/* 🚀 ENHANCED: Modal Overlay Improvements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

/* 🚀 ENHANCED: Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: rgba(255, 71, 87, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #ff4757;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.5);
}

.nft-selection-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--glass-border);
}

.nft-selection-title {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-cyan);
    text-shadow: 0 0 15px var(--accent-cyan);
    margin-bottom: 10px;
    line-height: 1.2;
}

.nft-selection-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.nft-selection-content {
    margin-bottom: 25px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

.nft-selection-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 8px 0;
    justify-content: center;
}

.nft-selection-card {
    flex: 0 0 calc(50% - 7.5px);
    max-width: calc(50% - 7.5px);
    min-height: 250px;
}

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

.nft-selection-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        var(--shadow-glow) rgba(6, 110, 225, 0.6);
    border-color: var(--primary-blue);
}

.nft-selection-card.selected {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.7),
        var(--shadow-glow) rgba(0, 255, 255, 0.8);
    border-color: var(--accent-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.nft-selection-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-selection-card:hover::before,
.nft-selection-card.selected::before {
    left: 100%;
}

.nft-selection-image {
    width: 100%;
    aspect-ratio: 1000/1250;
    border-radius: 12px;
    overflow: hidden;
    border: 1px 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-selection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

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

.nft-selection-info {
    text-align: center;
    margin-top: 8px;
    padding: 0 4px;
}

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

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

.nft-selection-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    margin-top: 6px;
    gap: 3px;
}

.nft-selection-stats span {
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 6px;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    flex: 1;
    text-align: center;
    white-space: nowrap;
    font-size: 9px;
}

.nft-selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
}

.nft-selection-card.selected .nft-selection-overlay {
    opacity: 1;
    transform: scale(1);
}

.nft-selection-check {
    font-size: 32px;
    color: var(--dark-bg);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: checkBounce 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nft-selection-actions {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 2px solid var(--glass-border);
}

.nft-selection-actions .premium-btn {
    margin: 0;
}

/* 🚀 NEW: Battle Buff Selection Styles */
.battle-buff-selection-section {
    margin-bottom: 20px;
    padding: 0 20px;
}

.battle-buff-selection-header {
    margin-bottom: 15px;
}

.battle-buff-selection-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.battle-buff-selection-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.selected-buffs-count {
    font-weight: 600;
    color: var(--accent-cyan);
}

.available-battle-buffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-secondary);
}

.battle-buff-selection-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-secondary);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.battle-buff-selection-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

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

.battle-buff-selection-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border-muted);
}

.battle-buff-selection-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
}

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

.battle-buff-selection-check {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent-green);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.modal-divider {
    height: 1px;
    background: var(--border-secondary);
    margin: 20px 0;
}

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

/* --- Buff Encyclopedia Styles --- */
.buff-search {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.buff-search::placeholder {
    color: var(--text-muted);
}

.buff-search:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-glow) rgba(6, 110, 225, 0.3);
    background: rgba(6, 110, 225, 0.1);
}

.buff-categories {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.buff-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 6px 12px;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.buff-category.active {
    background: var(--primary-blue);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow) rgba(6, 110, 225, 0.4);
}

.buff-category:hover {
    border-color: var(--primary-blue);
    color: var(--text-primary);
}

.buff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.buff-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 85px;
}

.buff-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        var(--shadow-glow) rgba(6, 110, 225, 0.3);
    border-color: var(--primary-blue);
}

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

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

.buff-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 8px;
    position: relative;
    padding-top: 20px;
}

.buff-name {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 700;
    flex: 1;
    line-height: 1.2;
    margin-right: 8px;
}

.buff-power {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 900;
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green);
    white-space: nowrap;
}

.buff-description {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 12px;
    margin-top: 6px;
    clear: both;
}

.buff-rarity {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 6px;
    border-radius: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1;
}

.rarity-common {
    background: rgba(169, 169, 169, 0.2);
    color: #A9A9A9;
    border: 1px solid #A9A9A9;
}

.rarity-epic {
    background: rgba(138, 43, 226, 0.2);
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
}

.rarity-legendary {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.rarity-creator {
    background: rgba(0, 255, 255, 0.2);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

/* Discover History NFT Images */
.participant-nft-container {
    width: 40px;
    height: 40px;
    margin: 8px 0;
}

.participant-nft-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.participant-nft-image:hover {
    transform: scale(1.05);
    border-color: var(--accent-orange);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* NFT In Use Styles */
.nft-in-use {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.nft-in-use-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
}

.nft-in-use-text {
    color: var(--text-muted);
    font-size: 10px;
    text-align: center;
    margin-top: 4px;
    font-style: italic;
}

/* Tutorial Modal Styles */
.tutorial-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0 10px;
}

.tutorial-content h3 {
    color: var(--accent-cyan);
    font-size: 18px;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid var(--accent-cyan);
    padding-bottom: 5px;
}

.tutorial-content h4 {
    color: var(--accent-gold);
    font-size: 14px;
    margin: 15px 0 8px 0;
    font-weight: 600;
}

.tutorial-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 10px 0;
}

.tutorial-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.tutorial-content li {
    color: var(--text-secondary);
    margin: 5px 0;
    line-height: 1.4;
}

.tutorial-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.tutorial-tip {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 12px;
    margin: 20px 0;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.4;
}
