/* =====================================================================
   HERO 3 — Console hero styles
   ===================================================================== */

.hero-console {
  padding: 50px 0 70px;
  position: relative;
}
.hero-grid-c {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.hero-left-c {
  position: sticky;
  top: 90px;
}
.hero-left-c h1 {
  font-size: 76px;
  line-height: 0.92;
  margin-bottom: 26px;
}
.hero-sub-c {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 460px;
}
.hero-sub-c strong { color: var(--char); font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-quick-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-quick-stats .qs { display: flex; flex-direction: column; gap: 4px; }
.hero-quick-stats .qs-l {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-quick-stats .qs-v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--char);
  line-height: 1;
}
.hero-quick-stats .qs-v .unit { color: var(--amber); font-size: 16px; }

/* ===== CONSOLE ===== */
.console {
  background: #2D3340;
  border-radius: 10px;
  border: 1px solid #1A1E26;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(31,37,48,0.22);
  color: #E8DEC7;
  position: relative;
  min-height: 720px;
}
.con-bar {
  background: #232833;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(232,222,199,0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid #1A1E26;
}
.con-bar .brand-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-block;
}
.con-bar .brand-dot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.con-bar .dots { display: flex; gap: 6px; margin-left: 4px; }
.con-bar .dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(232,222,199,0.18);
}
.con-bar .dots span:first-child { background: var(--amber); }
.con-bar .dots span:nth-child(2) { background: rgba(232,137,59,0.5); }
.con-bar .title { color: #E8DEC7; margin-left: 10px; font-weight: 600; }
.con-bar .timer {
  margin-left: auto;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.con-bar .timer::before {
  content: ""; width: 6px; height: 6px;
  background: var(--amber); border-radius: 50%;
  animation: blink-amber 2s infinite;
}
@keyframes blink-amber {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.con-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 580px;
}
.con-side {
  background: #232833;
  border-right: 1px solid #1A1E26;
  padding: 14px 0;
}
.con-side .grp-label {
  padding: 12px 18px 6px;
  font-family: var(--f-mono);
  font-size: 9px;
  color: rgba(232,222,199,0.35);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.side-item {
  padding: 10px 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(232,222,199,0.55);
  cursor: pointer;
  border-left: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .12s;
  position: relative;
  user-select: none;
}
.side-item:hover { color: #E8DEC7; background: #2D3340; }
.side-item.active {
  color: var(--amber);
  background: #2D3340;
  border-left-color: var(--amber);
}
.side-item .ic {
  display: inline-block;
  width: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--amber);
  opacity: 0.7;
}
.side-item.active .ic { opacity: 1; }
.side-item .count {
  margin-left: auto;
  font-size: 10px;
  color: rgba(232,222,199,0.4);
  font-weight: 400;
}
.side-item.active .count { color: var(--amber); }

.con-main {
  padding: 22px 24px;
  background: #2D3340;
  position: relative;
  overflow: hidden;
}
.tab-pane {
  display: none;
  animation: tab-in 0.35s ease;
}
.tab-pane.active { display: block; }
@keyframes tab-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tab-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(232,137,59,0.15);
}
.tab-header h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  color: #E8DEC7;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.tab-header .tab-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(232,222,199,0.55);
  letter-spacing: 0.06em;
}

/* SESSIONS */
.sess-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.sess-tile {
  background: #232833;
  border-radius: 4px;
  padding: 14px;
  border: 1px solid rgba(232,137,59,0.16);
}
.sess-tile .lab {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(232,222,199,0.55);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sess-tile .val {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 30px;
  color: #E8DEC7;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.sess-tile .delta {
  font-size: 11px;
  font-family: var(--f-mono);
  font-weight: 400;
  color: var(--amber);
}
.sess-tile .delta.up { color: #6FE8A0; }
.sess-tile .unit-s { font-size: 14px; color: var(--amber); font-weight: 400; }

.sess-chart {
  background: #232833;
  border-radius: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(232,137,59,0.16);
  margin-bottom: 14px;
}
.chart-h {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,222,199,0.6);
}
.chart-h .right { color: var(--amber); }
.sess-chart svg { width: 100%; height: 90px; display: block; }

.sess-logs {
  background: #232833;
  border-radius: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(232,137,59,0.16);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.75;
  color: rgba(232,222,199,0.78);
  max-height: 160px;
  overflow: hidden;
}
.log-line {
  animation: log-in 0.4s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes log-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.log-time { color: var(--amber); }
.log-tag { color: #F0A968; padding-right: 8px; }
.log-tag.ok { color: #6FE8A0; }
.log-tag.warn { color: #FFC56F; }

/* TWINS */
.twins-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.twin-card {
  background: #232833;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(232,137,59,0.16);
  cursor: pointer;
  transition: all .15s;
}
.twin-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.twin-img {
  position: relative;
  aspect-ratio: 16/10;
  background: #1A1E26;
  overflow: hidden;
}
.twin-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform .4s, opacity .15s;
}
.twin-card:hover .twin-img img { transform: scale(1.05); opacity: 1; }
.twin-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35,40,51,0.9), transparent 60%);
  z-index: 1;
}
.twin-status {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  background: rgba(35,40,51,0.85);
  padding: 3px 8px;
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6FE8A0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}
.twin-status::before {
  content: ""; width: 5px; height: 5px;
  background: #6FE8A0; border-radius: 50%;
  animation: blink-amber 2s infinite;
}
.twin-info { padding: 12px 14px; }
.twin-vertical {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--amber);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.twin-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  color: #E8DEC7;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.05;
}
.twin-meta {
  display: flex;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(232,222,199,0.55);
}
.twin-meta span strong { color: #E8DEC7; font-weight: 500; }

/* ANALYTICS */
.an-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 12px; }
.an-card {
  background: #232833;
  border-radius: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(232,137,59,0.16);
}
.an-card.full { grid-column: 1 / -1; }
.an-card svg { width: 100%; display: block; }
.an-h {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,222,199,0.6);
}
.an-h .right { color: var(--amber); }

