/* ============================================================
   RECRUIT PROFILE — modals, nav widget, dashboard page
   ============================================================ */

/* ============ SHARED AVATAR ============ */
.rc-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--noir-0);
  border: 1.5px solid var(--pink);
  box-shadow: 0 0 12px rgba(255,27,107,0.35);
  overflow: hidden;
}
.rc-avatar svg { width: 100%; height: 100%; display: block; }

/* ============ ONBOARDING + LOGIN MODAL BOX ============ */
.rc-modal .modal-box.rc-box {
  max-width: 560px;
  padding: 2rem 1.6rem 1.4rem;
}
.rc-progress {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 1rem;
}
.rc-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255,27,107,0.4);
  transition: all 0.2s;
}
.rc-dot.is-active {
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 12px var(--pink-glow);
}
.rc-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--pink);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 6px;
}
.rc-title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.15;
}
.rc-title .italic { font-style: italic; }
.rc-hint {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 1.4rem;
}
.rc-hint .pink { color: var(--pink); }

.rc-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: #d6c2cc;
  text-transform: uppercase;
  margin: 12px 0 4px;
}
.rc-input, .rc-select, .rc-textarea {
  width: 100%;
  background: var(--noir-0);
  border: 1px solid rgba(255,27,107,0.4);
  color: #fff;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}
.rc-input:focus, .rc-select:focus, .rc-textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 16px rgba(255,27,107,0.25);
}
.rc-textarea { resize: vertical; min-height: 80px; }

.rc-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
}
.rc-nav .btn-outline, .rc-nav .btn-primary { flex: 1; justify-content: center; }

/* ============ AVATAR GRID ============ */
.rc-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.rc-avatar-choice {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 8px 6px;
  background: transparent;
  border: 1px solid rgba(255,27,107,0.25);
  color: inherit;
  cursor: pointer;
  transition: all 0.18s;
}
.rc-avatar-choice svg {
  width: 56px; height: 56px;
  display: block;
}
.rc-avatar-choice:hover {
  border-color: var(--pink);
  background: rgba(255,27,107,0.06);
}
.rc-avatar-choice.is-selected {
  border-color: var(--pink);
  background: rgba(255,27,107,0.15);
  box-shadow: 0 0 20px rgba(255,27,107,0.35);
}
.rc-avatar-name {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.1;
}
.rc-avatar-choice.is-selected .rc-avatar-name {
  color: var(--pink);
}

/* ============ REVIEW STEP ============ */
.rc-review {
  display: flex; gap: 1rem;
  padding: 1rem;
  background: rgba(255,27,107,0.05);
  border: 1px solid rgba(255,27,107,0.3);
}
.rc-review-avatar {
  width: 80px; height: 80px;
  flex-shrink: 0;
}
.rc-review-body { flex: 1; }
.rc-review-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dotted rgba(255,27,107,0.18);
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 2px;
  color: #b9a4af; text-transform: uppercase;
}
.rc-review-row .v {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: none;
  text-align: right;
  max-width: 60%;
}
.rc-review-row .v.pink { color: var(--pink); }
.rc-review-row .v.italic { font-family: var(--f-display); font-style: italic; }

/* ============ LOGIN MODAL ============ */
.rc-login-box .btn-primary.btn-block { margin-top: 1.4rem; }
.rc-error {
  color: #ff6ba8;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  min-height: 16px;
  margin-top: 6px;
  text-align: center;
}
.rc-alt, .rc-alt-2 {
  text-align: center;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.rc-alt a, .rc-alt-2 a {
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1px dashed;
  padding-bottom: 1px;
}
.rc-alt a:hover, .rc-alt-2 a:hover { color: #fff; border-color: #fff; }
.rc-alt-2 { margin-top: 8px; opacity: 0.7; }

/* ============ NAV WIDGET ============ */
#rcNavWidget {
  display: flex; align-items: center;
}
.rc-nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(255,27,107,0.4);
  color: var(--pink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
}
.rc-nav-btn:hover {
  background: rgba(255,27,107,0.12);
  border-color: var(--pink);
  color: #fff;
}
.rc-nav-btn.is-logged {
  padding: 4px 12px 4px 4px;
  gap: 10px;
}
.rc-nav-avatar {
  width: 30px !important; height: 30px !important;
  border-width: 1px !important;
  box-shadow: 0 0 8px rgba(255,27,107,0.4) !important;
}
.rc-nav-labels {
  display: flex; flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: 0.3px;
}
.rc-nav-name {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.rc-nav-rank {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pink);
}
.rc-nav-lock, .rc-nav-plus {
  font-size: 13px;
  color: var(--pink);
}

/* ============ RECRUIT FILE PAGE ============ */
#page-recruit-file .rf-hero-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 980px) {
  #page-recruit-file .rf-hero-wrap { grid-template-columns: 1fr; }
}
.rf-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--pink);
  line-height: 1.4;
  border-left: 2px solid var(--pink);
  padding-left: 12px;
  margin: 1.2rem 0;
  max-width: 500px;
}
.rf-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 1.4rem;
}

/* ============ RECRUIT BADGE (right column) ============ */
.rf-badge {
  position: relative;
  background: linear-gradient(180deg, rgba(20,8,14,0.75), rgba(10,4,7,0.95));
  border: 1px solid var(--pink);
  padding: 1.4rem;
  box-shadow: 0 0 42px rgba(255,27,107,0.22), inset 0 0 14px rgba(255,27,107,0.08);
}
.rf-badge::before {
  content: '';
  position: absolute; inset: 6px;
  border: 1px dashed rgba(255,27,107,0.2);
  pointer-events: none;
}
.rf-stamp {
  position: absolute;
  top: -14px; right: -14px;
  background: var(--pink); color: #000;
  font-family: var(--f-federal); font-weight: 700;
  font-size: 0.6rem; letter-spacing: 3px;
  padding: 5px 12px;
  transform: rotate(6deg);
  text-transform: uppercase;
  z-index: 3;
}
.rf-badge-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: 0.55rem; letter-spacing: 3px;
  color: var(--silver-dim); text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,27,107,0.18);
}
.rf-badge-head .pink { color: var(--pink); }
.rf-id {
  font-family: var(--f-display);
  font-size: 0.95rem; font-weight: 700;
  font-style: italic;
  color: var(--pink);
}
.rf-badge-body {
  display: flex; gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.rf-badge-avatar {
  width: 90px !important;
  height: 90px !important;
  flex-shrink: 0;
}
.rf-badge-info { flex: 1; }
.rf-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dotted rgba(255,27,107,0.18);
  font-family: var(--f-mono);
  font-size: 0.55rem; letter-spacing: 2.5px;
  color: var(--silver-dim); text-transform: uppercase;
}
.rf-row .v {
  color: var(--text);
  font-family: var(--f-federal);
  font-size: 0.78rem; letter-spacing: 1.5px;
}
.rf-row .v.pink { color: var(--pink); }

.rf-rank-wrap {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255,27,107,0.05);
  border: 1px solid rgba(255,27,107,0.25);
}
.rf-rank-label {
  font-family: var(--f-mono);
  font-size: 0.55rem; letter-spacing: 3px;
  color: var(--silver-dim); text-transform: uppercase;
}
.rf-rank-name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.4rem; color: var(--pink);
  margin: 4px 0 10px;
  text-shadow: 0 0 14px var(--pink-glow);
}
.rf-rank-bar {
  width: 100%; height: 8px;
  background: rgba(255,27,107,0.15);
  overflow: hidden;
  position: relative;
}
.rf-rank-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink-hot), var(--pink));
  box-shadow: 0 0 12px var(--pink-glow);
  transition: width 0.5s;
}
.rf-rank-hint {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 0.55rem; letter-spacing: 1.5px;
  color: var(--text-muted); text-transform: uppercase;
}
.rf-rank-hint.pink { color: var(--pink); }
.rf-rank-hint .pink { color: var(--pink); }

