/* ==========================================================================
   Proof-of-Work Suite: Terminal Container, Tabs, Tool Panels & Sliders
   ========================================================================== */
/* Lifecycle & Proof Tags */
    .lifecycle-tag {
      font-size: 11px;
      font-family: var(--font-mono);
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 6px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      flex-shrink: 0;
    }
    .tag-mainnet {
      background: rgba(16, 185, 129, 0.15);
      color: #34d399;
      border: 1px solid rgba(16, 185, 129, 0.35);
    }
    .tag-mainnet::before, .tag-live::before {
      content: '';
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background-color: currentColor;
      box-shadow: 0 0 6px currentColor;
    }
    .tag-sunset {
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
      border: 1px solid rgba(245, 158, 11, 0.35);
    }
    .tag-open-source {
      background: rgba(99, 102, 241, 0.15);
      color: #a5b4fc;
      border: 1px solid rgba(99, 102, 241, 0.35);
    }
    .tag-live {
      background: rgba(6, 182, 212, 0.15);
      color: #22d3ee;
      border: 1px solid rgba(6, 182, 212, 0.35);
    }

    /* Proof of Work Inspector & Interactive Systems Suite */
    .terminal-container {
      background: #090d16;
      border: 1px solid var(--border-accent);
      border-radius: 16px;
      overflow: hidden;
      margin-top: 40px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    }
    .terminal-header {
      background: rgba(15, 23, 42, 0.95);
      padding: 12px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--border-subtle);
      flex-wrap: wrap;
      gap: 12px;
    }
    .terminal-dots {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .terminal-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }
    .dot-red { background: #ef4444; }
    .dot-yellow { background: #f59e0b; }
    .dot-green { background: #10b981; }
    .terminal-tabs {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .terminal-tab {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-muted);
      border: 1px solid var(--border-subtle);
      padding: 6px 14px;
      border-radius: 8px;
      font-size: 12px;
      font-family: var(--font-mono);
      cursor: pointer;
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .terminal-tab:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
    }
    .terminal-tab.active {
      background: rgba(99, 102, 241, 0.25);
      color: #fff;
      border-color: var(--accent-indigo);
      box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    }
    .terminal-body {
      padding: 24px;
      font-family: var(--font-mono);
      font-size: 13px;
      color: #cbd5e1;
      line-height: 1.6;
      min-height: 420px;
    }
    .code-comment { color: #64748b; }
    .code-keyword { color: #f43f5e; }
    .code-fn { color: #38bdf8; }
    .code-type { color: #34d399; }
    .code-str { color: #fbbf24; }

    /* Interactive Tool Panels */
    .tool-panel {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .tool-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    @media (max-width: 820px) {
      .tool-grid { grid-template-columns: 1fr; }
    }
    .control-card {
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid var(--border-subtle);
      border-radius: 12px;
      padding: 18px;
    }
    .control-card-title {
      font-size: 13px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .control-row {
      margin-bottom: 14px;
    }
    .control-row label {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 6px;
    }
    .control-row input[type="range"] {
      width: 100%;
      height: 6px;
      border-radius: 3px;
      background: rgba(255, 255, 255, 0.1);
      outline: none;
      -webkit-appearance: none;
    }
    .control-row input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--accent-indigo);
      cursor: pointer;
      box-shadow: 0 0 10px var(--accent-indigo);
    }
    .sim-stats-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin-bottom: 14px;
    }
    .stat-box {
      background: rgba(7, 9, 14, 0.7);
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      padding: 12px;
    }
    .stat-box-label {
      font-size: 11px;
      color: var(--text-muted);
      margin-bottom: 4px;
    }
    .stat-box-val {
      font-size: 18px;
      font-weight: 800;
      color: var(--accent-cyan);
    }
    .progress-bar-bg {
      width: 100%;
      height: 8px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 4px;
      overflow: hidden;
      margin-top: 6px;
    }
    .progress-bar-fill {
      height: 100%;
      width: 35%;
      background: #10b981;
      transition: width 0.3s ease, background-color 0.3s ease;
    }
    .sim-btn-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    .tool-btn {
      background: rgba(99, 102, 241, 0.15);
      border: 1px solid var(--accent-indigo);
      color: #fff;
      padding: 8px 16px;
      border-radius: 8px;
      font-size: 12px;
      font-family: var(--font-mono);
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .tool-btn:hover {
      background: var(--accent-indigo);
      box-shadow: 0 0 15px var(--glow-indigo);
    }
    .tool-btn-warning {
      background: rgba(245, 158, 11, 0.15);
      border-color: var(--accent-amber);
    }
    .tool-btn-warning:hover {
      background: var(--accent-amber);
      color: #000;
    }
    .terminal-stream-log {
      background: #04060a;
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      padding: 12px;
      font-size: 11px;
      color: #38bdf8;
      height: 140px;
      overflow-y: hidden;
      display: flex;
      flex-direction: column;
      gap: 4px;
      position: relative;
    }
    .das-metric-banner {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
      border: 1px solid rgba(16, 185, 129, 0.3);
      border-radius: 12px;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }
    .das-savings-tag {
      font-size: 24px;
      font-weight: 800;
      color: #34d399;
    }
    .scenario-picker {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 16px;
      width: 100%;
    }
    .scenario-btn {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-subtle);
      color: var(--text-muted);
      padding: 7px 12px;
      border-radius: 6px;
      font-size: 12px;
      font-family: var(--font-mono);
      cursor: pointer;
      transition: all 0.2s;
      white-space: normal;
      text-align: left;
      line-height: 1.35;
      max-width: 100%;
    }
    .scenario-btn.active {
      background: rgba(239, 68, 68, 0.15);
      border-color: #ef4444;
      color: #fca5a5;
    }
    .linter-diff-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 16px;
      width: 100%;
      min-width: 0;
    }
    @media (max-width: 820px) {
      .linter-diff-grid { grid-template-columns: minmax(0, 1fr); }
    }
    .diff-box {
      border-radius: 8px;
      padding: 14px;
      font-size: 12px;
      line-height: 1.5;
      min-width: 0;
      max-width: 100%;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .diff-box pre {
      margin: 0;
      font-size: 12px;
      max-width: 100%;
      min-width: 0;
      overflow-x: auto;
      overflow-y: hidden;
      white-space: pre;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 8px;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.2);
    }
    .diff-box pre code {
      display: block;
      white-space: pre;
      max-width: 100%;
    }
    .diff-box pre::-webkit-scrollbar {
      height: 6px;
    }
    .diff-box pre::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.3);
      border-radius: 3px;
    }
    .diff-box pre::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.3);
      border-radius: 3px;
    }
    .diff-box pre::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.5);
    }
    .diff-vulnerable {
      background: rgba(239, 68, 68, 0.07);
      border: 1px solid rgba(239, 68, 68, 0.3);
    }
    .diff-hardened {
      background: rgba(16, 185, 129, 0.07);
      border: 1px solid rgba(16, 185, 129, 0.3);
    }
    .diff-title {
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .diff-vulnerable .diff-title { color: #f87171; }
    .diff-hardened .diff-title { color: #34d399; }
