/* =====================================================
   A Late Night Reborn | Run Signups Styles
   ===================================================== */

.main-content {
  max-width: 1600px;
  padding: 1.5rem 1.5rem 3.5rem;
}

.signups-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 3rem 0;
}

/* ── Top Bar & Hero ───────────────────────────────── */
.signups-top-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.signups-hero {
  text-align: center;
  margin-bottom: 0.25rem;
}

.signups-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-rose);
  margin-bottom: 0.5rem;
}

.signups-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  background: linear-gradient(125deg, #ffffff 0%, #fcd4c8 32%, #b291f7 65%, #e4c090 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.45rem;
}

.signups-desc {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── 2-Column Desktop Workspace Grid (Option A) ───── */
.signups-workspace-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.signups-left-col,
.signups-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.signups-left-col .glass-card,
.signups-right-col .glass-card {
  margin-bottom: 0;
}

/* Empty State Card on Right Column (Desktop Only) */
.signup-empty-state-card {
  display: none;
}

.signup-empty-state-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed rgba(252, 212, 200, 0.16);
  border-radius: var(--radius-md);
  background: rgba(10, 11, 28, 0.35);
}

.signup-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(178, 145, 247, 0.14);
  border: 1px solid rgba(178, 145, 247, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}

.signup-empty-icon .material-symbols-outlined {
  font-size: 1.8rem;
}

.signup-empty-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.signup-empty-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.55;
}

/* Dual Phantom Jobs Grid inside Right Column */
.phantom-jobs-dual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.phantom-jobs-dual-grid .dynamic-jobs-box {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .main-content {
    padding: 1.5rem 2rem 3.5rem;
  }

  .signups-top-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.75rem;
  }

  .signups-hero {
    text-align: left;
    margin-bottom: 0;
    flex: 1;
  }

  .signups-desc {
    margin: 0;
    max-width: 600px;
  }

  #auth-banner-container {
    flex: 0 0 auto;
    min-width: 520px;
  }

  #auth-banner-container .glass-card {
    margin-bottom: 0;
    padding: 1rem 1.35rem;
  }

  #auth-banner-container .auth-banner-authed {
    flex-wrap: nowrap;
  }

  .signups-workspace-grid {
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
  }

  .signups-left-col {
    position: sticky;
    top: 5.25rem;
  }

  .signups-left-col .runs-grid {
    grid-template-columns: 1fr;
  }

  .signup-empty-state-card {
    display: block;
  }
}

@media (min-width: 1360px) {
  .signups-workspace-grid {
    grid-template-columns: 560px minmax(0, 1fr);
  }

  .phantom-jobs-dual-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Glassmorphic Cards ────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow-glass);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  border-color: rgba(252, 212, 200, 0.35);
}

.card-heading {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(252, 212, 200, 0.12);
}

.card-heading .material-symbols-outlined {
  font-size: 1.45rem;
  color: var(--accent-purple);
}

/* ── Discord Auth Banner ──────────────────────────── */
.auth-banner-unauthed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(20, 21, 50, 0.6) 100%);
  border: 1px solid rgba(88, 101, 242, 0.4);
}

.auth-info-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.discord-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #5865F2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
  flex-shrink: 0;
}

.discord-logo-icon svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.auth-btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865F2;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
}

.auth-btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(88, 101, 242, 0.6);
}

/* ── Signup Form Discord Connect Prompt ───────────── */
.signup-connect-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: rgba(88, 101, 242, 0.08);
  border: 1px dashed rgba(88, 101, 242, 0.35);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.signup-connect-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #5865F2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.4);
  margin-bottom: 1rem;
}

.signup-connect-icon svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

.signup-connect-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.signup-connect-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.auth-banner-authed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.12) 0%, rgba(20, 21, 50, 0.6) 100%);
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.user-profile-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
  box-shadow: 0 0 14px rgba(178, 145, 247, 0.4);
}

