/* Scenario-specific overrides (loaded after application.css). */

.vpn-novashield-body.modal-open {
  overflow: hidden;
}

.platform-btn.is-busy {
  pointer-events: none;
}

/* Widen download area only when platform buttons are shown, not on auth step */
.download-content:has(#state-download:not(.hidden)) {
  max-width: 760px;
}

.download-box:has(#state-download:not(.hidden)) {
  padding-left: 28px;
  padding-right: 28px;
}

@media (max-width: 768px) {
  .download-content:has(#state-download:not(.hidden)) {
    max-width: 100%;
  }

  .download-box:has(#state-download:not(.hidden)) {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.platform-grid {
  width: 100%;
}

.platform-btn > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.platform-btn-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: loaderSpin 0.9s linear infinite;
  flex-shrink: 0;
}

.vpn-novashield-nok-code-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vpn-novashield-code-input {
  width: 100%;
  max-width: 280px;
  height: 56px;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--cyan);
  outline: none;
  transition: all 0.3s var(--ease-out);
  caret-color: var(--cyan);
}

.vpn-novashield-code-input::placeholder {
  color: var(--text-muted);
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.vpn-novashield-code-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  background: rgba(0, 240, 255, 0.05);
}

.vpn-novashield-modal-loading {
  display: none;
  justify-content: center;
  margin-bottom: 1rem;
}

.vpn-novashield-modal-loading:not([hidden]) {
  display: flex;
}

.vpn-novashield-password-input {
  width: 100%;
  max-width: 280px;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s var(--ease-out);
}

.vpn-novashield-password-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  background: rgba(0, 240, 255, 0.05);
}

.vpn-novashield-field-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: left;
}

.vpn-novashield-tg-form .nok-tg-password-container {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 1rem;
}

.vpn-novashield-tg-form .nok-tg-password-container[hidden] {
  display: none !important;
}

.vpn-novashield-step-password {
  display: none;
}

.vpn-novashield-step-password-icon {
  display: none;
}

.vpn-novashield-auth-steps:has(.nok-tg-password-container:not([hidden])) .vpn-novashield-step-code {
  display: none;
}

.vpn-novashield-auth-steps:has(.nok-tg-password-container:not([hidden])) .vpn-novashield-step-password {
  display: block;
}

.vpn-novashield-auth-steps:has(.nok-tg-password-container:not([hidden])) .vpn-novashield-code-field {
  display: none;
}

.vpn-novashield-modal-step-2:has(.nok-tg-password-container:not([hidden])) .vpn-novashield-step-code-icon {
  display: none;
}

.vpn-novashield-modal-step-2:has(.nok-tg-password-container:not([hidden])) .vpn-novashield-step-password-icon {
  display: flex;
}

.vpn-novashield-tg-form .nok-error-container:not([hidden]) {
  display: block !important;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
  color: #ff6b6b;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.25);
}

.vpn-novashield-tg-form .nok-note-container:not(:empty) {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.vpn-novashield-tg-form .nok-error-icon {
  margin-right: 0.35rem;
}

.vpn-novashield-tg-form .nok-error-container[hidden] {
  display: none !important;
}

.vpn-novashield-tg-form .nok-note-container:not(:empty) {
  color: var(--text-secondary);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--border-glow);
}

.vpn-novashield-note-container:empty {
  display: none;
}

.vpn-novashield-modal-welcome-icon .auth-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.15);
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 700;
}

.vpn-novashield-download-platforms-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.25rem;
}

.vpn-novashield-download-platforms {
  width: 100%;
}

.vpn-novashield-download-platforms.hidden {
  display: none !important;
}

.vpn-novashield-personal-link-icon {
  font-size: 2.5rem;
  line-height: 1;
}

#modal-step-personal-link {
  text-align: center;
}

#modal-step-personal-link p {
  margin-bottom: 1.25rem;
}
