/* ============================================================================
   CloudMining — дизайн-система (светлый финтех)
   ========================================================================== */
:root {
  --accent: #2563EB;
  --accent-dark: #1D4ED8;
  --accent-soft: #EFF4FF;
  --btc: #F7931A;
  --btc-soft: #FEF3E2;
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --text: #0F172A;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --border: #E2E8F0;
  --success: #16A34A;
  --success-soft: #ECFDF3;
  --warning: #D97706;
  --warning-soft: #FFFBEB;
  --danger: #DC2626;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.12);
  --maxw: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }

/* ---- Типографика ---- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.h-xl { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; }
.h-lg { font-size: 40px; }
.h-md { font-size: 28px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---- Кнопки ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 22px; font-weight: 600; font-size: 15px;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.28); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-btc { background: var(--btc); color: #fff; box-shadow: 0 6px 16px rgba(247,147,26,.3); }
.btn-btc:hover { filter: brightness(.96); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---- Карточки ---- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }

/* ---- Бейджи / пилюли ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--surface-2); color: var(--muted);
}
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-btc { background: var(--btc-soft); color: var(--btc); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================================
   ЛЕНДИНГ
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,249,252,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #60A5FA);
  display: grid; place-items: center; color: #fff; font-size: 17px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

.hero { padding: 72px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0; }
.hero .lead { max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; gap: 28px; margin-top: 38px; }
.hero-trust .num { font-size: 26px; font-weight: 800; }
.hero-trust .lbl { font-size: 13px; color: var(--muted); }

/* живая карточка майнинга в hero */
.hero-card { padding: 26px; }
.hero-card .row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.hero-card .row:last-child { border-bottom: none; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 48px; }
.spark span { flex: 1; background: var(--accent-soft); border-radius: 3px 3px 0 0; }
.live-num { font-size: 30px; font-weight: 800; color: var(--btc); letter-spacing: -.02em; }

.logos { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; opacity: .65; }
.logos span { font-weight: 700; color: var(--muted); font-size: 17px; }