.user-details-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-display-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-verified {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-unverified {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-signout {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-signout:hover {
  background: rgba(231, 76, 60, 0.2);
  color: #ff6b6b;
  border-color: rgba(231, 76, 60, 0.4);
}

/* ── Content Type Filters & Run Selector ──────────── */
.content-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(252, 212, 200, 0.15);
  color: var(--text-secondary);
  padding: 0.5rem 1.15rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.filter-pill.active {
  background: var(--accent-purple);
  color: #0a0b1c;
  border-color: var(--accent-purple);
  box-shadow: 0 4px 14px rgba(178, 145, 247, 0.4);
}

.runs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-bottom: 0.25rem;
}

.run-select-card {
  background: rgba(10, 11, 28, 0.45);
  border: 1px solid rgba(252, 212, 200, 0.14);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.05rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.run-select-card:hover {
  border-color: rgba(178, 145, 247, 0.5);
  transform: translateY(-2px);
  background: rgba(20, 21, 50, 0.7);
}

.run-select-card.selected {
  border-color: var(--accent-rose);
  background: rgba(252, 212, 200, 0.08);
  box-shadow: 0 0 20px rgba(252, 212, 200, 0.2);
}

.run-select-card.is-closed {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: rgba(231, 76, 60, 0.3);
  background: rgba(10, 11, 28, 0.3);
}

.run-select-card.is-closed:hover {
  transform: none;
  background: rgba(10, 11, 28, 0.3);
  border-color: rgba(231, 76, 60, 0.4);
}

.run-closed-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(231, 76, 60, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(231, 76, 60, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.run-select-card.is-cancelled {
  opacity: 0.65;
  cursor: not-allowed;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(30, 10, 18, 0.35);
}

.run-select-card.is-cancelled:hover {
  transform: none;
  background: rgba(30, 10, 18, 0.35);
  border-color: rgba(239, 68, 68, 0.55);
}

.run-select-card.is-cancelled .run-card-title {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.run-cancelled-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.run-backups-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  margin-right: 3px;
  cursor: help;
}

.run-backups-icon .material-symbols-outlined {
  font-size: 1.05rem;
}

.run-backups-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  background: rgba(12, 13, 32, 0.96);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(3px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  pointer-events: none;
  z-index: 30;
}

.run-backups-icon:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.run-full-warning-banner {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.48);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.05rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #fde68a;
  animation: fadeInDown 0.25s ease-out;
}

.run-full-warning-icon {
  color: #fbbf24;
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.run-full-warning-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.run-full-warning-text strong {
  color: #fef08a;
}

.run-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.run-card-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.run-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.run-type-badge.ftb { background: rgba(231, 76, 60, 0.2); color: #ff6b6b; border: 1px solid rgba(231, 76, 60, 0.4); }
.run-type-badge.ftm { background: rgba(178, 145, 247, 0.2); color: #b291f7; border: 1px solid rgba(178, 145, 247, 0.4); }
.run-type-badge.chaotic { background: rgba(155, 89, 182, 0.25); color: #d291ff; border: 1px solid rgba(155, 89, 182, 0.5); }
.run-type-badge.ba { background: rgba(52, 152, 219, 0.2); color: #80a4f8; border: 1px solid rgba(52, 152, 219, 0.4); }
.run-type-badge.drs { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.45); }

.run-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.25;
}

.run-card-time {
  font-size: 0.83rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.run-card-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* ── Form Controls & Layout ───────────────────────── */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 680px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.input-text, .input-select, .input-textarea {
  width: 100%;
  background: rgba(10, 11, 28, 0.6);
  border: 1px solid rgba(252, 212, 200, 0.18);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.input-text:focus, .input-select:focus, .input-textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 14px rgba(178, 145, 247, 0.3);
  background: rgba(15, 17, 40, 0.8);
}

.input-text:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.3);
}

.input-textarea {
  min-height: 90px;
  resize: vertical;
}

.input-text.has-error,
.input-textarea.has-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3) !important;
}

.field-error-msg {
  color: #f87171;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Interactive Role & Job Chips ─────────────────── */
.chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(252, 212, 200, 0.16);
  border-radius: 10px;
  color: var(--text-secondary);
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(252, 212, 200, 0.35);
}

.chip-btn.selected {
  background: rgba(178, 145, 247, 0.22);
  color: #ffffff;
  border-color: var(--accent-purple);
  box-shadow: 0 2px 10px rgba(178, 145, 247, 0.25);
  font-weight: 600;
}

/* Role Specific Accent Colors */
.chip-btn.role-tank.selected {
  background: rgba(52, 152, 219, 0.25);
  border-color: #3498db;
  color: #85c1e9;
}

.chip-btn.role-healer.selected {
  background: rgba(46, 204, 113, 0.25);
  border-color: #2ecc71;
  color: #a3e4d7;
}

.chip-btn.role-dps.selected {
  background: rgba(231, 76, 60, 0.25);
  border-color: #e74c3c;
  color: #f1948a;
}

/* ── Dynamic Job Accordion Box ────────────────────── */
.dynamic-jobs-box {
  background: rgba(10, 11, 28, 0.5);
  border: 1px solid rgba(178, 145, 247, 0.22);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  animation: fadeInDown 0.25s ease-out;
}

.dynamic-jobs-box[data-role-group="tanks"] {
  border-left: 3px solid #3498db;
}
.dynamic-jobs-box[data-role-group="healers"] {
  border-left: 3px solid #2ecc71;
}
.dynamic-jobs-box[data-role-group="melee_dps"],
.dynamic-jobs-box[data-role-group="magical_dps"],
.dynamic-jobs-box[data-role-group="phys_ranged_dps"] {
  border-left: 3px solid #e74c3c;
}
.dynamic-jobs-box:not([data-role-group]) {
  border-left: 3px solid var(--accent-purple);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.jobs-role-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-rose);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-toggle-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.btn-mini-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-mini-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* ── Submit Controls & Feedback ───────────────────── */
.form-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(252, 212, 200, 0.12);
  flex-wrap: wrap;
}

.btn-submit-signup {
  background: linear-gradient(135deg, #b291f7 0%, #a078c0 100%);
  color: #0a0b1c;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(178, 145, 247, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.btn-submit-signup:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(178, 145, 247, 0.6);
  background: linear-gradient(135deg, #cbbcf6 0%, #b291f7 100%);
}

.btn-submit-signup:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.status-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  animation: fadeInDown 0.3s ease;
}

.status-alert.success {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
}

.status-alert.error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #ff6b6b;
}

/* ── "My Signups" List ────────────────────────────── */
.my-signups-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.my-signup-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(10, 11, 28, 0.5);
  border: 1px solid rgba(252, 212, 200, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.my-signup-item:hover {
  background: rgba(18, 20, 48, 0.7);
  border-color: rgba(178, 145, 247, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(178, 145, 247, 0.18);
}

.my-signup-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.my-signup-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.my-signup-item-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.my-signup-item-meta {
  font-size: 0.8rem;
  color: var(--accent-teal);
}

.my-signup-roster-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 0.79rem;
  font-weight: 600;
  margin-top: 3px;
  width: fit-content;
  max-width: 100%;
  line-height: 1.35;
}

.my-signup-roster-banner .material-symbols-outlined {
  font-size: 0.98rem;
  flex-shrink: 0;
}

.my-signup-roster-banner.is-selected {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #6ee7b7;
}

.my-signup-roster-banner.is-standby {
  background: rgba(251, 191, 36, 0.13);
  border: 1px solid rgba(251, 191, 36, 0.38);
  color: #fcd34d;
}

.my-signup-roster-banner.is-pending {
  background: rgba(178, 145, 247, 0.11);
  border: 1px solid rgba(178, 145, 247, 0.28);
  color: #d8b4fe;
}

.my-signup-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.my-signup-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(252, 212, 200, 0.18);
  color: var(--text-primary);
  transition: all 0.16s ease;
}

.my-signup-quick-link .material-symbols-outlined {
  font-size: 0.9rem;
}

.my-signup-quick-link:hover {
  background: rgba(178, 145, 247, 0.24);
  border-color: var(--accent-purple);
  color: #ffffff;
  transform: translateY(-1px);
}

.my-signup-quick-link.is-discord {
  border-color: rgba(129, 140, 248, 0.38);
  background: rgba(99, 102, 241, 0.14);
  color: #c7d2fe;
}

.my-signup-quick-link.is-discord:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: #818cf8;
  color: #ffffff;
}

.my-signup-quick-link.is-roster {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}

.my-signup-quick-link.is-roster:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #34d399;
  color: #ffffff;
}

.modal-roster-card {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(178, 145, 247, 0.25);
  background: rgba(18, 21, 46, 0.65);
}

.modal-roster-card.is-selected {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.13) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.modal-roster-card.is-standby {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.modal-roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.55rem;
}

.modal-roster-status-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.94rem;
}

