.card-button {
  grid-column: 1/-1;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  color: #fff !important;
  background: #13903d;
  font-weight: 750;
  text-decoration: none;
}
.blue > .card-button {
  background: #105dd5;
}
.red {
  color: #b92d2d;
  border-color: #efc1c1;
  background: linear-gradient(130deg, #fff7f7, #fdeaea);
}
.red > .card-button {
  background: #c73535;
}
.orange {
  color: #b65d0a;
  border-color: #f1cea8;
  background: linear-gradient(130deg, #fffaf4, #fff0df);
}
.orange > .card-button {
  background: #d66d0c;
}
.header-profile {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-logo {
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 5px 18px #00152f55;
}
.header-profile > div {
  min-width: 0;
}
.app-header .logout-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 92px;
  height: 44px;
  padding: 0 16px;
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #ffffff52;
  border-radius: 999px;
  color: #fff;
  background: #ffffff20;
  box-shadow: 0 4px 14px #00162c35;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.app-header .logout-button:hover {
  border-color: #ffffff85;
  background: #ffffff32;
  transform: translateY(-1px);
}
.app-header .logout-button:focus-visible {
  outline: 3px solid #83bdff;
  outline-offset: 3px;
}
.app-header .logout-button svg {
  flex: 0 0 auto;
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-header .logout-button span {
  display: inline-block;
  margin: 0;
  font-size: 14px;
  line-height: 1;
}
.support-card,
.empty-state,
.events-list {
  grid-column: 1/-1;
}
.home-content > .support-card {
  margin-top: 0;
}
.back-link {
  display: block;
  width: max-content;
  margin-bottom: 14px;
  color: #1762c6;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.events-list {
  display: grid;
  gap: 18px;
}
.event-list-card {
  padding: 24px;
  border: 1px solid #dfe5ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px #15385d0d;
}
.event-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 19px;
}
.event-main h2 {
  margin: 4px 0 0;
  font-size: 22px;
}
.event-code {
  color: #1762c6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.open-badge,
.payment-status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 750;
}
.open-badge {
  color: #107a36;
  background: #e8f7ed;
}
.payment-status {
  color: #105fcf;
  background: #e9f2ff;
}
.cancellation-status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 30px;
  color: #a92b2b;
  background: #fdeaea;
  font-size: 12px;
  font-weight: 750;
}
.cancellation-status.exempt {
  color: #17723a;
  background: #e7f6ec;
}
.registration-status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.registration-status.pending {
  color: #9a570d;
  background: #fff0d8;
}
.registration-status.paid {
  color: #126c35;
  background: #e5f6eb;
}
.registration-status.exempt {
  color: #1762c6;
  background: #e8f1fd;
}
.event-details {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.event-details > div {
  padding: 13px 15px;
  border-radius: 11px;
  background: #f5f7fa;
}
.event-details small {
  display: block;
  margin-bottom: 5px;
  color: #717a86;
  font-size: 11px;
  text-transform: uppercase;
}
.event-details strong {
  color: #27313c;
  font-size: 14px;
}
.payment-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cancellation-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.registration-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.event-enrollment-form {
  margin: 0;
}
.select-event,
.pix-action {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  font-weight: 750;
}
.cancel-action {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #c73535;
  font-weight: 750;
}
.cancel-action:disabled,
.modal-confirm:disabled {
  cursor: wait;
  opacity: 0.72;
}
.select-event {
  background: #13903d;
}
.pix-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #105dd5;
  text-decoration: none;
}
.select-event:disabled {
  cursor: wait;
  opacity: 0.72;
}
.empty-state {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border: 1px solid #dae2eb;
  border-radius: 16px;
  background: #fff;
}
.empty-state > b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #1762c6;
  background: #eaf2fd;
  font-size: 22px;
}
.empty-state h2 {
  margin: 0 0 5px;
  font-size: 19px;
}
.empty-state p {
  margin: 0;
  color: #5d6672;
}
.error-state > b {
  color: #a82828;
  background: #fdecec;
}
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #031326a8;
  backdrop-filter: blur(3px);
}
.result-modal {
  position: relative;
  width: min(100%, 430px);
  padding: 34px 30px 28px;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: 0 28px 80px #0005;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #4b5563;
  background: #f1f4f7;
  font-size: 25px;
  line-height: 1;
}
.modal-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  font-size: 34px;
  font-weight: 800;
}
.modal-icon.sucesso {
  color: #11813a;
  background: #e4f7ea;
}
.modal-icon.aviso {
  color: #1460c8;
  background: #e8f1fd;
}
.modal-icon.erro {
  color: #b32929;
  background: #fde8e8;
}
.result-modal h2 {
  margin: 0 0 10px;
  color: #16202c;
  font-size: 23px;
}
.result-modal p {
  margin: 0;
  color: #4d5865;
  font-size: 15px;
  line-height: 1.55;
}
.modal-confirm {
  width: 100%;
  min-height: 49px;
  margin-top: 24px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #1262d8;
  font-weight: 750;
}
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
.modal-actions .modal-confirm {
  margin-top: 0;
}
.modal-secondary {
  min-height: 49px;
  border: 1px solid #cfd7e1;
  border-radius: 11px;
  color: #344150;
  background: #fff;
  font-weight: 750;
}
.modal-confirm.danger {
  background: #c73535;
}
@media (max-width: 760px) {
  .event-list-card {
    padding: 18px;
  }
  .event-main {
    flex-direction: column;
  }
  .event-details,
  .payment-details,
  .cancellation-details,
  .registration-details {
    grid-template-columns: 1fr;
  }
  .event-main h2 {
    font-size: 20px;
  }
}
@media (max-width: 560px) {
  .header-profile {
    gap: 14px;
  }
  .header-logo {
    width: 62px;
    height: 62px;
  }
  .app-header p {
    font-size: 20px;
  }
  .app-header span {
    font-size: 14px;
  }
  .app-header .logout-button {
    flex-basis: auto;
    width: auto;
    min-width: 84px;
    height: 40px;
    padding: 0 13px;
  }
}
@media (max-width: 420px) {
  .header-profile {
    gap: 12px;
  }
  .header-logo {
    width: 56px;
    height: 56px;
  }
  .app-header p { font-size: 19px; }
  .app-header span { font-size: 13px; }
  .event-list-card {
    padding: 14px;
    border-radius: 14px;
  }
  .open-badge,
  .payment-status,
  .cancellation-status,
  .registration-status {
    font-size: 11px;
  }
  .empty-state {
    align-items: flex-start;
    padding: 20px;
  }
  .result-modal {
    padding: 31px 21px 22px;
    border-radius: 18px;
  }
  .modal-actions {
    grid-template-columns: 1fr;
  }
}
