/* 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, #11100f 0%, #11100f 100%);
  min-height: 100vh;
  color: #f9f5e7;
  line-height: 1.6;
}

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

/* Header */
.header {
  background: #262320;
  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: #f9f5e7;
  display: flex;
  align-items: anchor-center;
  gap: 4px;
}

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

.logo-image {
  width: 170px;
  height: auto;
  display: block;
}

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

/* Language control */
.lang-control {
  display: inline-flex;
  padding: 4px;
  background: #d6a11b;
  border: 1px solid #635b44;
  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: #f9f5e7;
  font-weight: 500;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  background: rgba(214, 161, 27, 0.08);
  color: #f9f5e7;
}

.lang-btn.active {
  background: #262320;
  color: #f9f5e7;
  box-shadow: 0 6px 18px rgba(214, 161, 27, 0.18);
}

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

.status-dot.connected {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

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

.last-update {
  color: #635b44;
  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: #262320;
  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: #f9f5e7;
}

.metric-card.devices .metric-icon {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

.metric-card.balance .metric-icon {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

.metric-card.withdrawals .metric-icon {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

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

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

.metric-label {
  font-size: 14px;
  color: #635b44;
}

/* Section Titles */
.section-title {
  font-size: 24px;
  font-weight: 500;
  color: #f9f5e7;
  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: #262320;
  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 #262320;
}

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

.hardware-card.cpu .hardware-header i {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

.hardware-card.ram .hardware-header i {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

.hardware-card.disk .hardware-header i {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

.hardware-card.gpu .hardware-header i {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

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

.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: #635b44;
  font-weight: 500;
}

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

/* 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: #262320;
  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: #f9f5e7;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

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

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

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

.wallet-address {
  font-size: 12px;
  font-weight: 500;
  color: #f9f5e7;
  word-break: break-all;
  background: linear-gradient(135deg, #d6a11b, #fac36b);
  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: #262320;
  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: #f9f5e7;
}

.distribution-card .distribution-header i {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

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

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

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

.chart-container {
  background: #262320;
  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: #262320;
  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 #262320;
}

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

.chart-fullscreen-close {
  background: #dc2626;
  border: none;
  color: #f9f5e7;
  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: #262320;
  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: #f9f5e7;
}

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

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

.btn-secondary {
  background: #262320;
  color: #f9f5e7;
  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, #d6a11b, #fac36b);
  border: none;
  color: #f9f5e7;
  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: #262320;
  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: #635b44;
}

.date-input {
  padding: 8px 12px;
  border: 1px solid #262320;
  border-radius: 6px;
  font-size: 14px;
  background: #262320;
  color: #f9f5e7;
}

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

.history-stats {
  background: #262320;
  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: #f9f5e7;
}

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

.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: #262320;
  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, #d6a11b 0%, #fac36b 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: #262320;
  border-radius: 10px;
  border: 1px solid #262320;
  transition: all 0.2s ease;
}

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

.history-stat span {
  font-weight: 400;
  color: #635b44;
  -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, #d6a11b 0%, #fac36b 100%);
  color: #f9f5e7;
  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(214, 161, 27, 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: #262320;
  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: #f9f5e7;
  font-size: 14px;
}

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

#refreshHistory {
  background: #262320;
}

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

.period-selector select:focus {
  outline: none;
  border-color: #d6a11b;
  box-shadow: 0 0 0 3px rgba(214, 161, 27, 0.1);
}

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

.chart-card {
  background: #262320;
  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: #f9f5e7;
  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: #f9f5e7;
  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: #262320;
  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, #d6a11b, #fac36b);
  color: #f9f5e7;
  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: #262320;
  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: #f9f5e7;
  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: #b8a97a;
  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: #f9f5e7;
  font-size: 12px;
}

.input-group.cpu label i {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

.input-group.gpu label i {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

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

.input-group.disk label i {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

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

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: #d6a11b;
}

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

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

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

.gpu-selection label,
.cpu-selection label {
  font-size: 13px;
  font-weight: 500;
  color: #fac36b;
  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 #262320;
  border-radius: 8px;
  background: #262320;
  color: #f9f5e7;
  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: #d6a11b;
  box-shadow: 0 0 0 2px rgba(214, 161, 27, 0.1);
  background: #262320; /* Slightly lighter when focused */
}

/* Placeholder styling */
.gpu-search-input::placeholder,
.cpu-search-input::placeholder {
  color: #635b44;
  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: #262320;
  border: 1px solid #262320;
  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, #262320 0%, #262320 90%, #11100f 100%);
}

.gpu-option,
.cpu-option {
  padding: 16px 20px; /* Increased padding for better touch targets */
  color: #f9f5e7;
  cursor: pointer;
  border-bottom: 1px solid #262320;
  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: #262320;
  color: #fac36b;
  transform: translateX(2px); /* Slight movement for visual feedback */
}

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

/* Keyboard navigation highlight */
.gpu-option.keyboard-active,
.cpu-option.keyboard-active {
  background: #d6a11b;
  color: #f9f5e7;
  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: #635b44;
  font-weight: 400;
}

.btn-clear-gpu,
.btn-clear-cpu {
  padding: 8px 12px;
  border: none;
  background: #dc2626;
  color: #f9f5e7;
  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: #262320;
}

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

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

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

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

.results-card {
  background: #262320;
  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: #f9f5e7;
  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: #262320;
  border-radius: 12px;
  border: 1px solid #262320;
  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: #f9f5e7;
}

.result-item.total .result-icon {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

.result-item.daily .result-icon {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

.result-item.monthly .result-icon {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

.result-content {
  flex: 1;
}

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

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

/* 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: #262320;
  border-radius: 8px;
  border: 1px solid #262320;
}

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

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

.breakdown-item .component-name i {
  background: linear-gradient(135deg, #d6a11b, #fac36b);
}

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

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

/* Help Content */
.help-card {
  background: #262320;
  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: #f9f5e7;
  margin-bottom: 24px;
  text-align: center;
}

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

.help-section {
  padding: 20px;
  background: #262320;
  border-radius: 12px;
  border: 1px solid #d6a11b;
}

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

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

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

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

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

.help-section strong {
  color: #635b44;
  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;
  }
}