.rf-section {
  margin: 2rem 0;
  padding: 1.4rem;
  border: 1px solid rgba(255,27,107,0.25);
  background: linear-gradient(180deg, rgba(255,27,107,0.03), transparent 60%);
}
.rf-section .section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap;
}
.rf-section .section-title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0.3rem 0 0.4rem;
  line-height: 1.1;
}
.rf-section .section-title .italic { font-style: italic; }
.rf-section .section-title .ink-pink { color: var(--pink); }
.rf-hint2 { color: #c4b1ba; font-size: 0.85rem; line-height: 1.4; }
.rf-story {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.15rem;
  color: #e9d8e0;
  line-height: 1.55;
  margin: 0.6rem 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--pink);
  background: rgba(255,27,107,0.04);
}

.rf-brief-recs {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.rf-brief-recs .btn-primary {
  padding: 12px 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pink); color: var(--noir-0);
  border: 1px solid var(--pink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 18px var(--pink-glow);
}

/* ============ MOBILE ADJUSTMENTS ============ */
@media (max-width: 600px) {
  .rc-nav-labels { display: none; }
  .rc-nav-btn { padding: 4px 8px; }
  .rf-badge { padding: 1rem; }
  .rf-badge-body { flex-direction: column; align-items: center; text-align: center; }
  .rf-badge-avatar { margin: 0 auto; }
  .rf-hero-wrap { gap: 1.6rem; }
  .rc-avatar-grid { grid-template-columns: repeat(3, 1fr); }
  .rc-review { flex-direction: column; align-items: center; text-align: center; }
  .rc-review-row { justify-content: center; flex-direction: column; }
  .rc-review-row .v { text-align: center; max-width: 100%; }
}

/* ============ SHARE-WITH-DEPARTMENT CHECKBOX ============ */
.rc-share-row {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 14px 0 4px;
  padding: 10px 12px;
  background: rgba(255,27,107,0.05);
  border: 1px dashed rgba(255,27,107,0.35);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #d6c2cc;
  cursor: pointer;
  user-select: none;
}
.rc-share-row input[type="checkbox"] {
  accent-color: var(--pink);
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px; height: 16px;
  cursor: pointer;
}
.rc-share-row .pink { color: var(--pink); font-size: 11px; }

/* ============ HOME + RECRUITMENT ENLIST PANEL ============ */
.home-enlist-panel {
  position: relative;
  margin-top: 1.4rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, rgba(255,27,107,0.08), rgba(255,27,107,0.02) 60%);
  border: 1px solid var(--pink);
  isolation: isolate;
  overflow: hidden;
}
.home-enlist-panel::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,27,107,0.28) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: hepPulse 4s ease-in-out infinite;
}
@keyframes hepPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.95; }
}
.hep-corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--pink);
  pointer-events: none;
}
.hep-corner.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.hep-corner.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.hep-corner.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.hep-corner.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.hep-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hep-title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 8px;
}
.hep-title .italic { font-style: italic; }
.hep-title .ink-pink { color: var(--pink); }
.hep-sub {
  color: #c4b1ba;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 480px;
}
.hep-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hep-actions .btn-primary,
.hep-actions .btn-outline {
  padding: 10px 20px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--pink);
  transition: all 0.18s;
}
.hep-actions .btn-primary {
  background: var(--pink); color: var(--noir-0);
  box-shadow: 0 0 18px var(--pink-glow);
}
.hep-actions .btn-primary:hover {
  background: var(--pink-hot, #ff3d80);
  box-shadow: 0 0 28px rgba(255,27,107,0.7);
}
.hep-actions .btn-outline {
  background: transparent; color: var(--pink);
}
.hep-actions .btn-outline:hover {
  background: rgba(255,27,107,0.1);
}

/* Hide home-enlist-panel below the classified box on desktop when profile already exists — optional polish */

/* Mobile adjustments */
@media (max-width: 540px) {
  .home-enlist-panel { padding: 1.2rem 1rem; }
  .hep-actions { flex-direction: column; }
  .hep-actions .btn-primary, .hep-actions .btn-outline { justify-content: center; }
}

/* ============ NAV: extra breathing room around Sign In / Enlist widget ============ */
@media (min-width: 901px) and (pointer: fine) {
  #rcNavWidget {
    margin-left: 1.6rem;
    margin-right: 0.4rem;
  }
}

/* ============ PHONE: fix vault text one-letter-per-line ============ */
@media (max-width: 600px) {
  #admin-vault .av-row {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    padding: 8px 0 !important;
  }
  #admin-vault .av-k {
    color: var(--pink) !important;
    margin-bottom: 2px;
  }
  #admin-vault .av-v {
    font-size: 0.75rem !important;
    line-height: 1.5;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none;
  }
  #admin-vault .av-box {
    padding: 1rem !important;
  }
  #admin-vault .av-card {
    padding: 0.7rem 0.8rem !important;
  }
}

/* ============ RECRUITMENT PAGE: full-width Enlist strip ============ */
.recruit-enlist-strip {
  position: relative;
  margin: 3rem calc(50% - 50vw) 0;
  padding: 2.4rem calc(50vw - 50% + 1rem);
  background: linear-gradient(90deg,
    rgba(255,27,107,0.14) 0%,
    rgba(255,27,107,0.05) 50%,
    rgba(255,27,107,0.14) 100%);
  border-top: 1px solid var(--pink);
  border-bottom: 1px solid var(--pink);
  overflow: hidden;
}
.recruit-enlist-strip::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,27,107,0.25), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255,27,107,0.2),  transparent 60%);
  filter: blur(30px);
  z-index: 0;
  animation: hepPulse 5s ease-in-out infinite;
}
.res-strip-inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 780px) {
  .res-strip-inner { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .res-strip-right { justify-content: center !important; }
}
.res-strip-left {}
.res-strip-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.res-strip-title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 10px;
}
.res-strip-title .italic { font-style: italic; }
.res-strip-title .ink-pink { color: var(--pink); }
.res-strip-sub {
  color: #c4b1ba;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 560px;
}
.res-strip-right {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: flex-end;
}
.res-strip-right .btn-primary,
.res-strip-right .btn-outline {
  padding: 14px 26px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--pink);
  transition: all 0.18s;
}
.res-strip-right .btn-primary {
  background: var(--pink); color: var(--noir-0);
  box-shadow: 0 0 22px var(--pink-glow);
}
.res-strip-right .btn-primary:hover {
  background: var(--pink-hot, #ff3d80);
  box-shadow: 0 0 32px rgba(255,27,107,0.75);
}
.res-strip-right .btn-outline {
  background: transparent; color: var(--pink);
}
.res-strip-right .btn-outline:hover {
  background: rgba(255,27,107,0.12);
}

/* ============ RECRUIT FILE: quiz scorecard ============ */
.rf-scorecard {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.4rem;
  align-items: start;
}
@media (max-width: 720px) {
  .rf-scorecard { grid-template-columns: 1fr; }
}
.rf-quiz-rank {
  display: flex; flex-direction: column;
  padding: 1.2rem;
  background: rgba(255,27,107,0.06);
  border: 1px solid var(--pink);
  text-align: center;
}
.rf-qr-lbl {
  font-family: var(--f-mono);
  font-size: 0.55rem; letter-spacing: 3px;
  color: var(--silver-dim); text-transform: uppercase;
}
.rf-qr-name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--pink);
  margin: 8px 0 6px;
  text-shadow: 0 0 14px var(--pink-glow);
  line-height: 1.15;
}
.rf-qr-score {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: #d6c2cc; text-transform: uppercase;
}
.rf-stat-bars {
  display: grid; gap: 10px;
}
.rf-stat-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) 3fr auto;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dotted rgba(255,27,107,0.18);
}
.rf-stat-lbl {
  font-family: var(--f-mono);
  font-size: 0.6rem; letter-spacing: 2px;
  color: var(--silver-dim); text-transform: uppercase;
}
.rf-stat-track {
  height: 8px;
  background: rgba(255,27,107,0.12);
  overflow: hidden;
}
.rf-stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink-hot, #ff3d80), var(--pink));
  box-shadow: 0 0 8px var(--pink-glow);
  transition: width 0.6s;
}
.rf-stat-num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1rem;
  color: var(--pink);
  min-width: 30px;
  text-align: right;
}
@media (max-width: 480px) {
  .rf-stat-row { grid-template-columns: 1fr; gap: 4px; }
  .rf-stat-num { text-align: left; }
}