.modal-roster-card.is-selected .modal-roster-status-title {
  color: #6ee7b7;
}

.modal-roster-card.is-standby .modal-roster-status-title {
  color: #fcd34d;
}

.modal-roster-card.is-pending .modal-roster-status-title {
  color: #d8b4fe;
}

.modal-roster-assign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 0.5rem;
  margin-bottom: 0.65rem;
}

.modal-roster-assign-chip {
  background: rgba(10, 12, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-roster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
}

.run-user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: auto;
}

.run-user-status-pill.is-selected {
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.run-user-status-pill.is-standby {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fcd34d;
}

.run-user-status-pill.is-pending {
  background: rgba(178, 145, 247, 0.16);
  border: 1px solid rgba(178, 145, 247, 0.36);
  color: #d8b4fe;
}

.btn-view-application-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(252, 212, 200, 0.16);
  color: var(--text-secondary);
  transition: all var(--transition);
  flex-shrink: 0;
  pointer-events: none;
}

.btn-view-application-more .material-symbols-outlined {
  font-size: 1.15rem;
}

.my-signup-item:hover .btn-view-application-more {
  background: rgba(178, 145, 247, 0.25);
  border-color: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(178, 145, 247, 0.25);
}

/* ── Application Details Modal ────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 7, 20, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: rgba(15, 17, 36, 0.96);
  border: 1px solid rgba(252, 212, 200, 0.22);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(178, 145, 247, 0.15);
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(252, 212, 200, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header-icon {
  font-size: 1.6rem;
  color: var(--accent-purple);
}

.modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Quicksand', sans-serif;
}

.modal-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color var(--transition);
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-sections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .modal-sections-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-info-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(252, 212, 200, 0.12);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-sublabel {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 600;
}

.modal-subvalue-lg {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 700;
  word-break: break-word;
}

.modal-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(252, 212, 200, 0.12);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}

.modal-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 0.85rem;
  font-family: 'Quicksand', sans-serif;
}

.modal-key-val {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.modal-subvalue {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.badge-role-highlight {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(178, 145, 247, 0.2);
  border: 1px solid rgba(178, 145, 247, 0.35);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.84rem;
}

.modal-jobs-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-job-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  border-bottom: 1px dashed rgba(252, 212, 200, 0.1);
  padding-bottom: 6px;
}

.modal-job-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(252, 212, 200, 0.12);
  background: rgba(255, 255, 255, 0.02);
  gap: 12px;
  flex-wrap: wrap;
}

.modal-cancellation-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.modal-cancellation-hint a {
  color: var(--accent-purple);
  text-decoration: underline;
}

.modal-btn-dismiss {
  padding: 0.5rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(252, 212, 200, 0.2);
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition);
}

.modal-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(252, 212, 200, 0.4);
}

.modal-box-warning {
  max-width: 480px;
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(239, 68, 68, 0.18);
}

.modal-backdrop-top {
  z-index: 10050;
}

.modal-header-icon.warning-icon {
  color: #ff6b6b;
}

.modal-warning-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.modal-warning-text strong {
  color: #ff6b6b;
}

.modal-warning-subtext {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.modal-footer-end {
  justify-content: flex-end;
}

.modal-btn-confirm-warning {
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.35);
}

.modal-btn-confirm-warning:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(239, 68, 68, 0.5);
}

/* =====================================================
   Light Theme Overrides for Run Signups
   ===================================================== */
