:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-modal {
  padding: 16px;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-modal-backdrop {
  background: rgba(0, 35, 43, 0.58);
  backdrop-filter: blur(12px);
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-card {
  --portal-teal-deep: #003d46;
  --portal-teal: #008b8f;
  --portal-teal-bright: #05bfc4;
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-width: 100%;
  max-height: calc(100vh - 32px);
  box-sizing: border-box;
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(0, 139, 143, 0.28);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f0fbfb 100%);
  box-shadow: 0 30px 80px rgba(7, 45, 56, 0.28);
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-card::after {
  display: none;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 28px 68px 28px 30px;
  background:
    radial-gradient(circle at 84% 8%, rgba(5, 191, 196, 0.34), transparent 34%),
    linear-gradient(135deg, var(--portal-teal-deep), var(--portal-teal));
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-logo-wrap {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 142px;
  height: 102px;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-logo {
  width: 100%;
  max-height: 98px;
  display: block;
  object-fit: contain;
  margin: 0;
  filter: drop-shadow(0 8px 16px rgba(0, 25, 30, 0.2));
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-heading {
  position: relative;
  z-index: 1;
  min-width: 0;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #a7f3ef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-tagline {
  margin: 0 0 20px;
  color: #075e66;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.005em;
  line-height: 1.5;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-tagline strong {
  color: #00aeb3;
  font-weight: 850;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font: 800 24px/1 inherit;
  box-shadow: none;
  cursor: pointer;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-close:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-body {
  padding: 30px;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-card label {
  display: grid;
  gap: 8px;
  color: #007d84;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: none;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-card input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(0, 139, 143, 0.24);
  border-radius: 14px;
  padding: 0 16px;
  background: #ffffff;
  color: #073842;
  font: 900 16px/1.2 inherit;
  box-shadow: 0 6px 18px rgba(0, 86, 92, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-card input:focus {
  outline: none;
  border-color: var(--portal-teal-bright);
  box-shadow: 0 0 0 4px rgba(5, 191, 196, 0.13), 0 10px 24px rgba(0, 86, 92, 0.08);
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-actions {
  display: block;
  margin-top: 18px;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-actions button {
  width: 100%;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--portal-teal), var(--portal-teal-bright));
  color: #ffffff;
  font: 950 15px/1 inherit;
  box-shadow: 0 14px 28px rgba(0, 139, 143, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0, 139, 143, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

:is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-error {
  min-height: 20px;
  margin: 12px 0 0 !important;
  color: #b91c1c !important;
  font-weight: 850;
}

@media (max-width: 520px) {
  :is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-head {
    align-items: flex-start;
    gap: 14px;
    padding: 20px 52px 20px 20px;
  }

  :is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-logo-wrap {
    width: 88px;
    height: 66px;
  }

  :is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-card h2 {
    font-size: 21px;
  }

  :is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-tagline {
    margin-bottom: 18px;
    font-size: 16px;
  }

  :is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 21px;
  }

  :is(body[data-page-key="batteries"], body[data-page-key="windows"]) .portal-code-body {
    padding: 22px;
  }
}