/* ============ TIGHTEN Recruit Enlist Strip Spacing ============ */
.recruit-enlist-strip {
  margin-top: 1.4rem !important;
  padding-top: 1.6rem !important;
  padding-bottom: 1.6rem !important;
}
#page-resources .section:last-of-type,
#page-resources .section + .recruit-enlist-strip {
  margin-top: 1rem !important;
}

/* ============ Privacy pills (NO EMAILS · ANONYMOUS) ============ */
.res-strip-privacy {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 10px;
}
.rsp-pill {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(255,27,107,0.12);
  border: 1px solid var(--pink);
  color: var(--pink);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255,27,107,0.4);
}
@media (max-width: 540px) {
  .rsp-pill { font-size: 8px; padding: 4px 8px; }
}

/* ============ CHAT ROOM (in Recruit File dashboard) ============ */
.rf-chat {
  margin: 2rem 0;
  padding: 1.4rem;
  border: 1px solid var(--pink);
  background: linear-gradient(180deg, rgba(255,27,107,0.05), transparent);
  position: relative;
}
.rf-chat-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(255,27,107,0.3);
}
.rf-chat-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  margin: 0;
}
.rf-chat-title .pink { color: var(--pink); }
.rf-chat-status {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--pink);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.rf-chat-status::before {
  content: '●';
  color: var(--pink);
  animation: rfChatDot 1.6s ease-in-out infinite;
}
@keyframes rfChatDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ↑ Earlier messages hint — shown when chat is scrolled to bottom with older messages above */
.rf-chat-above-hint {
  display: none;
  text-align: center;
  padding: 5px 0 4px;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #b9a4af;
  background: linear-gradient(to bottom, rgba(20,5,15,0.9) 0%, rgba(20,5,15,0.5) 100%);
  border: 1px solid rgba(255,27,107,0.15);
  border-bottom: none;
  text-transform: uppercase;
  pointer-events: none;
  animation: rfHintFade 0.3s ease;
}
.rf-chat-above-hint.visible { display: block; }
@keyframes rfHintFade { from { opacity: 0; } to { opacity: 1; } }

