/* =========================================================
   TEAM SECTION — EXECUTIVE OBSIDIAN & TITANIUM EDITION
   Architectural glass · brushed metallic hierarchy · subtle depth
   Loaded after style.css, overrides legacy .tm-* & .prof-* rules.
   ========================================================= */

.team-section {
  --tm-bg: linear-gradient(165deg, #ffffff 0%, #f7f7f9 100%);
  --tm-solid: #ffffff;
  --tm-fg: #09090b;
  --tm-sub: rgba(9, 9, 11, 0.62);
  --tm-muted: rgba(9, 9, 11, 0.44);
  --tm-line: rgba(9, 9, 11, 0.08);
  --tm-line-hover: rgba(9, 9, 11, 0.22);
  --tm-chip: rgba(255, 255, 255, 0.82);
  --tm-chip-border: rgba(9, 9, 11, 0.10);
  --tm-chip-fg: #09090b;
  --tm-pill-bg: rgba(9, 9, 11, 0.035);
  --tm-pill-hover: rgba(9, 9, 11, 0.075);
  --tm-accent-owner: #18181b;
  --tm-accent-mgmt: #52525b;
  --tm-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --tm-shadow-hover: 0 32px 64px -20px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 1) inset;
}

[data-theme="dark"] .team-section {
  --tm-bg: linear-gradient(165deg, rgba(20, 21, 26, 0.92) 0%, rgba(10, 11, 15, 0.96) 100%);
  --tm-solid: #0c0d12;
  --tm-fg: #f4f4f5;
  --tm-sub: rgba(244, 244, 245, 0.64);
  --tm-muted: rgba(244, 244, 245, 0.42);
  --tm-line: rgba(255, 255, 255, 0.075);
  --tm-line-hover: rgba(255, 255, 255, 0.22);
  --tm-chip: rgba(12, 13, 18, 0.72);
  --tm-chip-border: rgba(255, 255, 255, 0.13);
  --tm-chip-fg: #f4f4f5;
  --tm-pill-bg: rgba(255, 255, 255, 0.035);
  --tm-pill-hover: rgba(255, 255, 255, 0.08);
  --tm-accent-owner: #e4e4e7;
  --tm-accent-mgmt: #a1a1aa;
  --tm-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  --tm-shadow-hover: 0 36px 80px -20px rgba(0, 0, 0, 0.95), 0 0 40px -10px rgba(255, 255, 255, 0.05), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

/* ---------- Subtle Architectural Backdrop ---------- */
.team-section .team-bg-spotlight {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.025) 0%, transparent 68%) !important;
}
.team-section .team-tiers-wrapper {
  max-width: 880px;
  gap: 56px;
}
.team-section .team-tiers-wrapper::before,
.team-section .team-tiers-wrapper::after {
  display: none !important;
}

/* ---------- Filter Bar (Sleek Segmented Control) ---------- */
.team-section .team-filter-bar {
  padding: 5px;
  border-radius: 14px;
  background: var(--tm-pill-bg) !important;
  border: 1px solid var(--tm-line) !important;
  box-shadow: none !important;
}
.team-section .team-filter-btn {
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--tm-sub) !important;
}
.team-section .team-filter-btn .filter-count {
  border-radius: 6px;
  width: auto;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(128, 128, 128, 0.12) !important;
  color: var(--tm-sub) !important;
}
.team-section .team-filter-btn.active {
  background: var(--tm-fg) !important;
  color: var(--tm-solid) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}
.team-section .team-filter-btn.active .filter-count {
  background: rgba(128, 128, 128, 0.22) !important;
  color: var(--tm-solid) !important;
}

/* ---------- Tier Headings ---------- */
.team-section .team-tier {
  gap: 24px;
}
.team-section .team-tier-label {
  gap: 18px;
}
.team-section .team-tier-label::before,
.team-section .team-tier-label::after {
  background: linear-gradient(90deg, transparent, var(--tm-line), transparent) !important;
}
.team-section .team-tier-tag {
  padding: 6px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.4px;
  border-radius: 999px;
  background: var(--tm-pill-bg) !important;
  color: var(--tm-sub) !important;
  border: 1px solid var(--tm-line) !important;
  box-shadow: none !important;
}
.team-section .team-tier-tag svg {
  color: var(--tm-fg);
  opacity: 0.75;
}
.team-section .team-tier-tag::after {
  display: none !important;
}

/* ---------- Grids ---------- */
.team-section .team-tier-owners .team-grid-tier,
.team-section .team-tier-mgmt .team-grid-tier {
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

/* ---------- Executive Card ---------- */
.team-section .tm-card {
  --av: 88px;
  --bn: 118px;
  --ty: 0px;
  --rx: 0deg;
  --ry: 0deg;
  border-radius: 20px;
  background: var(--tm-bg) !important;
  border: 1px solid var(--tm-line) !important;
  box-shadow: var(--tm-shadow) !important;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty));
  transform-style: preserve-3d;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease,
    opacity 0.45s ease;
  will-change: transform;
  isolation: isolate;
}

.team-section .tm-card.tm-card-mgmt {
  --av: 84px;
  --bn: 112px;
}

.team-section .tm-card:hover {
  --ty: -5px;
  border-color: var(--tm-line-hover) !important;
  box-shadow: var(--tm-shadow-hover) !important;
}

/* Top specular hairline */
.team-section .tm-card::before {
  display: block !important;
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent) !important;
  z-index: 6;
  pointer-events: none;
}

/* Subtle metallic corner border accent on hover (no neon conic gradient) */
.team-section .tm-card::after {
  display: none !important;
}

/* Soft monochrome mouse spotlight */
.team-section .tm-glow {
  z-index: 3;
  mix-blend-mode: normal;
}

/* ---------- Banner (injected by team-premium.js) ---------- */
.team-section .tm-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bn);
  background-size: cover;
  background-position: center;
  z-index: 0;
  overflow: hidden;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  transform: scale(1.02);
  filter: saturate(0.75) contrast(1.06) brightness(0.84);
}
.team-section .tm-card:hover .tm-banner {
  transform: scale(1.07);
  filter: saturate(0.92) contrast(1.08) brightness(0.92);
}

/* Architectural micro-grid + vignette over banner */
.team-section .tm-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.team-section .tm-banner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 78%;
  background: linear-gradient(180deg, transparent 0%, var(--tm-solid) 96%);
}

/* ---------- Inner Layout ---------- */
.team-section .tm-card-inner {
  padding: 16px 24px 20px;
  z-index: 4;
  transform: translateZ(18px);
}
.team-section .tm-top-bar {
  margin-bottom: calc(var(--bn) - var(--av) / 2 - 40px);
}

/* Frosted monochrome role & status pills */
.team-section .tm-role-tag,
.team-section .tm-status-pill {
  background: var(--tm-chip) !important;
  color: var(--tm-chip-fg) !important;
  border: 1px solid var(--tm-chip-border) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.team-section .tm-role-tag svg {
  color: var(--tm-chip-fg) !important;
  opacity: 0.85;
}
.team-section .tm-status-pill {
  letter-spacing: 0.4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--tm-sub) !important;
}
.team-section .tm-status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.55);
}

/* ---------- Avatar with Precision Metallic Bezel ---------- */
.team-section .tm-avatar-frame {
  margin-bottom: 14px;
}
.team-section .tm-avatar-ring {
  width: var(--av);
  height: var(--av);
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05)) !important;
  border: 1px solid var(--tm-line) !important;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.55) !important;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
[data-theme="light"] .team-section .tm-avatar-ring {
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.03)) !important;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.14) !important;
}
.team-section .tm-avatar-ring::after {
  display: none !important;
}
.team-section .tm-card:hover .tm-avatar-ring {
  transform: translateY(-2px);
}
.team-section .tm-avatar {
  border: 3px solid var(--tm-solid);
  background: var(--tm-solid);
}

/* ---------- Typography & Badges ---------- */
.team-section .tm-name-wrap {
  gap: 6px;
}
.team-section .tm-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.35px;
  color: var(--tm-fg) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
}

.team-section .tm-verified-owner {
  color: var(--tm-fg) !important;
  opacity: 0.92;
  filter: none !important;
}
.team-section .tm-verified-mgmt {
  color: var(--tm-sub) !important;
  opacity: 0.85;
  filter: none !important;
}

.team-section .tm-role-subtitle {
  color: var(--tm-muted) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-top: 2px;
  margin-bottom: 14px;
}

/* Discord Tag Pill */
.team-section .tm-discord-pill {
  background: var(--tm-pill-bg) !important;
  border: 1px solid var(--tm-line) !important;
  color: var(--tm-sub) !important;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  transition: all 0.22s ease;
}
.team-section .tm-discord-pill svg:first-child {
  color: var(--tm-fg) !important;
  opacity: 0.75;
}
.team-section .tm-discord-pill:hover {
  background: var(--tm-pill-hover) !important;
  border-color: var(--tm-line-hover) !important;
  color: var(--tm-fg) !important;
  transform: translateY(-1px);
}

/* ---------- Refined Executive Footer ---------- */
.team-section .tm-card-footer {
  margin-top: 18px;
  padding: 13px 4px 0;
  border: 0 !important;
  border-top: 1px solid var(--tm-line) !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--tm-muted) !important;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  justify-content: space-between;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.team-section .tm-card-footer::before {
  display: none !important;
}
.team-section .tm-card:hover .tm-card-footer {
  color: var(--tm-fg) !important;
  border-top-color: var(--tm-line-hover) !important;
}
.team-section .tm-card:hover .tm-view-arrow {
  transform: translateX(4px);
}

/* ---------- Profile Modal (Executive Upgrade) ---------- */
[data-theme="dark"] .prof-popup {
  background: linear-gradient(165deg, #14151b 0%, #0b0c10 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
}
[data-theme="dark"] .prof-popup[data-role="OWNER"] .prof-avatar-ring,
[data-theme="dark"] .prof-popup[data-role="MANAGEMENT"] .prof-avatar-ring {
  border-color: #0e0f14 !important;
  outline: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65) !important;
}
.prof-dc-link,
[data-theme="dark"] .prof-dc-link {
  background: #f4f4f5 !important;
  color: #09090b !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.prof-dc-link:hover,
[data-theme="dark"] .prof-dc-link:hover {
  background: #ffffff !important;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.16) !important;
}
[data-theme="light"] .prof-dc-link {
  background: #09090b !important;
  color: #ffffff !important;
}
[data-theme="light"] .prof-dc-link:hover {
  background: #18181b !important;
  color: #ffffff !important;
}

/* ---------- Scroll Reveal ---------- */
.tm-js .team-section .tm-card:not(.in) {
  --ty: 32px;
  opacity: 0;
}
.tm-js .team-section .team-tier-label {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tm-js .team-section .team-tier.in .team-tier-label {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .team-section .team-tiers-wrapper { gap: 44px; }
  .team-section .tm-card { --av: 82px; --bn: 108px; }
  .team-section .tm-card.tm-card-mgmt { --av: 78px; --bn: 102px; }
}
@media (hover: none) {
  .team-section .tm-card { transform: translateY(var(--ty)); }
}
@media (prefers-reduced-motion: reduce) {
  .team-section .tm-card { transition: none !important; }
}

/* =========================================================
   DISCORD AUTH NAVBAR CAPSULE & MODALS + STAFF APPLICATION
   ========================================================= */

/* Navbar Discord Login / User Capsule */
.dc-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.045);
  border: 1px solid rgba(0, 0, 0, 0.09);
  color: #09090b;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.dc-nav-btn:hover {
  background: rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}
.dc-nav-btn.is-logged {
  padding: 0 12px 0 5px;
}
.dc-nav-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
[data-theme="dark"] .dc-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
}
[data-theme="dark"] .dc-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ---------- Executive Staff Recruitment Banner ---------- */
.staff-recruit-banner {
  max-width: 880px;
  margin: 44px auto 0;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--tm-bg);
  border: 1px solid var(--tm-line);
  box-shadow: var(--tm-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
  z-index: 2;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.staff-recruit-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}
.staff-recruit-banner:hover {
  border-color: var(--tm-line-hover);
  box-shadow: var(--tm-shadow-hover);
}
.srb-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 580px;
}
.srb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tm-muted);
}
.srb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.65);
}
.srb-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--tm-fg);
}
.srb-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--tm-sub) !important;
  margin: 0;
}
.srb-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.srb-inbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid var(--tm-line);
  color: var(--tm-fg);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}
