/* =========================================================
   XPrivFi HexGrid Miner – metallic crypto-chip style
   ========================================================= */

/* Page container override */
.miner-page {
  max-width: 1300px;
  margin: 0 auto;
}

/* Layout */
.miner-section {
  max-width: 1300px;
  margin: 0 auto;
}

.miner-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

/* Left panel */
.miner-panel {
  border-radius: 24px;
  padding: 22px 22px 20px;
  background: radial-gradient(circle at top, rgba(110, 150, 255, 0.25), rgba(7, 12, 30, 0.98));
  border: 1px solid rgba(150, 170, 255, 0.65);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.9);
}

.miner-title {
  font-size: 26px;
  margin-bottom: 6px;
}

.miner-subtitle {
  font-size: 14px;
  color: #9ba9df;
  margin-bottom: 14px;
}

/* Phase pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(140, 170, 255, 0.7);
  background: rgba(7, 17, 40, 0.9);
  color: #c6d3ff;
  margin-bottom: 16px;
}

.status-pill--lobby {
  border-color: rgba(80, 220, 170, 0.8);
  box-shadow: 0 0 16px rgba(80, 220, 170, 0.6);
}

.status-pill--mining {
  border-color: rgba(130, 160, 255, 0.9);
  box-shadow: 0 0 16px rgba(130, 160, 255, 0.7);
}

.status-pill--winner {
  border-color: rgba(255, 210, 90, 0.9);
  box-shadow: 0 0 16px rgba(255, 210, 90, 0.7);
}

/* Wallet row */
.miner-wallet-row {
  margin-bottom: 10px;
}

.miner-wallet-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(130, 150, 255, 0.75);
  background: rgba(4, 8, 24, 0.95);
  color: #e4ecff;
  font-size: 14px;
}

/* Buttons */
.miner-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 18px;
}

.miner-btn {
  flex: 1;
  min-width: 120px;
}

.btn-disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none !important;
  transform: none !important;
}

/* Timer card */
.miner-timer-card {
  border-radius: 18px;
  padding: 14px 14px 16px;
  background: radial-gradient(circle at top, rgba(60, 100, 220, 0.25), rgba(4, 7, 22, 0.98));
  border: 1px solid rgba(140, 170, 255, 0.7);
  margin-bottom: 16px;
  text-align: center;
}

.miner-timer-label {
  font-size: 13px;
  color: #9eaee0;
  margin-bottom: 4px;
}

.miner-timer-value {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 4px;
}

.miner-timer-caption {
  font-size: 12px;
  color: #8897cc;
  margin-bottom: 8px;
}

.round-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 24, 52, 0.9);
  overflow: hidden;
}

.round-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #48ffb4, #7cf6ff);
  box-shadow: 0 0 16px rgba(120, 255, 210, 0.8);
}

/* Stats */
.miner-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  border-radius: 16px;
  padding: 10px 12px 12px;
  background: rgba(5, 10, 30, 0.96);
  border: 1px solid rgba(130, 150, 255, 0.55);
}

.stat-label {
  font-size: 12px;
  color: #9aa9dd;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: #e5ecff;
  margin-bottom: 2px;
}

.stat-unit {
  font-size: 11px;
  color: #808fcb;
}

/* Meta */
.miner-meta {
  margin-top: 12px;
  font-size: 13px;
  color: #9faee2;
}

.miner-meta-row {
  display: flex;
  justify-content: space-between;
}

/* Right panel */
.hex-panel {
  border-radius: 24px;
  padding: 18px 18px 20px;
  background: radial-gradient(circle at top, rgba(80, 110, 210, 0.2), rgba(4, 9, 24, 0.98));
  border: 1px solid rgba(140, 165, 255, 0.7);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.9);
}

.hex-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
}

.hex-title {
  font-size: 16px;
  margin-bottom: 2px;
}

.hex-last-winner {
  font-size: 13px;
  color: #9ba9e0;
}

.hex-legend {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #9ca9e3;
}

.legend-dot {
  width: 12px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot--mine {
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
}

.legend-dot--locked {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

.legend-dot--winner {
  background: #eab308;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.7);
}

/* Hex grid */
.hex-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

/* Metallic crypto-chip tile */
.hex-slot {
  position: relative;
  border-radius: 16px;
  padding: 8px 6px 6px;
  background: radial-gradient(circle at top, rgba(110, 135, 255, 0.25), rgba(8, 12, 30, 0.98));
  border: 1px solid rgba(130, 150, 255, 0.55);
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.9),
    inset 0 0 8px rgba(10, 20, 60, 0.9);
  text-align: center;
  cursor: pointer;
  transition: 0.18s ease;
}

.hex-slot:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 24px rgba(0, 0, 0, 0.9),
    0 0 18px rgba(120, 150, 255, 0.7);
}

.hex-slot-code {
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 600;
}

.hex-slot-id {
  font-size: 11px;
  color: #9ba9e5;
  margin-top: 2px;
}

/* State colors */
.hex-slot--mine {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.35), rgba(8, 20, 30, 0.98));
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow:
    0 0 22px rgba(0, 0, 0, 0.9),
    0 0 18px rgba(56, 189, 248, 0.9);
}

.hex-slot--locked {
  background: radial-gradient(circle at top, rgba(239, 68, 68, 0.18), rgba(12, 10, 24, 0.98));
  border-color: rgba(239, 68, 68, 0.9);
}

.hex-slot--winner {
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.35), rgba(26, 18, 4, 0.98));
  border-color: rgba(250, 204, 21, 0.95);
  box-shadow:
    0 0 22px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(250, 204, 21, 0.9);
}

/* Disabled appearance */
.hex-slot--disabled {
  opacity: 0.45;
  cursor: default;
}

/* Responsive */
@media (max-width: 1000px) {
  .miner-layout {
    grid-template-columns: 1fr;
  }

  .hex-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .miner-panel,
  .hex-panel {
    padding: 16px 14px 16px;
  }

  .miner-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .miner-panel,
  .hex-panel {
    padding: 14px 12px 14px;
  }

  .hex-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

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

  .miner-subtitle {
    font-size: 13px;
  }
}