/* шаги */
.step { position: relative; }
.step .n { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* надёжность */
.trust-card { padding: 26px; }
.trust-card .ic { font-size: 26px; margin-bottom: 14px; }
.trust-card h3 { font-size: 18px; margin-bottom: 8px; }
.trust-card p { color: var(--muted); font-size: 14.5px; }
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stat-strip > div { padding: 28px 24px; border-right: 1px solid var(--border); }
.stat-strip > div:last-child { border-right: none; }
.stat-strip .v { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.stat-strip .k { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* калькулятор */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.calc-controls { padding: 34px; border-right: 1px solid var(--border); }
.calc-result { padding: 34px; background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.field .hint { font-size: 12.5px; color: var(--muted-2); font-weight: 400; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 6px; }
.input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; background: var(--surface); color: var(--text);
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--radius-sm); padding: 4px; gap: 4px; }
.seg button { border: none; background: transparent; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.calc-big { font-size: 44px; font-weight: 800; color: var(--btc); letter-spacing: -.03em; }
.calc-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.calc-row:last-child { border-bottom: none; }
.calc-row .val { font-weight: 700; }

/* тарифы */
.plan { padding: 28px; position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .price { font-size: 34px; font-weight: 800; margin: 12px 0 4px; }
.plan ul { list-style: none; margin: 18px 0; }
.plan li { padding: 8px 0; font-size: 14.5px; color: var(--muted); display: flex; gap: 9px; }
.plan li::before { content: "✓"; color: var(--success); font-weight: 800; }

/* faq */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; cursor: pointer; }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 17px; }
.faq-a { color: var(--muted); font-size: 15px; margin-top: 12px; display: none; max-width: 760px; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.chev { transition: transform .2s; color: var(--accent); font-size: 22px; font-weight: 300; }

footer { background: #0F172A; color: #CBD5E1; padding: 56px 0 32px; }
footer a { color: #CBD5E1; }
footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-grid h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.foot-grid ul { list-style: none; }
.foot-grid li { padding: 6px 0; font-size: 14px; }
.foot-bottom { border-top: 1px solid #1E293B; padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-2); }

/* cta-band */
.cta-band { background: linear-gradient(135deg, var(--accent), #1E40AF); border-radius: var(--radius-lg); padding: 56px; color: #fff; text-align: center; }
.cta-band h2 { font-size: 38px; margin-bottom: 12px; }
.cta-band p { opacity: .85; font-size: 18px; margin-bottom: 28px; }
.cta-band .btn-ghost { background: #fff; color: var(--accent); border: none; }

/* ============================================================================
   ЛИЧНЫЙ КАБИНЕТ
   ========================================================================== */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; padding: 6px 8px 22px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; font-size: 14.5px; transition: background .12s, color .12s; }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-link .ic { width: 20px; text-align: center; font-size: 16px; }
.side-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-2); }

.main { padding: 28px 36px 60px; max-width: 1100px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.topbar h1 { font-size: 26px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.balance-pill { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-weight: 700; font-size: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #60A5FA); color: #fff; display: grid; place-items: center; font-weight: 700; }

.view { display: none; animation: fade .25s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* статкарты */
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { padding: 20px; }
.stat-card .label { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.stat-card .value { font-size: 27px; font-weight: 800; margin-top: 8px; letter-spacing: -.02em; }
.stat-card .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat-card .value.btc { color: var(--btc); }

.panel { padding: 24px; margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head h3 { font-size: 18px; }

/* таблица */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); }
td { padding: 14px 12px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
tr:last-child td { border-bottom: none; }
.t-pos { color: var(--success); font-weight: 700; }
.t-neg { color: var(--text); font-weight: 700; }

/* методы оплаты (вкладки) */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tab { padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tab.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.method-body { display: none; }
.method-body.active { display: block; }
.qr { width: 150px; height: 150px; border-radius: var(--radius-sm); background:
  repeating-conic-gradient(#0F172A 0% 25%, #fff 0% 50%) 50% / 12px 12px; border: 6px solid #fff; box-shadow: var(--shadow); }
.addr-box { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; }
.req-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.req-row:last-child { border-bottom: none; }
.req-row .k { color: var(--muted); }
.req-row .v { font-weight: 600; font-family: ui-monospace, monospace; }

/* ASIC / hashrate карточки */
.asset-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.asic-card { padding: 22px; display: flex; flex-direction: column; }
.asic-card .ic { font-size: 34px; margin-bottom: 10px; }
.asic-card h4 { font-size: 18px; }
.asic-card .specs { color: var(--muted); font-size: 13.5px; margin: 8px 0 16px; }
.asic-card .price { font-size: 22px; font-weight: 800; margin-top: auto; }

/* мои активы */
.owned { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); }
.owned .ic { font-size: 28px; width: 46px; text-align: center; }
.owned .info { flex: 1; }
.owned .info h4 { font-size: 16px; }
.owned .info p { font-size: 13px; color: var(--muted); }
.owned .earn { text-align: right; font-size: 13px; color: var(--muted); }
.owned .earn b { display: block; font-size: 16px; color: var(--success); }

/* переключатель */
.switch { position: relative; width: 44px; height: 25px; }
.switch input { display: none; }
.switch .slider { position: absolute; inset: 0; background: var(--muted-2); border-radius: 999px; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--success); }
.switch input:checked + .slider::before { transform: translateX(19px); }

/* графики */
.chart { width: 100%; height: 220px; }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 10px; }
.chart-bars .bar { flex: 1; background: linear-gradient(180deg, var(--accent), #93C5FD); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; transition: height .3s; }
.chart-bars .bar:hover { filter: brightness(1.08); }
.chart-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); margin-top: 8px; }

/* прогресс KYC */
.kyc-steps { display: flex; gap: 0; margin: 20px 0; }
.kyc-step { flex: 1; text-align: center; position: relative; }
.kyc-step .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); color: var(--muted); display: grid; place-items: center; margin: 0 auto 8px; font-weight: 700; }
.kyc-step.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.kyc-step.active .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.kyc-step .lbl { font-size: 13px; color: var(--muted); }
.kyc-step::after { content: ""; position: absolute; top: 17px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: -1; }
.kyc-step:last-child::after { display: none; }

/* тосты */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--text); color: #fff; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: slideIn .25s ease; max-width: 340px; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* модалка */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; align-items: center; justify-content: center; z-index: 150; padding: 20px; backdrop-filter: blur(2px); }
.modal-bg.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius-lg); max-width: 460px; width: 100%; padding: 30px; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 22px; margin-bottom: 8px; }
.modal .close { float: right; font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .ic { font-size: 44px; margin-bottom: 12px; opacity: .5; }

.row-between { display: flex; align-items: center; justify-content: space-between; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.gap-12 { gap: 12px; } .flex { display: flex; } .items-center { align-items: center; }

/* ============================================================================
   ЖИВАЯ ФЕРМА / ДАТА-ЦЕНТР
   ========================================================================== */
.farm-scene {
  position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #16233e 0%, #0b1120 55%, #070b15 100%);
  border: 1px solid #1e293b;
  box-shadow: inset 0 0 80px rgba(0,0,0,.6), var(--shadow-lg);
  height: 460px;
}
.farm-scene.short { height: 380px; }
.farm-glow { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 50% 110%, rgba(37,99,235,.35), transparent 70%); pointer-events: none; }

/* пол со стойками в перспективе */
.farm-floor {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%) perspective(900px) rotateX(48deg);
  transform-origin: center bottom; width: 132%; height: 78%;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px 22px; padding: 0 4%;
}
.rack {
  background: linear-gradient(180deg, #1b2942, #0e1626);
  border: 1px solid #24344f; border-radius: 6px;
  display: flex; flex-direction: column; gap: 5px; padding: 7px 6px;
  box-shadow: 0 -6px 18px rgba(56,120,255,.10);
}
.rack .unit {
  height: 9px; border-radius: 3px; background: #16213a;
  display: flex; align-items: center; gap: 4px; padding: 0 4px;
  border: 1px solid #20304c;
}
.rack .unit .dot { width: 4px; height: 4px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 5px #34d399; animation: ledblink 1.6s infinite; }
.rack .unit .dot.b { animation-delay: .5s; background: #60a5fa; box-shadow: 0 0 5px #60a5fa; }
.rack .unit .bar { flex: 1; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #2563eb, #22d3ee); opacity: .7; }
.rack.warn .unit .dot { background: #fbbf24; box-shadow: 0 0 5px #fbbf24; }
.rack.off { opacity: .4; filter: grayscale(.6); }
.rack.off .unit .dot { background: #64748b; box-shadow: none; animation: none; }
@keyframes ledblink { 0%,100% { opacity: 1; } 45% { opacity: .25; } }

/* сканирующий луч */
.farm-scan { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,.12) 50%, transparent);
  width: 40%; animation: scan 5s ease-in-out infinite; }
@keyframes scan { 0%,100% { transform: translateX(-30%); } 50% { transform: translateX(220%); } }

/* парящие частицы */
.farm-particles span { position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(125,185,255,.7); box-shadow: 0 0 6px rgba(125,185,255,.8); animation: floatUp linear infinite; }
@keyframes floatUp { from { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(-220px); opacity: 0; } }

/* верхняя плашка LIVE + оверлеи */
.farm-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 3; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(220,38,38,.16);
  border: 1px solid rgba(248,113,113,.5); color: #fca5a5; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; backdrop-filter: blur(4px); }
.live-badge .rec { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
.farm-cam { color: #94a3b8; font-size: 11px; font-family: ui-monospace, monospace; text-align: right; background: rgba(7,11,21,.5); padding: 4px 9px; border-radius: 7px; backdrop-filter: blur(4px); }

/* нижняя HUD-полоса метрик поверх сцены */
.farm-hud { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.farm-hud .m { background: rgba(10,16,30,.6); border: 1px solid rgba(56,120,255,.25);
  border-radius: 10px; padding: 11px 13px; backdrop-filter: blur(6px); }
.farm-hud .m .k { color: #8aa0c2; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.farm-hud .m .v { color: #fff; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; }
.farm-hud .m .v.acc { color: #60a5fa; }
.farm-hud .m .v.ok { color: #34d399; }

/* лендинг: метрики справа */
.farm-metric { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.farm-metric:last-child { border-bottom: none; }
.farm-metric .mi { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.farm-metric .mv { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.farm-metric .ml { color: var(--muted); font-size: 13.5px; }

/* ---- NOC-мониторинг в кабинете ---- */
.noc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.noc-tile { background: linear-gradient(180deg, #0e1626, #0b1120); border: 1px solid #1e2c47; border-radius: var(--radius); padding: 16px 18px; color: #e2e8f0; position: relative; overflow: hidden; }
.noc-tile .k { color: #8aa0c2; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.noc-tile .v { font-size: 25px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.noc-tile .v.acc { color: #60a5fa; } .noc-tile .v.ok { color: #34d399; } .noc-tile .v.warn { color: #fbbf24; }
.noc-tile .spark { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; opacity: .55; }

.rack-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.rack-cell { background: #0e1626; border: 1px solid #1e2c47; border-radius: 10px; padding: 11px 10px; color: #cbd5e1; position: relative; transition: transform .12s, box-shadow .12s; cursor: default; }
.rack-cell:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,.25); border-color: #3b5fa6; }
.rack-cell .rid { font-size: 11px; color: #8aa0c2; font-family: ui-monospace, monospace; display: flex; justify-content: space-between; align-items: center; }
.rack-cell .st { width: 8px; height: 8px; border-radius: 50%; }
.rack-cell.online .st { background: #34d399; box-shadow: 0 0 7px #34d399; animation: ledblink 1.8s infinite; }
.rack-cell.warn .st { background: #fbbf24; box-shadow: 0 0 7px #fbbf24; }
.rack-cell.off .st { background: #64748b; }
.rack-cell .rh { font-size: 15px; font-weight: 800; color: #fff; margin-top: 7px; font-variant-numeric: tabular-nums; }
.rack-cell .rt { font-size: 11px; color: #8aa0c2; margin-top: 2px; }
.rack-cell.mine { border-color: var(--btc); box-shadow: 0 0 0 1px var(--btc); }
.rack-cell.mine::after { content: "ВЫ"; position: absolute; top: 8px; right: 9px; font-size: 9px; font-weight: 800; color: var(--btc); letter-spacing: .05em; }

.dark-panel { background: linear-gradient(180deg, #0e1626, #0a0f1c); border: 1px solid #1e2c47; border-radius: var(--radius); padding: 22px; color: #e2e8f0; margin-bottom: 22px; }
.dark-panel h3 { color: #fff; }
.dark-panel .panel-head h3 { color: #fff; }

.event-log { font-family: ui-monospace, monospace; font-size: 12.5px; max-height: 320px; overflow: hidden; }
.event-log .ev { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid #16233a; animation: slideIn .3s ease; }
.event-log .ev .t { color: #5b6f92; flex-shrink: 0; }
.event-log .ev .msg { color: #cbd5e1; }
.event-log .ev .tag { margin-left: auto; font-size: 10px; padding: 1px 7px; border-radius: 5px; flex-shrink: 0; }
.event-log .ev .tag.ok { background: rgba(52,211,153,.15); color: #34d399; }
.event-log .ev .tag.info { background: rgba(96,165,250,.15); color: #60a5fa; }
.event-log .ev .tag.warn { background: rgba(251,191,36,.15); color: #fbbf24; }

.gauge-wrap { display: flex; align-items: center; gap: 24px; }
.gauge { --p: 0; width: 140px; height: 140px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(closest-side, #0b1120 78%, transparent 79% 100%),
    conic-gradient(#22d3ee calc(var(--p) * 1%), #1c2740 0); display: grid; place-items: center; }
.gauge .gv { text-align: center; color: #fff; }
.gauge .gv b { font-size: 26px; font-weight: 800; } .gauge .gv small { color: #8aa0c2; font-size: 11px; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(2,1fr); }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .calc { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
