/* Staff / OWNER pages */

.staff-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--bg-dark);
  background-image: url('../images/DarkGameCoreStaffLogin.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.staff-login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 13, 0.4);
  pointer-events: none;
}

.staff-login-page .staff-login-box {
  position: relative;
  z-index: 1;
}

.staff-login-box {
  width: 100%;
  max-width: 380px;
  background: var(--bg-elevated);
  border: 2px solid var(--neon-green);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 40px var(--neon-green-soft);
}

.staff-login-box h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  color: var(--neon-white);
  text-shadow: 0 0 12px var(--neon-white-glow), 0 0 24px rgba(255, 255, 255, 0.2);
}

.staff-login-sub {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--neon-white-soft);
}

/* Staff login: form labels and inputs readable in neon white */
.staff-login-box .auth-form label {
  color: var(--neon-white);
  text-shadow: 0 0 6px var(--neon-white-glow);
}

.staff-login-box .auth-form input {
  color: var(--neon-white);
  background: rgba(10, 11, 13, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}

.staff-login-box .auth-form input::placeholder {
  color: var(--neon-white-soft);
  opacity: 0.8;
}

.staff-login-box .form-error {
  color: var(--neon-red);
  text-shadow: 0 0 10px var(--neon-red-glow);
}

.staff-login-box .btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

.staff-login-back {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--neon-white-soft);
}

.staff-login-back a {
  color: var(--neon-white);
  text-decoration: none;
  text-shadow: 0 0 8px var(--neon-white-glow);
}

.staff-login-back a:hover {
  color: var(--neon-red);
  text-shadow: 0 0 10px var(--neon-red-glow);
  text-decoration: underline;
}

/* Staff dashboard: logo background + matrix overlay (full display) */
.staff-page {
  position: relative;
  min-height: 100vh;
  padding-bottom: 2rem;
}

/* Full-page background: same as staff login */
.staff-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('../images/DarkGameCoreStaffLogin.png') center center / cover no-repeat;
  background-attachment: fixed;
  pointer-events: none;
}

/* Matrix digital rain: semi-transparent overlay so background remains visible */
.staff-matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* Matrix theme overlap: dark tint + scanlines + green/teal glow */
.staff-page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 22, 14, 0.82) 50%,
    rgba(0, 0, 0, 0.85) 100%
  ),
  repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  box-shadow: inset 0 0 160px rgba(57, 255, 20, 0.06), inset 0 0 60px rgba(32, 178, 170, 0.04);
}

.staff-header {
  position: relative;
  z-index: 1;
  background: rgba(12, 18, 15, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 20px var(--neon-green-soft);
}

/* Three-column layout: left nav | center content | right nav */
.staff-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr minmax(200px, 240px);
  min-height: calc(100vh - 4rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

.staff-nav-column {
  padding: 1rem 1rem 1.5rem;
  background: transparent;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: sticky;
  top: 0;
}

.staff-nav-left {
  border-right: 1px solid var(--border);
  align-items: flex-start;
}

.staff-nav-right {
  border-left: 1px solid var(--border);
  align-items: flex-end;
}

.staff-main {
  position: relative;
  z-index: 1;
  padding: 1.5rem 2rem 2rem;
  background: rgba(10, 12, 14, 0.85);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.staff-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.staff-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.staff-logo {
  color: var(--neon-red);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 0 8px var(--neon-red-glow);
}

.staff-logo:hover {
  color: var(--neon-white);
  text-shadow: 0 0 10px var(--neon-white-glow);
}

.staff-display-name {
  margin-right: 0.5rem;
  font-weight: 600;
}

.staff-role {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--neon-red);
  text-shadow: 0 0 8px var(--neon-red-glow);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--neon-red);
  border-radius: 4px;
}

.staff-header-actions {
  display: flex;
  gap: 0.5rem;
}

.staff-tabs-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
  width: 100%;
}

.staff-tabs-right {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  width: 100%;
}

/* Right-side nav: uniform transparent styling, even spacing, same width */
.staff-nav-right .staff-tabs-right .staff-tab {
  width: 100%;
  min-width: 0;
  justify-content: flex-end;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--neon-white-soft);
  background: transparent;
  background-color: transparent;
  border: none;
  border-left: none;
  border-right: 3px solid transparent;
  border-radius: 4px;
  text-align: right;
  flex-direction: row-reverse;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.staff-nav-right .staff-tabs-right .staff-tab:hover {
  color: var(--neon-white);
  text-shadow: 0 0 6px var(--neon-white-glow);
  background: rgba(255, 255, 255, 0.05);
}

