.pass-the-hash,
.pass-the-hash *,
.pass-the-hash *::before,
.pass-the-hash *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── CSS Custom Properties ── */
.pass-the-hash {
  --pth-bg: #06040e;
  --pth-surface: #23133a;
  --pth-card: #1f1232;
  --pth-border: #3a1c63;
  --pth-accent: #883CF0;
  --pth-accent2: #c77dff;
  --pth-accent3: #9d4edd;
  --pth-green: #7209b7;
  --pth-dim: #dcdfe7;
  --pth-purple: #a855f7;
  --pth-text: #ffffff;
  --pth-text-dim: #eff1f3;

  background: #191127;
  color: var(--pth-text);
  position: relative;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  height: 100vh;
}

/* ── Animated grid background ── */
.pth-wrap {
  position: relative;
}

.pth-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(221, 0, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 0, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Progress bar ── */
.pth-progress-bar {
  position: sticky;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--pth-accent);
  transition: width .3s;
  z-index: 1;
}

/* ── Container ── */
.pth-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.pth-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--pth-border);
  position: relative;
}

.pth-header-label {
  
  font-size: clamp(9px, 1.2vw, 11px);
  color: var(--pth-accent2);
  
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pth-header-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--pth-accent2);
  flex-shrink: 0;
}

/* FIX 1: Bebas Neue h1 - clamp for full responsiveness */
.pth-h1 {
  
  font-size: clamp(42px, 8vw, 96px);
  
  line-height: .9;
  color: #fff;
  position: relative;
}

.pth-h1-accent {
  color: var(--pth-accent);
  position: relative;
}

.pth-h1-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pth-accent);
  opacity: .4;
}

.pth-header-desc {
  
  font-size: clamp(14px, 2vw, 18px);
  color: var(--pth-text-dim);
  max-width: 600px;
  margin-top: 16px;
  font-weight: 400;
  
}

.pth-threat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #23133a;
  border: 1px solid #1f1232;
  color: var(--pth-accent2);
  
  font-size: clamp(9px, 1.2vw, 11px);
  padding: 4px 12px;
  
  margin-top: 20px;
}

.pth-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pth-accent2);
  animation: pth-pulse 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pth-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.8);
  }
}

/* ══════════════════════════════════════
   OVERVIEW CARDS
══════════════════════════════════════ */
.pth-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--pth-border);
  margin: 40px 0;
  border: 1px solid var(--pth-border);
}

.pth-overview-card {
  background: var(--pth-card);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.pth-overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
}

.pth-overview-card:nth-child(1)::before {
  background: var(--pth-accent);
}

.pth-overview-card:nth-child(2)::before {
  background: var(--pth-accent2);
}

.pth-overview-card:nth-child(3)::before {
  background: var(--pth-green);
}