.bar-list { display: flex; flex-direction: column; gap: 9px; }
.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  gap: 10px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
}
.bar-row .nm { color: rgba(232,222,199,0.75); }
.bar-row .bar {
  height: 6px;
  background: rgba(232,137,59,0.15);
  border-radius: 3px;
  overflow: hidden;
}
.bar-row .bar .fill {
  height: 100%;
  background: linear-gradient(to right, var(--amber), #F0A968);
  border-radius: 3px;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-row .val { text-align: right; color: var(--amber); font-weight: 500; }

/* HARDWARE */
.hw-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
.hw-vis {
  background: #232833;
  border: 1px solid rgba(232,137,59,0.16);
  border-radius: 4px;
  padding: 16px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.hw-vis-h {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,222,199,0.6);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.hw-vis-h .live {
  color: #6FE8A0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hw-vis-h .live::before {
  content: ""; width: 5px; height: 5px;
  background: #6FE8A0; border-radius: 50%;
  animation: blink-amber 2s infinite;
}
.hw-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.hw-stats { display: flex; flex-direction: column; gap: 10px; }
.hw-stat {
  background: #232833;
  border-radius: 4px;
  border: 1px solid rgba(232,137,59,0.16);
  padding: 10px 14px;
}
.hw-stat-l {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(232,222,199,0.55);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hw-stat-v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: #E8DEC7;
  line-height: 1;
}
.hw-stat-v .axis { color: var(--amber); font-size: 12px; font-weight: 400; font-family: var(--f-mono); margin-left: 4px; }

.hw-foot {
  background: #232833;
  border: 1px solid rgba(232,137,59,0.16);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(232,222,199,0.72);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hw-foot .lab { color: rgba(232,222,199,0.5); letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; margin-right: 4px; }
.hw-foot .v { color: var(--amber); }

/* TELEMETRY */
.tel-list { display: flex; flex-direction: column; gap: 8px; }
.tel-row {
  background: #232833;
  border: 1px solid rgba(232,137,59,0.16);
  border-radius: 4px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 32px 1fr 80px 70px 110px;
  gap: 12px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
}
.tel-row .ic-circle {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(232,137,59,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-size: 10px;
}
.tel-row .sensor-name {
  color: #E8DEC7;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.tel-row .sensor-name .src {
  color: rgba(232,222,199,0.5);
  font-weight: 400;
  margin-left: 6px;
}
.tel-row .sensor-val {
  color: var(--amber);
  font-weight: 600;
  text-align: right;
  font-family: var(--f-display);
  font-size: 16px;
}
.tel-row .sensor-val .unit {
  color: rgba(232,222,199,0.5);
  font-size: 11px;
  font-weight: 400;
  margin-left: 2px;
  font-family: var(--f-mono);
}
.tel-row .sensor-spark { height: 24px; }
.tel-row .sensor-status {
  text-align: right;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6FE8A0;
}

/* OPERATORS */
.op-list { display: flex; flex-direction: column; gap: 8px; }
.op-row {
  background: #232833;
  border: 1px solid rgba(232,137,59,0.16);
  border-radius: 4px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 28px 36px 1fr 90px 1fr 80px;
  gap: 14px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  transition: border-color .15s, transform .15s;
}
.op-row:hover { border-color: var(--amber); transform: translateX(2px); }
.op-rank {
  color: var(--amber);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}
.op-rank.gold { color: #FFD080; }
.op-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--rust));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--char);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}
.op-name {
  color: #E8DEC7;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.op-name .sub {
  color: rgba(232,222,199,0.5);
  font-size: 10px;
  display: block;
  margin-top: 2px;
}
.op-score {
  color: var(--amber);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.op-score .max { color: rgba(232,222,199,0.4); font-size: 10px; font-weight: 400; font-family: var(--f-mono); margin-left: 2px; }
.op-progress {
  height: 6px;
  background: rgba(232,137,59,0.15);
  border-radius: 3px;
  overflow: hidden;
}
.op-progress .fill {
  height: 100%;
  background: linear-gradient(to right, var(--amber), #F0A968);
  border-radius: 3px;
  width: 0;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.op-badge {
  text-align: right;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6FE8A0;
}
.op-badge.training { color: #FFC56F; }
.op-badge.expert { color: var(--amber); }

/* FOOTER STATUS BAR */
.con-foot {
  background: #232833;
  padding: 10px 18px;
  border-top: 1px solid #1A1E26;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(232,222,199,0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-x: auto;
  white-space: nowrap;
}
.con-foot .stamp { color: var(--amber); }
.con-foot .sep { color: rgba(0,184,212,0.4); margin: 0 2px; }
.con-foot .v { color: var(--amber); font-weight: 500; }

/* MOBILE */
@media (max-width: 1100px) {
  .hero-grid-c { grid-template-columns: 1fr; gap: 40px; }
  .hero-left-c { position: relative; top: 0; }
  .hero-left-c h1 { font-size: 56px; }
}
@media (max-width: 760px) {
  .con-body { grid-template-columns: 1fr; }
  .con-side {
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid #1A1E26;
    padding: 6px;
  }
  .con-side .grp-label { display: none; }
  .side-item {
    white-space: nowrap;
    padding: 8px 14px;
    border-left: none;
    border-bottom: 2px solid transparent;
    flex-shrink: 0;
  }
  .side-item.active { border-left: none; border-bottom-color: var(--amber); }
  .side-item .count { display: none; }
  .sess-row, .twins-grid, .an-row, .hw-grid { grid-template-columns: 1fr; }
  .tel-row { grid-template-columns: 28px 1fr 70px; }
  .tel-row .sensor-spark, .tel-row .sensor-status { display: none; }
  .op-row { grid-template-columns: 24px 32px 1fr 60px; gap: 10px; }
  .op-progress, .op-badge { display: none; }
  .hero-left-c h1 { font-size: 40px; }
  .hero-quick-stats { gap: 16px; }
  .hero-quick-stats .qs-v { font-size: 22px; }
  .hw-foot { font-size: 10px; gap: 10px; }
}