.staff-nav-right .staff-tabs-right .staff-tab.active {
  color: var(--neon-red);
  text-shadow: 0 0 8px var(--neon-red-glow);
  background: transparent;
  background-color: transparent;
  border-right-color: var(--neon-red);
}

.staff-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--neon-white-soft);
  background: transparent;
  background-color: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
}

.staff-tabs-right .staff-tab {
  border-left: none;
  border-right: 3px solid transparent;
  text-align: right;
  flex-direction: row-reverse;
}

.staff-tab:hover {
  color: var(--neon-white);
  text-shadow: 0 0 6px var(--neon-white-glow);
  background: rgba(255, 255, 255, 0.05);
}

.staff-tab.active {
  color: var(--neon-red);
  border-left-color: var(--neon-red);
  text-shadow: 0 0 8px var(--neon-red-glow);
  background: rgba(255, 7, 58, 0.08);
}

.staff-tabs-right .staff-tab.active {
  border-left-color: transparent;
  border-right-color: var(--neon-red);
  background: transparent;
  background-color: transparent;
}

.staff-tab-icon {
  display: none;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.staff-tab-text {
  display: inline;
}

/* When space is limited, show icons instead of text to prevent overflow */
@media (max-width: 720px) {
  .staff-layout {
    grid-template-columns: minmax(60px, 80px) 1fr minmax(60px, 80px);
  }

  .staff-nav-column {
    padding: 0.75rem 0.5rem;
  }

  .staff-tab {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
    justify-content: center;
    border-left: none;
    border-right: none;
    border-bottom: 3px solid transparent;
  }

  .staff-tabs-right .staff-tab {
    flex-direction: row;
  }

  .staff-nav-right .staff-tabs-right .staff-tab.active {
    background: transparent;
    background-color: transparent;
  }

  .staff-tab.active {
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: var(--neon-red);
  }

  .staff-tab-icon {
    display: inline-block;
  }

  .staff-tab-text {
    display: none;
  }

  .staff-tab .staff-tab-badge {
    display: none;
  }
}

.staff-main {
  max-width: 720px;
  margin: 0 auto;
  color: var(--neon-white-soft);
}

/* Dashboard headings and text: neon white / red for readability */
.staff-page .staff-admin-section h2 {
  color: var(--neon-white);
  text-shadow: 0 0 10px var(--neon-white-glow);
}

.staff-page .staff-admin-hint {
  color: var(--neon-white-soft);
}

.staff-page .staff-admin-form label,
.staff-page .staff-modal-label,
.staff-page .staff-modal-field-label,
.staff-page .staff-checkbox-label {
  color: var(--neon-white);
  text-shadow: 0 0 6px var(--neon-white-glow);
}

.staff-page .staff-admin-form input,
.staff-page .staff-admin-form textarea,
.staff-page .staff-admin-form select {
  color: var(--neon-white);
  background: rgba(10, 11, 13, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}

.staff-page .staff-admin-form input::placeholder,
.staff-page .staff-admin-form textarea::placeholder {
  color: var(--neon-white-soft);
  opacity: 0.85;
}

.staff-page .form-status {
  color: var(--neon-white-soft);
}

.staff-page .form-status.success {
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green-glow);
}

.staff-page .form-status.error {
  color: var(--neon-red);
  text-shadow: 0 0 8px var(--neon-red-glow);
}

.staff-page .staff-header-actions .btn {
  color: var(--neon-white);
  text-shadow: 0 0 6px var(--neon-white-glow);
}

.staff-page .staff-header-actions .btn:hover {
  color: var(--neon-red);
  text-shadow: 0 0 10px var(--neon-red-glow);
}

.staff-filters-label {
  font-size: 0.9rem;
  color: var(--neon-white-soft);
  margin-right: 0.25rem;
}

.staff-filter-btn {
  padding: 0.4rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neon-white-soft);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.staff-filter-btn:hover {
  color: var(--neon-white);
  border-color: var(--neon-white-soft);
  text-shadow: 0 0 6px var(--neon-white-glow);
}

.staff-filter-btn.active {
  color: var(--neon-red);
  border-color: var(--neon-red);
  box-shadow: 0 0 10px var(--neon-red-glow);
  text-shadow: 0 0 8px var(--neon-red-glow);
}

.staff-panel {
  display: none;
}

.staff-panel.active {
  display: block;
}

.staff-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.staff-applications-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.staff-empty {
  color: var(--neon-white-soft);
  font-size: 0.95rem;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
}

.staff-app-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}

