.appeals-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.appeals-admin-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.appeals-hero-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
  background: radial-gradient(circle at 10% 20%, rgba(139, 124, 248, 0.16) 0%, rgba(13, 17, 23, 0.95) 100%);
  border: 1px solid rgba(139, 124, 248, 0.28);
  border-radius: var(--radius-lg, 20px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.appeals-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appeals-hero-copy .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #8b7cf8);
}

.appeals-hero-copy h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary, #f0f3fa);
  margin: 0;
}

.appeals-hero-copy p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
  max-width: 760px;
}

.appeals-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card, #131722);
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 16px);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.appeals-action-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  overflow-x: auto;
}

.appeals-action-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim, #94a3b8);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.appeals-action-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.appeals-action-tab.active {
  background: rgba(139, 124, 248, 0.18);
  border-color: rgba(139, 124, 248, 0.6);
  color: #fff;
  box-shadow: 0 0 12px rgba(139, 124, 248, 0.25);
}

.appeals-questions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appeals-question-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
}

.appeals-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(139, 124, 248, 0.15);
  border: 1px solid rgba(139, 124, 248, 0.35);
  color: var(--accent, #8b7cf8);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 4px;
}

.appeals-question-row textarea.control {
  flex: 1;
  min-height: 64px;
  resize: vertical;
  font-size: 0.9rem;
}

.appeals-question-row .delete-button {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  height: 40px;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}

.appeals-question-row .delete-button:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
}

.appeals-links-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appeals-link-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.appeals-link-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #f0f3fa);
  margin: 0;
}

.appeals-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.appeals-link-row input.control {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a5b4fc;
}

.appeals-link-row button.app-btn-secondary {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f0f3fa;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.appeals-link-row button.app-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.appeals-staff-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.appeals-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
  align-items: center;
}

.empty-chips-note {
  font-size: 0.85rem;
  color: var(--text-dim, #94a3b8);
  font-style: italic;
}

.appeals-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 124, 248, 0.14);
  border: 1px solid rgba(139, 124, 248, 0.35);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c7d2fe;
}

.appeals-chip .chip-remove {
  background: none;
  border: none;
  color: #fca5a5;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.appeals-chip .chip-remove:hover {
  color: #ef4444;
}

.appeals-role-picker {
  position: relative;
  width: 100%;
}

.appeals-role-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #141824;
  border: 1px solid rgba(139, 124, 248, 0.35);
  border-radius: 12px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}

.appeals-role-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.12s ease;
  color: #f0f3fa;
}

.appeals-role-item:hover {
  background: rgba(139, 124, 248, 0.2);
}

.appeals-add-user-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.appeals-add-user-row input.control {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
}

.appeals-inbox {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appeals-inbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.appeals-inbox-head h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #f0f3fa);
  margin: 0;
}

.appeals-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appeal-inbox-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.appeal-inbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.appeal-inbox-meta strong {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f3fa;
}

.appeal-status-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.appeal-status-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.appeal-status-pill.approved {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.appeal-status-pill.rejected,
.appeal-status-pill.denied {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.appeal-user-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.appeal-answer {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--accent, #8b7cf8);
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e2e8f0;
  margin: 0;
}

.appeal-date,
.appeal-reviewer {
  font-size: 0.8rem;
  color: #64748b;
}

.appeal-inbox-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
