/* ✅ Ensure background layers NEVER block the UI */
.office-bg,
.office-scrim {
  pointer-events: none !important;
  z-index: -10 !important;
}

/* ✅ Ensure header + terminal sit above everything */
.support-terminal-page header {
  position: relative;
  z-index: 50;
}

.support-terminal-page main.terminal-stage {
  position: relative;
  z-index: 1;
}

/* Support page MUST not use the global body background */
html, body.support-terminal-page {
  background-image: none !important;
  background: transparent !important;
  height: 100%;
  overflow: hidden !important;   /* stops page scroll */
}

/* support-terminal.css — Support Terminal ONLY */
.support-terminal-page main.terminal-stage {
  display: block; /* IMPORTANT: override global main { display:flex } */
  position: relative;
  min-height: calc(100vh - 140px);
}

/* Background office */
.office-bg{
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;

  z-index: 0 !important;                 /* <-- NOT negative */
  outline: 4px solid red !important;     /* temp debug */

  background: url("../assets/bg/support-office.png") center/cover no-repeat fixed !important;
  pointer-events: none;
}

/* Scrim to keep readability */
.office-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.78) 70%, rgba(0,0,0,0.92) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.78));
}

/* Stage */
.terminal-stage {
  padding: 6px 14px 10px;
  height: calc(100vh - 140px); /* adjust if header/footer differ */
  overflow: hidden;
}

/* Desk area */
.desk-wrap {
  max-width: 1100px;
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 36px;
}

/* Monitor body */
.monitor {
  width: min(760px, 90vw); /* smaller */
  max-height: 480px;          /* <- adjust this number */
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(160,255,130,0.16);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.65),
    0 0 22px rgba(21,251,0,0.10);
  position: relative;
  overflow: hidden;
}

/* Subtle “glass reflection” */
.monitor-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.06), rgba(255,255,255,0.0) 35%, rgba(255,255,255,0.04) 70%, rgba(255,255,255,0.0));
  opacity: 0.7;
  mix-blend-mode: overlay;
}

/* Top bar */
.monitor-topbar {
  display: grid;
  grid-template-columns: 120px 1fr 180px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.70);
  border-bottom: 1px solid rgba(160,255,130,0.10);
}

.topbar-left { display:flex; gap:8px; padding-left: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.85; }
.dot.red { background: #ff3b30; }
.dot.yellow { background: #ffcc00; }
.dot.green { background: #34c759; }

.topbar-title {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: rgba(230,255,230,0.86);
  font-weight: 800;
}

.topbar-user {
  justify-self: end;
  font-size: 0.85rem;
  color: rgba(230,255,230,0.85);
  padding-right: 6px;
}

/* Screen area */
.monitor-screen {
  flex: 1;                    /* fills remaining height inside monitor */
  min-height: 0;              /* IMPORTANT: allows scrolling inside */
  padding: 14px;
  height: 440px;                 /* key: fixed viewport inside monitor */
  overflow: auto;                /* scroll happens here */
  background: rgba(0,0,0,0.25);  /* or #000 / transparent per your preference */
  border-radius: 0 0 18px 18px;
}

/* Desk edge */
.desk-edge {
  width: min(980px, 98vw);
  height: 24px;
  margin-top: 14px;
  border-radius: 0 0 18px 18px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(160,255,130,0.10);
  border-top: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.55);
}

/* Terminal UI components */
.term-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.term-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(160,255,130,0.14);
  border-radius: 14px;
  padding: 12px;
}

.term-title {
  font-family: 'CreepsterLocal', cursive;
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: #aefc7a;
}

.term-sub {
  margin: 0 0 10px;
  color: rgba(235,255,235,0.88);
}

.term-actions {
  display: grid;
  gap: 8px;
}

.term-btn {
  width: 100%;
  text-align: left;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(160,255,130,0.16);
  color: rgba(235,255,235,0.95);
  padding: 9px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}
.term-btn:hover { transform: translateY(-1px); border-color: rgba(21,251,0,0.45); }

.term-row { display: grid; gap: 6px; margin-top: 10px; }
.term-row label { font-weight: 800; }
.term-row input, .term-row select, .term-row textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(160,255,130,0.16);
  background: rgba(0,0,0,0.75);
  color: rgba(235,255,235,0.95);
}

.term-help {
  font-size: 0.85rem;
  opacity: 0.82;
  margin-top: 6px;
}

.term-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.term-primary {
  background: #15fb00;
  color: #041004;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}
.term-ghost {
  background: rgba(255,255,255,0.03);
  color: rgba(235,255,235,0.92);
  border: 1px solid rgba(160,255,130,0.16);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

.term-pill {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(160,255,130,0.30);
  color: rgba(230,255,230,0.85);
  background: rgba(255,255,255,0.02);
}

@media (max-width: 900px) {
  .monitor-screen { min-height: 720px; }
  .term-grid { grid-template-columns: 1fr; }
}