.staff-app-item:hover {
  border-color: var(--neon-blue-soft);
}

.staff-app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.staff-app-name {
  font-weight: 700;
  color: var(--neon-white);
  text-shadow: 0 0 6px var(--neon-white-glow);
}

.staff-app-item .status {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.staff-app-item .status-pending {
  background: var(--neon-blue-soft);
  color: var(--neon-blue);
}

.staff-app-item .status-approved {
  background: var(--neon-green-soft);
  color: var(--neon-green);
}

.staff-app-item .status-declined {
  background: var(--neon-red-soft);
  color: var(--neon-red);
}

.staff-app-item .status-member-plus {
  background: var(--neon-teal-soft, rgba(0, 200, 180, 0.2));
  color: var(--neon-teal, var(--neon-green));
}

.staff-game-nights-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.staff-game-night-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.staff-game-night-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.staff-game-night-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.staff-game-night-desc {
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  color: var(--text);
}

.staff-game-night-actions {
  margin-top: 0.5rem;
}

.staff-game-night-rsvp {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.staff-rsvp-details summary {
  cursor: pointer;
}

.staff-rsvp-details ul {
  margin: 0.35rem 0 0 1rem;
  padding: 0;
}

.staff-game-nights-view-toggle {
  margin-bottom: 0.75rem;
}

.staff-game-nights-calendar {
  margin-top: 1rem;
}

.staff-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.staff-calendar-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.staff-calendar-grid {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.staff-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.staff-calendar-weekday {
  text-align: center;
}

.staff-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.staff-calendar-cell {
  min-height: 4rem;
  padding: 0.35rem;
  background: var(--bg-dark);
  border-radius: 4px;
  font-size: 0.8rem;
}

.staff-calendar-cell--empty {
  background: transparent;
}

.staff-calendar-day-num {
  display: block;
  font-weight: 600;
  color: var(--text-muted);
}

.staff-calendar-day-events {
  margin: 0.25rem 0 0;
  padding: 0 0 0 0.5rem;
  list-style: none;
}

.staff-calendar-day-events li {
  margin: 0.15rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-moderation-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.staff-moderation-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.staff-moderation-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.staff-moderation-content {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0.5rem 0 0;
}

.staff-moderation-link {
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.staff-moderation-link a {
  color: var(--neon-blue);
}

.staff-moderation-actions {
  margin-top: 0.5rem;
}

.staff-moderation-actions select.staff-mod-status-select {
  margin-left: 0.35rem;
  padding: 0.25rem 0.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
}

.staff-blog-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.staff-blog-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.staff-blog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.staff-blog-actions {
  margin-top: 0.5rem;
}

.staff-blog-item-inline {
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.staff-blog-editor {
  min-height: 200px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.staff-blog-editor .ql-toolbar,
.staff-blog-editor .ql-container {
  border-color: var(--border);
}

.staff-blog-editor .ql-editor {
  min-height: 180px;
  color: var(--text);
}

.staff-app-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.staff-app-message {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0.5rem 0 0.75rem;
}

.staff-app-ad {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0.5rem 0 0.75rem;
}

.staff-app-ad pre {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 0.85rem;
}

.staff-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.staff-app-actions .btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.staff-app-actions .btn-approved {
  background: var(--neon-green-soft);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
}

.staff-app-actions .btn-approved:hover {
  box-shadow: 0 0 12px var(--neon-green-soft);
}

.staff-app-actions .btn-declined {
  background: var(--neon-red-soft);
  color: var(--neon-red);
  border: 1px solid var(--neon-red);
}

.staff-app-actions .btn-declined:hover {
  box-shadow: 0 0 12px var(--neon-red-soft);
}

.staff-app-actions .btn-pending {
  background: var(--neon-blue-soft);
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue);
}

.staff-app-actions .btn-pending:hover {
  box-shadow: 0 0 12px var(--neon-blue-soft);
}

.staff-app-actions .btn-delete {
  background: rgba(255, 80, 80, 0.15);
  color: #ff6666;
  border: 1px solid #ff6666;
}

.staff-app-actions .btn-delete:hover {
  box-shadow: 0 0 12px rgba(255, 80, 80, 0.3);
}

.staff-admin-section {
  margin-bottom: 2rem;
}

.staff-admin-section:last-child {
  margin-bottom: 0;
}

.staff-admin-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--neon-white);
  text-shadow: 0 0 8px var(--neon-white-glow);
}

.staff-section-divider {
  margin: 2rem 0 1.5rem;
  border: none;
  border-top: 1px solid var(--border);
}

.staff-member-override-form label[for="member-override-select"] {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.staff-member-override-form select#member-override-select {
  max-width: 400px;
  margin-bottom: 1rem;
}

.staff-member-override-form fieldset {
  margin: 1rem 0;
}

.staff-member-override-form .btn {
  margin-top: 0.5rem;
}

.staff-admin-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.staff-admin-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.staff-admin-form input,
.staff-admin-form select,
.staff-admin-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.staff-admin-form textarea {
  resize: vertical;
  min-height: 100px;
}

.staff-admin-form input:focus,
.staff-admin-form select:focus,
.staff-admin-form textarea:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 12px var(--neon-blue-soft);
}

@media (max-width: 600px) {
  .staff-header-inner {
    padding: 0.5rem 0.75rem;
  }
  .staff-layout {
    grid-template-columns: minmax(56px, 1fr) 1fr minmax(56px, 1fr);
  }
  .staff-nav-column {
    padding: 0.5rem 0.35rem;
  }
  .staff-tab {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  .staff-main {
    padding: 1rem 0.75rem;
  }
  .staff-app-item {
    padding: 0.85rem 1rem;
  }
  .staff-app-actions .btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
  }
}

/* Staff panel when embedded on index */
.modal-footer-hint {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.modal-footer-hint a {
  color: var(--neon-blue);
  text-decoration: none;
}

.modal-footer-hint a:hover {
  text-decoration: underline;
}

.panel-header-link {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}

.panel-header-link a {
  color: var(--neon-blue);
  text-decoration: none;
}

.panel-header-link a:hover {
  text-decoration: underline;
}

.staff-admin-inline .staff-admin-form label,
.staff-admin-inline label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.staff-admin-inline h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green-glow);
}

.staff-admin-inline .staff-admin-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.staff-admin-inline input,
.staff-admin-inline textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.staff-admin-inline textarea {
  resize: vertical;
  min-height: 80px;
}

.staff-admin-inline input:focus,
.staff-admin-inline textarea:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 12px var(--neon-blue-soft);
}

.staff-tab-badge {
  display: inline-block;
  min-width: 1.2em;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  background: var(--neon-blue);
  color: var(--bg-dark);
  border-radius: 10px;
  margin-left: 0.25rem;
}

.staff-app-item-clickable {
  cursor: pointer;
}

.staff-app-id-muted {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.staff-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.staff-modal[hidden] {
  display: none !important;
}

.staff-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.staff-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 2px solid var(--neon-green);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
}

/* Modal body scrolls; actions stay pinned at bottom */
.staff-modal-content > .staff-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.staff-modal-content > .staff-modal-actions {
  flex-shrink: 0;
  margin-top: 1rem;
}

/* Application full display: same background as staff dashboard */
.staff-modal-app-display {
  background-image: url('../images/DarkGameCoreStaffLogin.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.3), 0 0 40px var(--neon-green-soft), 0 0 80px rgba(57, 255, 20, 0.08);
  overflow: hidden;
}

.staff-modal-app-display::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 15, 8, 0.9) 40%,
    rgba(0, 25, 12, 0.85) 100%
  );
  pointer-events: none;
}