.pth-card-label {
  
  font-size: 10px;
  
  color: var(--pth-text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* FIX 1: card value (Bebas Neue) - clamp */
.pth-card-value {
  
  font-size: clamp(26px, 4vw, 36px);
  
  margin-bottom: 6px;
}

.pth-overview-card:nth-child(1) .pth-card-value {
  color: var(--pth-accent);
}

.pth-overview-card:nth-child(2) .pth-card-value {
  color: var(--pth-accent2);
}

.pth-overview-card:nth-child(3) .pth-card-value {
  color: var(--pth-green);
}

.pth-card-desc {
  font-size: 13px;
  color: var(--pth-text-dim);
  font-weight: 400;
}

/* ══════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════ */
.pth-section {
  padding: 48px 0;
}

.pth-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: nowrap;
}

.pth-section-num {
  
  font-size: 11px;
  color: var(--pth-accent);
  opacity: .6;
  flex-shrink: 0;
}

/* FIX 1: section title (Bebas Neue) - clamp */
.pth-section-title {
  
  font-size: clamp(20px, 3.5vw, 32px);
  
  color: #fff;
  white-space: nowrap;
}

.pth-section-line {
  flex: 1;
  height: 1px;
  background: var(--pth-border);
  min-width: 20px;
}

/* ══════════════════════════════════════
   HASH ANATOMY
══════════════════════════════════════ */
.pth-hash-anatomy {
  background: var(--pth-card);
  border: 1px solid var(--pth-border);
  padding: 32px;
  position: relative;
}

.pth-hash-intro {
  font-size: 14px;
  color: var(--pth-text-dim);
  margin-bottom: 8px;
}

.pth-hash-display {
  
  font-size: clamp(11px, 1.5vw, 15px);
  word-break: break-all;
  margin: 20px 0;
  padding: 16px;
  background: var(--pth-surface);
  border-left: 3px solid var(--pth-accent3);
  position: relative;
  line-height: 1.8;
}

/* Wrap each part for tooltip positioning */
.pth-hash-wrap {
  position: relative;
  display: inline;
}

.pth-hash-part {
  cursor: pointer;
  padding: 2px 0;
  transition: background .2s;
  border-radius: 2px;
}

.pth-hash-part:hover {
  background: #2a1647;
}

.pth-hp-user {
  color: var(--pth-text);
}

.pth-hp-rid {
  color: var(--pth-text);
}

.pth-hp-lm {
  color: var(--pth-accent2);
}

.pth-hp-nt {
  color: var(--pth-accent);
}

.pth-hash-sep {
  color: var(--pth-dim);
}

/* Tooltip */
.pth-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #1f1232;
  border: 1px solid var(--pth-accent);
  padding: 10px 14px;
  
  font-size: 12px;
  color: var(--pth-text);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  white-space: nowrap;
  z-index: 1;
}

.pth-tooltip.pth-show {
  opacity: 1;
}

/* Hash legend */
.pth-hash-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pth-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  
  font-size: 12px;
}

.pth-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.pth-ld-white {
  background: var(--pth-text);
}

.pth-ld-accent {
  background: var(--pth-accent);
}

.pth-ld-accent2 {
  background: var(--pth-accent2);
}

.pth-lt-white {
  color: var(--pth-text-dim);
}

.pth-lt-accent {
  color: var(--pth-accent);
}

.pth-lt-accent2 {
  color: var(--pth-accent2);
}

/* Key insight box */
.pth-key-insight {
  margin-top: 20px;
  padding: 16px;
  background: #1f1232;
  border: 1px solid #5e309d;
}

.pth-ki-text {
  font-size: 13px;
  color: var(--pth-text-dim);
  
  line-height: 1.6;
}

/* ══════════════════════════════════════
   ATTACK FLOW DIAGRAM
══════════════════════════════════════ */
.pth-diagram-canvas {
  background: var(--pth-card);
  border: 1px solid var(--pth-border);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.pth-diagram-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(204, 0, 255, 0.04) 0%, transparent 70%);
}

.pth-flow-diagram {
  width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════
   STEP WALKTHROUGH TABS
══════════════════════════════════════ */
.pth-stepper-wrapper {
  padding-bottom: 0;
}

.pth-steps-nav {
  display: flex;
  gap: 0;
  border: 1px solid var(--pth-border);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--pth-accent) var(--pth-surface);
}

