* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #030914;
  --panel: rgba(7, 24, 40, .78);
  --line: rgba(61, 202, 230, .16);
  --cyan: #22d3ee;
  --text: #e8faff;
  --muted: #7897a8;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 75% 0%,
      rgba(16, 137, 170, .16),
      transparent 32%
    ),
    radial-gradient(
      circle at 0% 35%,
      rgba(13, 73, 110, .18),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #04101d 0%,
      #030914 55%,
      #02070e 100%
    );
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.register-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding-bottom: 70px;
}

.register-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.register-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 39px;
  height: 39px;
  position: relative;
  border: 1px solid rgba(34, 211, 238, .35);
  border-radius: 11px;
  background: rgba(34, 211, 238, .06);
}

.brand-mark i {
  position: absolute;
  bottom: 8px;
  width: 5px;
  border-radius: 3px 3px 0 0;
  background: var(--cyan);
}

.brand-mark i:nth-child(1) {
  left: 8px;
  height: 12px;
}

.brand-mark i:nth-child(2) {
  left: 17px;
  height: 21px;
}

.brand-mark i:nth-child(3) {
  left: 26px;
  height: 16px;
}

.register-brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: -.5px;
}

.register-brand strong span {
  color: var(--cyan);
}

.register-brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.login-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #a8c8d4;
  font-size: 11px;
  font-weight: 700;
}

.login-link:hover {
  border-color: rgba(34, 211, 238, .45);
  color: #e9fcff;
}

.register-hero {
  max-width: 760px;
  margin: 60px auto 48px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
}

.register-hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -2px;
}

.register-hero p {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.register-error {
  max-width: 760px;
  margin: 0 auto 25px;
  padding: 13px 15px;
  border: 1px solid rgba(251, 113, 133, .3);
  border-radius: 10px;
  background: rgba(251, 113, 133, .08);
  color: #ffc1cc;
  font-size: 12px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading > span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.section-heading h2 {
  margin: 5px 0;
  font-size: 22px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

/* PLANOS */

.plans-section {
  margin-bottom: 42px;
}

.plans-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.plan-card {
  display: block;
  cursor: pointer;
}

.plan-card > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card-inner {
  height: 100%;
  min-height: 250px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(8, 30, 49, .88),
      rgba(4, 15, 27, .82)
    );
  transition:
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.plan-card:hover .plan-card-inner {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, .38);
}

.plan-card > input:checked
+ .plan-card-inner {
  border-color: rgba(34, 211, 238, .7);
  box-shadow:
    0 0 0 2px rgba(34, 211, 238, .06),
    0 18px 45px rgba(0, 170, 210, .08);
}

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.plan-label {
  color: #5b8fa1;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.plan-top h3 {
  margin: 5px 0 0;
  font-size: 20px;
}

.plan-check {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, .2);
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
}

.plan-card > input:checked
+ .plan-card-inner
.plan-check {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, .12);
  color: var(--cyan);
}

.plan-description {
  min-height: 36px;
  margin: 15px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0;
}

.plan-price strong {
  color: #eaffff;
  font-size: 25px;
}

.plan-price span {
  color: #668697;
  font-size: 10px;
}

.plan-features {
  display: grid;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid rgba(73, 188, 215, .09);
}

.plan-features > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.plan-features span {
  color: #668697;
  font-size: 9px;
}

.plan-features strong {
  color: #b9dce5;
  font-size: 9px;
}

.empty-plans {
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

/* FORMULÁRIO */

.register-form-section {
  margin-top: 30px;
}

.register-form {
  display: grid;
  gap: 16px;
}

.form-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(8, 30, 49, .82),
      rgba(4, 15, 27, .78)
    );
}

.form-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.form-card-title > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(34, 211, 238, .28);
  border-radius: 9px;
  background: rgba(34, 211, 238, .07);
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
}

.form-card-title h3 {
  margin: 0;
  font-size: 15px;
}

.form-card-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.form-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field-wide {
  grid-column: span 1;
}

.field > span {
  color: #7898aa;
  font-size: 10px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid rgba(62, 190, 220, .16);
  border-radius: 9px;
  outline: none;
  background: rgba(2, 13, 23, .76);
  color: #e5fbff;
  transition: .2s ease;
}

.field input::placeholder {
  color: #466474;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(34, 211, 238, .62);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, .07);
}

.register-submit-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(34, 211, 238, .2);
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(7, 35, 52, .92),
      rgba(4, 17, 29, .88)
    );
}