[data-theme^="light"] .signups-title {
  background: linear-gradient(125deg, #221e2a 0%, #b85b56 35%, #7c3aed 70%, #b45309 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme^="light"] .auth-banner-unauthed {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.08) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-color: rgba(88, 101, 242, 0.3);
}

[data-theme^="light"] .auth-banner-unauthed .auth-info-left div > div:first-child {
  color: #221e2a !important;
}

[data-theme^="light"] .auth-banner-authed {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-color: rgba(46, 204, 113, 0.3);
}

[data-theme^="light"] .user-display-name {
  color: #221e2a;
}

[data-theme^="light"] .btn-signout {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme^="light"] .btn-signout:hover {
  background: rgba(231, 76, 60, 0.12);
  color: #c0392b;
  border-color: rgba(231, 76, 60, 0.3);
}

[data-theme^="light"] .filter-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

[data-theme^="light"] .filter-pill:hover {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.25);
}

[data-theme^="light"] .filter-pill.active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 3px 12px rgba(124, 58, 237, 0.35);
}

[data-theme^="light"] .run-select-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 2px 10px rgba(108, 99, 158, 0.06);
}

[data-theme^="light"] .run-select-card:hover {
  border-color: rgba(124, 58, 237, 0.45);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.15);
}

[data-theme^="light"] .run-select-card.selected {
  border-color: #c86b66;
  background: rgba(200, 107, 102, 0.08);
  box-shadow: 0 0 16px rgba(200, 107, 102, 0.25);
}

[data-theme^="light"] .run-select-card.is-closed {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(231, 76, 60, 0.25);
}

[data-theme^="light"] .run-select-card.is-closed:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(231, 76, 60, 0.35);
}

[data-theme^="light"] .run-card-title {
  color: #221e2a;
}