.pth-step-tab {
  flex: 1;
  min-width: 100px;
  padding: 16px 12px;
  background: var(--pth-surface);
  border: none;
  /* NOTE: bottom border (not top) - this design's unique tab style */
  border-right: 1px solid var(--pth-border);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .25s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.pth-step-tab:last-child {
  border-right: none;
}

.pth-step-tab.active {
  background: var(--pth-card);
  border-bottom-color: var(--pth-accent);
}

.pth-step-tab.completed {
  border-bottom-color: var(--pth-green);
}

.pth-tab-num {
  
  font-size: 10px;
  color: var(--pth-text-dim);
  
}

.pth-tab-label {
  
  font-size: clamp(9px, 1.2vw, 12px);
  font-weight: 600;
  color: var(--pth-text-dim);
  text-align: center;
  
  text-transform: uppercase;
}

.pth-tab-icon {
  font-size: 18px;
  filter: grayscale(1);
  opacity: .4;
  transition: all .25s;
}

.pth-step-tab.active .pth-tab-label,
.pth-step-tab.active .pth-tab-num,
.pth-step-tab.active .pth-tab-icon {
  color: var(--pth-accent);
  filter: none;
  opacity: 1;
}

.pth-step-tab.completed .pth-tab-label,
.pth-step-tab.completed .pth-tab-num,
.pth-step-tab.completed .pth-tab-icon {
  color: var(--pth-green);
  filter: none;
  opacity: 1;
}

/* ── Step panels ── */
.pth-step-panel {
  display: none;
  border: 1px solid var(--pth-border);
  border-top: none;
  background: var(--pth-card);
  animation: pth-fadeIn .3s ease;
}

.pth-step-panel.active {
  display: block;
}

@keyframes pth-fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pth-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.pth-panel-left {
  padding: 36px 32px;
  border-right: 1px solid var(--pth-border);
}

.pth-panel-right {
  padding: 36px 32px;
  background: var(--pth-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pth-step-phase {
  
  font-size: 10px;
  
  color: var(--pth-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* FIX 1: step heading (Bebas Neue) - clamp */
.pth-step-heading {
  
  font-size: clamp(24px, 4.5vw, 38px);
  
  color: #fff;
  margin-bottom: 16px;
  line-height: 1;
}

.pth-step-body {
  font-size: clamp(13px, 1.8vw, 15px);
  color: var(--pth-text);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 20px;
}

.pth-step-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pth-step-details li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--pth-text-dim);
  font-weight: 400;
}

/* FIX 2: list bullet - force text rendering */
.pth-step-details li::before {
  content: '▸';
  color: var(--pth-accent);
  flex-shrink: 0;
  margin-top: 1px;
  font-variant-emoji: text;
  -webkit-font-variant-emoji: text;
}

/* ── Terminal ── */
.pth-terminal {
  background: #1f172f;
  border: 1px solid #5e309d;
  border-radius: 4px;
  overflow: hidden;
  
  font-size: clamp(11px, 1.4vw, 13px);
  width: 100%;
}

.pth-terminal-header {
  background: #1f12321a;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #5e309d;
}

.pth-term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pth-td-r {
  background: #ff5f57;
}

.pth-td-y {
  background: #ffbd2e;
}

.pth-td-g {
  background: #28ca41;
}

.pth-term-title {
  margin-left: 8px;
  font-size: 11px;
  color: var(--pth-text-dim);
  
}

.pth-terminal-body {
  padding: 16px 18px;
  line-height: 2;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Terminal syntax colors */
.pth-prompt {
  color: var(--pth-green);
}

.pth-cmd {
  color: var(--pth-text);
}

.pth-output {
  color: #e7dbe9;
}

.pth-highlight {
  color: var(--pth-accent);
}

.pth-danger {
  color: var(--pth-accent2);
}

.pth-warn {
  color: var(--pth-accent3);
}

/* ── Controls - FIX 2: entities + font-variant-emoji ── */
.pth-step-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--pth-surface);
  border: 1px solid var(--pth-border);
  border-top: none;
  flex-wrap: wrap;
  gap: 12px;
}

.pth-btn {
  
  font-size: 12px;
  
  padding: 10px 24px;
  border: 1px solid;
  cursor: pointer;
  transition: all .2s;
  background: transparent;
  text-transform: uppercase;
  /* FIX 2: prevent ▶/◀ rendering as colored emoji */
  font-variant-emoji: text;
  -webkit-font-variant-emoji: text;
}

.pth-btn-prev {
  border-color: var(--pth-dim);
  color: var(--pth-text-dim);
}

.pth-btn-prev:hover:not(:disabled) {
  border-color: var(--pth-text);
  color: var(--pth-text);
}

.pth-btn-prev:disabled {
  opacity: .35;
  cursor: default;
}

.pth-btn-next {
  border-color: var(--pth-accent);
  color: var(--pth-accent);
}

.pth-btn-next:hover:not(:disabled) {
  background: var(--pth-accent);
  color: var(--pth-bg);
}

.pth-btn-next:disabled {
  opacity: .35;
  cursor: default;
}

.pth-step-indicator {
  
  font-size: 12px;
  color: var(--pth-text-dim);
}

.pth-step-indicator span {
  color: var(--pth-accent);
}

/* ══════════════════════════════════════
   ATTACKER TOOLKIT
══════════════════════════════════════ */
.pth-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--pth-border);
  border: 1px solid var(--pth-border);
}