.rf-chat-log {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 4px;
  background: var(--noir-0);
  border: 1px solid rgba(255,27,107,0.15);
}
.rf-chat-msg {
  display: flex; gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px dotted rgba(255,27,107,0.1);
}
.rf-chat-msg:last-child { border-bottom: 0; }
.rf-chat-msg.is-me { background: rgba(255,27,107,0.06); }
.rf-chat-avatar {
  width: 32px !important; height: 32px !important;
  border-width: 1px !important;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255,27,107,0.3) !important;
}
.rf-chat-body { flex: 1; min-width: 0; }
.rf-chat-meta {
  display: flex; gap: 8px; align-items: baseline;
  margin-bottom: 2px;
  font-size: 10px;
}
.rf-chat-name {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  color: var(--pink);
}
/* Clickable name + avatar buttons */
.rf-chat-name-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(255,27,107,0.4);
  text-underline-offset: 3px;
}
.rf-chat-name-btn:hover { text-decoration-color: var(--pink); }
.rf-chat-avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: opacity 0.15s;
}
.rf-chat-avatar-btn:hover { opacity: 0.75; }
.rf-chat-time {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--silver-dim);
  text-transform: uppercase;
}
.rf-chat-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #e9d8e0;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}
.rf-chat-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--silver-dim);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.rf-chat-input-row {
  display: flex; gap: 8px;
  margin-top: 12px;
  align-items: stretch;
}
.rf-chat-input {
  flex: 1;
  background: var(--noir-0);
  border: 1px solid rgba(255,27,107,0.4);
  color: #fff;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
}
.rf-chat-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 14px rgba(255,27,107,0.25);
}
.rf-chat-send {
  padding: 10px 22px;
  background: var(--pink);
  color: var(--noir-0);
  border: 1px solid var(--pink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 18px var(--pink-glow);
}
.rf-chat-send:hover {
  background: var(--pink-hot, #ff3d80);
  box-shadow: 0 0 28px rgba(255,27,107,0.7);
}
.rf-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.rf-chat-note {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--silver-dim);
  text-transform: uppercase;
  text-align: center;
}
.rf-chat-note .pink { color: var(--pink); }
.rf-chat-error {
  color: #ff6ba8;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 8px;
  text-align: center;
}

/* ============ GLOBAL PHONE OVERFLOW FIX ============
   Ensure NO page ever lets content spill past the viewport edges on small phones. */
@media (max-width: 600px) {
  html, body { overflow-x: hidden !important; max-width: 100vw !important; }
  .page, .page-content, .page-hero, .hero-wrap, .section, .section-sm {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .page-content { padding-left: 12px !important; padding-right: 12px !important; }
  .page-hero    { padding-left: 12px !important; padding-right: 12px !important; }
  .hero-wrap    { padding-left: 0 !important; padding-right: 0 !important; }
  /* Long words in any card / stamp: wrap sanely, don't break letters */
  .rc-row .v, .rf-row .v, .rc-review-row .v, .av-v, .sub-v {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }
  /* Prevent any grid/flex row from forcing minimum-content width past viewport */
  [class^="rc-"], [class^="rf-"], [class^="br-"], [class^="hep-"], [class^="res-strip-"] {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* ============ CHAT: owner crown + delete button styles ============ */
.rf-chat-owner {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, #ffc857, #c9a96e);
  color: #050204;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  font-weight: 700;
}
.rf-chat-msg.is-owner {
  background: linear-gradient(90deg, rgba(255,200,87,0.12), rgba(255,27,107,0.05));
  border-left: 3px solid #ffc857;
  padding-left: 10px !important;
}
.rf-chat-msg.is-owner .rf-chat-name { color: #ffc857; }
.rf-chat-del {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,27,107,0.4);
  color: var(--pink);
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1;
  padding: 0 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.rf-chat-msg:hover .rf-chat-del { opacity: 1; }
.rf-chat-del:hover { background: rgba(255,27,107,0.15); }
.rf-chat-clear-btn {
  margin-left: 8px;
  padding: 2px 8px;
  background: transparent;
  border: 1px solid var(--pink);
  color: var(--pink);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  cursor: pointer;
  vertical-align: middle;
}
.rf-chat-clear-btn:hover { background: rgba(255,27,107,0.15); color: #fff; }

/* ============ DEPARTMENT PAGE: seamless full-width Enlist strip ============ */
.dept-enlist-strip {
  position: relative;
  padding: 3.6rem 2rem;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,27,107,0.20), transparent 65%),
    radial-gradient(ellipse at 75% 50%, rgba(255,27,107,0.14), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(255,27,107,0.05) 50%, transparent 100%);
  border-top: 1px solid rgba(255,27,107,0.35);
  border-bottom: 1px solid rgba(255,27,107,0.35);
  overflow: hidden;
}
.dept-enlist-strip::before,
.dept-enlist-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  pointer-events: none;
}
.dept-enlist-strip::before {
  left: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,27,107,0.06) 40%, transparent 100%);
  filter: blur(20px);
  animation: hepPulse 6s ease-in-out infinite;
}
.dept-enlist-strip::after {
  right: 0;
  background: linear-gradient(270deg, transparent 0%, rgba(255,27,107,0.06) 40%, transparent 100%);
  filter: blur(20px);
  animation: hepPulse 6s ease-in-out infinite reverse;
}
.des-strip-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  z-index: 1;
}
@media (max-width: 900px) {
  .des-strip-inner { grid-template-columns: 1fr; gap: 1.4rem; text-align: center; }
  .des-strip-right { justify-content: center !important; }
  .des-strip-privacy { justify-content: center; }
  .dept-enlist-strip { padding: 2.4rem 1rem; }
}
.des-strip-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.des-strip-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 12px;
}
.des-strip-title .italic { font-style: italic; }
.des-strip-title .ink-pink { color: var(--pink); text-shadow: 0 0 22px var(--pink-glow); }
.des-strip-sub {
  color: #d6c2cc;
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 14px;
  max-width: 620px;
}
.des-strip-sub .pink { color: var(--pink); font-weight: 600; }
.des-strip-privacy {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.dsp-pill {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255,27,107,0.14);
  border: 1px solid var(--pink);
  color: var(--pink);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255,27,107,0.4);
}
.des-strip-right {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: flex-end;
}
.des-strip-right .btn-primary,
.des-strip-right .btn-outline {
  padding: 15px 30px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--pink);
  transition: all 0.18s;
}
.des-strip-right .btn-primary {
  background: var(--pink); color: var(--noir-0);
  box-shadow: 0 0 28px var(--pink-glow);
}
.des-strip-right .btn-primary:hover {
  background: var(--pink-hot, #ff3d80);
  box-shadow: 0 0 38px rgba(255,27,107,0.75);
}
.des-strip-right .btn-outline {
  background: transparent; color: var(--pink);
}
.des-strip-right .btn-outline:hover {
  background: rgba(255,27,107,0.14);
}

/* ============ PHONE: pull negative-positioned stamps back inside ============ */
@media (max-width: 600px) {
  /* CLASSIFIED stamp on home page ev-files panel — was right:-10px, clipped by page overflow */
  .stamp-lg[style*="right: -10px"], .stamp-lg[style*="right:-10px"] {
    right: 6px !important;
    top: -8px !important;
  }
  /* "SCROLL FOR MORE" indicator — cap width and prevent overflow */
  .hf-scroll-hint, [class*="scroll-hint"], [class*="scroll-indicator"] {
    max-width: 100% !important;
    right: 8px !important;
  }
  /* Stats with big numbers — make them shrink to fit */
  .stat-num, .rs-tile .num, [data-count] {
    font-size: clamp(1.6rem, 8vw, 3rem) !important;
  }
  .stat-tile, .rs-tile { min-width: 0 !important; }
  /* Prevent any absolute-positioned stamp from extending past viewport */
  .stamp, .stamp-lg { max-width: calc(100vw - 24px); word-break: normal; }
}

/* ============================================================
   PHONE OVERFLOW FINAL PASS — target every specific cutoff
   the user surfaced in screenshots.
   ============================================================ */
@media (max-width: 600px) {
  /* --- 1) AUDIO TOGGLE overlapping content --- */
  .audio-toggle {
    bottom: 92px !important;   /* lift above the mobile bottom tab bar */
    right: 8px !important;
    padding: 6px 10px !important;
    font-size: 0.5rem !important;
    letter-spacing: 1.5px !important;
    opacity: 0.9;
  }
  .audio-toggle .eq { transform: scale(0.85); }

  /* --- 2) CLASSIFIED stamp on home ACCESS GRANTED box — pull inside --- */
  .stamp-lg[style*="top: -14px"], .stamp-lg[style*="top:-14px"] {
    top: -6px !important;
    right: 4px !important;
    max-width: calc(100% - 8px);
    font-size: 0.6rem !important;
    padding: 4px 8px !important;
  }

  /* --- 3) FILE ARCHIVE SEALED rotated title --- */
  .seal-stamp {
    font-size: clamp(0.9rem, 4vw, 1.4rem) !important;
    padding: 10px 12px !important;
    max-width: 100%;
    word-break: normal;
    white-space: normal;
    text-align: center;
  }

  /* --- 4) STATS — first stat tile getting clipped --- */
  .stat-tile, .rs-tile {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
  }
  .stat-num {
    font-size: clamp(1.4rem, 7vw, 2.4rem) !important;
    line-height: 1.1 !important;
  }
  .stat-label, .rs-lab {
    font-size: 0.5rem !important;
    letter-spacing: 1px !important;
    white-space: normal !important;
    word-break: normal !important;
  }
  /* Force grid-4 stats to stack when they'd overflow */
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  /* --- 5) EYEBROW "CHANNEL 304" breaking into "CHANNE / 304" --- */
  .eyebrow, .eyebrow .code {
    word-break: keep-all !important;
    hyphens: none !important;
  }
  .eyebrow .code {
    display: inline-block;
    white-space: nowrap;
    margin-top: 3px;
  }

  /* --- 6) SCROLL FOR MORE hint on case detail modal --- */
  [class*="scroll-hint"], [class*="scroll-indicator"], .case-scroll-hint {
    right: 6px !important;
    max-width: calc(100% - 20px) !important;
    font-size: 0.5rem !important;
    letter-spacing: 1.5px !important;
    white-space: nowrap;
  }

  /* --- 7) RECRUIT dossier card on Recruitment page — content cut off --- */
  .recruit-card {
    padding: 1rem 0.9rem !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .recruit-card .rc-row {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
  }
  .recruit-card .rc-row .v {
    text-align: left !important;
    font-size: 0.72rem !important;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .recruit-card .rc-id {
    font-size: 0.85rem !important;
    word-break: normal;
  }
  .recruit-card .rc-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .recruit-card .rc-stamp {
    right: 4px !important;
    top: -6px !important;
    font-size: 0.5rem !important;
    padding: 3px 8px !important;
  }

  /* --- 8) Any absolutely-positioned stamp — clamp inside viewport --- */
  .stamp, .rc-stamp, .stamp-lg {
    max-width: calc(100vw - 30px);
    box-sizing: border-box;
  }

  /* --- 9) Long titles that shouldn't hyphenate mid-word --- */
  h1, h2, h3, .display-xl, .section-title, .page-title {
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: break-word;
  }

  /* --- 10) The COMPOSURE IS A WEAPON neon frame — audio button was overlapping --- */
  .neon-frame {
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box;
    margin-bottom: 100px !important; /* room for audio button */
  }

  /* --- 11) "6+" first stat on Evidence — stat tiles need to actually shrink --- */
  #page-evidence .grid-4, .stat-tile[style*="min-width"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .stat-tile[style*="min-width"] {
    min-width: 0 !important;
  }
}

/* Extra-narrow phones (<= 360px) — even more aggressive */
@media (max-width: 380px) {
  .display-xl, .page-title {
    font-size: clamp(1.8rem, 9vw, 2.6rem) !important;
    letter-spacing: -0.5px;
  }
  .section-title {
    font-size: clamp(1.3rem, 7vw, 1.9rem) !important;
  }
  .audio-toggle {
    bottom: 88px !important;
    padding: 5px 8px !important;
  }
  .recruit-card .rc-id {
    font-size: 0.75rem !important;
  }
}

/* ============ Recruit profile: mod screening notice ============ */
.rc-mod-note {
  margin: 14px 0 4px;
  padding: 10px 12px;
  background: rgba(255,200,87,0.06);
  border-left: 3px solid #ffc857;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #d6c2cc;
}
.rc-mod-note .pink { color: var(--pink); font-weight: 600; }

/* ============================================================
   CHAT SECTION — make VISUALLY DISTINCT from badge / dossier
   ============================================================ */
.rf-chat {
  margin: 3rem 0 2rem !important;
  padding: 0 !important;
  border: 2px solid var(--pink) !important;
  background: linear-gradient(180deg, rgba(255,27,107,0.15) 0%, rgba(255,27,107,0.03) 100%) !important;
  box-shadow: 0 0 40px rgba(255,27,107,0.35);
  position: relative;
  overflow: hidden;
}
/* Big obvious banner at top so it's not confused with the badge */
.rf-chat::before {
  content: '📡 DISPATCH CHAT ROOM · CHANNEL 304';
  display: block;
  padding: 12px 18px;
  background: var(--pink);
  color: var(--noir-0);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 0 20px rgba(255,27,107,0.6);
}
.rf-chat-head {
  padding: 16px 18px 12px !important;
  background: rgba(0,0,0,0.35);
}
.rf-chat-above-hint {
  margin: 0 18px !important;
}
.rf-chat-log {
  margin: 0 18px !important;
  background: rgba(0,0,0,0.55) !important;
}
.rf-chat-input-row {
  margin: 12px 18px 0 !important;
}
.rf-chat-note {
  margin: 12px 18px 16px !important;
}
.rf-chat-error {
  margin: 8px 18px !important;
}
.rf-chat-title {
  font-size: 1.9rem !important;
  color: var(--pink) !important;
}
.rf-chat-title .pink { color: #fff !important; }

/* ============ MORE PHONE FIXES (right-side cutoff) ============ */
@media (max-width: 600px) {
  /* Force EVERYTHING inside the recruit-file page to respect viewport */
  #page-recruit-file, #page-recruit-file * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #page-recruit-file .rf-badge,
  #page-recruit-file .recruit-card {
    padding: 1rem 0.9rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Chat log messages: contain within edges */
  .rf-chat-above-hint { margin: 0 8px !important; }
  .rf-chat-log { margin: 0 8px !important; }
  .rf-chat-input-row { margin: 12px 8px 0 !important; }
  .rf-chat-note { margin: 12px 8px 16px !important; }
  .rf-chat-head { padding: 14px 12px 10px !important; }
  .rf-chat::before { font-size: 10px !important; letter-spacing: 2px !important; padding: 10px 12px !important; }

  /* Chat message: allow it to shrink */
  .rf-chat-msg { padding: 10px 8px !important; }
  .rf-chat-body { min-width: 0 !important; overflow: hidden; }
  .rf-chat-text { word-break: normal; overflow-wrap: break-word; }

  /* Long codenames wrap instead of pushing out */
  .rf-chat-name, .rf-chat-time { font-size: 10px !important; letter-spacing: 0.5px !important; }

  /* SITE-WIDE PROTECTIONS */
  html, body { overflow-x: hidden !important; width: 100% !important; }
  .page-content { padding-left: 12px !important; padding-right: 12px !important; }

  /* All hero-grid layouts collapse cleanly */
  .hero-grid, .hero-grid-3, .rf-hero-wrap, .briefings-hero-wrap {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* On very narrow phones */
@media (max-width: 380px) {
  .rf-chat::before { font-size: 9px !important; letter-spacing: 1.5px !important; }
  .rf-chat-title { font-size: 1.4rem !important; }
}

/* ============ PHONE: hide overflowing home-page panels ============
   User said: 'if you can fix it remove it on the phone version' — for
   the Briefings promo card + the ACCESS GRANTED evidence files list
   that were cutting off on the right. Both are secondary content on
   phone and desktop still shows them. */
@media (max-width: 600px) {
  /* Home page Briefings promo — restored (was hidden, now showing on phone) */
  .home-briefings-promo {
    display: flex !important;
    flex-direction: column !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Home page ACCESS GRANTED classified box with evidence files list */
  .ev-files, .ev-files-header {
    display: none !important;
  }
  /* Also hide the CLASSIFIED stamp that was attached to it */
  .stamp-lg[style*="right: -10px"], .stamp-lg[style*="right:-10px"] {
    display: none !important;
  }
  /* The whole right-column container that held these */
  #page-home [data-reveal][style*="position: relative"]:has(.ev-files) {
    display: none !important;
  }
}

/* ============ PASSWORD REVEAL TOGGLE ============ */
.rc-pw-wrap {
  position: relative;
  display: block;
}
.rc-pw-wrap .rc-input {
  padding-right: 76px !important;
}
.rc-pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(255,27,107,0.4);
  color: var(--pink);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 6px 10px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s;
}
.rc-pw-toggle:hover {
  background: rgba(255,27,107,0.15);
  border-color: var(--pink);
  color: #fff;
}

/* ============ HOME PAGE: full-width Enlist Strip (between DB box + Divisions) ============ */
.home-enlist-strip {
  position: relative;
  margin: 3rem calc(50% - 50vw) 0;
  padding: 2.4rem calc(50vw - 50% + 1rem);
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,27,107,0.20), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255,27,107,0.14), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(255,27,107,0.05) 50%, transparent 100%);
  border-top: 1px solid rgba(255,27,107,0.35);
  border-bottom: 1px solid rgba(255,27,107,0.35);
  overflow: hidden;
}
.home-enlist-strip::before,
.home-enlist-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  pointer-events: none;
}
.home-enlist-strip::before {
  left: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,27,107,0.06) 40%, transparent 100%);
  filter: blur(20px);
  animation: hesPulse 6s ease-in-out infinite;
}
.home-enlist-strip::after {
  right: 0;
  background: linear-gradient(270deg, transparent 0%, rgba(255,27,107,0.06) 40%, transparent 100%);
  filter: blur(20px);
  animation: hesPulse 6s ease-in-out infinite reverse;
}
@keyframes hesPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.95; }
}
.hes-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hes-inner { grid-template-columns: 1fr; gap: 1.2rem; text-align: center; }
  .hes-right { justify-content: center !important; }
  .hes-privacy { justify-content: center; }
  .home-enlist-strip { padding: 2rem 1rem; }
}
.hes-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hes-title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 10px;
}
.hes-title .italic { font-style: italic; }
.hes-title .ink-pink { color: var(--pink); text-shadow: 0 0 20px var(--pink-glow); }
.hes-sub {
  color: #d6c2cc;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 12px;
  max-width: 620px;
}
.hes-sub .pink { color: var(--pink); font-weight: 600; }
.hes-privacy { display: flex; gap: 8px; flex-wrap: wrap; }
.hsp-pill {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255,27,107,0.14);
  border: 1px solid var(--pink);
  color: var(--pink);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255,27,107,0.4);
}
.hes-right {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: flex-end;
}
.hes-right .btn-primary,
.hes-right .btn-outline {
  padding: 14px 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--pink);
  transition: all 0.18s;
}
.hes-right .btn-primary {
  background: var(--pink); color: var(--noir-0);
  box-shadow: 0 0 24px var(--pink-glow);
}
.hes-right .btn-primary:hover {
  background: var(--pink-hot, #ff3d80);
  box-shadow: 0 0 34px rgba(255,27,107,0.7);
}
.hes-right .btn-outline {
  background: transparent; color: var(--pink);
}
.hes-right .btn-outline:hover {
  background: rgba(255,27,107,0.12);
}
@media (max-width: 540px) {
  .hsp-pill { font-size: 9px; padding: 4px 8px; }
}

/* ============ RANK STAMP PHONE FIX (Rookie Recruit badge cutoff) ============ */
@media (max-width: 600px) {
  /* Pull the pink rank stamp INSIDE the badge on phone so it doesn't get clipped */
  .rf-stamp {
    top: -8px !important;
    right: 6px !important;
    font-size: 0.5rem !important;
    letter-spacing: 2px !important;
    padding: 4px 8px !important;
    max-width: calc(100vw - 40px) !important;
    white-space: nowrap !important;
    transform: rotate(4deg) !important;
    z-index: 5 !important;
  }
  /* Make sure the badge has enough top padding so the stamp isn't cut off */
  #page-recruit-file .rf-badge {
    padding-top: 1.4rem !important;
    overflow: visible !important;
  }
  /* Dept-file version of the stamp too */
  .recruit-card .rf-stamp,
  .dept-file .rf-stamp {
    top: -6px !important;
    right: 4px !important;
    font-size: 0.48rem !important;
    padding: 4px 7px !important;
    letter-spacing: 1.8px !important;
  }
}