[data-theme^="light"] .run-type-badge.ftb {
  background: rgba(231, 76, 60, 0.12);
  color: #c0392b;
  border-color: rgba(231, 76, 60, 0.3);
}

[data-theme^="light"] .run-type-badge.ftm {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.3);
}

[data-theme^="light"] .run-type-badge.chaotic {
  background: rgba(147, 51, 234, 0.12);
  color: #7e22ce;
  border-color: rgba(147, 51, 234, 0.3);
}

[data-theme^="light"] .run-type-badge.ba {
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
  border-color: rgba(2, 132, 199, 0.3);
}

[data-theme^="light"] .run-type-badge.drs {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.3);
}

[data-theme^="light"] .run-closed-badge {
  background: rgba(231, 76, 60, 0.1);
  color: #c0392b;
  border-color: rgba(231, 76, 60, 0.3);
}

[data-theme^="light"] .input-text,
[data-theme^="light"] .input-select,
[data-theme^="light"] .input-textarea {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #221e2a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme^="light"] .input-text:focus,
[data-theme^="light"] .input-select:focus,
[data-theme^="light"] .input-textarea:focus {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

[data-theme^="light"] .input-text:disabled {
  background: rgba(0, 0, 0, 0.05);
  color: #544a62;
}

/* ── Dynamic Job Box & Accordion Light Mode ───────── */
[data-theme^="light"] .dynamic-jobs-box {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(108, 99, 158, 0.06);
}

[data-theme^="light"] .dynamic-jobs-box[data-role-group="tanks"] {
  border-left: 3px solid #2563eb;
}

[data-theme^="light"] .dynamic-jobs-box[data-role-group="healers"] {
  border-left: 3px solid #059669;
}

[data-theme^="light"] .dynamic-jobs-box[data-role-group="melee_dps"],
[data-theme^="light"] .dynamic-jobs-box[data-role-group="magical_dps"],
[data-theme^="light"] .dynamic-jobs-box[data-role-group="phys_ranged_dps"] {
  border-left: 3px solid #dc2626;
}

[data-theme^="light"] .dynamic-jobs-box:not([data-role-group]) {
  border-left: 3px solid #7c3aed;
}

[data-theme^="light"] .jobs-role-title {
  color: #221e2a;
  font-weight: 700;
}

[data-theme^="light"] .jobs-role-title .material-symbols-outlined {
  color: #7c3aed;
}

[data-theme^="light"] .dynamic-jobs-box[data-role-group="tanks"] .jobs-role-title {
  color: #1e40af;
}

[data-theme^="light"] .dynamic-jobs-box[data-role-group="healers"] .jobs-role-title {
  color: #065f46;
}

[data-theme^="light"] .dynamic-jobs-box[data-role-group="melee_dps"] .jobs-role-title,
[data-theme^="light"] .dynamic-jobs-box[data-role-group="magical_dps"] .jobs-role-title,
[data-theme^="light"] .dynamic-jobs-box[data-role-group="phys_ranged_dps"] .jobs-role-title {
  color: #991b1b;
}

[data-theme^="light"] .form-hint {
  color: #544a62;
}

[data-theme^="light"] .btn-mini-toggle {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #544a62;
  font-weight: 500;
}

[data-theme^="light"] .btn-mini-toggle:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.35);
  color: #6d28d9;
}

/* ── Light Mode Interactive Chips ─────────────────── */
[data-theme^="light"] .chip-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: #2e263b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-weight: 500;
}

[data-theme^="light"] .chip-btn:hover {
  background: rgba(124, 58, 237, 0.06);
  color: #221e2a;
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.1);
}

[data-theme^="light"] .chip-btn.selected {
  background: rgba(124, 58, 237, 0.14);
  color: #6d28d9;
  border-color: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.22);
  font-weight: 600;
}

/* Role Specific Accent Colors - Light Mode (High Contrast) */
[data-theme^="light"] .chip-btn.role-tank.selected {
  background: rgba(37, 99, 235, 0.12);
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
  font-weight: 600;
}

[data-theme^="light"] .chip-btn.role-healer.selected {
  background: rgba(16, 185, 129, 0.12);
  border-color: #059669;
  color: #065f46;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.22);
  font-weight: 600;
}

[data-theme^="light"] .chip-btn.role-dps.selected {
  background: rgba(239, 68, 68, 0.12);
  border-color: #dc2626;
  color: #b91c1c;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.22);
  font-weight: 600;
}

[data-theme^="light"] .chip-btn.role-tank:hover:not(.selected) {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
}

[data-theme^="light"] .chip-btn.role-healer:hover:not(.selected) {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.35);
  color: #065f46;
}

[data-theme^="light"] .chip-btn.role-dps:hover:not(.selected) {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

[data-theme^="light"] .btn-submit-signup {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
}

[data-theme^="light"] .btn-submit-signup:hover:not(:disabled) {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
}

[data-theme^="light"] .my-signup-item {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme^="light"] .my-signup-item:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(108, 90, 158, 0.4);
  box-shadow: 0 4px 18px rgba(108, 90, 158, 0.15);
}

[data-theme^="light"] .btn-view-application-more {
  background: rgba(108, 90, 158, 0.08);
  border-color: rgba(108, 90, 158, 0.25);
  color: #564682;
}

[data-theme^="light"] .my-signup-item:hover .btn-view-application-more {
  background: rgba(108, 90, 158, 0.16);
  border-color: #564682;
  color: #2a2048;
}

[data-theme^="light"] .my-signup-roster-banner.is-selected {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(5, 150, 105, 0.4);
  color: #047857;
}

[data-theme^="light"] .my-signup-roster-banner.is-standby {
  background: rgba(245, 158, 11, 0.13);
  border-color: rgba(217, 119, 6, 0.4);
  color: #b45309;
}

[data-theme^="light"] .my-signup-roster-banner.is-pending {
  background: rgba(124, 58, 237, 0.09);
  border-color: rgba(124, 58, 237, 0.28);
  color: #5b21b6;
}

[data-theme^="light"] .my-signup-quick-link {
  background: rgba(108, 90, 158, 0.07);
  border-color: rgba(108, 90, 158, 0.24);
  color: #362c52;
}

[data-theme^="light"] .my-signup-quick-link.is-discord {
  background: rgba(79, 70, 229, 0.09);
  border-color: rgba(79, 70, 229, 0.3);
  color: #3730a3;
}

[data-theme^="light"] .my-signup-quick-link.is-roster {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(5, 150, 105, 0.32);
  color: #065f46;
}

[data-theme^="light"] .my-signup-quick-link:hover {
  background: rgba(108, 90, 158, 0.2);
  border-color: #564682;
  color: #1f1635;
}

[data-theme^="light"] .modal-roster-card {
  background: rgba(248, 246, 255, 0.92);
  border-color: rgba(108, 90, 158, 0.24);
}

[data-theme^="light"] .modal-roster-card.is-selected {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.11) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-color: rgba(5, 150, 105, 0.4);
}

[data-theme^="light"] .modal-roster-card.is-standby {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.11) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-color: rgba(217, 119, 6, 0.38);
}

[data-theme^="light"] .modal-roster-card.is-selected .modal-roster-status-title {
  color: #047857;
}

[data-theme^="light"] .modal-roster-card.is-standby .modal-roster-status-title {
  color: #b45309;
}

[data-theme^="light"] .modal-roster-card.is-pending .modal-roster-status-title {
  color: #5b21b6;
}

[data-theme^="light"] .modal-roster-assign-chip {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme^="light"] .run-user-status-pill.is-selected {
  background: rgba(16, 185, 129, 0.13);
  border-color: rgba(5, 150, 105, 0.42);
  color: #047857;
}

[data-theme^="light"] .run-user-status-pill.is-standby {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(217, 119, 6, 0.4);
  color: #b45309;
}

[data-theme^="light"] .run-user-status-pill.is-pending {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.32);
  color: #5b21b6;
}

/* Light mode styles for modal */
[data-theme^="light"] .modal-backdrop {
  background: rgba(25, 20, 35, 0.55);
}

[data-theme^="light"] .modal-box {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

[data-theme^="light"] .modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme^="light"] .modal-title {
  color: #221e2a;
}

[data-theme^="light"] .modal-close-btn {
  color: #716b7f;
}

[data-theme^="light"] .modal-close-btn:hover {
  color: #221e2a;
}

[data-theme^="light"] .modal-info-box,
[data-theme^="light"] .modal-section {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme^="light"] .modal-sublabel {
  color: #716b7f;
}

[data-theme^="light"] .modal-subvalue-lg,
[data-theme^="light"] .modal-subvalue {
  color: #221e2a;
}

[data-theme^="light"] .badge-role-highlight {
  background: rgba(108, 90, 158, 0.12);
  border-color: rgba(108, 90, 158, 0.3);
  color: #4a3c75;
}

[data-theme^="light"] .modal-job-group {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme^="light"] .modal-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme^="light"] .modal-btn-dismiss {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  color: #221e2a;
}

[data-theme^="light"] .modal-btn-dismiss:hover {
  background: rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme^="light"] .modal-box-warning {
  border-color: rgba(220, 38, 38, 0.4);
}

[data-theme^="light"] .modal-header-icon.warning-icon {
  color: #dc2626;
}

[data-theme^="light"] .modal-warning-text {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(220, 38, 38, 0.35);
  color: #221e2a;
}

[data-theme^="light"] .modal-warning-text strong {
  color: #dc2626;
}

[data-theme^="light"] .modal-btn-confirm-warning {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
}

[data-theme^="light"] .modal-btn-confirm-warning:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

[data-theme^="light"] .signup-connect-box {
  background: rgba(88, 101, 242, 0.05);
  border-color: rgba(88, 101, 242, 0.25);
}

[data-theme^="light"] .field-error-msg {
  color: #dc2626;
}

[data-theme^="light"] .input-text.has-error,
[data-theme^="light"] .input-textarea.has-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* ── Modal Responsive Media Queries ──────────────── */
@media (max-width: 600px) {
  .modal-grid-2 {
    grid-template-columns: 1fr;
  }
  .modal-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .modal-cancellation-hint {
    justify-content: center;
  }
  .modal-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .modal-subvalue {
    text-align: left;
  }
}

/* =====================================================
   Saved Preferences & Quick Sign Up Styles
   ===================================================== */

.card-heading-with-actions {
  justify-content: space-between;
}

.card-heading-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Compact Cog Button + Top-Right Orange Exclamation Badge */
.btn-prefs-cog {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(252, 212, 200, 0.18);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  flex-shrink: 0;
}

.btn-prefs-cog .material-symbols-outlined {
  font-size: 1.25rem;
  color: inherit;
  transition: transform 0.3s ease;
}

.btn-prefs-cog:hover {
  background: rgba(178, 145, 247, 0.16);
  border-color: rgba(178, 145, 247, 0.45);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(178, 145, 247, 0.22);
}

.btn-prefs-cog:hover .material-symbols-outlined {
  transform: rotate(45deg);
}

.prefs-outdated-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #13152e;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.55);
  pointer-events: none;
}

/* Step 2 Form Auto-fill / Outdated Banner */
.prefs-form-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.35);
  font-size: 0.88rem;
  color: var(--text-primary);
}

.prefs-form-banner.outdated {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.45);
}

.prefs-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.45;
}

.prefs-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-prefs-banner-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-prefs-banner-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(252, 212, 200, 0.4);
}

.btn-prefs-banner-jump {
  background: rgba(46, 204, 113, 0.22);
  border-color: rgba(46, 204, 113, 0.5);
  color: #a3e4d7;
}

.btn-prefs-banner-jump:hover {
  background: rgba(46, 204, 113, 0.32);
  border-color: #2ecc71;
  color: #ffffff;
}

/* Outdated Field Highlighting */
.field-outdated-highlight {
  position: relative;
  border: 1px solid rgba(245, 158, 11, 0.65) !important;
  background: rgba(245, 158, 11, 0.07) !important;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.field-outdated-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Inline Save Preferences Bar in Step 2 Form */
.prefs-save-inline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(178, 145, 247, 0.07);
  border: 1px solid rgba(178, 145, 247, 0.22);
  margin-top: 0.5rem;
}

.prefs-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.prefs-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-purple);
  cursor: pointer;
}

.btn-save-prefs-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(178, 145, 247, 0.16);
  border: 1px solid rgba(178, 145, 247, 0.38);
  color: #e9d5ff;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-save-prefs-inline:hover {
  background: rgba(178, 145, 247, 0.28);
  border-color: var(--accent-purple);
  color: #ffffff;
}

/* Saved Preferences Modal Layout */
.modal-box-lg {
  max-width: 1040px;
}

@media (min-width: 820px) {
  #prefs-modal-editor .phantom-jobs-dual-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.prefs-content-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(252, 212, 200, 0.12);
}

.prefs-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(252, 212, 200, 0.15);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.prefs-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.prefs-tab-btn.active {
  background: rgba(178, 145, 247, 0.24);
  border-color: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(178, 145, 247, 0.25);
}

.prefs-tab-status {
  display: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
}

.prefs-tab-status.complete {
  display: inline-flex;
  background: rgba(46, 204, 113, 0.25);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.5);
}

.prefs-tab-status.outdated {
  display: inline-flex;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
}

.prefs-modal-status-banner {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(252, 212, 200, 0.12);
  color: var(--text-secondary);
}

.prefs-modal-status-banner.complete {
  background: rgba(46, 204, 113, 0.1);
  border-color: rgba(46, 204, 113, 0.35);
  color: #a3e4d7;
}

.prefs-modal-status-banner.outdated {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
}

.prefs-modal-editor {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prefs-tab-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(252, 212, 200, 0.12);
}

.prefs-btn-save-tab {
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
}

.prefs-btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.prefs-btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
}

/* Transfer & Backup Section */
.prefs-transfer-section {
  background: rgba(10, 11, 28, 0.55);
  border: 1px solid rgba(252, 212, 200, 0.14);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prefs-transfer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
}

.prefs-transfer-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.prefs-share-code-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 560px) {
  .prefs-share-code-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.prefs-share-input {
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-family: monospace;
}

.prefs-transfer-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-prefs-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.48rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(252, 212, 200, 0.18);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-prefs-secondary:hover {
  background: rgba(178, 145, 247, 0.16);
  border-color: rgba(178, 145, 247, 0.45);
  color: #ffffff;
}

.prefs-btn-danger-text {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.28);
  margin-left: auto;
}

.prefs-btn-danger-text:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

/* Light Mode Overrides for Preferences & Quick Sign Up */
[data-theme^="light"] .btn-prefs-cog {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #544a62;
}

[data-theme^="light"] .btn-prefs-cog:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.35);
  color: #6d28d9;
}

[data-theme^="light"] .prefs-outdated-badge {
  border-color: #ffffff;
}

[data-theme^="light"] .prefs-form-banner {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(5, 150, 105, 0.3);
  color: #221e2a;
}

[data-theme^="light"] .prefs-form-banner.outdated {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(217, 119, 6, 0.4);
}

[data-theme^="light"] .btn-prefs-banner-action {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #221e2a;
}

[data-theme^="light"] .btn-prefs-banner-action:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.35);
  color: #6d28d9;
}

[data-theme^="light"] .btn-prefs-banner-jump {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(5, 150, 105, 0.45);
  color: #065f46;
}

[data-theme^="light"] .btn-prefs-banner-jump:hover {
  background: rgba(16, 185, 129, 0.24);
  border-color: #059669;
  color: #064e3b;
}

[data-theme^="light"] .field-outdated-highlight {
  background: rgba(245, 158, 11, 0.06) !important;
  border-color: rgba(217, 119, 6, 0.55) !important;
}

[data-theme^="light"] .field-outdated-tag {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(217, 119, 6, 0.4);
  color: #b45309;
}

[data-theme^="light"] .prefs-save-inline-bar {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.2);
}

[data-theme^="light"] .btn-save-prefs-inline {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  color: #6d28d9;
}

[data-theme^="light"] .btn-save-prefs-inline:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: #7c3aed;
  color: #5b21b6;
}

[data-theme^="light"] .prefs-content-tabs {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme^="light"] .prefs-tab-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #544a62;
}

[data-theme^="light"] .prefs-tab-btn:hover {
  background: rgba(124, 58, 237, 0.08);
  color: #6d28d9;
}

[data-theme^="light"] .prefs-tab-btn.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

[data-theme^="light"] .prefs-modal-status-banner {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #544a62;
}

[data-theme^="light"] .prefs-modal-status-banner.complete {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(5, 150, 105, 0.3);
  color: #065f46;
}

[data-theme^="light"] .prefs-modal-status-banner.outdated {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(217, 119, 6, 0.4);
  color: #92400e;
}

[data-theme^="light"] .prefs-tab-actions {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme^="light"] .prefs-transfer-section {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.09);
}

[data-theme^="light"] .btn-prefs-secondary {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
  color: #221e2a;
}

[data-theme^="light"] .btn-prefs-secondary:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.35);
  color: #6d28d9;
}

[data-theme^="light"] .prefs-btn-danger-outline,
[data-theme^="light"] .prefs-btn-danger-text {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.3);
}

[data-theme^="light"] .signup-empty-state-body {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.14);
}

[data-theme^="light"] .signup-empty-icon {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.25);
  color: #7c3aed;
}

[data-theme^="light"] .run-backups-icon {
  color: #d97706;
}

[data-theme^="light"] .run-backups-icon::after {
  background: #fffbeb;
  color: #78350f;
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

[data-theme^="light"] .run-full-warning-banner {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(217, 119, 6, 0.45);
  color: #78350f;
}

[data-theme^="light"] .run-full-warning-icon {
  color: #d97706;
}

[data-theme^="light"] .run-full-warning-text strong {
  color: #78350f;
}