.pth-tool-card {
  background: var(--pth-card);
  padding: 20px 22px;
  transition: background .2s;
}

.pth-tool-card:hover {
  background: #2a1647;
}

.pth-tool-name {
  
  font-size: 14px;
  color: var(--pth-accent);
  margin-bottom: 4px;
}

.pth-tool-type {
  font-size: 11px;
  
  color: var(--pth-accent2);
  
  margin-bottom: 8px;
}

.pth-tool-desc {
  font-size: 13px;
  color: var(--pth-text-dim);
  font-weight: 400;
}

/* ══════════════════════════════════════
   DEFENSES / MITIGATIONS
══════════════════════════════════════ */
.pth-mit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--pth-border);
  border: 1px solid var(--pth-border);
}

.pth-mit-card {
  background: var(--pth-card);
  padding: 24px 28px;
  position: relative;
  transition: background .2s;
}

.pth-mit-card:hover {
  background: #2a1647;
}

.pth-mit-icon {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

/* FIX 1: mit-title - body font 700 uppercase, clamp */
.pth-mit-title {
  
  font-weight: 700;
  font-size: clamp(13px, 1.8vw, 16px);
  color: var(--pth-green);
  
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pth-mit-desc {
  font-size: 14px;
  color: var(--pth-text-dim);
  font-weight: 400;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.pth-footer {
  border-top: 1px solid var(--pth-border);
  padding: 24px 0;
  text-align: center;
  
  font-size: 11px;
  color: var(--pth-text-dim);
  
}

/* ══════════════════════════════════════
   RESPONSIVE - TABLET (≤ 1024px)
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .pth-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ══════════════════════════════════════
   RESPONSIVE - MOBILE (≤ 768px)
══════════════════════════════════════ */
@media (max-width: 768px) {
  .pth-container {
    padding: 0 16px;
  }

  .pth-overview-grid {
    grid-template-columns: 1fr;
  }

  .pth-panel-inner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .pth-panel-left {
    border-right: none;
    border-bottom: 1px solid var(--pth-border);
  }

  .pth-panel-right {
    justify-content: flex-start;
  }

  .pth-mit-grid {
    grid-template-columns: 1fr;
  }

  .pth-tools-grid {
    grid-template-columns: 1fr;
  }

  .pth-step-tab {
    min-width: 70px;
    padding: 12px 6px;
  }

  .pth-step-controls {
    justify-content: center;
    padding: 12px 16px;
  }

  .pth-btn {
    padding: 8px 16px;
    font-size: 11px;
  }

  .pth-section-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .pth-section-line {
    min-width: 100%;
  }

  .pth-diagram-canvas {
    overflow-x: auto;
  }

  .pth-flow-diagram {
    min-width: 640px;
  }

  .pth-hash-display {
    font-size: 11px;
  }

  .pth-tooltip {
    white-space: normal;
    max-width: 220px;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE - SMALL MOBILE (≤ 480px)
══════════════════════════════════════ */
@media (max-width: 480px) {
  .pth-hash-anatomy {
    padding: 20px 16px;
  }

  .pth-panel-left,
  .pth-panel-right {
    padding: 24px 16px;
  }

  .pth-step-controls {
    padding: 12px;
  }
}

/* ══════════════════════════════════════
   THEME RESET - suppress WP chrome
══════════════════════════════════════ */
.pass-the-hash #page,
.pass-the-hash #masthead,
.pass-the-hash .site-header,
.pass-the-hash .site-footer,
.pass-the-hash .entry-header,
.pass-the-hash .entry-content>*:not(.pth-wrap) {
  display: none !important;
}

.pass-the-hash body {
  background: var(--pth-bg) !important;
  margin: 0 !important;
  padding: 0 !important;
}


  /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 5px; height: 6px; }
  ::-webkit-scrollbar-track { background: #873cf015; }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }