*, ::after, ::before {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #212121;
  color: #fff;
  font-family: monospace, serif;
  letter-spacing: 0.05em;
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: 23px;
  text-align: center;
}

.portal-title {
  margin: 0 0 6px;
  color: #fff;
}

.event-registration-nav {
  width: 100%;
  max-width: 420px;
  padding: 0 15px 4px;
  margin-bottom: 28px;
}

.btn-event-registration {
  display: block;
  width: 100%;
  padding: 18px 20px;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-decoration: none;
  box-shadow: 0 0 20px 4px rgba(0, 212, 255, 0.4);
}

.btn-event-registration .bg-top,
.btn-event-registration .bg {
  background: linear-gradient(90deg, rgba(0, 212, 255, 1) 0%, rgba(52, 9, 121, 1) 45%, rgba(0, 212, 255, 1) 100%);
}

.btn-event-registration .bg-right {
  background: rgba(0, 212, 255, 1);
}

.btn-event-registration .text {
  color: #00d4ff;
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.55);
}

.block-cube-hover.btn-event-registration:hover .text,
.block-cube-hover.btn-event-registration:focus .text {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.75);
}

.form {
  width: 100%;
  max-width: 300px;
  padding: 32px 15px;
}

.form .control {
  margin: 0 0 24px;
}

.form input {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: monospace, serif;
  letter-spacing: 0.05em;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.35);
  caret-color: #00d4ff;
}

.form input:hover,
.form input:focus {
  outline: none;
  border: 0;
}

.form input:hover {
  text-shadow: 0 0 4px rgba(0, 212, 255, 0.2);
}

.form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Reduce brightness behind text on hover/focus to keep contrast strong */
.block-cube.block-input input:hover ~ .bg .bg-inner,
.block-cube.block-input input:focus ~ .bg .bg-inner {
  top: 0; /* keep inner panel in place instead of sliding out */
  background: #1b1b1b; /* darker inner to avoid bright wash under text */
}

/* Tone down the outer highlight on hover/focus */
.block-cube.block-input:hover .bg-top,
.block-cube.block-input:hover .bg-right,
.block-cube.block-input:hover .bg,
.block-cube.block-input:focus .bg-top,
.block-cube.block-input:focus .bg-right,
.block-cube.block-input:focus .bg {
  background: rgba(255, 255, 255, 0.35);
}

/* Reduce text glow when focused to avoid blending */
.form input:focus {
  text-shadow: 0 0 3px rgba(0, 212, 255, 0.15);
}

.form .btn {
  width: 100%;
  display: block;
  padding: 14px 16px;
  background: transparent;
  outline: none;
  border: 0;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-weight: bold;
  font-family: monospace;
  font-size: 16px;
}

.block-cube {
  position: relative;
}

.block-cube .bg-top {
  position: absolute;
  height: 10px;
  background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(52,9,121,1) 37%, rgba(0,212,255,1) 94%);
  bottom: 100%;
  left: 5px;
  right: -5px;
  transform: skew(-45deg, 0);
  margin: 0;
}

.block-cube .bg-top .bg-inner,
.block-cube .bg-right .bg-inner,
.block-cube .bg .bg-inner {
  bottom: 0;
}

.block-cube .bg {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(52,9,121,1) 37%, rgba(0,212,255,1) 94%);
}

.block-cube .bg-right {
  position: absolute;
  background: rgba(0,212,255,1);
  top: -5px;
  z-index: 0;
  bottom: 5px;
  width: 10px;
  left: 100%;
  transform: skew(0, -45deg);
}

.block-cube .bg-inner {
  background: #212121;
  position: absolute;
  left: 2px;
  top: 2px;
  right: 2px;
  bottom: 2px;
  transition: all 0.2s ease-in-out;
}

.block-cube .text {
  position: relative;
  z-index: 2;
  text-align: center;
}

.block-cube.block-input input {
  position: relative;
  z-index: 2;
}

.block-cube.block-input input:focus ~ .bg-right .bg-inner,
.block-cube.block-input input:focus ~ .bg-top .bg-inner,
.block-cube.block-input input:focus ~ .bg .bg-inner {
  top: 100%;
  background: rgba(255, 255, 255, 0.5);
}

.block-cube.block-input .bg-top,
.block-cube.block-input .bg-right,
.block-cube.block-input .bg {
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease-in-out;
}

.block-cube.block-input .bg-top .bg-inner,
.block-cube.block-input .bg-right .bg-inner {
  transition: all 0.2s ease-in-out;
}

.block-cube.block-input:hover .bg-top,
.block-cube.block-input:hover .bg-right,
.block-cube.block-input:hover .bg,
.block-cube.block-input:focus .bg-top,
.block-cube.block-input:focus .bg-right,
.block-cube.block-input:focus .bg {
  background: rgba(255, 255, 255, 0.8);
}

.block-cube-hover:hover .bg .bg-inner,
.block-cube-hover:focus .bg .bg-inner {
  top: 100%;
}

/* Secondary button variant: subtle distinction for external-return action */
.form .btn.btn-secondary .bg-top,
.form .btn.btn-secondary .bg {
  background: linear-gradient(90deg, rgba(0,212,255,1) 0%, rgba(52,9,121,1) 37%, rgba(2,0,36,1) 94%);
}
.form .btn.btn-secondary .bg-right {
  background: rgba(52,9,121,1);
}

.trust-footer {
  width: 100%;
  max-width: 300px;
  margin-top: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 1.5;
}

.trust-footer p {
  margin: 4px 0;
}

.trust-footer a {
  color: #00d4ff;
  text-decoration: none;
}

.trust-footer a:hover,
.trust-footer a:focus {
  text-decoration: underline;
}

.pricing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.pricing-overlay[hidden] {
  display: none !important;
}

.pricing-modal {
  position: relative;
  width: 95vw;
  max-width: 1000px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(33, 33, 33, 0.98);
  border-radius: 16px;
  padding: 32px 40px;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.35);
}

.pricing-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.pricing-lang-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  color: #00d4ff;
  font-weight: bold;
}

.pricing-lang-row select {
  background: #222;
  color: #fff;
  border: 1px solid #00d4ff;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: monospace, serif;
}

.pricing-content {
  color: #fff;
  font-size: 16px;
}

.pricing-content table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 16px auto;
}

.pricing-content th,
.pricing-content td {
  padding: 8px 10px;
  word-break: break-word;
  overflow-wrap: anywhere;
  border-bottom: 1px solid #333;
  text-align: left;
}

.pricing-content th {
  border-bottom: 1px solid #00d4ff;
}

.pricing-content h1 {
  color: #00d4ff;
  font-size: 24px;
}

.pricing-content #pricingDescription {
  margin: 12px auto 24px;
  max-width: 760px;
  text-align: center;
  font-size: 15px;
  min-height: 32px;
}

.pricing-loading,
.pricing-error {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  padding: 24px 8px;
}

.pricing-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 768px) {
  body {
    height: 100dvh;
    min-height: 100dvh;
    align-items: center;
    overflow: hidden;
    padding: 0;
  }

  .center-container {
    width: 100%;
    max-width: 360px;
    padding: 12px 14px;
    justify-content: center;
  }

  .form {
    max-width: 320px;
    padding: 16px 10px 10px;
  }

  .trust-footer {
    max-width: 320px;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.45;
  }

  .event-registration-nav {
    max-width: 320px;
    padding: 0 10px 2px;
    margin-bottom: 22px;
  }

  .btn-event-registration {
    padding: 16px 14px;
    font-size: 16px;
  }

  .portal-title {
    font-size: 22px;
    margin: 0 0 4px;
  }

  .form .control {
    margin: 0 0 18px;
  }

  .form input {
    padding: 12px 14px;
    font-size: 16px;
  }

  .form .btn {
    padding: 12px 14px;
    font-size: 15px;
  }

  .trust-footer p {
    margin: 3px 0;
  }

  .pricing-modal {
    padding: 28px 16px 20px;
    max-height: 85vh;
  }

  .pricing-content h1 {
    font-size: 18px;
  }

  .pricing-content th,
  .pricing-content td {
    padding: 4px 6px;
    font-size: 12px;
  }
}