.signup-clan-body { overflow: auto; }

.signup-clan-main {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.signup-clan-title {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  line-height: 1.05;
}

.signup-clan-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #14301a;
}
.signup-clan-card h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.muted {
  color: #4a5e4f;
  font-size: 0.9rem;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.apply-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.apply-form label span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4a5e4f;
}
.apply-form input,
.apply-form select,
.apply-form textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(46, 107, 53, 0.3);
  background: #fff;
  color: #0f1a10;
  resize: vertical;
}
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: #2e6b35;
  box-shadow: 0 0 0 3px rgba(46, 107, 53, 0.18);
}
.apply-form .cta { align-self: flex-start; }

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.ticket-item {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border-left: 4px solid #9aa8a0;
}
.ticket-item.ticket-status-pending { border-left-color: #e07b00; }
.ticket-item.ticket-status-approved { border-left-color: #2e6b35; }
.ticket-item.ticket-status-rejected { border-left-color: #7a1818; }

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ticket-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #9aa8a0;
  color: #fff;
}
.status-pending { background: linear-gradient(135deg, #ffcf4a, #e07b00); color: #3a2000; }
.status-approved { background: linear-gradient(135deg, #7bb661, #2e6b35); color: #eaf6d4; }
.status-rejected { background: linear-gradient(135deg, #d26060, #7a1818); color: #fff; }

.ticket-meta {
  font-size: 0.78rem;
  color: #4a5e4f;
}

.ticket-fields {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 14px;
  margin: 4px 0 8px;
  font-size: 0.92rem;
}
.ticket-fields dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #4a5e4f;
  align-self: center;
}
.ticket-fields dd { color: #14301a; }
.ticket-reason { white-space: pre-wrap; }

.ticket-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.ticket-actions .cta { margin-top: 0; padding: 7px 14px; font-size: 0.85rem; }
.ticket-reject { background: linear-gradient(135deg, #a02020, #5e0e0e); color: #fff; }

.ticket-window-note {
  align-self: center;
  font-size: 0.78rem;
  color: #4a5e4f;
  font-style: italic;
}
.ticket-window-note.locked {
  color: #6b5a30;
  font-weight: 600;
  font-style: normal;
}

.review-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.review-tab {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(46, 107, 53, 0.3);
  background: #fff;
  color: #14301a;
  cursor: pointer;
}
.review-tab.active {
  background: #2e6b35;
  color: #eaf6d4;
  border-color: #2e6b35;
}

.review-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.review-clear-btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(160, 32, 32, 0.45);
  background: rgba(160, 32, 32, 0.1);
  color: #7a1818;
  cursor: pointer;
}
.review-clear-btn:hover {
  background: #a02020;
  color: #fff;
  border-color: #7a1818;
}
.review-clear-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Shared dialog styles (mirrors account.css) */
.badge-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 16, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.badge-dialog-backdrop[hidden] { display: none; }

.badge-dialog {
  background: #fff;
  border-radius: 16px;
  padding: 22px 22px 18px;
  width: min(420px, 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(46, 107, 53, 0.3);
}
.badge-dialog h3 {
  font-size: 1.1rem;
  color: #14301a;
  margin-bottom: 8px;
}
.badge-dialog-target {
  font-size: 0.9rem;
  color: #4a5e4f;
  margin-bottom: 14px;
}
.badge-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.badge-dialog-actions .cta {
  margin-top: 0;
  padding: 9px 16px;
}
.cta.delete-btn {
  background: linear-gradient(135deg, #a02020, #5e0e0e);
}