.srb-inbox-btn:hover {
  background: rgba(128, 128, 128, 0.16);
  border-color: var(--tm-line-hover);
  transform: translateY(-1px);
}
.srb-inbox-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 800;
}
[data-theme="light"] .srb-inbox-count {
  background: rgba(0, 0, 0, 0.1);
}
.srb-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--tm-fg);
  color: var(--tm-solid);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.srb-apply-btn:hover {
  transform: translateY(-2px);
  opacity: 0.94;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}
.srb-apply-btn svg {
  transition: transform 0.25s ease;
}
.srb-apply-btn:hover svg {
  transform: translateX(3px);
}

/* ---------- Shared Executive Modal Base ---------- */
.sens-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.sens-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sens-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95) translateY(12px);
  z-index: 10001;
  background: #ffffff;
  color: #09090b;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 90vh;
  overflow-y: auto;
}
[data-theme="dark"] .sens-modal {
  background: linear-gradient(165deg, #14151b 0%, #0b0c10 100%);
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
.sens-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1) translateY(0);
}

.sens-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(128, 128, 128, 0.22);
  background: rgba(128, 128, 128, 0.1);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.sens-modal-close:hover {
  background: rgba(128, 128, 128, 0.22);
  transform: rotate(90deg);
}

/* ---------- Discord Auth Modal ---------- */
.dc-auth-modal {
  width: min(420px, 92vw);
  overflow: hidden;
}
#dcaLoggedOutView {
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dca-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.dca-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(128, 128, 128, 0.1);
  border: 1px solid rgba(128, 128, 128, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.dca-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0.5;
}
.dca-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.dca-sub {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.65;
}
.dca-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  background: #f4f4f5;
  color: #09090b;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
}
[data-theme="light"] .dca-oauth-btn {
  background: #09090b;
  color: #ffffff;
}
.dca-oauth-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
.dca-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  opacity: 0.4;
}
.dca-divider::before,
.dca-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}
.dca-id-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dca-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  opacity: 0.75;
}
.dca-input-row {
  display: flex;
  gap: 8px;
}
.dca-input {
  flex: 1;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(128, 128, 128, 0.07);
  border: 1px solid rgba(128, 128, 128, 0.18);
  color: inherit;
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}
.dca-input:focus {
  border-color: rgba(128, 128, 128, 0.5);
}
.dca-submit-btn {
  padding: 0 18px;
  border-radius: 10px;
  background: rgba(128, 128, 128, 0.16);
  border: 1px solid rgba(128, 128, 128, 0.25);
  color: inherit;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dca-submit-btn:hover {
  background: rgba(128, 128, 128, 0.26);
}
.dca-hint {
  font-size: 11px;
  opacity: 0.45;
  line-height: 1.4;
}
.dca-error {
  font-size: 11.5px;
  color: #ef4444;
  font-weight: 600;
  margin-top: 2px;
}

/* Logged In User View inside Modal */
.dca-user-banner {
  height: 105px;
  background: linear-gradient(135deg, #18181f 0%, #0d0e12 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}
.dca-user-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(11, 12, 16, 0.85) 100%);
}
.dca-user-body {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dca-user-top {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: -32px;
  position: relative;
  z-index: 2;
}
.dca-user-av-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: #0d0e12;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.dca-user-av {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.dca-user-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0d0e12;
}
.dca-user-info {
  padding-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dca-user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dca-user-name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
}
.dca-role-pill {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(128, 128, 128, 0.14);
  border: 1px solid rgba(128, 128, 128, 0.24);
  color: inherit;
  opacity: 0.75;
}
.dca-role-pill.is-owner {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  opacity: 1;
}
[data-theme="light"] .dca-role-pill.is-owner {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}
.dca-role-pill.is-mgmt {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
  opacity: 1;
}
.dca-user-tag {
  font-size: 12px;
  opacity: 0.55;
  font-family: monospace;
}
.dca-user-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(128, 128, 128, 0.06);
  border: 1px solid rgba(128, 128, 128, 0.12);
}
.dca-meta-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dca-meta-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  opacity: 0.45;
}
.dca-meta-val {
  font-size: 12px;
  font-weight: 700;
  font-family: monospace;
}
.dca-user-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dca-action-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 11px;
  background: #f4f4f5;
  color: #09090b;
  border: none;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
