:root {
  --rust-primary: #c85a32;
  --rust-dark: #8c381b;
  --screen-bg: #1c2c42;
  --screen-grid: rgba(93, 141, 196, 0.14);
}

body {
  background-color: #14171a;
  color: #e9eef5;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

.container-my {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.device-shell {
  position: relative;
  background: linear-gradient(145deg, var(--rust-primary), var(--rust-dark));
  border: 4px solid #111;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.25);
}

.rivet {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #2c353d;
  border: 2px solid #111;
  border-radius: 50%;
}
.rivet-tl { top: 8px; left: 8px; }
.rivet-tr { top: 8px; right: 8px; }
.rivet-bl { bottom: 8px; left: 8px; }
.rivet-br { bottom: 8px; right: 8px; }

.terminal-header {
  background: rgba(18, 22, 26, 0.85);
  border: 2px solid #111;
  border-radius: 10px;
  padding: 12px 16px;
}

.unit-code {
  font-family: monospace;
  font-size: 0.75rem;
  color: #f5b921;
  letter-spacing: 1px;
}

.screen-panel {
  background-color: var(--screen-bg);
  background-image:
    linear-gradient(var(--screen-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--screen-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 3px solid #111;
  border-radius: 12px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.65);
}

.status-led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #000;
}
.led-online { background: #2ecc71; box-shadow: 0 0 8px #2ecc71; }

.module-card {
  background: linear-gradient(180deg, #2b3847 0%, #1b2530 100%);
  border: 2px solid #111;
  border-radius: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.module-card:hover:not(.module-locked) {
  transform: translateY(-2px);
  border-color: #f5b921;
}
.module-locked {
  opacity: 0.55;
  border-style: dashed;
  border-color: #526170;
}