/* ==========================================================
   Reverse-shell generator (v2 / tactical-console)
   ========================================================== */

.bg-grid, .bg-glow, .bg-blog-img, .bg-cheat-img, .bg-hero-img { display: none; }

.rev-page { background: var(--bg); }

/* ----- HERO ----- */
.rev-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 32px 32px;
  position: relative;
  z-index: 2;
}
.rev-hero-inner { max-width: 880px; }
.rev-h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.03em;
  margin: 14px 0 18px;
  color: var(--text);
}
.rev-h1 span { display: block; }
.rev-h1 .gradient {
  background: linear-gradient(90deg, var(--amber) 0%, var(--crimson) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rev-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 660px;
  line-height: 1.65;
  margin-bottom: 26px;
}
.rev-sub code {
  font-family: var(--font-mono);
  font-size: .92em;
  padding: 2px 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--amber-2);
}

/* ----- INPUT PANEL ----- */
.rev-inputs {
  width: calc(100% - 64px);
  max-width: 1216px;
  margin: 0 auto 24px;
  padding: 22px 26px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  position: relative;
  z-index: 2;
}
.rev-inputs-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.rev-field { display: flex; flex-direction: column; gap: 6px; }
.rev-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--text-3);
  text-transform: uppercase;
}
.rev-field input,
.rev-field select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--amber-2);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border .15s, background .15s;
}
.rev-field input:focus,
.rev-field select:focus { border-color: var(--amber); }
.rev-field input::placeholder { color: var(--text-4); }

.rev-detect-ip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all .15s;
  white-space: nowrap;
}
.rev-detect-ip:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-soft);
}

/* ----- TABS ----- */
.rev-tabs {
  max-width: 1280px;
  margin: 0 auto 18px;
  padding: 0 32px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.rev-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s;
}
.rev-tab:hover { border-color: var(--border-strong); color: var(--text); }
.rev-tab.on {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: var(--amber);
}
.rev-tab .icon { font-size: 14px; }
.rev-tab .cnt {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 2px;
  background: var(--bg-2);
  color: var(--text-3);
  letter-spacing: .04em;
}
.rev-tab.on .cnt { color: var(--amber); background: var(--bg-2); }

/* ----- SEARCH ----- */
.rev-toolbar {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
.rev-search { position: relative; width: 100%; }
.rev-search .search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
}
.rev-search input {
  width: 100%;
  padding: 14px 14px 14px 46px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: border .15s, box-shadow .15s;
}
.rev-search input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

/* ----- LAYOUT ----- */
.rev-layout {
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.rev-side {
  position: sticky;
  top: 84px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.rev-side-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--amber);
  padding: 6px 8px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

#shellList { display: flex; flex-direction: column; gap: 2px; }
.shell-item {
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .12s;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.shell-item:hover { background: var(--surface); color: var(--text); }
.shell-item.on {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: var(--amber);
  font-weight: 600;
}
.shell-item .lang-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--violet);
}
.shell-item.lang-bash .lang-dot,
.shell-item.lang-sh   .lang-dot { background: var(--emerald); }
.shell-item.lang-nc   .lang-dot,
.shell-item.lang-ncat .lang-dot,
.shell-item.lang-rcat .lang-dot,
.shell-item.lang-busybox .lang-dot { background: var(--amber); }
.shell-item.lang-python .lang-dot,
.shell-item.lang-perl   .lang-dot,
.shell-item.lang-ruby   .lang-dot,
.shell-item.lang-lua    .lang-dot,
.shell-item.lang-php    .lang-dot { background: var(--cyan); }
.shell-item.lang-go     .lang-dot,
.shell-item.lang-rust   .lang-dot,
.shell-item.lang-c      .lang-dot,
.shell-item.lang-haskell .lang-dot,
.shell-item.lang-crystal .lang-dot,
.shell-item.lang-dart   .lang-dot { background: var(--crimson); }
.shell-item.lang-powershell .lang-dot,
.shell-item.lang-cmd    .lang-dot { background: #60a5fa; }
.shell-item.lang-msf    .lang-dot { background: var(--crimson); }
.shell-item.lang-listen .lang-dot,
.shell-item.lang-tty    .lang-dot { background: var(--violet); }

.shell-item .badge {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--bg-2);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ----- DETAIL PANEL ----- */
.rev-detail {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.rev-detail-head {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 16px;
}
.rev-detail-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  color: var(--amber);
  flex-shrink: 0;
}
.rev-detail-meta { flex: 1; min-width: 0; }
.rev-detail-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 4px;
  color: var(--text);
}
.rev-detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rev-detail-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.rev-detail-actions { display: flex; gap: 6px; flex-shrink: 0; }
.rev-action-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}
.rev-action-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-soft);
}
.rev-action-btn.copied {
  color: var(--emerald);
  border-color: var(--emerald);
  background: var(--emerald-soft);
}
.rev-action-btn svg { width: 12px; height: 12px; }

.rev-code-wrap {
  position: relative;
  background: var(--bg-2);
  margin: 0;
}
.rev-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  padding: 22px 26px;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
}
.rev-code .var-tok {
  color: var(--violet);
  font-weight: 600;
}
.rev-code .var-tok.filled {
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 0 3px;
  border-radius: 2px;
}
.rev-code mark {
  background: var(--crimson-soft);
  color: var(--crimson-2);
  border-radius: 2px;
  padding: 0 2px;
}

/* ----- PRO TIP ----- */
.rev-tip {
  padding: 16px 26px;
  background: var(--amber-soft);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.rev-tip-icon { font-size: 16px; flex-shrink: 0; color: var(--amber); }
.rev-tip strong { color: var(--amber); font-weight: 700; }
.rev-tip code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 1px 6px;
  background: var(--surface);
  border-radius: 2px;
  color: var(--amber-2);
  border: 1px solid var(--border);
}

/* ----- TOAST ----- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 11px 20px;
  background: var(--amber);
  color: #0B0905;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  box-shadow: 0 12px 40px var(--amber-glow);
  z-index: 200;
  transition: transform .3s cubic-bezier(.5, 1.5, .5, 1);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .rev-inputs { padding: 18px; }
  .rev-inputs-row { grid-template-columns: 1fr 1fr; }
  .rev-detect-ip { grid-column: span 2; }
  .rev-layout { grid-template-columns: 1fr; }
  .rev-side { position: relative; top: 0; max-height: none; }
  #shellList { flex-direction: row; flex-wrap: wrap; }
  .shell-item { flex: 1 1 200px; }
}
@media (max-width: 700px) {
  .rev-hero, .rev-tabs, .rev-toolbar, .rev-layout {
    padding-left: 20px; padding-right: 20px;
  }
  .rev-inputs { width: calc(100% - 40px); padding: 18px; }
  .rev-detail-head { flex-direction: column; align-items: flex-start; }
  .rev-code { font-size: 11.5px; padding: 16px; }
}
