/* PentaPool Pro UI Override – live safe */

body,
.dashboard-app,
.dash-content {
  background: #05080d !important;
  color: #eef5ff !important;
}

.dash-header,
.dashboard-header {
  background: rgba(10,15,25,.96) !important;
  border-bottom: 1px solid #1e293b !important;
}

.dash-sidebar {
  background: #070b12 !important;
  border-right: 1px solid #1e293b !important;
}

.dash-nav-item {
  border-radius: 10px !important;
  color: #94a3b8 !important;
  font-weight: 800 !important;
}

.dash-nav-item.active {
  background: #13213a !important;
  color: #fff !important;
}

.kpi-card,
.info-card,
.overview-kpi,
.overview-miner-card,
.overview-pool-card,
.overview-activity-card,
.data-table-wrap,
.worker-detail-card,
.settings-card-pro {
  background: #0d1422 !important;
  border: 1px solid #263449 !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.32) !important;
}

.kpi-value,
.overview-kpi strong {
  font-size: 1.8rem !important;
  font-weight: 950 !important;
  letter-spacing: -.04em !important;
}

.kpi-label,
.data-table th,
.overview-kpi span {
  color: #8fa3bd !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  font-size: .72rem !important;
}

.data-table-wrap {
  overflow: hidden !important;
}

.data-table thead {
  background: #111b2b !important;
}

.data-table th,
.data-table td {
  border-color: #263449 !important;
}

.data-table tr:hover td {
  background: rgba(59,130,246,.06) !important;
}

.status-badge,
.badge,
.tag {
  border-radius: 999px !important;
  font-size: .7rem !important;
  font-weight: 900 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

.btn {
  border-radius: 11px !important;
  font-weight: 850 !important;
}

.btn-primary {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.filter-bar {
  background: #0d1422 !important;
  border: 1px solid #263449 !important;
  border-radius: 18px !important;
  padding: 12px !important;
}

.filter-btn,
.filter-search {
  background: #080d16 !important;
  border: 1px solid #263449 !important;
  color: #eef5ff !important;
}

.filter-btn.active {
  background: #13213a !important;
  border-color: #3b82f6 !important;
}

.overview-head h2,
.dash-section-title,
.dash-title,
h1,
h2,
h3 {
  letter-spacing: -.04em !important;
}

.detail-grid > div {
  background: #0a101b !important;
  border: 1px solid #263449 !important;
  border-radius: 14px !important;
}

/* ==================================================
   PATCH 16B – PRO DASHBOARD LAYOUT
   ================================================== */

.pro-dashboard {
  padding: 26px 28px 40px;
}

.pro-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}

.pro-dashboard-head h1 {
  font-size: 2.1rem;
  font-weight: 950;
  letter-spacing: -.06em;
  margin: 0 0 6px;
}

.pro-dashboard-head p {
  color: #9fb0c8;
  margin: 0;
  font-size: 1rem;
}

.pro-system-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dbeafe;
  font-weight: 800;
  white-space: nowrap;
}

.pro-system-status span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34,197,94,.85);
}

.pro-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.pro-kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), #0d1422;
  border: 1px solid #263449;
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

.pro-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.pro-kpi-top span {
  color: #9fb0c8;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pro-kpi-top b {
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(59,130,246,.15);
  color: #60a5fa;
  font-size: .7rem;
}

.pro-kpi-card strong {
  display: block;
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -.055em;
  margin-bottom: 6px;
}

.pro-kpi-card p {
  color: #9fb0c8;
  margin: 0;
}

.pro-spark {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 28px;
  opacity: .85;
  border-radius: 999px;
}

.pro-spark.blue { background: linear-gradient(90deg, transparent, rgba(59,130,246,.55), transparent); }
.pro-spark.green { background: linear-gradient(90deg, transparent, rgba(34,197,94,.55), transparent); }
.pro-spark.purple { background: linear-gradient(90deg, transparent, rgba(139,92,246,.55), transparent); }
.pro-spark.orange { background: linear-gradient(90deg, transparent, rgba(245,158,11,.55), transparent); }

.pro-main-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 22px;
}

.pro-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), #0d1422;
  border: 1px solid #263449;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.30);
  padding: 22px;
}

.pro-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.pro-panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pro-table-wrap {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #263449;
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
}

.pro-table th {
  text-align: left;
  background: #111b2b;
  color: #9fb0c8;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .72rem;
  padding: 14px 16px;
}

.pro-table td {
  padding: 16px;
  border-top: 1px solid #263449;
  color: #eaf2ff;
}

.pro-worker-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pro-worker-cell strong {
  display: block;
  font-weight: 950;
}

.pro-worker-cell small {
  display: block;
  margin-top: 3px;
  color: #60a5fa;
  font-weight: 800;
}

.pro-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  flex: 0 0 auto;
}

.pro-dot.online {
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34,197,94,.7);
}

.pro-dot.offline {
  background: #f59e0b;
  box-shadow: 0 0 14px rgba(245,158,11,.5);
}

.pro-pool-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.pro-pool-title > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f7931a;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
}

.pro-pool-title strong {
  font-size: 1.5rem;
  font-weight: 950;
}

.pro-pool-title p {
  color: #9fb0c8;
  margin: 4px 0 0;
}

.pro-pool-title b {
  margin-left: auto;
  border-radius: 999px;
  background: rgba(34,197,94,.14);
  border: 1px solid rgba(34,197,94,.35);
  color: #4ade80;
  padding: 7px 11px;
  font-size: .72rem;
}

.pro-pool-lines {
  border-top: 1px solid #263449;
  margin-bottom: 18px;
}

.pro-pool-lines div {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #263449;
}

.pro-pool-lines span {
  color: #9fb0c8;
}

.pro-pool-lines strong {
  color: #f8fafc;
}

.pro-activity-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.pro-activity-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(10,16,27,.75);
  border: 1px solid rgba(38,52,73,.75);
}

.pro-activity-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.pro-activity-icon.ok {
  background: rgba(34,197,94,.12);
  color: #4ade80;
}

.pro-activity-icon.warn {
  background: rgba(245,158,11,.12);
  color: #fbbf24;
}

.pro-activity-row div {
  flex: 1;
}

.pro-activity-row strong {
  display: block;
}

.pro-activity-row p {
  margin: 2px 0 0;
  color: #9fb0c8;
}

.pro-activity-row em {
  color: #4ade80;
  font-style: normal;
  font-weight: 850;
}

.pro-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pro-stat-grid > div {
  padding: 18px;
  border-radius: 16px;
  background: rgba(10,16,27,.75);
  border: 1px solid rgba(38,52,73,.75);
}

.pro-stat-grid span {
  display: block;
  color: #9fb0c8;
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.pro-stat-grid strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: -.04em;
}

.pro-stat-grid p {
  margin: 7px 0 0;
  font-weight: 850;
}

.green { color: #4ade80 !important; }
.red { color: #f87171 !important; }
.orange { color: #f59e0b !important; }

@media (max-width: 1200px) {
  .pro-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .pro-dashboard {
    padding: 18px;
  }

  .pro-dashboard-head {
    flex-direction: column;
  }

  .pro-kpi-grid,
  .pro-stat-grid {
    grid-template-columns: 1fr;
  }
}