[data-theme="light"] .dca-action-primary {
  background: #09090b;
  color: #ffffff;
}
.dca-action-primary:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
.dca-action-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 11px;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid rgba(128, 128, 128, 0.16);
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.dca-action-secondary:hover {
  background: rgba(128, 128, 128, 0.15);
}
.dca-logout-btn {
  margin-top: 4px;
  background: transparent;
  border: none;
  color: #ef4444;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.8;
  padding: 6px;
}
.dca-logout-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- Executive Staff Application Modal ---------- */
.staff-app-modal {
  width: min(580px, 94vw);
  padding: 28px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sam-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sam-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0.5;
}
.sam-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.sam-sub {
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.62;
}

.sam-identity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(128, 128, 128, 0.06);
  border: 1px solid rgba(128, 128, 128, 0.14);
}
.sam-id-left {
  display: flex;
  align-items: center;
  gap: 11px;
}
.sam-id-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(128, 128, 128, 0.25);
}
.sam-id-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sam-id-txt strong {
  font-size: 13px;
  font-weight: 700;
}
.sam-id-txt span {
  font-size: 11px;
  opacity: 0.55;
}
.sam-id-btn {
  padding: 7px 13px;
  border-radius: 9px;
  background: rgba(128, 128, 128, 0.14);
  border: 1px solid rgba(128, 128, 128, 0.24);
  color: inherit;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.sam-id-btn:hover {
  background: rgba(128, 128, 128, 0.24);
}

.sam-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sam-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sam-grid-3 {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 12px;
}
.sam-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sam-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  opacity: 0.78;
}
.sam-input,
.sam-select,
.sam-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(128, 128, 128, 0.06);
  border: 1px solid rgba(128, 128, 128, 0.16);
  color: inherit;
  font-family: var(--font);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
[data-theme="dark"] .sam-select option {
  background: #121318;
  color: #f4f4f5;
}
.sam-input:focus,
.sam-select:focus,
.sam-textarea:focus {
  border-color: rgba(128, 128, 128, 0.45);
  background: rgba(128, 128, 128, 0.09);
}
.sam-textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
}
.sam-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(128, 128, 128, 0.14);
}
.sam-note {
  font-size: 11px;
  opacity: 0.5;
  line-height: 1.4;
}
.sam-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  background: #f4f4f5;
  color: #09090b;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
}
[data-theme="light"] .sam-submit-btn {
  background: #09090b;
  color: #ffffff;
}
.sam-submit-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
.sam-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 720px) {
  .staff-recruit-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }
  .srb-right,
  .srb-apply-btn {
    width: 100%;
    justify-content: center;
  }
  .sam-grid-2,
  .sam-grid-3 {
    grid-template-columns: 1fr;
  }
  .sam-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .sam-submit-btn {
    justify-content: center;
  }
}

/* ---------- Interactive Discord OAuth2 Authorize Screen ---------- */
.dco-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 4px;
}
.dco-app-logo,
.dco-dc-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .dco-app-logo,
[data-theme="light"] .dco-dc-logo {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}
.dco-app-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.dco-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dco-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}
.dco-title-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dco-sub-top {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  opacity: 0.45;
}
.dco-title-wrap .dca-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.dco-title-wrap .dca-title strong {
  font-weight: 800;
}

.dco-account-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(128, 128, 128, 0.07);
  border: 1px solid rgba(128, 128, 128, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dco-acc-main {
  display: flex;
  align-items: center;
  gap: 11px;
}
.dco-acc-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.dco-acc-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.dco-acc-label {
  font-size: 10px;
  opacity: 0.55;
}
.dco-acc-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dco-switch-link {
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.65;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}
.dco-switch-link:hover {
  opacity: 1;
}
.dco-acc-edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(128, 128, 128, 0.14);
}
.dco-edit-lbl {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.7;
}
.dco-edit-row {
  display: flex;
  gap: 6px;
}

