﻿*{box-sizing:border-box;margin:0;padding:0}
html,body{
  margin:0;
  padding:0;
  min-height:100%;
  background:#080c14;
  color:#dbe9f6;
  font-family:'Share Tech Mono',monospace;
  font-size:17px;
  line-height:1.4;
}
#root{min-height:100vh}

::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:#080c14}
::-webkit-scrollbar-thumb{background:#1a3050;border-radius:8px}

input,select,textarea{
  outline:none;
  font-family:'Share Tech Mono',monospace;
  font-size:15px;
  line-height:1.35;
}
button{
  cursor:pointer;
  border:none;
  font-family:'Share Tech Mono',monospace;
  font-size:14px;
  line-height:1.35;
}

@keyframes slideIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes glow{
  0%,100%{box-shadow:0 0 6px #f7931a33}
  50%{box-shadow:0 0 20px #f7931a66}
}

.app{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:
    radial-gradient(1200px 550px at 15% -10%, #1a305022 0%, transparent 60%),
    radial-gradient(900px 480px at 100% 10%, #f7931a18 0%, transparent 55%),
    #080c14;
}

.top{
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px 16px;
  background:#0d1521cc;
  backdrop-filter:blur(4px);
  border-bottom:1px solid #1f3d63;
  flex-wrap:wrap;
  position:sticky;
  top:0;
  z-index:9;
}
.top > div{
  background:#0f1928;
  border:1px solid #1f3d63;
  border-radius:10px;
  padding:8px 10px;
}
.top > div:last-child{
  background:transparent;
  border:none;
  padding:0;
}
.top-head{
  display:flex;
  align-items:center;
  gap:10px;
  background:transparent !important;
  border:none !important;
  padding:0 !important;
}
.btc-pill{
  padding:7px 10px;
  border:1px solid #2b568a;
  border-radius:999px;
  background:#0f1f34;
  color:#9ec7ff;
  white-space:nowrap;
}

.brand{
  font-family:'Orbitron',sans-serif;
  font-weight:900;
  color:#f7931a;
  letter-spacing:1px;
  text-shadow:0 0 12px #f7931a55;
  animation:glow 2.2s ease-in-out infinite;
}

.tabs{
  display:flex;
  gap:8px;
  padding:10px 12px;
  background:#0d1521;
  border-bottom:1px solid #1f3d63;
  flex-wrap:wrap;
}

.tab{
  padding:8px 12px;
  background:#101c2b;
  color:#dbe9f6;
  border:1px solid #1f3d63;
  border-radius:10px;
  cursor:pointer;
  transition:all .15s ease;
}
.tab:hover{transform:translateY(-1px);border-color:#2b568a}
.tab.active{
  background:#f7931a;
  color:#000;
  border-color:#f7931a;
  font-weight:700;
}

.content{
  padding:14px;
  display:grid;
  gap:12px;
  animation:slideIn .25s ease;
}
.grid{display:grid;gap:10px}
.grid.cols-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}

.panel,
.card,
.chart-wrap,
.auth{
  background:linear-gradient(180deg,#0d1521 0%,#0a121d 100%);
  border:1px solid #1f3d63;
  border-radius:12px;
}
.panel{padding:12px}
.card{padding:11px}
.chart-wrap{padding:12px}

.list{display:grid;gap:8px}
.scroll{overflow:auto}

.btn{
  padding:8px 12px;
  border:1px solid #1f3d63;
  border-radius:10px;
  background:#101c2b;
  color:#dbe9f6;
  cursor:pointer;
  transition:all .15s ease;
}
.btn:hover{transform:translateY(-1px);border-color:#2b568a}
.btn.acc{
  background:#f7931a;
  color:#000;
  border-color:#f7931a;
  font-weight:700;
}
.btn.red{
  border-color:#ef4444;
  color:#ef4444;
}
.btn:disabled{
  opacity:.5;
  cursor:not-allowed;
  transform:none;
}

.input{
  width:100%;
  padding:11px 12px;
  background:#0b1220;
  color:#dbe9f6;
  border:1px solid #1f3d63;
  border-radius:10px;
}

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.small{font-size:14px;color:#8da9c7}

.warn{
  padding:11px 12px;
  border:1px solid #ef4444;
  border-radius:10px;
  background:#1a0f18;
  color:#ff7d7d;
  font-size:15px;
  line-height:1.45;
  font-weight:700;
}
.ok{color:#22c55e}
.bad{color:#ef4444}

.auth{
  max-width:460px;
  margin:8vh auto;
  padding:18px;
  display:grid;
  gap:10px;
}
.auth-lang{
  margin-top:2px;
  padding:8px;
  border:1px solid #1f3d63;
  border-radius:10px;
  background:#0b1321;
}
.ok-msg{
  padding:10px 12px;
  border:1px solid #16a34a;
  border-radius:10px;
  background:#0a1a12;
  color:#4ade80;
  font-size:14px;
  font-weight:700;
}
.map-screen{
  min-height:100vh;
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(1200px 550px at 15% -10%, #1a305022 0%, transparent 60%),
    radial-gradient(900px 480px at 100% 10%, #f7931a18 0%, transparent 55%),
    #080c14;
}
.map-shell{
  width:min(1120px, 96vw);
  display:grid;
  gap:12px;
}
.map-picker-panel{
  padding:16px;
}
.map-row-active{
  border-color:#f7931a;
  box-shadow:0 0 0 1px #f7931a44 inset, 0 6px 18px #00000055;
  transform:translateY(-1px);
}
.accent{color:#f7931a}

.farm-summary-grid{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(4,minmax(180px,1fr));
}
.farm-stat{
  border:1px solid #1f3d63;
  background:linear-gradient(180deg,#0a1322 0%,#09101d 100%);
  border-radius:8px;
  padding:12px;
}
.farm-stat-label{
  color:#8da9c7;
  font-size:13px;
  margin-bottom:6px;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.farm-stat-value{
  font-size:30px;
  font-weight:700;
  color:#9ec7ff;
}
.farm-alert{
  border:1px solid #9f1239;
  background:#1b0b13;
  color:#ff6b8b;
  border-radius:8px;
  padding:10px 12px;
  font-size:15px;
  font-weight:700;
}
.farm-important-title{
  font-weight:700;
  margin-bottom:8px;
  color:#f7931a;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.farm-important-table{
  display:grid;
  gap:6px;
}
.farm-row{
  display:grid;
  grid-template-columns:minmax(120px,1fr) auto;
  gap:10px;
  border-bottom:1px solid #132a45;
  padding:6px 0;
}
.important-panel{
  max-width:720px;
}
.important-panel .farm-important-table{
  max-width:560px;
}
.rig-grid{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
}
.rig-card{
  border:1px solid #1f3d63;
  border-radius:10px;
  background:linear-gradient(180deg,#081427 0%,#071120 100%);
  padding:12px;
}
.rig-head{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-bottom:8px;
}
.rig-badge{
  display:inline-block;
  border:1px solid #3b82f6;
  color:#9ec7ff;
  background:#0d1b30;
  border-radius:4px;
  padding:3px 8px;
  font-size:12px;
  letter-spacing:.5px;
}
.rig-name{
  font-size:20px;
  font-weight:700;
  color:#dbe9f6;
  line-height:1.1;
}
.rig-metric{
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:3px 0;
  border-bottom:1px solid #10253f;
}
.rig-metric:last-child{border-bottom:none}

.stats-layout{
  display:grid;
  gap:8px;
}
.stats-panel{
  padding:10px;
}
.stats-panel .farm-important-table{
  gap:4px;
}
.stats-panel .farm-row{
  padding:4px 0;
}
.stats-market-grid{
  display:grid;
  gap:8px;
  grid-template-columns:repeat(5,minmax(120px,1fr));
}
.stats-value{
  font-size:22px;
  font-weight:700;
  color:#c8dcf5;
}
.rig-breakdown-panel .list{
  max-height:220px;
  overflow:auto;
}
.settings-action-panel{
  display:grid;
  gap:6px;
}
.overlay-modal{
  position:fixed;
  inset:0;
  background:#0008;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:50;
  padding:16px;
}
.overlay-card{
  width:min(560px, 95vw);
  background:linear-gradient(180deg,#0d1521 0%,#0a121d 100%);
  border:1px solid #1f3d63;
  border-radius:12px;
  padding:14px;
  box-shadow:0 20px 40px #00000066;
}

.note{
  position:fixed;
  right:12px;
  bottom:12px;
  background:#0b1220dd;
  border:1px solid #1f3d63;
  border-radius:10px;
  color:#9cb6d3;
  padding:6px 10px;
  font-size:12px;
  pointer-events:none;
}

@media (max-width: 900px){
  html,body{font-size:16px}
  .top{padding:10px 12px}
  .top-head{width:100%;justify-content:space-between}
  .content{padding:10px}
  .grid.cols-2{grid-template-columns:1fr}
  .map-screen{padding:10px}
  .farm-summary-grid{grid-template-columns:1fr}
  .farm-stat-value{font-size:24px}
  .stats-market-grid{grid-template-columns:1fr 1fr}
  .stats-value{font-size:18px}
  .important-panel{max-width:100%}
}
