.member-card {
  max-width: 960px;
  width: min(960px, calc(100vw - 2.5rem));
  padding: 2.75rem 2.5rem 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 33, 0.92);
  box-shadow: 0 36px 80px rgba(8, 11, 21, 0.55);
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.card-head .headline {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.card-head .intro {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  max-width: 36rem;
}

.info-banner {
  background: rgba(255, 215, 0, 0.18);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  color: #111827;
  font-weight: 600;
}

.alert {
  position: fixed;
  top: 2.5rem;
  right: 2.5rem;
  min-width: 320px;
  max-width: min(400px, calc(100vw - 3rem));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.88);
  box-shadow: 0 24px 48px rgba(8, 11, 21, 0.38);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 900;
}

.alert.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.alert::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.alert.info {
  background: rgba(37, 99, 235, 0.85);
  border-color: rgba(191, 219, 254, 0.45);
  color: #eff6ff;
}

.alert.info::before {
  background: #bfdbfe;
  box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.2);
}

.alert.success {
  background: rgba(22, 101, 52, 0.92);
  border-color: rgba(187, 247, 208, 0.45);
  color: #dcfce7;
}

.alert.success::before {
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.alert.warning {
  background: rgba(202, 138, 4, 0.92);
  border-color: rgba(254, 240, 138, 0.45);
  color: #fefce8;
}

.alert.warning::before {
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.2);
}

.alert.danger {
  background: rgba(185, 28, 28, 0.92);
  border-color: rgba(254, 202, 202, 0.45);
  color: #fee2e2;
}

.alert.danger::before {
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.2);
}

@media (max-width: 768px) {
  .alert {
    left: 50%;
    right: auto;
    top: 1.75rem;
    transform: translate(-50%, -12px) scale(0.98);
    text-align: center;
  }

  .alert.show {
    transform: translate(-50%, 0) scale(1);
  }
}

.form-grid {
  display: grid;
  gap: 1.5rem 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.toggle-field {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.toggle-switch input {
  display: none;
}

.switch-track {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f8fafc;
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.toggle-switch input:checked + .switch-track {
  background: rgba(255, 215, 0, 0.85);
  border-color: rgba(255, 215, 0, 0.9);
}

.toggle-switch input:checked + .switch-track .switch-thumb {
  transform: translate(22px, -50%);
}

.switch-label {
  font-weight: 600;
  color: rgba(248, 250, 252, 0.92);
}

.toggle-help {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.65);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label,
.option-field legend {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.input-control {
  border-radius: 14px;
  border: 1px solid var(--border-light);
  padding: 0.95rem 1rem;
  background: rgba(15, 15, 23, 0.78);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.input-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.16rem rgba(255, 215, 0, 0.3);
  background: rgba(0, 0, 0, 0.72);
}

.input-control.is-invalid {
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 0 0 0.12rem rgba(248, 113, 113, 0.25);
}

.input-control::placeholder {
  color: rgba(226, 232, 240, 0.55);
}

.option-field {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem 1.25rem 1.3rem;
  background: rgba(13, 15, 25, 0.7);
}

.parttime-section {
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.5rem 1.6rem 1.75rem;
  background: rgba(11, 16, 28, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.08);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.parttime-section .section-title {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.parttime-section .form-grid {
  margin-top: 0.5rem;
}

.parttime-section .input-control:disabled {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 22, 0.68);
  color: rgba(226, 232, 240, 0.5);
}

.parttime-section .input-control:disabled::placeholder {
  color: rgba(226, 232, 240, 0.35);
}

.parttime-section.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0 1.6rem;
  overflow: hidden;
}

.parttime-section.active {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-top: 1.5rem;
  padding: 1.5rem 1.6rem 1.75rem;
}

.parttime-section.active .input-control:disabled {
  background: rgba(15, 15, 23, 0.78);
  color: var(--text-primary);
}

.parttime-section.active .input-control:disabled::placeholder {
  color: rgba(226, 232, 240, 0.55);
}

.option-field legend {
  margin-bottom: 0.65rem;
  padding: 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.8);
}

.option-row {
  display: flex;
  gap: 0.75rem;
}

.option-row.wrap {
  flex-wrap: wrap;
}

.option-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  color: rgba(248, 250, 252, 0.85);
  -webkit-user-select: none;
  user-select: none;
}

.option-pill input {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.option-pill input:checked::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  position: absolute;
}

.option-pill:hover,
.option-pill input:focus-visible + span,
.option-pill input:focus-visible {
  border-color: var(--accent-color);
}

.option-pill span {
  font-size: 0.95rem;
}

.option-pill:has(input:checked) {
  border-color: var(--accent-color);
  background: rgba(255, 215, 0, 0.12);
  color: var(--accent-color);
}

.option-pill input:checked + span {
  color: var(--accent-color);
}

.span-2 {
  grid-column: span 2;
}

.section-title {
  margin: 2.5rem 0 0.8rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-color);
}

.actions {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn-theme {
  background: var(--accent-color);
  color: #111827;
  box-shadow: 0 18px 36px rgba(255, 215, 0, 0.25);
  min-width: 220px;
}

.btn-theme:hover {
  background: var(--accent-color-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(229, 231, 235, 0.9);
  background: transparent;
  padding: 0.85rem 1.9rem;
}

.actions .btn-ghost {
  order: 1;
}

.actions .btn-theme {
  order: 2;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

@media (max-width: 640px) {
  .actions {
    flex-direction: column-reverse;
    align-items: stretch;
    justify-content: center;
    gap: 0.9rem;
  }

  .actions .btn {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .member-card {
    padding: 2.2rem 1.8rem 2.5rem;
  }

  .card-head {
    gap: 1.25rem;
  }

  .card-head .headline {
    font-size: 1.7rem;
  }

  .span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 540px) {
  .member-card {
    width: min(100%, calc(100vw - 1.5rem));
    border-radius: 18px;
    padding: 1.8rem 1.4rem 2.2rem;
    gap: 1.8rem;
  }

  .card-head {
    flex-direction: column;
    text-align: center;
  }

  .option-row {
    flex-wrap: wrap;
  }

  .actions {
    justify-content: center;
  }
}
