.signup-card {
  max-width: 760px;
  margin: 30px auto;
  padding: 24px;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  background: #ffffff;
}

.signup-group {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #f8fafc;
}

.signup-group legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1f2a44;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.field input {
  width: 100%;
  padding: 10px;
  border: 1px solid #c9d3e0;
  border-radius: 6px;
  font-size: 14px;
}

.field input.error {
  border-color: #d32f2f;
  background: #fff8f8;
}

.field-error {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 6px;
  display: block;
}

.signup-actions {
  margin-top: 20px;
}

.signup-actions button,
.signup-actions .profile-submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #0f5cc0;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.signup-actions .profile-submit-btn {
  border: 1px solid #8fa6ae;
  border-radius: 8px;
  background: linear-gradient(180deg, #a9bcc4 0%, #90a8b1 100%);
  box-shadow: 0 4px 10px rgba(18, 32, 58, 0.14);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.signup-actions .profile-submit-btn:hover,
.signup-actions .profile-submit-btn:focus-visible {
  background: linear-gradient(180deg, #b5c6cd 0%, #99b0b8 100%);
  border-color: #8198a1;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(18, 32, 58, 0.2);
  outline: none;
}

.signup-help {
  text-align: center;
  margin-top: 18px;
}

.profile-alert {
  padding: 15px;
  margin: 20px 0;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
}

.profile-alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.profile-alert-error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.profile-inline-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  row-gap: 10px;
}

.profile-mini-btn {
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: 0 3px 8px rgba(17, 30, 52, 0.12);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.profile-mini-btn:hover,
.profile-mini-btn:focus-visible {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 6px 14px rgba(17, 30, 52, 0.2);
  outline: none;
}

.profile-mini-btn-primary {
  background: linear-gradient(180deg, #9eb8c1 0%, #86a6b2 100%);
  color: #ffffff;
}

.profile-mini-btn-primary:hover,
.profile-mini-btn-primary:focus-visible {
  background: linear-gradient(180deg, #abc2ca 0%, #91aeb9 100%);
}

.profile-mini-btn-muted {
  background: linear-gradient(180deg, #b8c8ce 0%, #9fb4bc 100%);
  color: #ffffff;
  border-color: #9baeb5;
}

.profile-mini-btn-muted:hover,
.profile-mini-btn-muted:focus-visible {
  background: linear-gradient(180deg, #c2d0d5 0%, #a9bbc3 100%);
}

.profile-generator-status {
  display: block;
  margin-top: 6px;
  color: #3d4f70;
  font-size: 12px;
}

.profile-subscriptions-empty {
  margin: 0;
  color: #425372;
}

.profile-subscriptions-wrap {
  overflow-x: auto;
}

.profile-subscriptions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.profile-subscriptions-table th {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #d9e1ef;
  color: #344562;
  font-weight: 700;
}

.profile-subscriptions-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #edf1f8;
  vertical-align: middle;
  word-break: break-word;
}

.profile-inline-form {
  margin: 0;
}

.profile-action-btn {
  padding: 8px 13px;
  border: 1px solid #95aab2;
  border-radius: 8px;
  background: linear-gradient(180deg, #afc1c8 0%, #97adb7 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(18, 32, 58, 0.1);
  transition: background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
}

.profile-action-btn:hover,
.profile-action-btn:focus-visible {
  background: linear-gradient(180deg, #bccbd1 0%, #a2b7bf 100%);
  border-color: #869ca6;
  box-shadow: 0 6px 14px rgba(18, 32, 58, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.profile-submit-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid #8fa6ae;
  border-radius: 8px;
  background: linear-gradient(180deg, #a9bcc4 0%, #90a8b1 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(18, 32, 58, 0.14);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.profile-submit-btn:hover,
.profile-submit-btn:focus-visible {
  background: linear-gradient(180deg, #b5c6cd 0%, #99b0b8 100%);
  border-color: #8198a1;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(18, 32, 58, 0.2);
  outline: none;
}

.profile-action-hint {
  color: #6f7f9e;
  font-size: 12px;
  font-weight: 600;
}

.profile-icon-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 10px;
}

@media (max-width: 680px) {
  .profile-inline-actions {
    gap: 10px;
    row-gap: 12px;
  }

  .profile-icon-actions {
    gap: 10px;
    row-gap: 12px;
  }
}

.profile-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #94aab3;
  background: linear-gradient(180deg, #b0c2c9 0%, #96adb7 100%);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(18, 32, 58, 0.1);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.profile-icon-btn:hover,
.profile-icon-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(18, 32, 58, 0.2);
  outline: none;
}

.profile-icon-btn-resubscribe:hover,
.profile-icon-btn-resubscribe:focus-visible {
  border-color: #859ca6;
  background: linear-gradient(180deg, #bed0d5 0%, #a2b8c0 100%);
}

.profile-icon-btn-delete {
  border-color: #e4adb8;
  background: linear-gradient(180deg, #ebb6c0 0%, #d79aa8 100%);
  color: #ffffff;
}

.profile-icon-btn-delete:hover,
.profile-icon-btn-delete:focus-visible {
  border-color: #ce8b9a;
  background: linear-gradient(180deg, #f0c2cb 0%, #dca5b2 100%);
}

@media (max-width: 720px) {
  .profile-subscriptions-table thead {
    display: none;
  }

  .profile-subscriptions-table tbody tr {
    display: block;
    border: 1px solid #e3e8f1;
    border-radius: 10px;
    background: #ffffff;
    padding: 8px 10px;
    margin-bottom: 10px;
  }

  .profile-subscriptions-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .profile-subscriptions-table td {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    align-items: start;
    gap: 0.5rem;
    padding: 8px 0;
    border-bottom: 1px dashed #edf1f8;
    font-size: 13px;
  }

  .profile-subscriptions-table td:last-child {
    border-bottom: 0;
  }

  .profile-subscriptions-table td::before {
    font-weight: 700;
    color: #344562;
  }

  .profile-subscriptions-table td:nth-child(1)::before { content: 'Inmate Name'; }
  .profile-subscriptions-table td:nth-child(2)::before { content: 'Booking ID'; }
  .profile-subscriptions-table td:nth-child(3)::before { content: 'Status'; }
  .profile-subscriptions-table td:nth-child(4)::before { content: 'Last Alert'; }
  .profile-subscriptions-table td:nth-child(5)::before { content: 'Action'; }
}