@media (max-width: 380px) {
  .rf-stamp {
    font-size: 0.45rem !important;
    padding: 3px 6px !important;
    letter-spacing: 1.5px !important;
    right: 4px !important;
    top: -6px !important;
  }
}

/* ============ HOME PAGE: ATTACHED RECRUIT BOX (inside right column, under database) ============ */
.home-recruit-attached {
  margin-top: 1rem;
  padding: 1.4rem 1.4rem 1.5rem;
  background: linear-gradient(180deg, rgba(20,8,14,0.85), rgba(10,4,7,0.95));
  border: 1px solid var(--pink);
  border-top: 2px solid var(--pink);
  box-shadow: 0 0 42px rgba(255,27,107,0.22), inset 0 0 14px rgba(255,27,107,0.06);
  position: relative;
}
.home-recruit-attached::before {
  content: '';
  position: absolute; inset: 6px;
  border: 1px dashed rgba(255,27,107,0.22);
  pointer-events: none;
}
.hra-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(255,27,107,0.35);
}
.hra-eyebrow .pink { color: var(--pink); }
.hra-title {
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 8px;
}
.hra-title .italic { font-style: italic; }
.hra-title .ink-pink { color: var(--pink); text-shadow: 0 0 20px var(--pink-glow); }
.hra-sub {
  color: #d6c2cc;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.hra-sub .pink { color: var(--pink); font-weight: 600; }
.hra-privacy {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.hra-pill {
  display: inline-block;
  padding: 4px 9px;
  background: rgba(255,27,107,0.12);
  border: 1px solid var(--pink);
  color: var(--pink);
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hra-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hra-actions .btn-primary,
.hra-actions .btn-outline {
  padding: 12px 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--pink);
  transition: all 0.18s;
  flex: 1 1 auto;
  justify-content: center;
}
.hra-actions .btn-primary {
  background: var(--pink); color: var(--noir-0);
  box-shadow: 0 0 24px var(--pink-glow);
}
.hra-actions .btn-primary:hover {
  background: var(--pink-hot, #ff3d80);
  box-shadow: 0 0 34px rgba(255,27,107,0.7);
}
.hra-actions .btn-outline {
  background: transparent; color: var(--pink);
}
.hra-actions .btn-outline:hover {
  background: rgba(255,27,107,0.12);
}

/* On DESKTOP hide the full-width strip because the attached recruit box in
   the right column handles it. On PHONE we need it — the hero-grid stacks
   and the attached box appears way below the fold, so keep the strip visible
   as a proper CTA. Also hide the ATTACHED box on phone to prevent duplication. */
@media (min-width: 901px) {
  .home-enlist-strip { display: none !important; }
}
@media (max-width: 900px) {
  .home-recruit-attached { display: none !important; }
  .home-enlist-strip { display: block !important; }
}

/* On phone, the attached box still shows but stacks nicely under the database */
@media (max-width: 900px) {
  .home-recruit-attached {
    margin-top: 1.2rem;
    padding: 1.2rem;
  }
  .hra-title { font-size: 1.5rem; }
  .hra-sub { font-size: 0.78rem; }
  .hra-actions .btn-primary,
  .hra-actions .btn-outline { padding: 11px 14px; font-size: 10.5px; letter-spacing: 1.5px; }
}
@media (max-width: 380px) {
  .hra-pill { font-size: 8px; padding: 3px 7px; letter-spacing: 1.2px; }
  .hra-title { font-size: 1.35rem; }
}

/* ============ CHAT PHONE RIGHT-SIDE CUTOFF FIX + INPUT PLACEHOLDER FIX ============ */
@media (max-width: 700px) {
  /* Contain chat within viewport, no right-side overflow */
  #page-recruit-file .rf-chat,
  .rf-chat {
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
    overflow: hidden !important;
  }
  .rf-chat-input-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .rf-chat-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 10px !important;
    font-size: 13px !important;
  }
  .rf-chat-send {
    flex: 0 0 auto !important;
    padding: 10px 14px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  .rf-chat-above-hint { margin: 0 !important; }
  .rf-chat-log { margin: 0 !important; }
  .rf-chat-msg { max-width: calc(100vw - 40px) !important; word-break: break-word !important; }
}

/* Input placeholder never gets truncated in the middle of the codename */
.rf-chat-input {
  text-overflow: ellipsis;
}

/* ============ REMEMBER ME CHECKBOX (login modal) ============ */
.rc-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--silver-dim);
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}
.rc-remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--pink);
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
}
.rc-remember input[type="checkbox"]:checked {
  background: var(--pink);
}
.rc-remember input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #050204;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.rc-remember span {
  flex: 1;
}