.dco-scopes {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(128, 128, 128, 0.045);
  border: 1px solid rgba(128, 128, 128, 0.12);
}
.dco-scopes-head {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  opacity: 0.45;
  margin-bottom: 2px;
}
.dco-scope-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.88;
}
.dco-check {
  color: #10b981;
  flex-shrink: 0;
}
.dco-cross {
  color: #ef4444;
  flex-shrink: 0;
}
.dco-scope-deny {
  opacity: 0.62;
}

.dco-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.dco-cancel-btn {
  padding: 13px 18px;
  border-radius: 12px;
  background: rgba(128, 128, 128, 0.1);
  border: 1px solid rgba(128, 128, 128, 0.18);
  color: inherit;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dco-cancel-btn:hover {
  background: rgba(128, 128, 128, 0.18);
}
.dco-footer-actions .dca-oauth-btn {
  flex: 1;
}

.sam-footer-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sam-inbox-link-btn {
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(128, 128, 128, 0.1);
  border: 1px solid rgba(128, 128, 128, 0.2);
  color: inherit;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.sam-inbox-link-btn:hover {
  background: rgba(128, 128, 128, 0.18);
}

/* ---------- Staff Applications Inbox & Discord Webhook Modal ---------- */
.staff-inbox-modal {
  width: min(680px, 95vw);
  padding: 28px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sim-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sim-webhook-box {
  padding: 16px;
  border-radius: 14px;
  background: rgba(128, 128, 128, 0.055);
  border: 1px solid rgba(128, 128, 128, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sim-wh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sim-wh-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}
.sim-wh-status {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.sim-wh-status.is-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.32);
}
.sim-wh-help {
  font-size: 11.5px;
  line-height: 1.5;
  opacity: 0.68;
  margin: 0;
}
.sim-wh-row {
  display: flex;
  gap: 8px;
}
.sim-wh-save-btn,
.sim-wh-test-btn {
  padding: 0 16px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.sim-wh-save-btn {
  background: #f4f4f5;
  color: #09090b;
  border: none;
}
[data-theme="light"] .sim-wh-save-btn {
  background: #09090b;
  color: #ffffff;
}
.sim-wh-save-btn:hover {
  opacity: 0.9;
}
.sim-wh-test-btn {
  background: rgba(128, 128, 128, 0.14);
  border: 1px solid rgba(128, 128, 128, 0.24);
  color: inherit;
}
.sim-wh-test-btn:hover {
  background: rgba(128, 128, 128, 0.24);
}

.sim-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}
.sim-list-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  opacity: 0.55;
}
.sim-clear-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.75;
}
.sim-clear-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

.sim-apps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.sim-empty {
  padding: 32px 16px;
  text-align: center;
  border-radius: 13px;
  border: 1px dashed rgba(128, 128, 128, 0.2);
  font-size: 12.5px;
  opacity: 0.55;
}
.sim-app-card {
  padding: 15px 16px;
  border-radius: 14px;
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid rgba(128, 128, 128, 0.14);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.sim-app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sim-app-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sim-app-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(128, 128, 128, 0.25);
}
.sim-app-uinfo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sim-app-uinfo strong {
  font-size: 13.5px;
  font-weight: 800;
}
.sim-app-uinfo span {
  font-size: 11px;
  opacity: 0.55;
  font-family: monospace;
}
.sim-app-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sim-pos-badge {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(128, 128, 128, 0.14);
  border: 1px solid rgba(128, 128, 128, 0.22);
}
.sim-status-badge {
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.sim-status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.sim-status-approved {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.sim-status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.sim-app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 11.5px;
  opacity: 0.75;
}
.sim-app-qa {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  font-size: 12px;
  line-height: 1.45;
}
[data-theme="light"] .sim-app-qa {
  background: rgba(0, 0, 0, 0.04);
}
.sim-app-qa div strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 2px;
}
.sim-app-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.sim-act-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sim-btn {
  padding: 6px 11px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(128, 128, 128, 0.22);
  background: rgba(128, 128, 128, 0.1);
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}
.sim-btn:hover {
  background: rgba(128, 128, 128, 0.2);
}
.sim-btn-approve {
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
}
.sim-btn-reject {
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}
@media (max-width: 720px) {
  .sim-wh-row {
    flex-direction: column;
  }
  .sim-wh-save-btn,
  .sim-wh-test-btn {
    padding: 11px;
  }
}
