/* GPU Calculator Card Styles */
.card-gpu {
    top: 55%;
    right: 15%;
    min-width: 240px;
    max-width: 280px;
}

.card-gpu:not(.dragging):not(.snapping) {
    animation: float 6.2s ease-in-out infinite 1.7s;
}

.gpu-summary {
    text-align: center;
    margin: 15px 0;
}

.gpu-count {
    font-size: 2.2rem;
    font-weight: bold;
    color: #4caf50;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.gpu-model {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* GPU Modal Styles */
.gpu-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.gpu-current-funds {
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.1) 0%, rgba(20, 241, 149, 0.1) 100%);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.funds-label {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.funds-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #9945FF;
}

.funds-usd {
    color: #14F195;
    font-size: 1.2rem;
    margin-left: 10px;
}

/* GPU Selector Tabs */
.gpu-selector {
    margin-bottom: 30px;
}

.gpu-tabs {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 12px;
}

.gpu-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid #444;
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.gpu-tab:hover {
    border-color: #666;
    color: #aaa;
}

.gpu-tab.active {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
    color: #4caf50;
}

/* GPU Details */
.gpu-details {
    margin-bottom: 30px;
}

.gpu-option {
    display: none;
}

.gpu-option.active {
    display: block;
}

.gpu-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.gpu-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.gpu-big-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.gpu-stat-label {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* GPU Visual */
.gpu-visual {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    min-height: 120px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.gpu-icon {
    width: 20px;
    height: 30px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: gpuAppear 0.3s forwards;
}

.gpu-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

.gpu-icon::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background: #ff0;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes gpuAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.3;
    }
}

.gpu-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
}

.gpu-info p {
    color: #aaa;
    margin-bottom: 15px;
    font-style: italic;
}

.gpu-info ul {
    list-style: none;
    padding: 0;
}

.gpu-info li {
    color: #888;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.gpu-info li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4caf50;
}

/* GPU Mix Breakdown */
.gpu-mix-breakdown {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.mix-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 10px;
}

.mix-item:last-child {
    margin-bottom: 0;
}

.mix-gpu-name {
    font-weight: 600;
    color: #fff;
}

.mix-gpu-count {
    color: #4caf50;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
}

/* Milestone Progress */
.gpu-milestone {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
}

.milestone-label {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.milestone-target {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.milestone-progress {
    margin-top: 15px;
}

.milestone-bar {
    height: 30px;
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.milestone-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    position: relative;
}

.milestone-fill::after {
    content: attr(data-progress);
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Mobile Styles */
@media (max-width: 1279px) {
    .mobile-gpu-header {
        font-size: 1.1rem;
        font-weight: bold;
        text-align: center;
        margin-bottom: 15px;
        color: #fff;
    }
    
    .mobile-gpu-preview {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .mobile-gpu-count {
        font-size: 1.8rem;
        font-weight: bold;
        color: #4caf50;
        display: block;
        text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    }
    
    .mobile-gpu-model {
        font-size: 0.85rem;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .gpu-modal {
        max-width: 100%;
    }
    
    .gpu-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gpu-tabs {
        flex-direction: column;
    }
    
    .gpu-tab {
        width: 100%;
    }
}