/* ============ WELCOME BACK STATES (home page — replaces Enlist/Sign In) ============ */

/* Desktop attached welcome-back panel (right column of home hero) */
.home-recruit-attached.is-welcome-back {
  background: linear-gradient(180deg, rgba(255,27,107,0.10), rgba(20,8,14,0.95));
  border-color: var(--pink);
  box-shadow: 0 0 42px rgba(255,27,107,0.35), inset 0 0 20px rgba(255,27,107,0.10);
}
.home-recruit-attached.is-welcome-back .hra-eyebrow {
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255,27,107,0.5);
}
.wb-body {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 14px;
  padding: 12px 10px;
  background: rgba(255,27,107,0.06);
  border: 1px solid rgba(255,27,107,0.25);
}
.wb-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  background: #0a0608;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(255,27,107,0.5);
}
.wb-avatar svg { width: 100%; height: 100%; display: block; }
.wb-info { flex: 1; min-width: 0; }
.wb-hello {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--silver-dim);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.wb-name {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--pink);
  text-shadow: 0 0 14px rgba(255,27,107,0.45);
  line-height: 1.05;
  word-break: break-word;
}
.wb-rank {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--silver-dim);
  text-transform: uppercase;
  margin-top: 4px;
}
.wb-rank .pink { color: var(--pink); font-weight: 700; }

/* Phone welcome-back strip variant */
.home-enlist-strip.is-welcome-back {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,27,107,0.28), transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(255,27,107,0.18), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(255,27,107,0.08) 50%, transparent 100%);
}
.wb-strip-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.wb-avatar-strip {
  width: 72px;
  height: 72px;
}

/* Recruitment page: when body is-recruit-logged-in, hide the Enlist Now / Sign In CTA buttons
   there since they don't make sense for a signed-in recruit */
body.is-recruit-logged-in .rc-enlist-cta button.btn-primary[onclick*="dlfiOpenOnboard"],
body.is-recruit-logged-in .rc-enlist-cta button.btn-outline[onclick*="dlfiOpenLogin"] {
  display: none;
}

/* Phone: keep strip readable */
@media (max-width: 900px) {
  .wb-name { font-size: 1.35rem; }
  .wb-avatar-strip { width: 60px; height: 60px; }
}
@media (max-width: 380px) {
  .wb-name { font-size: 1.15rem; }
  .wb-hello, .wb-rank { font-size: 9px; letter-spacing: 1.5px; }
}

/* ============ WELCOME BACK — Recruitment page + Department page strips ============ */
.recruit-enlist-strip.is-welcome-back,
.dept-enlist-strip.is-welcome-back {
  background:
    radial-gradient(ellipse at 25% 50%, rgba(255,27,107,0.25), transparent 60%),
    radial-gradient(ellipse at 75% 50%, rgba(255,27,107,0.16), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(255,27,107,0.06) 50%, transparent 100%);
  border-top-color: var(--pink);
  border-bottom-color: var(--pink);
}
.recruit-enlist-strip.is-welcome-back .res-strip-eyebrow,
.dept-enlist-strip.is-welcome-back .des-strip-eyebrow {
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255,27,107,0.5);
}
.recruit-enlist-strip.is-welcome-back .res-strip-title,
.dept-enlist-strip.is-welcome-back .des-strip-title {
  word-break: break-word;
}