.selected-plan-summary {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.selected-plan-summary > span {
  color: #56899a;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.selected-plan-summary strong {
  margin-top: 4px;
  font-size: 15px;
}

.selected-plan-summary small {
  margin-top: 3px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
}

.register-submit {
  min-height: 45px;
  padding: 0 22px;
  border: 1px solid rgba(34, 211, 238, .5);
  border-radius: 10px;
  background:
    linear-gradient(
      135deg,
      rgba(16, 160, 187, .28),
      rgba(20, 109, 145, .22)
    );
  color: #eaffff;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.register-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--cyan);
  box-shadow:
    0 10px 28px rgba(0, 180, 220, .12);
}

.register-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.submit-note {
  max-width: 190px;
  margin: 0;
  color: #668697;
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 720px) {

  .register-page {
    width: min(100% - 24px, 1180px);
  }

  .register-header {
    min-height: 72px;
  }

  .register-brand small {
    display: none;
  }

  .register-hero {
    margin: 40px auto 35px;
  }

  .register-hero h1 {
    letter-spacing: -1px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-full,
  .field-wide {
    grid-column: auto;
  }

  .register-submit-card {
    align-items: stretch;
    flex-direction: column;
  }

  .register-submit {
    width: 100%;
  }

  .submit-note {
    max-width: none;
    text-align: center;
  }

}

/* PAGAMENTO */

.payment-layout {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.payment-card {
  width: 100%;
}

.payment-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom:
    1px solid rgba(73, 188, 215, .09);
}

.payment-summary-row:last-child {
  border-bottom: 0;
}

.payment-summary-row span {
  color: var(--muted);
  font-size: 10px;
}

.payment-summary-row strong {
  color: #dffaff;
  font-size: 12px;
  text-align: right;
}

.payment-total {
  margin-top: 5px;
  padding-top: 17px;
}

.payment-total strong {
  color: var(--cyan);
  font-size: 22px;
}

.pix-box {
  padding: 17px;
  border: 1px solid rgba(34, 211, 238, .24);
  border-radius: 12px;
  background: rgba(34, 211, 238, .05);
}

.pix-label {
  margin-bottom: 8px;
  color: #608c9d;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.pix-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.pix-key-row strong {
  min-width: 0;
  color: #eaffff;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.copy-pix-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(34, 211, 238, .4);
  border-radius: 8px;
  background: rgba(34, 211, 238, .08);
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.copy-pix-button:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, .13);
}

.payment-details {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.payment-details > div {
  padding: 12px;
  border: 1px solid rgba(73, 188, 215, .09);
  border-radius: 9px;
  background: rgba(2, 13, 23, .4);
}

.payment-details span {
  display: block;
  margin-bottom: 5px;
  color: #608394;
  font-size: 8px;
}

.payment-details strong {
  display: block;
  color: #cde9ef;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.payment-instructions {
  margin-top: 14px;
  padding: 14px;
  border-left: 2px solid var(--cyan);
  border-radius: 0 9px 9px 0;
  background: rgba(34, 211, 238, .04);
}

.payment-instructions span {
  color: var(--cyan);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.payment-instructions p {
  margin: 7px 0 0;
  color: #8eacb9;
  font-size: 10px;
  line-height: 1.65;
  white-space: pre-line;
}

.payment-status-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 21px;
  border: 1px solid rgba(245, 190, 65, .18);
  border-radius: 15px;
  background: rgba(245, 190, 65, .045);
}

.payment-status-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(245, 190, 65, .08);
  font-size: 18px;
}

.payment-status-content > span {
  display: block;
  color: #a68b4e;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.payment-status-content strong {
  display: block;
  margin-top: 3px;
  color: #f0d28d;
  font-size: 13px;
}

.payment-status-content p {
  margin: 5px 0 0;
  color: #8d9da4;
  font-size: 9px;
  line-height: 1.55;
}

@media (max-width: 620px) {

  .pix-key-row {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-pix-button {
    width: 100%;
  }

  .payment-details {
    grid-template-columns: 1fr;
  }

  .payment-status-card {
    align-items: flex-start;
  }

}

/* ===== COMPROVANTE DE PAGAMENTO ===== */

.payment-upload-card {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(34, 211, 238, .18);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(10, 27, 48, .92),
      rgba(5, 15, 28, .88)
    );
  box-shadow:
    0 18px 45px rgba(0, 0, 0, .22);
}

.payment-upload-header {
  margin-bottom: 20px;
}

.payment-upload-label {
  display: block;
  margin-bottom: 7px;
  color: #22d3ee;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.payment-upload-header h3 {
  margin: 0 0 8px;
  color: #f2fbff;
  font-size: 20px;
}

.payment-upload-header p {
  margin: 0;
  color: #8fa9bc;
  line-height: 1.6;
}

.payment-upload-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px dashed rgba(34, 211, 238, .55);
  border-radius: 14px;
  background: rgba(34, 211, 238, .06);
  color: #baf6ff;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.payment-file-label:hover {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, .11);
}

.payment-upload-form input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.payment-file-name {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  color: #819bae;
  font-size: 13px;
  word-break: break-word;
}

.payment-upload-button {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      #06b6d4,
      #22d3ee
    );
  color: #041019;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s ease;
}

.payment-upload-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 30px rgba(34, 211, 238, .20);
}

.payment-upload-help {
  color: #718b9e;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  .payment-upload-card {
    padding: 18px;
  }

  .payment-upload-header h3 {
    font-size: 18px;
  }
}

.payment-status-card.status-proof_sent,
.payment-status-card.status-approved {
  border-color: rgba(66, 221, 161, .22);
  background: rgba(66, 221, 161, .055);
}

.payment-status-card.status-proof_sent .payment-status-icon,
.payment-status-card.status-approved .payment-status-icon {
  background: rgba(66, 221, 161, .11);
  color: #73eab6;
}

.payment-status-card.status-proof_sent .payment-status-content strong,
.payment-status-card.status-approved .payment-status-content strong {
  color: #9df3cd;
}

.payment-status-card.status-rejected {
  border-color: rgba(251, 113, 133, .24);
  background: rgba(251, 113, 133, .055);
}

.payment-status-card.status-rejected .payment-status-icon {
  background: rgba(251, 113, 133, .11);
  color: #fb9bab;
}

.payment-status-card.status-rejected .payment-status-content strong {
  color: #ffc1cb;
}