.staff-modal-app-display::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
  opacity: 0.9;
  box-shadow: inset 0 0 60px rgba(57, 255, 20, 0.03);
}

.staff-modal-app-display .staff-modal-content-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 12, 0.75) 0%,
    rgba(5, 12, 8, 0.85) 100%
  );
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(57, 255, 20, 0.2);
}

/* Modal body scrolls; actions stay visible at bottom */
.staff-modal-app-display .staff-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 0;
}

.staff-modal-app-display .staff-modal-actions {
  flex-shrink: 0;
  margin-top: 1rem;
  padding-top: 1rem;
}

.staff-modal-app-display .staff-modal-content-inner h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.staff-modal-content h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

/* Modal body: hero (name, id, status) and sections */
.staff-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.staff-modal-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(57, 255, 20, 0.25);
}

.staff-modal-hero-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--neon-green);
  text-shadow: 0 0 12px var(--neon-green-glow);
  letter-spacing: 0.02em;
}

.staff-modal-hero-id {
  font-size: 0.95rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.staff-modal-hero-status {
  margin-left: auto;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  text-transform: capitalize;
}

.staff-modal-app-display .staff-modal-section {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(57, 255, 20, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.staff-modal-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.staff-modal-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.staff-modal-detail {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.9rem;
}

.staff-modal-label {
  color: var(--text-muted);
  font-weight: 500;
}

.staff-modal-value {
  word-break: break-word;
}

.staff-modal-field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.staff-modal-app-display .staff-modal-field,
.staff-modal-app-display .staff-modal-block {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(57, 255, 20, 0.25);
}

.staff-modal-field,
.staff-modal-block {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.9rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  line-height: 1.45;
}

.staff-modal-field {
  resize: vertical;
  min-height: 4.5rem;
}

.staff-modal-block {
  max-height: 12rem;
  overflow-y: auto;
}

.btn-copy-inline {
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* Modal actions: primary and secondary groups — always visible */
.staff-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Accept / Deny / Delete in application modal — high visibility */
.staff-modal-actions .btn-approved,
.staff-modal-actions .btn-declined,
.staff-modal-actions .btn-delete {
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.staff-modal-actions .btn-approved {
  background: var(--neon-green);
  color: var(--bg-dark);
  border: 1px solid var(--neon-green);
  text-shadow: none;
}

.staff-modal-actions .btn-approved:hover {
  box-shadow: 0 0 16px var(--neon-green-glow);
}

.staff-modal-actions .btn-declined {
  background: var(--neon-red);
  color: #fff;
  border: 1px solid var(--neon-red);
  text-shadow: none;
}

.staff-modal-actions .btn-declined:hover {
  box-shadow: 0 0 16px var(--neon-red-glow);
}

.staff-modal-actions .btn-delete {
  background: transparent;
  color: var(--neon-red);
  border: 1px solid var(--neon-red);
}

.staff-modal-actions .btn-delete:hover {
  background: var(--neon-red-soft);
  box-shadow: 0 0 12px var(--neon-red-soft);
}

.staff-modal-actions-primary,
.staff-modal-actions-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.staff-modal-content pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
  background: var(--bg-dark);
  padding: 0.75rem;
  border-radius: var(--radius);
  margin: 0.5rem 0;
}

.announcement-preview {
  padding: 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.staff-form-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.staff-announcements-list {
  margin-top: 1.5rem;
}

.staff-announcements-list h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--neon-white-soft);
}

.staff-announcement-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.staff-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-status p {
  margin: 0.5rem 0;
}

.status-indicator.status-ok {
  color: var(--neon-green);
}

.status-indicator.status-fail {
  color: var(--neon-red);
}

.admin-log {
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.admin-log-item {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}

.staff-members-progress-list {
  margin-top: 1rem;
}

.staff-progress-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.staff-progress-table th,
.staff-progress-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: 1px solid var(--border);
}

.staff-progress-table th {
  background: var(--bg-dark);
  color: var(--neon-green);
  font-weight: 600;
}

.staff-progress-table tr:hover td {
  background: var(--bg-dark);
}

/* System Status panel (same pattern as Moderation — in main content) */
.staff-system-status-section .admin-status {
  margin-bottom: 1.25rem;
}

.staff-system-status-section .admin-status p {
  margin: 0.5rem 0;
}

.staff-system-status-section .admin-status .status-indicator.status-ok {
  color: var(--neon-green, #0f0);
}

.staff-system-status-section .admin-status .status-indicator.status-fail {
  color: var(--neon-red, #f07);
}

.staff-system-status-section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.staff-system-status-section .admin-log {
  font-size: 0.9rem;
  font-family: var(--font-mono, monospace);
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  max-height: 12rem;
  overflow-y: auto;
}

.staff-system-status-section .admin-log-item {
  margin: 0.25rem 0;
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--border);
}

.staff-system-status-section .admin-log-item:last-child {
  border-bottom: none;
}