/* ═══════════════════════════════════════════════════════
   CHAT ENHANCEMENTS — v17 — reactions, reply, pin,
   search, typing, @ mentions, unread badge
═══════════════════════════════════════════════════════ */

/* Search bar */
.rf-chat-search-btn {
  background: none; border: 1px solid rgba(255,27,107,0.3);
  color: var(--silver-dim); font-size: 13px; padding: 3px 8px;
  cursor: pointer; line-height: 1;
}
.rf-chat-search-btn:hover { border-color: var(--pink); }
.rf-chat-search-bar {
  display: flex; gap: 6px; padding: 6px 0 8px; align-items: center;
  border-bottom: 1px dashed rgba(255,27,107,0.2); margin-bottom: 6px;
}
.rf-chat-search-input {
  flex: 1; background: var(--noir-0); border: 1px solid rgba(255,27,107,0.3);
  color: var(--silver); font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 1px; padding: 6px 10px; outline: none;
}
.rf-chat-search-input::placeholder { color: #6b5560; }
.rf-chat-search-input:focus { border-color: var(--pink); }
.rf-chat-search-close {
  background: none; border: 1px solid rgba(255,27,107,0.3);
  color: var(--silver-dim); font-size: 12px; padding: 4px 8px; cursor: pointer;
}

/* Unread badge */
.rf-chat-unread-badge {
  font-family: var(--f-federal,'Oswald',sans-serif); font-size: 9px;
  letter-spacing: 2px; color: #050204; background: var(--pink);
  padding: 3px 9px; text-transform: uppercase; font-weight: 700;
  animation: rfBadgePop 0.25s ease;
}
@keyframes rfBadgePop { from { transform: scale(0.7); } to { transform: scale(1); } }

/* Pinned strip */
.rf-chat-pinned-strip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; margin-bottom: 6px;
  background: rgba(255,27,107,0.06); border-left: 2px solid var(--pink);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 1px;
  flex-wrap: wrap; line-height: 1.4;
}
.rf-pin-icon { font-size: 12px; }
.rf-pin-label { color: var(--pink); text-transform: uppercase; font-size: 9px; letter-spacing: 2px; flex-shrink: 0; }
.rf-pin-name { color: var(--pink); font-weight: 700; flex-shrink: 0; }
.rf-pin-text { color: var(--silver-dim); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-pin-remove {
  background: none; border: none; color: var(--silver-dim); font-size: 12px;
  cursor: pointer; padding: 0 2px; flex-shrink: 0;
}
.rf-pin-remove:hover { color: var(--pink); }

/* Typing indicator */
.rf-chat-typing {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 1.5px;
  color: var(--silver-dim); padding: 4px 4px 0; text-transform: uppercase;
  min-height: 18px;
}

/* Reply strip */
.rf-chat-reply-strip {
  border-left: 2px solid var(--pink); margin-bottom: 6px;
  background: rgba(255,27,107,0.06);
}
.rf-reply-inner {
  display: flex; align-items: center; gap: 8px; padding: 5px 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 1px;
  color: var(--silver-dim);
}
.rf-reply-inner .pink { color: var(--pink); }
.rf-reply-cancel {
  background: none; border: none; color: var(--silver-dim); font-size: 13px;
  cursor: pointer; margin-left: auto; padding: 0 2px; flex-shrink: 0;
}
.rf-reply-cancel:hover { color: var(--pink); }

/* Reply quote inside message */
.rf-chat-quote {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 1px;
  color: var(--silver-dim); border-left: 2px solid rgba(255,27,107,0.4);
  padding: 3px 8px; margin-bottom: 4px;
  background: rgba(255,27,107,0.04); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.rf-chat-quote strong { color: var(--pink); }

/* Message action buttons (reply, pin, delete) */
.rf-chat-actions {
  margin-left: auto; display: flex; gap: 2px; align-items: center; opacity: 0;
  transition: opacity 0.15s;
}
.rf-chat-msg:hover .rf-chat-actions { opacity: 1; }
.rf-chat-reply-btn, .rf-chat-pin-btn {
  background: none; border: none; color: var(--silver-dim);
  font-size: 11px; cursor: pointer; padding: 2px 5px;
  font-family: var(--f-mono);
}
.rf-chat-reply-btn:hover { color: var(--pink); }
.rf-chat-pin-btn:hover { color: #ffd700; }
/* Touch devices — always show action buttons; larger reply tap target */
@media (pointer: coarse) {
  .rf-chat-actions { opacity: 1; }
  .rf-chat-reply-btn {
    color: var(--pink); font-size: 12px; padding: 4px 10px;
    border: 1px solid rgba(255,27,107,0.3); border-radius: 3px;
    background: rgba(255,27,107,0.07);
  }
}

/* @ mention autocomplete */
.rf-chat-mention-drop {
  position: absolute; background: #160b0f; border: 1px solid var(--pink);
  z-index: 50; bottom: 70px; left: 0; right: 0;
  max-height: 160px; overflow-y: auto;
}
.rf-mention-item {
  padding: 8px 14px; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 1px; color: var(--silver); text-transform: uppercase;
  cursor: pointer; border-bottom: 1px solid rgba(255,27,107,0.1);
}
.rf-mention-item:hover { background: rgba(255,27,107,0.1); color: var(--pink); }
.rf-mention-item:last-child { border-bottom: none; }

/* @ mention in messages */
.rf-chat-mention {
  color: var(--pink); font-weight: 700; font-style: italic;
}

/* Reactions */
.rf-chat-rxs {
  display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; padding-left: 0;
}
.rf-chat-rx {
  background: rgba(255,27,107,0.05); border: 1px solid rgba(255,27,107,0.15);
  font-size: 13px; padding: 2px 7px; cursor: pointer; display: flex;
  align-items: center; gap: 3px; transition: background 0.12s, border 0.12s;
  line-height: 1;
}
.rf-chat-rx:hover { background: rgba(255,27,107,0.12); border-color: rgba(255,27,107,0.4); }
.rf-chat-rx.rf-mine { background: rgba(255,27,107,0.2); border-color: var(--pink); }
.rf-rx-count {
  font-family: var(--f-mono); font-size: 9px; color: var(--silver-dim);
  font-style: normal;
}
.rf-chat-rx.rf-mine .rf-rx-count { color: var(--pink); }

/* Keep reactions always visible but hide if no reactions yet */
.rf-chat-rxs:not(.has-rxs) { opacity: 0; }
.rf-chat-msg:hover .rf-chat-rxs { opacity: 1 !important; }

/* Keep rf-chat position:relative for mention drop */
.rf-chat { position: relative !important; }

/* "Forgot your code?" link */
.rc-alt-2 {
  text-align: center; margin-top: 6px; font-size: 11px;
  font-family: var(--f-mono); letter-spacing: 1px;
}
.rc-alt-2 a { color: var(--silver-dim); text-decoration: none; }
.rc-alt-2 a:hover { color: var(--pink); }

/* ============ CHAT HINT BAR ============ */
.rf-chat-hint-bar {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  color: rgba(182, 164, 175, 0.5);
  text-align: center;
  padding: 5px 0 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rf-chat-hint-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rf-chat-hint-bar strong {
  color: rgba(255, 27, 107, 0.65);
  font-weight: 600;
}

/* ============ PHONE HOME STRIP — CENTER ALIGNMENT FIX ============ */
/* Ensures login/logout buttons are properly centered on narrow screens */
@media (max-width: 900px) {
  .hes-left { text-align: center; }
  .hes-right {
    justify-content: center !important;
    width: 100%;
  }
  .hes-privacy { justify-content: center; }
}
@media (max-width: 540px) {
  .hes-right {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .hes-right .btn-primary,
  .hes-right .btn-outline {
    width: 100%;
    justify-content: center !important;
    text-align: center;
  }
}

/* ============ MY FILE: "PIN THIS SITE" — phone only ============ */
/* Hidden by default; revealed only on narrow (phone) screens */
.rf-pin-btn { display: none !important; }
@media (max-width: 600px) {
  .rf-pin-btn { display: inline-flex !important; }
}

/* ============ MY FILE: ANONYMOUS CONTACT FORM ============ */
.rf-contact-section { border-top: 1px solid rgba(255,27,107,0.18); }
.rf-contact-form {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}
.rf-contact-input {
  background: var(--noir-0);
  border: 1px solid rgba(255,27,107,0.35);
  color: #fff;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  width: 100%;
  min-height: 100px;
}
.rf-contact-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 14px rgba(255,27,107,0.2);
}
.rf-contact-input::placeholder { color: rgba(182,164,175,0.4); }
.rf-contact-err {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--pink);
  letter-spacing: 1px;
  min-height: 16px;
}
.rf-contact-note {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: rgba(182,164,175,0.45);
  text-transform: uppercase;
  line-height: 1.8;
}
.rf-contact-success {
  padding: 20px 24px;
  border: 1px solid rgba(255,27,107,0.4);
  background: rgba(255,27,107,0.04);
  max-width: 640px;
}
.rf-contact-success-stamp {
  font-family: var(--f-stamp);
  font-size: 1.2rem;
  letter-spacing: 4px;
  color: var(--pink);
  margin-bottom: 10px;
  opacity: 0.85;
}
.rf-contact-success-msg {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--silver-dim);
  line-height: 1.8;
  text-transform: uppercase;
}

/* ============================================================
   UPCOMING VIDEO + COMMUNITY POLL
   ============================================================ */

/* Next video preview card */
.rf-upcoming-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: rgba(255,27,107,0.05);
  border: 1px solid rgba(255,27,107,0.2);
  border-radius: 4px;
  margin-bottom: 1.4rem;
}
.rf-upcoming-thumb {
  width: 180px;
  height: 101px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(255,27,107,0.2);
}
@media (max-width: 520px) {
  .rf-upcoming-card { flex-direction: column; }
  .rf-upcoming-thumb { width: 100%; height: auto; }
}
.rf-upcoming-info { flex: 1; min-width: 0; }
.rf-upcoming-title {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 6px;
}
.rf-upcoming-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--silver-dim);
  line-height: 1.55;
}

