/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-family: "Montserrat", sans-serif;
    background: linear-gradient(135deg, #141417 0%, #0e0c11 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}


.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.header-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    display: flex;
    align-items: anchor-center;
    gap: 4px;
}

.logo i {
    font-size: 32px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #99a0ae;
}

/* Language control */
.lang-control {
    display: inline-flex;
    padding: 4px;
    background: #b5a4ff;
    border: 1px solid #99a0ae;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
}

.lang-btn {
    border: none;
    background: transparent;
    color: #374151;
    font-weight: 500;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #111827;
}

.lang-btn.active {
    background: #2B2B36;
    color: #fff;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.18);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fbbf24;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    ;
}

.status-dot.error {
    background: linear-gradient(135deg, #808185, #434242);
    ;
}

.last-update {
    color: #99a0ae;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main Metrics */
.main-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.metric-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.metric-card.devices .metric-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);

}

.metric-card.balance .metric-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.metric-card.withdrawals .metric-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.metric-content h3 {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 14px;
    color: #9ca3af;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 500;
    color: white;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hardware Section */
.hardware-section {
    margin-bottom: 40px;
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.hardware-card {
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hardware-card:hover {
    transform: translateY(-2px);
}

.hardware-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #484848;
}

.hardware-header i {
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hardware-card.cpu .hardware-header i {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.hardware-card.ram .hardware-header i {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.hardware-card.disk .hardware-header i {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.hardware-card.gpu .hardware-header i {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.hardware-header h3 {
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
}

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

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

.stat label {
    font-size: 14px;
    color: #99a0ae;
    font-weight: 500;
}

.stat span {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
}

/* Rewards Section */
.rewards-section {
    margin-bottom: 40px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.reward-card {
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.reward-card:hover {
    transform: translateY(-2px);
}

.reward-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}



.reward-content h3 {
    font-size: 16px;
    font-weight: 400;
    color: #99a0ae;
    margin-bottom: 8px;
}

.reward-value {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
}

.reward-time {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.wallet-address {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    word-break: break-all;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
}

/* Rewards Distribution Section */
.rewards-distribution-section {
    margin-bottom: 40px;
}

.distribution-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.distribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.distribution-card {
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.distribution-card:hover {
    transform: translateY(-2px);
}

.distribution-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.distribution-header i {
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.distribution-card .distribution-header i {
    background: linear-gradient(135deg, #667eea, #764ba2);
}



.distribution-header h3 {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
}

.distribution-value {
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
}

.distribution-percent {
    font-size: 14px;
    color: #99a0ae;
    font-weight: 500;
}

.chart-container {
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: 400px;
    position: relative;
}

.chart-container canvas {
    max-height: 350px !important;
    cursor: pointer; /* Indicate clickable charts */
}

/* Fullscreen chart modal (PC only) */
.chart-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.chart-fullscreen-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.chart-fullscreen-container {
    background: #2B2B36;
    border-radius: 16px;
    padding: 32px;
    width: 90vw;
    height: 80vh;
    max-width: 1400px;
    max-height: 800px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

.chart-fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #4f4f5d;
}

.chart-fullscreen-title {
    color: #e2e8f0;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.chart-fullscreen-close {
    background: #dc2626;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.chart-fullscreen-close:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.chart-fullscreen-content {
    height: calc(100% - 80px);
    position: relative;
}

.chart-fullscreen-canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Hide fullscreen functionality on mobile/tablet */
@media (max-width: 1024px) {
    .chart-container canvas {
        cursor: default !important;
    }
    
    .chart-fullscreen-overlay {
        display: none !important;
    }
}

/* History Section */
.history-section {
    margin-bottom: 40px;
}

.history-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.history-tabs {
    display: flex;
    gap: 8px;
}

.history-tab {
    background: #2B2B36;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.history-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.history-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.history-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    background: #3d3d4b;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* History Content */
.history-content {
    display: none;
}

.history-content.active {
    display: block;
}

.history-filters {
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #99a0ae;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #2B2B36;
    color: #ffffff;
}

::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.history-stats {
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.history-stat-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.history-stat-item span:first-child {
    color: #fff;
}

.history-stat-item span:last-child {
    font-weight: 400;
    color: #99a0ae;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.history-grid.detailed {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.history-item {
    background: #2B2B36;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.history-item h4 {
    font-size: 18px;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    text-align: center;
}

.history-item .history-stats {
    background: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    font-size: 13px;
}

.history-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #2B2B36;
    border-radius: 10px;
    border: 1px solid #363643;
    transition: all 0.2s ease;
}


.history-stat label {
    color: #ffffff;
    font-weight: 500;
    font-size: 12px;
}

.history-stat span {
    font-weight: 400;
    color: #99a0ae;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Компактный вид истории */
.history-item.compact {
    padding: 20px;
}

.history-item.compact .main-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .history-item.compact .main-stats {
        grid-template-columns: 1fr;
    }
}

.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 12px 0 8px 0;
}

.expand-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.expand-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.detailed-stats {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(229, 231, 235, 0.4);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

.history-pagination {
    text-align: center;
    margin-top: 24px;
}

/* Chart Controls */
.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.period-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.period-selector label {
    font-weight: 400;
    color: #fff;
    font-size: 14px;
}

.period-selector select {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #2B2B36;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

#refreshHistory {
    background: #2B2B36;
}

.period-selector select:hover {
    border-color: #667eea;
}

.period-selector select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.chart-card {
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: 400px;
    position: relative;
    display: flex;
    cursor: pointer;
    flex-direction: column;
}

.chart-card h3 {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 16px;
    text-align: center;
    flex-shrink: 0;
}

.chart-card canvas {
    flex: 1;
    max-height: 320px !important;
    width: 100% !important;
}

.loading {
    text-align: center;
    color: white;
    font-size: 16px;
    padding: 40px;
    grid-column: 1 / -1;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .header {
        padding: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .logo {
        font-size: 24px;
    }

    .main-metrics {
        grid-template-columns: 1fr;
    }

    .metric-card {
        padding: 24px;
    }

    .metric-value {
        font-size: 28px;
    }

    .hardware-grid {
        grid-template-columns: 1fr;
    }

    .rewards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .distribution-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .distribution-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .history-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .history-tabs {
        justify-content: center;
    }

    .history-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .history-stats {
        flex-direction: column;
        gap: 16px;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .metric-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .rewards-grid {
        grid-template-columns: 1fr;
    }

    .distribution-grid {
        grid-template-columns: 1fr;
    }

    .history-tabs {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }

 
}

@media (max-width: 530px) {
    .chart-controls .btn-primary {
        padding: 12px 6px;
        font-size: 12px;
        margin-left: 8px;
    }
}

/* Calculator Section Styles */
.calculator-section {
    margin-bottom: 40px;
}

/* Calculator Tabs */
.calculator-controls {
    margin-bottom: 24px;
}

.calculator-tabs {
    display: flex;
    gap: 4px;
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.calculator-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calculator-tab:hover {
    background: rgba(83, 83, 83, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.calculator-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calculator-tab i {
    font-size: 16px;
}

/* Calculator Content */
.calculator-content {
    display: none;
}

.calculator-content.active {
    display: block;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Calculator Inputs */
.calculator-card {
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.calculator-card h3 {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.input-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 400;
    color: #a4a4a4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group label i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: white;
    font-size: 12px;
}

.input-group.cpu label i {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.input-group.gpu label i {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.input-group.ram label i {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.input-group.disk label i {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}



.input-group input {
    padding: 12px 16px;
    border: 1px solid #4f4f5d;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: #3d3d4b;
    transition: all 0.3s ease;
    color: #fff;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group input:focus {
    outline: none;
    border-color: #764ba2;
}

.network-info {
    font-size: 12px;
    color: #99a0ae;
    padding: 4px 0;
}

.network-info span {
    font-weight: 500;
}

/* GPU and CPU Selection Styles */
.gpu-selection,
.cpu-selection {
    margin: 12px 0;
    padding: 16px;
    background: #1a1b23;
    border-radius: 12px;
    border: 1px solid #4f4f5d;
}

.gpu-selection label,
.cpu-selection label {
    font-size: 13px;
    font-weight: 500;
    color: #c4b5fd;
    margin-bottom: 8px;
    display: block;
}

.gpu-search-container,
.cpu-search-container {
    position: relative;
    margin-bottom: 12px;
}

.gpu-search-input,
.cpu-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #4f4f5d;
    border-radius: 8px;
    background: #3d3d4b;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    /* Better touch/click targets */
    min-height: 44px;
    box-sizing: border-box;
}

.gpu-search-input:focus,
.cpu-search-input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
    background: #424252; /* Slightly lighter when focused */
}

/* Placeholder styling */
.gpu-search-input::placeholder,
.cpu-search-input::placeholder {
    color: #9ca3af;
    opacity: 0.8;
}

.gpu-dropdown,
.cpu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 320px; /* Increased height to show more GPUs */
    overflow-y: auto;
    background: #3d3d4b;
    border: 1px solid #4f4f5d;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* Smooth scrolling for better UX */
    scroll-behavior: smooth;
    /* Add subtle gradient to indicate scrollable content */
    background: linear-gradient(to bottom, #3d3d4b 0%, #3d3d4b 90%, #2a2a35 100%);
}

.gpu-option,
.cpu-option {
    padding: 16px 20px; /* Increased padding for better touch targets */
    color: #e2e8f0;
    cursor: pointer;
    border-bottom: 1px solid #4f4f5d;
    transition: all 0.15s ease; /* Faster transition for responsiveness */
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none; /* Prevent text selection on multiple clicks */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Better touch interaction */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.gpu-option:hover,
.gpu-option:active,
.gpu-option.keyboard-active,
.cpu-option:hover,
.cpu-option:active,
.cpu-option.keyboard-active {
    background: #5a5a6b;
    color: #c4b5fd;
    transform: translateX(2px); /* Slight movement for visual feedback */
}

/* Better active state for touchpad/touch devices */
.gpu-option:active,
.cpu-option:active {
    background: #6b6b7d;
    transform: scale(0.98);
}

/* Keyboard navigation highlight */
.gpu-option.keyboard-active,
.cpu-option.keyboard-active {
    background: #667eea;
    color: #ffffff;
    transform: translateX(4px);
}

.gpu-option:last-child,
.cpu-option:last-child {
    border-bottom: none;
}

.gpu-option-name,
.cpu-option-name {
    font-weight: 500;
    font-size: 14px;
}

.gpu-option-index,
.cpu-option-index {
    font-size: 12px;
    color: #99a0ae;
    font-weight: 400;
}

.btn-clear-gpu,
.btn-clear-cpu {
    padding: 8px 12px;
    border: none;
    background: #dc2626;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-clear-gpu:hover,
.btn-clear-cpu:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Scrollbar for GPU dropdown */
.gpu-dropdown::-webkit-scrollbar,
.cpu-dropdown::-webkit-scrollbar {
    width: 6px;
}

.gpu-dropdown::-webkit-scrollbar-track,
.cpu-dropdown::-webkit-scrollbar-track {
    background: #3d3d4b;
}

.gpu-dropdown::-webkit-scrollbar-thumb,
.cpu-dropdown::-webkit-scrollbar-thumb {
    background: #5a5a6b;
    border-radius: 3px;
}

.gpu-dropdown::-webkit-scrollbar-thumb:hover,
.cpu-dropdown::-webkit-scrollbar-thumb:hover {
    background: #6b6b7d;
}

.calculator-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Calculator Results */
.calculator-results {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.results-card {
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.results-card h3,
.results-card h4 {
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 20px;
}

.results-card h4 {
    font-size: 16px;
    margin-top: 32px;
    margin-bottom: 16px;
}

.results-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #2b2b36;
    border-radius: 12px;
    border: 1px solid #363643;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.result-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.result-item.total .result-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.result-item.daily .result-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.result-item.monthly .result-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.result-content {
    flex: 1;
}

.result-label {
    font-size: 14px;
    color: #99a0ae;
    font-weight: 500;
    margin-bottom: 4px;
}

.result-value {
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
}

/* Share Breakdown */
.breakdown-grid {
    display: grid;
    gap: 12px;
}

.breakdown-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #2b2b36;
    border-radius: 8px;
    border: 1px solid #363643;
}

.component-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: #ffffff;
}

.component-name i {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: white;
    font-size: 10px;
}

.breakdown-item .component-name i {
    background: linear-gradient(135deg, #667eea, #764ba2);
}



.share-percent {
    font-weight: 500;
    color: #667eea;
    text-align: center;
}

.reward-amount {
    font-weight: 400;
    color: #99a0ae;
    text-align: right;
}

/* Help Content */
.help-card {
    background: #2B2B36;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.help-card h3 {
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: center;
}

.help-content {
    display: grid;
    gap: 24px;
}

.help-section {
    padding: 20px;
    background: #2B2B36;
    border-radius: 12px;
    border: 1px solid #705ebd;
}

.help-section h4 {
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-section h4 i {
    color: #6b6cd1;
}

.help-section p {
    color: #99a0ae;
    line-height: 1.6;
    margin-bottom: 12px;
}

.help-section ul,
.help-section ol {
    color: #ffffff;
    line-height: 1.6;
    padding-left: 20px;
}

.help-section li {
    margin-bottom: 8px;
}

.help-section strong {
    color: #99a0ae;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 1024px) {
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .calculator-actions {
        flex-direction: column;
    }

    .calculator-tabs {
        flex-direction: column;
        gap: 2px;
    }

    .calculator-tab {
        padding: 16px 24px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .breakdown-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .results-grid {
        gap: 12px;
    }

    .result-item {
        padding: 16px;
    }

    .calculator-card,
    .results-card,
    .calculator-chart {
        padding: 20px;
    }
}