/* Owner dashboard poll grid — two columns on desktop, stacked on mobile */
.rf-owner-poll-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Poll stack — options listed one below the other like next-video cards */
.rf-poll-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1rem;
}

/* VS divider between the two options */
.rf-poll-vs-divider {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,27,107,0.45);
  text-align: center;
  padding: 6px 0;
  letter-spacing: 2px;
}

/* Each poll row — same layout as .rf-upcoming-card */
.rf-poll-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: rgba(255,27,107,0.05);
  border: 1px solid rgba(255,27,107,0.2);
  border-radius: 4px;
  margin-bottom: 0;
}
.rf-poll-row.rf-poll-mine {
  border-color: rgba(255,27,107,0.5);
  background: rgba(255,27,107,0.09);
}

/* Thumbnail — same size as next-video thumb */
.rf-poll-thumb {
  width: 180px;
  height: 101px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid rgba(255,27,107,0.2);
  display: block;
}

.rf-poll-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Mobile: thumbnail full width, stacked */
@media (max-width: 560px) {
  .rf-owner-poll-grid {
    grid-template-columns: 1fr;
  }
  .rf-poll-row {
    flex-direction: column;
  }
  .rf-poll-thumb {
    width: 100%;
    height: auto;
  }
}
.rf-poll-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: #ff1b6b;
  margin-bottom: 6px;
}
.rf-poll-opt-title {
  font-family: var(--f-serif);
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 3px;
}
.rf-poll-opt-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--silver-dim);
  line-height: 1.5;
}
.rf-poll-bar-wrap {
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  height: 4px;
  overflow: hidden;
}
.rf-poll-bar {
  background: #ff1b6b;
  height: 100%;
  transition: width 0.4s ease;
}
.rf-poll-stat {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--silver-dim);
  letter-spacing: 0.5px;
}
.rf-poll-vote-btn { margin-top: 6px; }

@keyframes rfBroadcastPulse {
  0%, 100% { border-left-color: #ff1b6b; box-shadow: none; }
  50% { border-left-color: #ff5a90; box-shadow: 0 0 12px rgba(255,27,107,0.25); }
}

/* ============ HIGHLIGHTED SUBMISSIONS CAROUSEL ============ */
.rf-highlights-wrap {
  position: relative;
  padding: 0 0 1rem;
}
.rf-highlights-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 1rem;
}
.rf-highlight-tab {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  padding: 1.2rem 0.5rem;
  border: 1px solid rgba(255,27,107,0.2);
  border-radius: 0;
  background: rgba(255,27,107,0.03);
  color: #b9a4af;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  line-height: 1.4;
}
.rf-highlight-tab .hl-tab-icon {
  font-size: 2rem;
  display: block;
  filter: grayscale(0.4);
}
.rf-highlight-tab .hl-tab-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2.5px;
}
.rf-highlight-tab .hl-tab-count {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #b9a4af;
}
.rf-highlight-tab.active {
  background: rgba(255,27,107,0.1);
  border-color: #ff1b6b;
  color: #fff;
}
.rf-highlight-tab.active .hl-tab-count {
  color: #fff;
}
.rf-highlights-tap-hint {
  font-family: var(--f-mono);
  font-size: 9px;
  color: #7a5c68;
  letter-spacing: 1.5px;
  text-align: center;
  padding: 4px 0 8px;
  text-transform: uppercase;
  display: none; /* hidden — tabs are self-explanatory as large cards */
}
.rf-highlights-scroll-hint {
  font-family: var(--f-mono);
  font-size: 9px;
  color: #7a5c68;
  letter-spacing: 1.5px;
  text-align: center;
  padding: 6px 0 0;
  text-transform: uppercase;
}
.rf-highlight-card {
  position: relative;
  background: rgba(255,27,107,0.04);
  border: 1px solid rgba(255,27,107,0.15);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  overflow: hidden;
}
.rf-highlight-type {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.rf-highlight-title {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}
.rf-highlight-body {
  font-family: var(--f-body);
  font-size: 0.88rem;
  color: #d4b8c2;
  line-height: 1.75;
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,27,107,0.3) transparent;
}
.rf-highlight-body::-webkit-scrollbar { width: 4px; }
.rf-highlight-body::-webkit-scrollbar-track { background: transparent; }
.rf-highlight-body::-webkit-scrollbar-thumb { background: rgba(255,27,107,0.3); border-radius: 2px; }
.rf-highlight-by {
  margin-top: 0.8rem;
  font-family: var(--f-mono);
  font-size: 10px;
  color: #7a5c68;
  letter-spacing: 1.5px;
}
.rf-highlight-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}
.rf-highlight-nav-btn {
  background: transparent;
  border: 1px solid rgba(255,27,107,0.3);
  color: #ff1b6b;
  padding: 6px 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
}
.rf-highlight-nav-btn:hover { background: rgba(255,27,107,0.1); }
.rf-highlight-nav-btn:disabled { opacity: 0.3; cursor: default; }
.rf-highlight-counter {
  font-family: var(--f-mono);
  font-size: 10px;
  color: #7a5c68;
  letter-spacing: 2px;
}
.rf-highlights-empty {
  font-family: var(--f-mono);
  font-size: 11px;
  color: #7a5c68;
  letter-spacing: 1.5px;
  padding: 1rem 0;
  text-align: center;
}
