/* ============================================================
   RESPONSIVE TIER LEGEND  (5-tier: XS / S / M / L / XL)
   XS   @media (max-width: 360px)                          ultra-small phones (override home, at file end)
  S    @media (max-width: 430px)                          small-phone base (also covers XS)
   M    @media (min-width: 431px) and (max-width: 767px)   large phones
   L    @media (min-width: 768px) and (max-width: 1024px)  tablets
   XL   @media (min-width: 1025px)                          desktops
   Umbrellas:  S+M = @media (max-width: 767px) (all phones)  ·  L+XL = @media (min-width: 768px) (tablet & up)
   Every @media block below is tagged with its tier, e.g. a line  /* S */  sits directly above it.
   ============================================================ */

/* ============================================================
   Media queries at the bottom into 4 categories:
     Cat 4: > 1024px
     Cat 3: 768–1024px
     Cat 2: 431–767px
     Cat 1: ≤ 430px
   ============================================================ */
   
/* ── Self-hosted Google Fonts (Courgette + Marcellus) ──────── */
@font-face {
  font-family: 'Courgette';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/courgette-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Courgette';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/courgette-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/marcellus-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/marcellus-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
  font-family: var(--hh-font-body);
  background: transparent !important;
}

.member-user + .member-user {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.member-user #memberName {
  font-family: var(--hh-font-body);
  font-style: normal;
  font-size: 1em !important;
  opacity: 0.92;
}

.member-user:first-of-type, .member-user:first-of-type *:not(a) {
  color: var(--hh-accent-strong) !important;
  -webkit-text-fill-color: var(--hh-accent-strong) !important;
  text-shadow: none !important;
  animation: none !important;
}

.member-user:nth-of-type(2), .member-user:nth-of-type(2) *:not(a) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Sound toggle button — fixed position, strong overrides to avoid browser-default styling */
#sound_toggle_button {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  color: var(--hh-accent-strong) !important;
  font-size: 1.4rem !important;
  padding: 0.35rem 0.55rem !important;
  position: fixed !important;
  top: calc(0.75rem + env(safe-area-inset-top, 0px)) !important;
  right: 0.75rem !important;
  z-index: var(--hh-z-sound-btn) !important;
  margin: 0 !important;
}

.top-control-bar #sound_toggle_button {
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  margin-left: 0.3rem !important;
}

#sound_toggle_button:hover, #sound_toggle_button:focus {
  filter: brightness(1.12);
}

/* SVG sizing for the inline speaker icon */
#sound_toggle_button svg {
  width: 1.0em;
  height: 1.0em;
  display: block;
  fill: none;
  stroke: currentColor;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

html {
  /* Keep browser text inflation consistent across mobile engines. */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #020a07 url("../images/botanical-glass-background.webp") center/cover fixed no-repeat;
  background-image: url("../images/botanical-glass-background.webp");
  background-size: cover;
}

:root {
  --hh-font-body: "Segoe UI", Tahoma, Arial, sans-serif;
  --hh-font-heading: "Marcellus", "Times New Roman", serif;
  --hh-font-script: "Courgette", "Segoe Script", cursive;

  --hh-accent: #ffda6b;
  --hh-accent-2: #ffc94d;
  --hh-accent-strong: #ffd97a;
  --cybersoftware-link-color: #ffe793;
  --hh-muted-accent: rgba(255,230,150,0.85);
  --hh-card-bg: rgba(3, 28, 22, 0.78);
  --hh-card-border: rgba(235, 194, 77, 0.28);
  --hh-overlay: rgba(0, 9, 7, 0.72);
  --hh-text-on-accent: #000000;

  --hh-login-btn-text: hsl(195,76%,30%);
  --hh-control-radius: 8px;
  --hh-btn-padding: 0 0.9rem;

  /* Text & Glow Effects */
  --hh-text-glow-base: 0 0 8px rgba(255, 230, 160, 0.9), 0 0 12px rgba(255, 210, 100, 0.45);
  --hh-text-glow-strong: 0 0 12px rgba(255, 235, 175, 1), 0 0 22px rgba(255, 215, 120, 0.75), 0 0 34px rgba(255, 210, 110, 0.55);
  --hh-button-shadow-base: drop-shadow(0 0 6px rgba(255, 220, 130, 0.45)) drop-shadow(0 0 14px rgba(255, 200, 90, 0.35));
  --hh-button-shadow-pulse: drop-shadow(0 0 10px rgba(255, 235, 175, 0.9)) drop-shadow(0 0 22px rgba(255, 215, 120, 0.7)) drop-shadow(0 0 36px rgba(255, 200, 90, 0.55));
  --hh-input-focus-shadow: 0 0 10px rgba(255, 215, 100, 0.4);
  --hh-image-shadow: 0 0 30px rgba(255, 215, 100, 0.5), 0 0 90px rgba(255, 180, 60, 0.25);

  /* Z-Index Stack */
  --hh-z-overlay: 0;
  --hh-z-content: 1;
  --hh-z-byline: 5;
  --hh-z-modal: 2000;
  --hh-z-lang-select: 10000;
  --hh-z-sound-btn: 10001;
  --hh-z-modal-box: 10002;
  --hh-z-modal-content: 10003;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(15, 92, 71, 0.12), transparent 38rem),
    rgba(0, 9, 7, 0.62);
  z-index: var(--hh-z-overlay);
  pointer-events: none;
}

/* Language selector (flags) */
.lang-select {
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  right: 0.75rem;
  z-index: var(--hh-z-lang-select);
  background: transparent;
  padding: 6px 8px;
  border-radius: 6px;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-flag {
  width: 25px;
  height: 18px;
  object-fit: contain;
  cursor: pointer;
  border-radius: 3px;
  border: 2px solid transparent;
}

.lang-flag.active {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

/* Place language flags top-left on HarmonyHealing pages to avoid overlapping
   the top-right control bar. Only shown on hh.html and main/main.html. */
body.index-page > .lang-select {
  top: calc(0.75rem + env(safe-area-inset-top, 0px)) !important;
  left: 0.75rem !important;
  right: auto !important;
  z-index: var(--hh-z-lang-select) !important;
}

.page-wrapper {
  position: relative;
  z-index: var(--hh-z-content);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2.5vh, 2.5rem) 8%;
}

body.member-page .page-wrapper {
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.6rem;
}

.top-section {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 5rem;
  align-items: center;
  position: relative;
}

.left-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  min-width: 260px;
  text-align: center;
}

.right-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  min-width: 300px;
  position: relative;
  padding-top: 1rem;
  margin-top: -2.5rem;
  --hh-image-width: 400px;
}

.title-section {
  position: relative;
  color: #f8e9b0;
  font-family: var(--hh-font-body);
  text-shadow: 0 0 10px rgba(255, 220, 130, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  margin: 0.2rem 0 0 0;
}

.title-section h1 {
  font-size: 2.8rem;
  margin: 0;
  letter-spacing: 1px;
  font-weight: 600;
  font-style: italic;
  color: var(--cybersoftware-link-color) !important;
  -webkit-text-fill-color: var(--cybersoftware-link-color) !important;
  font-family: var(--hh-font-script);
  order: 2;
  text-shadow: var(--hh-text-glow-base);
  animation: fadeInLeft 2s ease-in-out both;
}

.title-section .app-version {
  order: 3;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-family: var(--hh-font-body);
  color: rgba(255, 235, 170, 0.5);
  text-shadow: none;
  text-transform: uppercase;
}

.byline {
  margin-top: 0.25rem;
  margin-bottom: 0.1rem;
  font-size: 1.05rem;
  color: var(--hh-accent-strong);
  font-family: var(--hh-font-body);
  opacity: 1;
  animation: fadeInOnly 1.2s ease-out 0.6s both;
  text-align: center;
  white-space: nowrap;
  order: 1;
  text-shadow: var(--hh-text-glow-base);
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  margin: 0;
  z-index: var(--hh-z-byline);
  padding-bottom: 0.3rem;
  font-weight: 400;
  letter-spacing: normal;
}

.byline a {
  color: var(--cybersoftware-link-color);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: var(--hh-text-glow-base);
  animation: none;
  font-weight: inherit;
}

.byline a:hover {
  color: hsl(190, 100%, 72%);
  text-shadow:
    0 0 10px rgba(90, 240, 255, 0.8),
    0 0 20px rgba(90, 240, 255, 0.4),
    0 0 30px rgba(255, 255, 200, 0.3);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.slogan-area { display: none; }
.slogan-top, .slogan-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0.5rem;
  opacity: 1;
  animation: fadeInOnly 1.3s ease-out 0.3s forwards;
}
.slogan-top h2, .slogan-bottom h2 {
  font-family: var(--hh-font-script);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 600;
  color: var(--hh-accent-strong);
  letter-spacing: 1.1px;
  text-shadow:
    0 0 18px rgba(255, 230, 160, 0.9),
    0 0 30px rgba(255, 210, 100, 0.5);
  margin: 0;
  text-align: center;
  max-width: 92%;
  line-height: 1.2;
}

.login-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  animation: fadeInUp 1.5s ease-in-out 0s forwards;
  margin-top: 2rem;
  margin-bottom: 4.5rem;
}

.login-box {
  width: 100%;
  max-width: 300px;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(255, 215, 100, 0.3);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 0 20px rgba(255, 215, 100, 0.15);
}

.login-box .register-area--inside {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  opacity: 1;
  visibility: visible;
}

.login-open-wrapper { display: none; }
.login-open-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--hh-accent), var(--hh-accent-2));
  color: var(--hh-text-on-accent);
  border: none;
  padding: 0.9rem 2.6rem;
  border-radius: 10px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
  animation: loginPulse 2.8s ease-in-out infinite;
  filter: var(--hh-button-shadow-base);
}
.body-modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: var(--hh-z-modal-box);
  background: rgba(0,0,0,0.6);
  padding: 1rem;
}
.body-modal.open {
  display: flex;
  animation: modalFadeIn 0.15s ease-out;
}
.body-modal.open .body-modal-content {
  animation: modalSlideIn 0.15s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.body-modal .body-modal-content { max-width: 360px; z-index: var(--hh-z-modal-content); }

.login-box h2 {
  font-size: 1.1rem;
  color: var(--hh-accent-strong);
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-box input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 230, 150, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-box input:focus {
  border-color: var(--hh-accent-strong);
  box-shadow: var(--hh-input-focus-shadow);
}

.login-box button {
  width: 46%;
  height: 2.4rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--hh-accent), var(--hh-accent-2));
  color: var(--hh-text-on-accent);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.8rem auto 0;
  animation: loginPulse 2.8s ease-in-out infinite;
  filter: var(--hh-button-shadow-base);
}

.login-box button:hover {
  background: linear-gradient(90deg, #ffe793, #ffdb70);
  box-shadow: 0 0 18px rgba(255, 215, 100, 0.6);
  transform: scale(1.03);
}

.hh-btn {
  -webkit-appearance: none;
  appearance: none;
  height: 2.4rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--hh-accent), var(--hh-accent-2));
  color: var(--hh-text-on-accent);
  -webkit-text-fill-color: var(--hh-text-on-accent);
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: fit-content;
  min-width: 150px;
  max-width: calc(100vw - 2rem);
  padding: 0 0.9rem;
  margin-top: 2.5rem;
  filter: var(--hh-button-shadow-base);
}

#modalCloseBtn {
  animation: none !important;
  filter: none !important;
}

.hh-btn:hover, .hh-btn:focus {
  background: linear-gradient(90deg, #ffe793, #ffdb70);
  box-shadow: 0 0 18px rgba(255, 215, 100, 0.6);
  transform: scale(1.03);
}

.register-btn {
  background: hsl(195, 76%, 25%);
  color: #ffda6b;
  border: 2px solid #ffda6b;
  border-radius: 10px;
  padding: 0.9rem 2.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 2rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow:
    0 0 20px rgba(255, 215, 100, 0.6),
    0 0 50px rgba(255, 200, 60, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  text-decoration: none;
}

.register-btn:hover {
  background: linear-gradient(90deg, hsl(195, 76%, 30%), hsl(195, 76%, 25%));
  color: #fff8dc;
  transform: scale(1.08);
  box-shadow:
    0 0 35px rgba(255, 230, 150, 0.9),
    0 0 80px rgba(255, 210, 80, 0.6),
    0 0 20px rgba(64, 180, 255, 0.4);
}

/* Password visibility toggle */
.pw-wrap {
  position: relative;
  display: block;
  width: 100%;
}
/* Zero out input margins inside pw-wrap so the wrap height = input border-box height
   and top:50% on the toggle aligns with the visual centre of the field. */
.pw-wrap > input {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Restore the 0.9rem gap below the login password field (was on the input) */
.login-box .pw-wrap {
  margin-bottom: 0.9rem;
}
.pw-toggle,
.login-box .pw-toggle,
.register-box .pw-toggle,
.body-modal .pw-toggle {
  position: absolute !important;
  right: 0.5rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  padding: 0.25rem !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  color: rgba(255, 220, 100, 0.55) !important;
  line-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: inherit !important;
  font-weight: normal !important;
  animation: none !important;
  filter: none !important;
  transition: color 0.2s ease !important;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.pw-toggle:hover,
.login-box .pw-toggle:hover,
.register-box .pw-toggle:hover,
.body-modal .pw-toggle:hover {
  color: #ffda6b !important;
  background: none !important;
  filter: none !important;
}
.pw-toggle:focus-visible {
  outline: 2px solid #ffda6b;
  outline-offset: 2px;
}
.pw-toggle svg {
  width: 1.15rem !important;
  height: 1.15rem !important;
  pointer-events: none;
  display: block;
}

/* Autofill: use dark text so it is readable on the browser's light autofill background */
.login-box input:-webkit-autofill,
.login-box input:-webkit-autofill:hover,
.login-box input:-webkit-autofill:focus,
.register-box input:-webkit-autofill,
.register-box input:-webkit-autofill:hover,
.register-box input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111 !important;
  caret-color: #111;
}

/* Forgot Password Link */
.forgot-password-link {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.modal-forgot-password-link {
  display: none;
}

.forgot-password-link a,
.back-to-login-link a {
  color: #ffda6b;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.forgot-password-link a:hover,
.back-to-login-link a:hover {
  color: var(--hh-accent-strong);
  text-decoration: underline;
}

.login-trial-promo {
  margin: 0.65rem auto 0.2rem;
  position: relative;
  top: -0.18rem;
  max-width: 100%;
  color: #fff1b8;
  font-family: var(--hh-font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.42;
  text-align: center;
  text-shadow:
    0 0 8px rgba(255, 238, 176, 0.85),
    0 0 18px rgba(255, 206, 82, 0.38);
}

.login-trial-promo a {
  color: #ffe27a;
  font-family: var(--hh-font-body);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-shadow:
    0 0 8px rgba(255, 226, 122, 0.8),
    0 0 18px rgba(255, 202, 70, 0.45);
}

.login-trial-promo--desktop,
.login-trial-promo--mobile {
  display: none;
}

.login-social-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin: 0.35rem auto 0.05rem;
}

.login-social-label {
  color: #fff1b8;
  font-family: var(--hh-font-body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-block;
  transform: translateX(-0.5rem);
  margin-right: 1.15rem;
  text-shadow:
    0 0 8px rgba(255, 238, 176, 0.78),
    0 0 16px rgba(255, 206, 82, 0.33);
}

.login-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  opacity: 0.92;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.login-social-links a:hover,
.login-social-links a:focus-visible {
  opacity: 1;
  transform: translateY(-1px) scale(1.08);
  outline: none;
}

.login-social-links img {
  width: 16px;
  height: 16px;
  display: block;
}

.login-social-links--inside,
.login-social-links--desktop {
  display: none;
}

.mobile-status-link {
  display: none;
  margin: 0;
  text-align: center;
  font-size: 0.98rem;
}

.mobile-status-link .login-social-label {
  margin-right: 0.4rem;
}

.trial-register-cta {
  width: 100%;
  margin: 0 0 0.22rem;
  color: #fff1b8;
  font-family: var(--hh-font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow:
    0 0 8px rgba(255, 238, 176, 0.9),
    0 0 20px rgba(255, 206, 82, 0.45);
}

.login-box .register-area--inside,
.mobile-action-bar .register-area {
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
}

/* Forgot Password Section */
.forgot-password-section {
  padding: 2rem 1rem;
}

.forgot-password-instructions {
  color: rgba(255, 250, 230, 0.85);
  font-size: 0.95rem;
  text-align: center;
  margin: 0.5rem 0 1.5rem 0;
  line-height: 1.5;
}

/* Password recovery is a real modal task. Keep it against the visible top
   edge and give the copy and email field room instead of inheriting the
   narrow login-card width. */
.forgot-password-dialog {
  position: fixed;
  inset: max(0.75rem, env(safe-area-inset-top, 0px)) 0 auto;
  width: min(calc(100% - 1.5rem), 34rem);
  max-width: 34rem;
  max-height: calc(100dvh - max(1.5rem, env(safe-area-inset-top, 0px) + 0.75rem));
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: auto;
  z-index: var(--hh-z-modal-box);
}

.forgot-password-dialog::backdrop {
  background: rgba(0, 8, 6, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.forgot-password-dialog > .login-box {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
}

@media (max-width: 480px) {
  .forgot-password-dialog {
    inset-block-start: max(0.5rem, env(safe-area-inset-top, 0px));
    width: calc(100% - 1rem);
  }
}

.back-to-login-link {
  text-align: center;
  margin-top: 1rem;
}

.register-box {
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 100, 0.12);
  padding: 1.25rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

.register-box input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 230, 150, 0.18);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.register-box input:focus {
  border-color: var(--hh-accent-strong);
  box-shadow: 0 0 10px rgba(255, 215, 100, 0.25);
}

.main-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
}

.main-image img {
  width: 400px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--hh-image-shadow);
  animation: fadeIn 1.5s ease-in-out, glowPulse 6s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  animation-delay: 0s, 1.5s;
}

.body-map-section { margin-top: 1rem; text-align: center; }
.body-map { max-width: 420px; margin: 0.6rem auto; }
.body-map svg { width: 100%; height: auto; display: block; }
.body-map .hotspot { cursor: pointer; }
.body-modal { position: fixed; inset:0; display:none; align-items:center; justify-content:center; background: rgba(0,0,0,0.6); z-index: 2000; padding: 1rem; }
.body-modal-content { background: rgba(255,255,255,0.03); padding: 1rem; border-radius: 10px; max-width: 520px; width: 100%; color: #fff; box-shadow: 0 6px 30px rgba(0,0,0,0.6); }
.body-modal #bodyModalTitle { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.modal-button-group { display: flex; gap: 0.6rem; justify-content: center; margin-top: 0.9rem; }

.title-section {
  /* Negative margin to raise title section and align with image overlap */
  margin-bottom: -30px;
  margin-top: 30px;
}
.main-image {
  /* Overlap adjustment with title section above */
  margin-top: -20px;
}

.register-box {
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}

.register-box form { display:block; }
.register-box label {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,215,100,0.06);
}

.register-box label:last-of-type { border-bottom: none; padding-bottom: 0; }
.register-box label span { display:block; margin:0; font-size:0.9rem; color:var(--hh-accent-strong); font-weight:600; }
.register-box label .field-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.2;
  color: rgba(255,236,179,0.78);
  text-align: center;
}
.register-box input { width: 100%; box-sizing: border-box; }
.register-box .hh-btn { display:block; width:100%; margin-top:0.9rem; }
.registration-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.registration-protection {
  min-height: 1.4rem;
  margin-top: 0.65rem;
  color: rgba(244, 238, 223, 0.78);
  font-size: 0.82rem;
  text-align: center;
}
.registration-protection #turnstileWidget { margin-top: 0.55rem; }
.registration-protection #turnstileWidget:not([hidden]) { display: flex; justify-content: center; }
.register-box p { text-align:center; margin-top:0.9rem; }

.member-box {
  font-size: 1.5rem;
  line-height: 1.5;
}
.member-box > * + * {
  margin-top: 0.5rem;
}
.member-box p {
  margin: 0;
}
.member-box  {
  margin-top: 0.6rem;
}

.welcome.html .title-section,
.member-page .title-section,
body.member-page .title-section,
body.member-area .title-section,
body.member .title-section,
body.member-page .member-box,
.member-box {
  margin-top: 2.8rem;
  margin-bottom: 0.5rem;
}

body.member-page .top-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  max-width: 900px !important;
  gap: 1.6rem !important;
}

body.member-page .left-group {
  width: 100% !important;
  max-width: 820px !important;
  align-items: center !important;
  text-align: center !important;
  gap: 1.2rem !important;
}

body.member-page .member-box {
  width: 100% !important;
  max-width: 820px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 215, 100, 0.18) !important;
  border-radius: 16px !important;
  padding: 1.4rem 1.6rem !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  text-align: center !important;
}

body.member-page .member-box > p.member-user {
  flex: 0 0 auto !important;
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: center !important;
  line-height: 1.2 !important;
}

body.member-page .member-box > p.member-user > span {
  line-height: 1.2 !important;
}

body.member-page .member-box > p.member-user:first-of-type {
  order: 1 !important;
  margin-right: 0 !important;
  font-size: 1.5rem !important;
}

body.member-page .member-box > p.member-user:nth-of-type(2) {
  order: 2 !important;
  font-size: 1.5rem !important;
  line-height: 1.2 !important;
  margin-top: 0.15rem !important;
}

body.member-page .member-box > *:not(.member-user) {
  order: 3 !important;
  flex: 1 0 100% !important;
}

body.member-page .member-box > p.member-user p[data-i18n="about_site_paragraph"],
body.member-page .member-box > p.member-user span[data-i18n="about_site_paragraph"],
body.member-page .member-box p.member-user [data-i18n="about_site_paragraph"] {
  text-align: center !important;
  font-size: 1.5rem !important;
}

body.member-page .member-box p:has(#memberLogout) {
  display: flex !important;
  justify-content: center !important;
  margin-top: 4rem !important;
  margin-bottom: 1.7rem !important;
  padding-top: 0 !important;
}

body.member-page .member-box p,
body.member-page .member-box strong,
body.member-page .member-box span {
  color: var(--hh-accent-strong) !important;
}

body.member-page .member-box p[data-i18n="about_site_paragraph"] {
  font-size: 1.5rem !important;
  letter-spacing: 0.2px !important;
  text-align: center !important;
  color: var(--hh-accent-strong) !important;
  font-weight: 600 !important;
}

body.member-page .member-box p[data-i18n="about_site_paragraph_2"] {
  font-size: 1rem !important;
  letter-spacing: 0.2px !important;
  text-align: center !important;
  margin-top: 0.4rem !important;
  margin-bottom: 0rem !important;
  padding-top: 0.25rem !important;
}

body.member-page .member-box p.admin-contact-text {
  margin-top: 0 !important;
}

body.member-page .member-box p.verification-status {
  font-size: 1rem !important;
  letter-spacing: 0.2px !important;
  text-align: center !important;
  margin-top: 0.3rem !important;
  margin-bottom: 0.2rem !important;
}

body.member-page .member-box p.verification-status + p.verification-status {
  margin-top: 0.1rem !important;
}

body.member-page .member-box > p.member-user:nth-of-type(2) + p.verification-status {
  margin-top: 3rem !important;
}

body.member-page .member-box p.subscription-request {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  text-align: center !important;
}

body.member-page .member-box p.verification-status + p.subscription-request {
  margin-top: 2rem !important;
}

body.member-page .member-box p.subscription-request + p.subscription-request {
  margin-top: 1.5rem !important;
}

body.member-page .member-box p.subscription-request + p[data-i18n="about_site_paragraph_2"] {
  margin-top: 2.3rem !important;
}

body.member-page .member-box p.subscription-request + p.admin-contact-text {
  margin-top: 2.8rem !important;
}

body.member-page .member-box p.subscription-request + div#contactFormSection {
  margin-top: 2.5rem !important;
}

body.member-page .member-box p.subscription-request .subscribe-btn {
  font-size: 0.95rem !important;
  padding: 0.5rem 1rem !important;
  height: auto !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
  animation: none !important;
}

body.member-page .member-box p.subscription-request #subscribeBtn {
  animation: loginPulse 2.8s ease-in-out infinite !important;
}

body.member-page .member-box p.subscription-request .subscribe-btn:hover:not(:disabled) {
  transform: scale(1.03) !important;
}

body.member-page .member-box p.subscription-request .subscribe-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  animation: none !important;
}

body.member-page .member-box p.verification-status span:last-child {
  font-size: 0.82rem !important;
  margin-left: 0.3rem !important;
}

body.member-page .member-box form.verification-status {
  display: grid !important;
  grid-template-columns: auto minmax(10rem, 1fr) auto !important;
  gap: 0.45rem !important;
  align-items: center !important;
  margin: 0.8rem auto 1.5rem !important;
  max-width: 34rem !important;
}

body.member-page .member-box form.verification-status input {
  min-width: 0 !important;
}

body.member-page .member-box form.verification-status #memberEmailStatus {
  grid-column: 1 / -1 !important;
  min-height: 1.2em !important;
  font-size: 0.82rem !important;
}

/* S */
@media (max-width: 430px) {
  body.member-page .member-box form.verification-status {
    grid-template-columns: 1fr !important;
  }
}

body.member-page .member-box p.member-note,
body.member-page .member-box p[data-i18n="about_site_paragraph_3"] {
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  font-size: 1rem !important;
  letter-spacing: 0.2px !important;
  text-align: center !important;
}

body.member-page .member-box .main-button {
  margin-top: 0.5rem !important;
  margin-bottom: 2rem !important;
}

body.member-page .member-box p:has(a[href^="mailto:"]) {
  order: 6 !important;
  margin-top: -0.35rem !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.25rem !important;
  text-align: center !important;
}

body.member-page .member-box p.member-home-link {
  order: 9 !important;
  margin-top: 0.35rem !important;
  margin-bottom: 1.4rem !important;
}

body.member-page .member-box p:has(#memberLogout) {
  order: 8 !important;
}

body.member-page .member-box p:has(a[href^="mailto:"]) a {
  font-size: 1.08rem !important;
  color: var(--hh-accent-2) !important;
}

.member-box p[data-i18n="about_site_paragraph"] {
  display: block !important;
  margin-top: 0.6rem !important;
  margin-bottom: 0.6rem !important;
  line-height: 1.6 !important;
}

.member-box #memberLogout {
  height: auto !important;
  width: auto !important;
  min-width: 140px !important;
  max-width: none !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.95rem !important;
  margin-top: 0 !important;
  display: inline-flex !important;
  justify-content: center !important;
  color: var(--hh-login-btn-text) !important;
  -webkit-text-fill-color: var(--hh-login-btn-text) !important;
}

.member-welcome {
  margin-top: 0.5rem;
  margin-bottom: 0.1rem;
  font-size: 2.5rem;
  color: var(--hh-accent-strong);
  font-family: var(--hh-font-script);
  font-style: italic;
  font-weight: 600;
  text-align: center;
}

.member-link {
  margin: 0;
  text-align: left;
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 2;
}

.member-link a {
  color: #ffe793;
  text-decoration: none;
  font-family: var(--hh-font-heading);
  letter-spacing: 0.4px;
  text-shadow:
    0 0 10px rgba(255, 230, 160, 0.9),
    0 0 18px rgba(255, 210, 100, 0.6),
    0 0 28px rgba(255, 200, 90, 0.45);
}

.member-home-link {
  margin: 0.9rem 0 0.25rem !important;
  text-align: center;
}

.member-home-link a {
  color: #ffe793;
  text-decoration: none;
  font-family: var(--hh-font-body);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  text-shadow:
    0 0 10px rgba(255, 230, 160, 0.9),
    0 0 18px rgba(255, 210, 100, 0.6),
    0 0 28px rgba(255, 200, 90, 0.45);
}

.member-home-link a:hover,
.member-home-link a:focus {
  text-decoration: underline;
}

.member-user {
  margin: 0.05rem 0 0.25rem !important;
  font-family: inherit;
  font-size: 1.7rem !important;
  font-weight: 500;
  text-align: center;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255, 230, 160, 0.9), 0 0 12px rgba(255, 210, 100, 0.45);
  animation: bylinePulse 2.6s ease-in-out infinite;
}

.member-box .member-home-btn {
  height: 2.6rem !important;
  width: auto !important;
  min-width: 150px !important;
  max-width: none !important;
  padding: 0 1.2rem !important;
  font-size: 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  color: var(--hh-login-btn-text) !important;
  -webkit-text-fill-color: var(--hh-login-btn-text) !important;
}

.member-page .title-section,
body.member-page .title-section,
body.member-area .title-section,
body.member .title-section {
  margin-bottom: 0.15rem !important;
}

body.member-page .title-section {
  width: 100%;
  text-align: center;
  pointer-events: none;
}

body.member-page .top-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.2rem;
  width: 100%;
}

body.member-page .member-link {
  position: static;
  text-align: center;
  margin-bottom: 0.2rem;
}

.slogan-top h2 {
  width: 400px !important;
  max-width: 100% !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
}
.slogan-bottom h2 {
  width: 400px !important;
  max-width: 100% !important;
  text-align: center !important;
}

.slogan-top { margin-bottom: 1.4rem !important; }
.slogan-bottom { margin-top: 0.4rem !important; }

body.index-page .title-section {
  margin-top: 1.5rem !important;
}
body.index-page .main-image {
  margin-top: -3.5rem !important;
}

body.index-page .right-group .slogan-top {
  width: var(--hh-image-width, 400px);
  align-self: center;
  display: flex;
  justify-content: flex-start !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.index-page .right-group .slogan-top h2 {
  width: 100%;
  text-align: left !important;
  max-width: 100% !important;
  padding-left: 5px !important;
}
body.index-page .right-group .slogan-bottom {
  width: var(--hh-image-width, 400px);
  align-self: center;
  display: flex;
  justify-content: flex-end !important;
  padding-left: 0 !important;
  padding-right: 40px !important;
}
body.index-page .right-group .slogan-bottom h2 {
  width: 100%;
  text-align: right !important;
  max-width: 100% !important;
}

/* Strong overrides for register page placed at end to ensure they win in cascade */
.register-page {
  font-family: var(--hh-font-body);
}

.register-page .title-section h1 {
  font-size: clamp(2rem, 2vw + 0.8rem, 3rem) !important;
  letter-spacing: 1.2px;
}

.register-page .register-box {
  max-width: 420px !important;
  padding: 1.35rem !important;
  border-radius: 14px;
}

.register-page .register-box label {
  margin-bottom: 1rem !important;
}

.register-page .register-box label span {
  font-size: 1rem !important;
  letter-spacing: 0.3px;
}

.register-page .register-box input {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  font-size: 1.02rem;
  border-radius: 10px;
}

body.index-page #loginModal.body-modal {
  z-index: 10000 !important;
}

body.index-page.login-modal-open > .lang-select,
body.index-page.login-modal-open > #sound_toggle_button {
  visibility: hidden !important;
}

.register-page .register-box p {
  font-size: 1.1rem;
  margin-top: 0.5rem !important;
  color: white;
}

.register-page .register-box p a {
  font-weight: 700;
  color: #FFD700;
  display: block;
  font-size: 1.15rem;
  text-decoration: underline !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.register-page .register-box form { text-align: center !important; }
.register-page .register-box .hh-btn,
.register-page #regBtn {
  display: inline-flex !important;
  width: auto !important;
  margin: 1.5rem auto 0.8rem !important;
  border-radius: 10px !important;
  padding: 0.9rem 2.6rem !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  min-width: 200px !important;
  height: auto !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Ensure register page aligns content to top and removes unexpected top offsets.
   These rules must be present in the stylesheet (not just in register.html's inline <style>)
   so SPA navigation (which only swaps .page-wrapper) gets the correct layout. */
.page-wrapper.register-page { align-items: center !important; justify-content: center !important; padding-top: 0.2rem !important; padding-bottom: 1.5rem !important; }

/* Override the base grid layout of .top-section so register page stacks vertically */
.register-page .top-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  grid-template-columns: none !important;
  gap: 1.5rem !important;
}

/* Reset left-group large negative margin-top from the ≥900px media query */
.register-page .left-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-top: 0 !important;
  gap: 1.9rem !important;
  align-self: auto !important;
}
/* Use 3-class specificity (.page-wrapper.register-page .title-section = 0,3,0) to beat
   body.index-page .title-section { margin-top: 1.5rem !important } (0,2,0) at line ~2226.
   During SPA navigation body keeps class="index-page", which would otherwise win. */
.page-wrapper.register-page .title-section { margin-top: 0 !important; padding-top: 0 !important; margin-bottom: 0.6rem !important; }

/* Suppress the slide-in animation so title renders immediately on SPA swap */
.page-wrapper.register-page .title-section h1 { animation: none !important; opacity: 1 !important; transform: none !important; }

/* Ensure byline isn't fixed on register page (overrides original fixed rule) */
.register-page .title-section .byline {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0.25rem 0 0 0 !important;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-120px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInOnly {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; filter: brightness(0.8); }
  to { opacity: 1; filter: brightness(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); filter: brightness(0.9); }
  to { opacity: 1; transform: translateY(0); filter: brightness(1); }
}

@keyframes bylinePulse {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(255, 230, 160, 0.8),
      0 0 14px rgba(255, 210, 100, 0.45),
      0 0 22px rgba(255, 200, 90, 0.3);
  }
  50% {
    text-shadow:
      0 0 12px rgba(255, 235, 175, 1),
      0 0 22px rgba(255, 215, 120, 0.75),
      0 0 34px rgba(255, 210, 110, 0.55);
  }
}

@keyframes loginPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 6px rgba(255, 220, 130, 0.45))
      drop-shadow(0 0 14px rgba(255, 200, 90, 0.35));
  }
  50% {
    filter:
      drop-shadow(0 0 10px rgba(255, 235, 175, 0.9))
      drop-shadow(0 0 22px rgba(255, 215, 120, 0.7))
      drop-shadow(0 0 36px rgba(255, 200, 90, 0.55));
  }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.6); }
  60% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

/* CATEGORY 4: Large Screens (min-width: 1025px) */

/* XL */
@media (min-width: 1025px) {
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-btn--inside,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn {
    font-size: 1.1rem !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn,
  .member-box .member-home-btn {
    height: 44px !important;
    min-height: 44px !important;
  }
  .title-section .byline,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .login-box button,
  .hh-btn,
  .main-image img,
  .login-section {
    animation: none !important;
  }
  #loginBtn, #loginOpenBtn, #modalLoginBtn, .login-open-btn, .mobile-action-bar .login-open-btn {
    color: hsl(195,76%,30%) !important;
  }
  .login-section {
    opacity: 1 !important;
    transform: none !important;
  }
  .left-group {
    align-self: flex-start;
    margin-top: -3.5rem !important;
    order: 2;
  }
  .register-page .left-group {
    width: 100%;
    max-width: 650px;
  }
  .login-box .register-area--inside {
    display: none !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .login-box .register-btn--inside {
    margin: 1.8rem auto 1rem auto !important;
  }
  .login-box button, .hh-btn {
    width: 100%;
  }
  .login-box, .register-box {
    max-width: 360px;
    width: 100%;
  }
  .login-open-wrapper {
    display: none !important;
  }
  .main-image {
    order: 1;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    margin-top: 1rem !important;
    background: transparent !important;
  }
  .main-image img {
    box-shadow: none !important;
    opacity: 1;
    animation: none !important;
  }
  .mobile-action-bar {
    display: none !important;
  }
  .page-wrapper {
    padding-top: 2rem !important;
    align-items: center !important;
  }
  .register-page .register-box {
    max-width: 650px !important;
    width: 100% !important;
  }
  body.index-page .register-area {
    margin-top: -2rem !important;
    opacity: 1;
    display: flex !important;
    justify-content: center !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }
  .register-area .register-btn {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-box button,
  .login-box .register-btn--inside,
  .register-area .register-btn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .mobile-action-bar .register-btn {
    height: 44px !important;
    min-height: 44px !important;
    width: 160px !important;
    min-width: 160px !important;
    padding: 0 1rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }
  .right-group {
    margin-top: -3.5rem !important;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    order: 1;
  }
  body.index-page .right-group {
    margin-top: -6rem !important;
  }
  body.index-page .main-image {
    margin-top: -5rem !important;
  }
  body.index-page .right-group .slogan-top {
    margin-top: -0.8rem !important;
  }
  .slogan-bottom {
    order: 3;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    padding-top: 0 !important;
    opacity: 0;
    animation: slideFromRightCat4 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-top {
    order: 2;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    padding-bottom: 0 !important;
    opacity: 0;
    animation: slideFromLeftCat4 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-top h2, .slogan-bottom h2 {
    font-size: 1.2rem !important;
    width: 100% !important;
  }
  .slogan-top, .slogan-bottom {
    padding: 0.05rem 0 !important;
  }
  .title-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .title-section .byline {
    order: 1 !important;
    color: var(--hh-accent-strong) !important;
    -webkit-text-fill-color: var(--hh-accent-strong) !important;
    opacity: 1;
  }
  .title-section h1 {
    order: 2 !important;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards !important;
  }
  .register-page .title-section h1 {
    animation: fadeIn 1s ease-in forwards !important;
    opacity: 0;
  }
  .title-section .app-version {
    order: 3 !important;
    position: static !important;
    margin-top: 0 !important;
    margin-bottom: 0.2rem !important;
    font-size: 0.78rem !important;
  }
  .top-section {
    row-gap: 1.2rem;
    column-gap: 5rem;
    align-items: flex-start !important;
    margin-top: 0 !important;
  }
  .login-section {
    order: 4;
    width: 100%;
    display: none !important;
    margin-top: 2.4rem;
    margin-bottom: 1rem;
  }
  body.member-page .login-section,
  body.member-area .login-section,
  body.member .login-section {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  body.member-page .member-box,
  body.member-area .member-box,
  body.member .member-box {
    width: 100% !important;
    max-width: 820px !important;
    animation: none !important;
    transform: none !important;
  }
  body.index-page #loginForm {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
  }
  body.index-page .login-box {
    overflow: hidden !important;
  }
  body.index-page .login-box .register-area--inside {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    position: static !important;
    clear: both !important;
  }
  body.index-page .login-box .register-btn--inside {
    width: 100% !important;
    max-width: 160px !important;
    margin: 1.8rem auto 1rem auto !important;
  }
  body.index-page .login-box button, body.index-page .login-box .register-btn--inside {
    width: 100% !important;
    max-width: 160px !important;
    height: 44px !important;
    line-height: 1 !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.index-page .login-box button {
    margin: 0.7rem auto 0 auto !important;
    align-self: center !important;
  }
  body.index-page .login-section {
    display: flex !important;
    margin-top: 1rem !important;
  }
  body.index-page .mobile-action-bar {
    display: none !important;
  }
  body.index-page .mobile-action-bar, body.index-page .mobile-action-bar * {
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  @keyframes slideFromLeftCat4 {
    from {
      opacity: 0;
      transform: translateX(-100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(46px) translateY(-0.6rem);
    }
  }
  @keyframes slideFromRightCat4 {
    from {
      opacity: 0;
      transform: translateX(100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(-46px) translateY(-0.6rem);
    }
  }
  body.index-page .register-area {
    display: none !important;
  }
  /* Reset pw-toggle inside login-box — overrides all .login-box button rules above */
  body .login-box .pw-wrap .pw-toggle,
  body.index-page .login-box .pw-wrap .pw-toggle {
    position: absolute !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0.25rem !important;
    margin: 0 !important;
    right: 0.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    align-self: auto !important;
    background: none !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: inherit !important;
    font-weight: normal !important;
    line-height: 0 !important;
    animation: none !important;
    filter: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 220, 100, 0.55) !important;
    box-sizing: content-box !important;
  }
}

/* CATEGORY 3: Medium Screens (min-width: 768px and max-width: 1024px) */

/* L */
@media (min-width: 768px) and (max-width: 1024px) {
  body.member-page .page-wrapper {
    padding-top: 0.5rem !important;
    padding-bottom: 0.75rem !important;
  }
  body.member-page .top-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body.member-page .member-welcome {
    margin-top: 1.5rem !important;
    margin-bottom: 0.1rem !important;
  }
  .welcome.html .title-section,
  .member-page .title-section,
  body.member-page .title-section,
  body.member-area .title-section,
  body.member .title-section {
    margin-top: 0.5rem !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-btn--inside,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn {
    font-size: 1.15rem !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn,
  .member-box .member-home-btn {
    height: 44px !important;
    min-height: 44px !important;
  }
  .title-section .byline,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .login-box button,
  .hh-btn,
  .main-image img,
  .login-section {
    animation: none !important;
  }
  .login-section {
    opacity: 1 !important;
    transform: none !important;
  }
  #loginBtn, #modalLoginBtn, .login-open-btn, .mobile-action-bar .login-open-btn {
    color: hsl(195,76%,30%) !important;
  }
  #loginOpenBtn {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 1.2rem !important;
    line-height: 44px !important;
  }
  .left-group, .right-group {
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(50% - 1.5rem);
    margin-top: 1.2rem !important;
  }
  .left-group {
    order: 2;
  }
  .right-group {
    order: 1;
  }
  .login-box .register-area--inside {
    display: none !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .login-box .register-btn--inside {
    margin: 1.8rem auto 1rem auto !important;
  }
  .login-box button, .hh-btn {
    width: 100%;
  }
  .login-box, .register-box {
    max-width: 360px;
    width: 100%;
  }
  .register-box label {
    margin-bottom: 0.45rem !important;
    padding-bottom: 0.2rem !important;
    gap: 0.28rem !important;
  }
  .register-box label span {
    margin-bottom: 0 !important;
  }
  .register-page .register-box label {
    margin-bottom: 0.4rem !important;
    padding-bottom: 0.15rem !important;
    gap: 0.2rem !important;
  }
  .register-page .register-box label span {
    margin-bottom: 0 !important;
  }
  .login-open-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn, .title-section .login-open-btn, .mobile-action-bar .login-open-btn,
  .register-area .register-btn, .mobile-action-bar .register-btn {
    height: 44px !important;
    min-height: 44px !important;
    min-width: 160px !important;
    width: 160px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }
  .login-open-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 3;
    width: 100%;
    margin-top: 0.6rem;
    margin-bottom: 1.4rem;
  }
  .login-section {
    order: 4;
    width: 100%;
    display: none !important;
    margin-top: 2.4rem;
    margin-bottom: 1rem;
  }
  body.member-page .login-section,
  body.member-area .login-section,
  body.member .login-section {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  body.member-page .member-box,
  body.member-area .member-box,
  body.member .member-box {
    animation: none !important;
    transform: none !important;
  }
  .main-image {
    order: 1;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    margin-top: 0.8rem !important;
    background: transparent !important;
  }
  .main-image img {
    width: 320px;
    box-shadow: none !important;
    animation: none !important;
  }
  .main-item .main-image, .main-item .twitch-frame {
    max-width: 260px;
    height: 150px;
  }
  .main-item:nth-of-type(1) {
    transform: scale(1.05);
  }
  .main-item:nth-of-type(1) .main-image, .main-item:nth-of-type(1) .twitch-frame {
    max-width: 280px;
    height: 160px;
  }
  .mobile-action-bar {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    padding: 0 0.5rem;
    order: 99 !important;
    width: 100% !important;
    margin-top: 2.4rem !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .mobile-action-bar .login-open-btn {
    height: 44px !important;
  }
  .mobile-action-bar .login-open-btn, .mobile-action-bar .register-btn {
    height: 44px !important;
    min-width: 160px !important;
    width: 160px !important;
    padding: 0 1rem !important;
    font-size: 1rem !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
  }
  .mobile-action-bar .login-open-wrapper {
    order: 1 !important;
    margin: 0.8rem 0 0.6rem 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .mobile-action-bar .register-area {
    order: 2 !important;
    margin: 0.8rem 0 0.8rem 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .mobile-action-bar .forgot-password-link {
    order: 3 !important;
  }
  .mobile-action-bar .register-btn {
    margin-top: 0 !important;
  }
  .mobile-action-bar > * {
    width: auto !important;
    max-width: none !important;
    min-width: 110px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex: 0 0 auto !important;
  }
  .page-wrapper {
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
  body.index-page .register-area {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    order: 4;
    margin: 2.8rem 0 1rem 0;
  }
  .right-group {
    margin-top: 1.2rem !important;
    --hh-image-width: 320px;
  }
  .slogan-area {
    order: 4;
    width: 100%;
    padding: 2px 0;
    margin: 0;
    margin-bottom: 0;
    text-align: center;
  }
  .slogan-area h2 {
    font-size: 1.1rem;
  }
  .slogan-bottom {
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    order: 3;
    width: 100%;
    padding-top: 0 !important;
    opacity: 0;
    animation: slideFromRightCat3 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-top {
    margin-top: 0;
    margin-bottom: 0.5rem !important;
    order: 2;
    width: 100%;
    padding-bottom: 0 !important;
    opacity: 0;
    animation: slideFromLeftCat3 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-top h2, .slogan-bottom h2 {
    font-size: 1.2rem;
    width: 100% !important;
  }
  .slogan-top, .slogan-bottom {
    padding: 0.05rem 0 !important;
  }
  .title-section {
    margin-top: 0 !important;
    padding-top: 0.2rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    order: 0;
    margin-bottom: 0 !important;
  }
  .title-section .byline {
    order: 1 !important;
    margin-top: 0.15rem !important;
    margin-bottom: 0.1rem !important;
    color: #1e6ef1 !important;
    -webkit-text-fill-color: #1e6ef1 !important;
    opacity: 1;
  }
  .title-section .login-open-wrapper {
    order: 3 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 1.6rem !important;
    margin-bottom: 1.8rem !important;
    position: static !important;
  }
  .title-section .login-open-wrapper .login-open-btn {
    margin: 0 !important;
  }
  .left-group .title-section .login-open-wrapper {
    margin-left: calc(-48% - 0.5rem) !important;
    width: calc(100vw - 1rem) !important;
    padding: 0 0.5rem !important;
  }
  .title-section h1 {
    font-size: 2.5rem;
    order: 2 !important;
    white-space: nowrap !important;
    font-style: italic;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards !important;
  }
  .register-page .title-section h1 {
    animation: fadeIn 1s ease-in forwards !important;
    opacity: 0;
  }
  .title-section .app-version {
    order: 3 !important;
    position: static !important;
    margin-top: 0 !important;
    margin-bottom: 0.6rem !important;
    font-size: 0.78rem !important;
  }
  .top-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 0 auto;
  }
  body.member-page .top-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 0 auto !important;
  }
  body.member-page .member-welcome {
    text-align: center !important;
    width: 100% !important;
  }
  body.member-page .member-box {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 1.6rem !important;
  }
  :root {
    font-size: 16px;
  }
  body.index-page #loginForm {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
  }
  body.index-page .login-box .register-area--inside {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    position: static !important;
    clear: both !important;
  }
  body.index-page .login-box .register-btn--inside {
    width: 100% !important;
    max-width: 160px !important;
    margin: 1.8rem auto 1rem auto !important;
  }
  body.index-page .login-box button {
    width: 100% !important;
    max-width: 160px !important;
    margin: 0.7rem auto 0 auto !important;
    align-self: center !important;
  }
  body.index-page .login-section {
    display: flex !important;
    margin-top: 1rem !important;
  }
  body.index-page .mobile-action-bar {
    display: none !important;
  }
  body.index-page .mobile-action-bar, body.index-page .mobile-action-bar * {
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  @keyframes slideFromLeftCat3 {
    from {
      opacity: 0;
      transform: translateX(-100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(12px) translateY(-0.6rem);
    }
  }
  @keyframes slideFromRightCat3 {
    from {
      opacity: 0;
      transform: translateX(100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(-12px) translateY(-0.6rem);
    }
  }
  body.member-page .member-box p:has(a[href^="mailto:"]) a {
    font-size: 1rem !important;
  }
  /* Reset pw-toggle inside login-box — overrides all .login-box button rules above */
  body .login-box .pw-wrap .pw-toggle {
    position: absolute !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0.25rem !important;
    margin: 0 !important;
    right: 0.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    align-self: auto !important;
    background: none !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: inherit !important;
    font-weight: normal !important;
    line-height: 0 !important;
    animation: none !important;
    filter: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 220, 100, 0.55) !important;
    box-sizing: content-box !important;
  }
}

/* CATEGORY 2: Small Screens (min-width: 431px and max-width: 767px) */

/* M */
@media (min-width: 431px) and (max-width: 767px) {
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .login-open-wrapper .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-btn--inside,
  .login-box .register-btn--inside,
  .register-area .register-btn,
  .login-box .register-area--inside .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  body.index-page .login-box button,
  body.index-page .login-box .register-btn--inside,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn {
    font-size: 1.05rem !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn,
  .member-box .member-home-btn {
    height: 44px !important;
    min-height: 44px !important;
  }
  body.member-page .member-box {
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .title-section .byline,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .login-box button,
  .hh-btn,
  .main-image img,
  .login-section {
    animation: none !important;
  }
  .login-section {
    opacity: 1 !important;
    transform: none !important;
  }
  #loginModal.body-modal {
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 0.35rem !important;
  }
  #loginModal.body-modal .body-modal-content {
    margin-top: 0 !important;
  }
  #modalLoginBtn, .login-open-btn, #loginBtn, #loginOpenBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(90deg, var(--hh-accent), var(--hh-accent-2)) !important;
    color: hsl(195,76%,30%) !important;
    border: none !important;
    padding: 0.6rem 1rem !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
    font-weight: 700 !important;
    text-align: center !important;
  }
  .hh-btn {
    height: 3rem;
    font-size: 1.02rem;
  }
  .left-group, .right-group {
    display: contents;
  }
  .login-box {
    max-width: 260px;
    padding: 0.6rem;
  }
  .login-box button {
    width: 56%;
    height: 3rem;
    font-size: 1.02rem;
    border-radius: 8px;
    margin: 0.8rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .login-box h2 {
    margin-bottom: 1rem;
    font-size: 1.05rem;
  }
  .login-box input {
    font-size: 0.95rem;
    padding: 0.45rem 0.6rem;
  }
  .login-box input, .register-box input {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  .login-box, .register-box {
    padding: 0.7rem;
    border-radius: 10px;
  }
  .login-open-wrapper {
    order: 2;
    width: 100%;
    display: block;
    justify-content: center !important;
    margin-top: 0.6rem;
    margin-bottom: 1.4rem;
    text-align: center;
  }
  .login-open-wrapper .login-open-btn {
    width: 130px !important;
    min-width: 130px !important;
    height: 44px !important;
  }
  .login-section {
    margin-top: 2rem;
    margin-bottom: 1rem;
    order: 5;
    width: 100%;
    display: none !important;
  }
  .main-image {
    margin-top: 0 !important;
    margin-bottom: -3.5rem !important;
    padding-top: 0.2rem !important;
    order: 1 !important;
    padding: 0 !important;
    width: 100%;
    margin: 0 0 -4.5rem 0 !important;
  }
  .main-image img {
    box-shadow: none !important;
    animation: none !important;
    width: 260px;
    transform: none !important;
    transition: none !important;
  }
  .main-item .main-image, .main-item .twitch-frame {
    max-width: 200px;
    height: 120px;
  }
  .main-item:nth-of-type(1) .main-image, .main-item:nth-of-type(1) .twitch-frame {
    max-width: 220px;
    height: 130px;
  }
  .member-box {
    font-size: 1rem;
  }
  .mobile-action-bar {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0 0.6rem;
    margin-top: -0.5rem !important;
    margin-bottom: 1.2rem !important;
    pointer-events: auto;
    flex-wrap: nowrap !important;
    width: 100% !important;
    order: 5 !important;
  }
  .mobile-action-bar .login-open-btn, .mobile-action-bar .register-btn {
    width: 145px !important;
    min-width: 145px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0.45rem 0.5rem !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    margin: 0.25rem 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28) !important;
    text-align: center !important;
    vertical-align: middle !important;
  }
  .mobile-action-bar .login-open-wrapper, .mobile-action-bar .register-area {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
  .mobile-action-bar .login-open-wrapper {
    order: 1 !important;
  }
  .mobile-action-bar .register-area {
    order: 3 !important;
  }
  .mobile-action-bar .register-btn {
    text-decoration: none !important;
  }
  .mobile-action-bar .forgot-password-link {
    order: 2 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }
  .mobile-action-bar .forgot-password-link a {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
  }
  .mobile-action-bar > * {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .page-wrapper {
    padding: 0.8rem;
    align-items: flex-start;
    padding-top: 0.75rem;
    justify-content: flex-start;
    padding-bottom: 0.75rem;
  }
  .register-page .page-wrapper {
    padding: 1rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 1.5rem !important;
  }
  .register-page .register-area {
    margin-top: 0 !important;
    order: 2 !important;
  }
  body.index-page .register-area {
    order: 6;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 3.2rem;
  }
  .register-box {
    margin-top: 3.5rem !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .register-box label {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-bottom: 0.35rem;
  }
  .register-box label span {
    margin-bottom: 0.35rem;
  }
  .register-page #regBtn, .register-page .register-box .hh-btn {
    min-width: 180px !important;
    font-size: 1rem !important;
    padding: 0.82rem 2rem !important;
    margin: 1rem auto 0.6rem !important;
  }
  .register-page .register-box {
    max-width: 360px !important;
    padding: 1rem !important;
  }
  .register-page .title-section h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
  }
  .right-group {
    --hh-image-width: 260px;
    gap: 0.25rem !important;
  }
  .slogan-area {
    padding: 2px 0;
    margin: 0;
    order: 3;
    width: 100%;
  }
  .slogan-area h2 {
    font-size: 0.95rem;
  }
  .slogan-bottom {
    display: flex !important;
    justify-content: center !important;
    margin-top: 0.2rem !important;
    padding-top: 0 !important;
    order: 4 !important;
    margin-bottom: 2rem !important;
    padding: 0 !important;
    width: 100%;
    opacity: 0;
    animation: slideFromRightCat1 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-bottom h2 {
    text-align: left !important;
    font-size: 0.95rem !important;
  }
  .slogan-top {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    order: 3 !important;
    margin-top: 0.2rem !important;
    padding: 0 !important;
    width: 100%;
    opacity: 0;
    animation: slideFromLeftCat1 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-top h2 {
    text-align: left !important;
    font-size: 1.05rem !important;
  }
  .slogan-top h2, .slogan-bottom h2 {
    font-size: 1.05rem !important;
    width: 234px !important;
  }
  .title-section {
    margin-bottom: 6rem !important;
    margin-top: 0 !important;
    order: 2 !important;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding-top: 0 !important;
    gap: 0.35rem;
  }
  .title-section .byline {
    margin-bottom: 0.05rem !important;
    white-space: normal;
    margin-top: 0.1rem !important;
    text-align: center;
    width: 100%;
    order: 1 !important;
    color: var(--hh-accent-strong) !important;
    -webkit-text-fill-color: var(--hh-accent-strong) !important;
  }
  .title-section .login-open-wrapper {
    order: 3 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 2.2rem !important;
    margin-bottom: 1rem !important;
  }
  .title-section h1 {
    white-space: nowrap;
    overflow: visible;
    font-size: 2.2rem !important;
    line-height: 1 !important;
    font-style: italic;
    order: 2 !important;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards !important;
  }
  .register-page .title-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
    order: 1 !important;
  }
  .register-page .register-box {
    order: 2 !important;
    margin-top: 0 !important;
    padding-top: 1rem !important;
  }
  .register-page .title-section h1 {
    margin-bottom: 0 !important;
  }
  .title-section .app-version {
    order: 3 !important;
    position: absolute !important;
    left: 50%;
    top: calc(100% + 0.9rem);
    transform: translateX(-50%);
    margin: 0 !important;
    font-size: 0.78rem !important;
    z-index: 2;
    pointer-events: none;
  }
  .top-section {
    gap: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5.5rem !important;
  }
  .register-page .top-section {
    padding-top: 0 !important;
  }
  body.member-page .top-section {
    padding-top: 2rem !important;
  }
  :root {
    font-size: 15px;
  }
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  @keyframes slideFromLeftCat1 {
    from {
      opacity: 0;
      transform: translateX(-100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(-10px) translateY(-0.6rem);
    }
  }
  @keyframes slideFromRightCat1 {
    from {
      opacity: 0;
      transform: translateX(100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(10px) translateY(-0.6rem);
    }
  }
  body.index-page .mobile-action-bar {
    margin-top: -0.4rem !important;
  }
}

/* CATEGORY 1: Small Screens (361px-430px) */

/* S */
@media (max-width: 430px) {
  .page-wrapper.register-page {
    padding-top: 0.75rem !important;
  }

  body.member-page .page-wrapper {
    padding-top: 0.3rem !important;
    padding-bottom: 0.75rem !important;
  }
  body.member-page .top-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body.member-page .member-welcome {
    margin-top: 1.8rem !important;
    margin-bottom: 0.1rem !important;
  }
  body.member-page .member-box {
    margin-top: 1.5rem !important;
  }
  body.member-page .member-box p:has(#memberLogout) {
    margin-top: 2.5rem !important;
    margin-bottom: 0.5rem !important;
    padding-top: 1rem !important;
  }
  body.index-page > .lang-select {
    left: 0.2rem !important;
  }

  body.index-page > .lang-select .lang-flag {
    width: 22px !important;
    height: 16px !important;
  }

  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-btn--inside,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn {
    font-size: 1rem !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn,
  .member-box .member-home-btn {
    height: 40px !important;
    min-height: 40px !important;
  }
  #loginBtn, #loginOpenBtn, #modalLoginBtn, .login-open-btn, .mobile-action-bar .login-open-btn {
    color: hsl(195,76%,30%) !important;
  }
  #loginModal .modal-button-group {
    gap: 0.45rem !important;
  }
  #loginModal .hh-btn {
    height: 34px !important;
    min-height: 34px !important;
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    font-size: 0.9rem !important;
    padding: 0 0.7rem !important;
  }
  body.member-page .member-box {
    max-width: 280px !important;
    margin-left: 1.5rem !important;
    margin-right: 1.5rem !important;
  }
  #loginModal.body-modal {
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 0.25rem !important;
  }
  #loginModal.body-modal .body-modal-content {
    margin-top: 0 !important;
  }
  .left-group {
    display: contents !important;
  }
  .page-wrapper {
    padding: 0 !important;
    padding-top: 0 !important;
    gap: 0 !important;
    margin-top: 0 !important;
  }
  .register-page .page-wrapper {
    padding: 0.75rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 1rem !important;
  }
  .login-open-wrapper {
    order: 5 !important;
    display: flex !important;
    justify-content: center !important;
  }
  .login-open-wrapper .login-open-btn {
    width: 145px !important;
    min-width: 145px !important;
    height: 40px !important;
    font-size: 1.05rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .main-image {
    order: 1 !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: none !important;
    transform: translateY(-3.5rem) !important;
  }
  .main-image img {
    width: 220px;
    height: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: none !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  .mobile-action-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    order: 5 !important;
    margin-top: 2.3rem !important;
    margin-bottom: 1rem !important;
    padding: 0 0.5rem !important;
    transform: translateY(0.8rem) !important;
  }
  .mobile-action-bar .login-open-btn, .mobile-action-bar .register-btn {
    width: 120px !important;
    min-width: 120px !important;
    margin: 0.5rem auto !important;
    font-size: 1.05rem !important;
  }
  body.index-page .register-area {
    order: 7 !important;
    margin-top: 0.5rem;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .mobile-action-bar .forgot-password-link {
    order: 6 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0.8rem !important;
    pointer-events: auto !important;
  }
  .mobile-action-bar .forgot-password-link a {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
  }
  .register-page .register-area {
    margin-top: 0 !important;
    order: 2 !important;
  }
  .register-box {
    margin-top: 0rem !important;
  }
  .register-page .register-box {
    padding-bottom: 0.5rem !important;
  }
  .slogan-area {
    order: 5 !important;
    width: 100%;
  }
  .slogan-area h2 {
    font-size: 0.95rem;
  }
  .slogan-top, .slogan-bottom {
    padding: 0 !important;
    overflow: hidden !important;
  }
  .slogan-top h2, .slogan-bottom h2 {
    font-size: 1rem !important;
    width: 210px !important;
    word-wrap: break-word !important;
  }
  .slogan-bottom {
    display: flex !important;
    justify-content: center !important;
    order: 4 !important;
    width: 100% !important;
    margin-top: 0.15rem !important;
    margin-bottom: 0.25rem !important;
    padding: 0 !important;
    opacity: 0;
    animation: slideFromRight 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-bottom h2 {
    text-align: left !important;
    width: 210px !important;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
  }
  .slogan-top {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 3 !important;
    width: 100% !important;
    margin-top: 0.3rem !important;
    margin-bottom: 0.15rem !important;
    padding: 0 !important;
    opacity: 0;
    animation: slideFromLeft 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-top h2 {
    text-align: left !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 210px !important;
    flex-shrink: 0 !important;
  }
  .title-section {
    margin-bottom: 0 !important;
    margin-top: -3.5rem !important;
    order: 2 !important;
    width: 100%;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    transform: translateY(-3.5rem) !important;
  }
  .title-section h1 {
    font-size: 1.95rem !important;
    animation: fadeIn 1s ease-in forwards !important;
    opacity: 0;
  }
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  @keyframes slideFromLeft {
    from {
      opacity: 0;
      transform: translateX(-100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(0) translateY(-0.6rem);
    }
  }
  @keyframes slideFromRight {
    from {
      opacity: 0;
      transform: translateX(100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(0) translateY(-0.6rem);
    }
  }
  .title-section .byline {
    order: 1 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    color: var(--hh-accent-strong) !important;
    -webkit-text-fill-color: var(--hh-accent-strong) !important;
  }
  .title-section .login-open-wrapper {
    order: 3 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 1.2rem !important;
    margin-bottom: 0.9rem !important;
  }
  .title-section h1 {
    font-size: 2rem !important;
    font-style: italic;
    order: 2 !important;
    margin: 0 !important;
    margin-top: -3.8rem !important;
    padding: 0 !important;
    line-height: 1 !important;
  }
  .register-page .title-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
    order: 1 !important;
  }
  .register-page .register-box {
    order: 2 !important;
    margin-top: 0 !important;
    padding-top: 1rem !important;
  }
  .register-page .title-section h1 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
    animation: fadeIn 1s ease-in forwards !important;
    opacity: 0;
  }
  .title-section .app-version {
    order: 3 !important;
    position: absolute !important;
    left: 50%;
    top: calc(100% - 0.65rem);
    transform: translateX(-50%);
    margin: 0 !important;
    font-size: 0.78rem !important;
    z-index: 2;
    pointer-events: none;
  }
  body {
    overflow-x: hidden !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  #loginModal {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0.5rem !important;
  }
  .login-box {
    max-width: calc(100% - 1rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .login-section {
    display: none !important;
  }
  .right-group {
    display: contents !important;
  }
  .top-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    align-items: center !important;
    margin-top: 0 !important;
    padding-top: 2rem !important;
  }
  .register-page .top-section {
    padding-top: 0 !important;
  }
  :root {
    font-size: 14px;
  }
}


  body.member-page .member-box > p.member-user {
    width: 100% !important;
    display: block !important;
  }

  body.member-page .member-box > p.member-user:first-of-type {
    margin-right: 0 !important;
  }

  body.member-page .member-box > p.member-user:nth-of-type(2) {
    margin-top: 0.15rem !important;
  }

  body.member-page .member-box > p.member-user:nth-of-type(2) + p.verification-status {
    margin-top: 2rem !important;
  }

  body.member-page .member-box p.subscription-request {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body.member-page .member-box p.subscription-request + p.subscription-request {
    margin-top: 1.5rem !important;
  }

  body.member-page .member-box p.subscription-request + p[data-i18n="about_site_paragraph_2"] {
    margin-top: 2.3rem !important;
  }

  body.member-page .member-box p.subscription-request + p.admin-contact-text {
    margin-top: 2.8rem !important;
  }

  body.member-page .member-box p:has(#memberLogout) {
    margin-bottom: 1.45rem !important;
  }

  body.member-page .member-box p:has(a[href^="mailto:"]) {
    margin-bottom: 0.8rem !important;
  }

  body.member-page .member-box p.member-home-link {
    margin-top: 0.3rem !important;
    margin-bottom: 0.4rem !important;
  }

  body.member-page .member-box p.subscription-request + div#contactFormSection {
    margin-top: 1.2rem !important;
  }



/* ── Accessibility: screen-reader only utility ─────────────────────────── */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Accessibility: respect user motion preferences ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* S */
@media (max-width: 430px) {
  body.index-page .title-section {
    margin-bottom: 1.05rem !important;
  }

  body.index-page .right-group .slogan-top {
    margin-top: 0.95rem !important;
  }
}

/* Final override: very small spacing between title and slogans */
/* S */
@media (max-width: 430px) {
  body.index-page .title-section {
    margin-bottom: 0.95rem !important;
  }

  body.index-page .right-group .slogan-top {
    margin-top: 0.85rem !important;
  }
}

/* ── Install Dialog ────────────────────────────────────────────── */
.install-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  padding-left: max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.6);
  animation: installFadeIn 0.25s ease-out;
}
.install-overlay--hidden { display: none; }
.install-dialog {
  position: relative;
  max-width: 340px;
  width: calc(100vw - 2.5rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100svh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 1.6rem 1.4rem 1.2rem;
  border-radius: 14px;
  background: rgba(20, 20, 30, 0.97);
  border: 1px solid var(--hh-accent-2);
  box-shadow: 0 4px 32px rgba(255, 215, 100, 0.18);
  font-family: var(--hh-font-body);
  text-align: center;
  animation: installScaleIn 0.3s ease-out;
}
.install-msg {
  color: var(--hh-accent-strong);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1.2rem;
}
.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.install-actions .hh-btn.small {
  margin-top: 0;
  min-width: 90px;
  min-height: 44px;
  touch-action: manipulation;
}
.install-close {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--hh-accent-strong);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
}
.install-close:hover { opacity: 1; }
.install-close:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.install-share-icon { font-size: 1.1em; vertical-align: middle; }
@keyframes installFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes installScaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Login trial promo placement ─────────────────────────────── */
/* XL */
@media (min-width: 1025px) {
  body.index-page .login-trial-promo--inside,
  body.index-page .login-trial-promo--mobile {
    display: none !important;
  }

  body.index-page .login-trial-promo--desktop {
    display: block !important;
    position: static !important;
    order: 4 !important;
    width: min(90%, 560px);
    max-width: 560px;
    margin: clamp(1rem, 4vh, 2.8rem) auto 0 !important;
    text-align: center;
  }

  body.index-page .login-social-links--desktop {
    display: inline-flex !important;
  }

  body.index-page .login-social-links--inside {
    display: none !important;
  }

  body.index-page .login-box .register-area--inside .trial-register-cta {
    margin-bottom: 0.35rem !important;
  }
}

/* L */
@media (min-width: 768px) and (max-width: 1024px) {
  body.index-page .login-trial-promo--inside,
  body.index-page .login-trial-promo--mobile {
    display: none !important;
  }

  body.index-page .login-trial-promo--desktop {
    display: block !important;
    position: static !important;
    order: 4 !important;
    width: min(90%, 420px);
    max-width: 420px;
    margin: clamp(0.8rem, 3vh, 2rem) auto 0 !important;
    text-align: center;
  }

  body.index-page .login-social-links--desktop {
    display: inline-flex !important;
  }

  body.index-page .login-social-links--inside {
    display: none !important;
  }
}

/* S+M */
@media (max-width: 767px) {
  body.index-page .login-trial-promo--desktop,
  body.index-page .login-trial-promo--inside {
    display: none !important;
  }

  #loginModal .modal-forgot-password-link {
    display: block;
    margin-top: 0.1rem;
    margin-bottom: 0.4rem;
  }

  body.index-page .mobile-action-bar .forgot-password-link {
    display: none !important;
  }

  body.index-page .login-social-links--desktop,
  body.index-page .login-social-links--inside {
    display: none !important;
  }

  body.index-page .mobile-action-bar .login-trial-promo--mobile {
    display: block !important;
    order: 1 !important;
    width: min(86vw, 320px) !important;
    min-width: 0 !important;
    max-width: 320px !important;
    margin: 0 auto 0.35rem !important;
    padding: 0 !important;
    font-size: 0.98rem !important;
    transform: translateY(-0.36rem) !important;
  }

  body.index-page .mobile-action-bar .login-open-wrapper {
    order: 2 !important;
    margin-top: 0.35rem !important;
  }

  body.index-page .mobile-action-bar .forgot-password-link {
    order: 3 !important;
  }

  body.index-page .mobile-action-bar .register-area {
    order: 4 !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.22rem !important;
  }

  body.index-page .title-section {
    margin-bottom: 0.95rem !important;
  }

  body.index-page .slogan-top {
    margin-top: 0.2rem !important;
  }

  body.index-page .slogan-top,
  body.index-page .slogan-bottom {
    animation: fadeInOnly 0.9s ease-out 0.2s forwards !important;
  }

  body.index-page .mobile-status-link {
    display: block !important;
    order: 6 !important;
    width: min(88vw, 320px) !important;
    margin: 0.65rem auto 0.25rem !important;
    font-size: 0.98rem !important;
  }

  body.index-page .login-social-links--mobile {
    display: inline-flex !important;
  }
}

/* S */
@media (max-width: 430px) {
  body.index-page .top-section {
    padding-top: 0.6rem !important;
    justify-content: flex-start !important;
  }

  body.index-page .mobile-action-bar .login-trial-promo--mobile {
    order: 1 !important;
    width: min(88vw, 280px) !important;
    font-size: 0.9rem !important;
    transform: translateY(-0.44rem) !important;
  }

  body.index-page .mobile-action-bar .login-open-wrapper {
    order: 2 !important;
    margin-top: 0.45rem !important;
  }

  body.index-page .mobile-action-bar .forgot-password-link {
    display: none !important;
  }

  body.index-page .mobile-action-bar .register-area {
    order: 4 !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.18rem !important;
  }

  body.index-page .title-section {
    order: 2 !important;
    margin-top: -0.15rem !important;
    margin-bottom: 0.55rem !important;
    transform: none !important;
  }

  body.index-page .title-section h1 {
    margin: 0 !important;
    max-width: 94vw !important;
    font-size: clamp(1.65rem, 8vw, 1.95rem) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  body.index-page .main-image {
    order: 1 !important;
    transform: none !important;
    margin-top: -6.7rem !important;
    margin-bottom: -3rem !important;
  }

  body.index-page .main-image img {
    transform: none !important;
  }

  body.index-page .right-group .slogan-top,
  body.index-page .right-group .slogan-bottom {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
  }

  body.index-page .right-group .slogan-top h2,
  body.index-page .right-group .slogan-bottom h2 {
    line-height: 1.05 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body.index-page .slogan-top {
    margin-top: 0.45rem !important;
  }

  body.index-page .slogan-bottom {
    margin-top: 0.1rem !important;
  }

  body.index-page .mobile-action-bar {
    margin-top: 1.2rem !important;
  }

  body.index-page .mobile-status-link {
    display: block !important;
    order: 6 !important;
    width: auto !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 2.25rem !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    z-index: 8 !important;
    line-height: 1 !important;
  }

  body.index-page .mobile-status-link .login-social-links--mobile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.index-page .mobile-status-link .login-social-links--mobile a,
  body.index-page .mobile-status-link .login-social-links--mobile img,
  body.index-page .mobile-status-link .login-social-label {
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.index-page .login-social-links a,
  body.index-page .login-social-links img {
    width: 15px;
    height: 15px;
  }
}

/* L+XL */
@media (min-width: 768px) {
  body.index-page .login-social-links--inside {
    display: inline-flex;
  }
}

/* L+XL */
@media (min-width: 768px) {
  body.index-page .login-box .register-area--inside .trial-register-cta {
    margin-bottom: 0.24rem !important;
    transform: translateY(1rem);
  }
}

/* S+M */
@media (max-width: 767px) {
  body.index-page .mobile-action-bar .forgot-password-link {
    margin-bottom: 0.05rem !important;
  }

  body.index-page .mobile-action-bar .register-area {
    margin-top: 0.05rem !important;
  }

  body.index-page .mobile-action-bar .register-area .trial-register-cta {
    margin-bottom: 0.38rem !important;
  }
}

/* S */
@media (max-width: 430px) {
  body.index-page .mobile-action-bar .register-area .trial-register-cta {
    margin-bottom: 0.34rem !important;
  }
}

body.index-page #loginBtn,
body.index-page #loginOpenBtn,
body.index-page #modalLoginBtn,
body.index-page #modalCloseBtn,
body.index-page .login-open-btn,
body.index-page .register-btn,
body.index-page .register-btn--inside,
body.index-page .register-area .register-btn,
body.index-page .mobile-action-bar .login-open-btn,
body.index-page .mobile-action-bar .register-btn,
body.index-page .hh-btn {
  width: auto !important;
  min-width: 160px !important;
  max-width: calc(100vw - 2rem) !important;
  padding-left: 1.1rem !important;
  padding-right: 1.1rem !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

/* S+M */
@media (max-width: 767px) {
  body.index-page #loginOpenBtn,
  body.index-page .login-open-btn,
  body.index-page .register-btn,
  body.index-page .mobile-action-bar .login-open-btn,
  body.index-page .mobile-action-bar .register-btn {
    min-width: 145px !important;
  }
}

/* ── Accessibility: respect user motion preferences ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Absolute final override: very small spacing between title and slogans */
/* S */
@media (max-width: 430px) {
  body.index-page .title-section {
    margin-bottom: 2rem !important;
  }

  body.index-page .right-group .slogan-top {
    margin-top: 1.45rem !important;
  }
}

/* Absolute final override: restore slogan animations on small + very small */
@keyframes hhSloganSlideLeft {
  from { transform: translateX(-96px); }
  to { transform: translateX(0); }
}

@keyframes hhSloganSlideRight {
  from { transform: translateX(96px); }
  to { transform: translateX(0); }
}

/* M */
@media (min-width: 431px) and (max-width: 767px) {
  body.index-page .slogan-top {
    opacity: 1 !important;
    animation: hhSloganSlideLeft 1.2s ease-out 0.2s both,
               hhSloganDriftRight 14s ease-in-out 1.4s infinite alternate !important;
  }

  body.index-page .slogan-bottom {
    opacity: 1 !important;
    margin-bottom: 3rem !important;
    animation: hhSloganSlideRight 1.2s ease-out 0.28s both,
               hhSloganDriftLeft 14s ease-in-out 1.48s infinite alternate !important;
  }
}

/* S */
@media (max-width: 430px) {
  body.index-page .slogan-top {
    opacity: 1 !important;
    animation: hhSloganSlideLeftVS 1.2s ease-out 0.2s both,
               hhSloganDriftRight 14s ease-in-out 1.4s infinite alternate !important;
  }

  body.index-page .slogan-bottom {
    opacity: 1 !important;
    animation: hhSloganSlideRightVS 1.2s ease-out 0.28s both,
               hhSloganDriftLeft 14s ease-in-out 1.48s infinite alternate !important;
  }
}

/* M */
@media (min-width: 431px) and (max-width: 767px) {
  body.index-page .mobile-action-bar .login-open-wrapper {
    margin-bottom: 0.1rem !important;
  }

  body.index-page .mobile-action-bar .register-area {
    margin-top: 0.15rem !important;
  }
}

/* S */
@media (max-width: 430px) {
  body.index-page .mobile-action-bar .login-open-wrapper {
    margin-bottom: 0.18rem !important;
  }

  body.index-page .mobile-action-bar .register-area {
    margin-top: 0.08rem !important;
  }
}

@keyframes hhSloganSlideLeftVS {
  from { transform: translateX(-96px); }
  to { transform: translateX(0); }
}

@keyframes hhSloganSlideRightVS {
  from { transform: translateX(96px); }
  to { transform: translateX(0); }
}

/* Login-page social links: desktop follows the promo; mobile has its own row. */
body.index-page .login-social-links--inside {
  display: none !important;
}

body.index-page .mobile-status-link {
  display: none !important;
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.9rem) !important;
  width: max-content !important;
  height: fit-content !important;
  min-height: 0 !important;
  max-width: calc(100vw - 1.5rem) !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  z-index: 8 !important;
  line-height: 1 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.index-page .mobile-status-link .login-social-links--mobile {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(0.8rem, 3.5vw, 1.6rem) !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.index-page .mobile-status-link .login-social-label {
  margin-right: 0 !important;
  transform: none !important;
}

/* S+M */
@media (max-width: 767px) {
  body.index-page .mobile-status-link .login-social-label {
    margin-left: 0 !important;
  }
}

/* L+XL */
@media (min-width: 768px) {
  body.index-page .login-social-links--desktop {
    display: inline-flex !important;
    position: static !important;
    order: 5 !important;
    margin: 0.75rem auto 0 !important;
  }

  body.index-page .login-social-links--desktop a,
  body.index-page .login-social-links--desktop img {
    width: 24px !important;
    height: 24px !important;
  }
}

/* XL */
@media (min-width: 1025px) {
  body.index-page .login-social-links--desktop {
    margin-top: clamp(3.5rem, 8vh, 6rem) !important;
  }
}

/* L */
@media (min-width: 768px) and (max-width: 1024px) {
  body.index-page .login-social-links--desktop {
    margin-top: clamp(3rem, 7vh, 5rem) !important;
  }
}

/* M */
@media (min-width: 431px) and (max-width: 767px) {
  body.index-page .mobile-status-link {
    display: block !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1.9rem) !important;
    transform: translateX(-50%) !important;
  }
}

/* S */
@media (max-width: 430px) {
  body.index-page .mobile-status-link {
    display: block !important;
  }

  body.index-page .mobile-status-link .login-social-links--mobile {
    gap: clamp(0.7rem, 4vw, 1rem) !important;
  }

  body.index-page .mobile-status-link .login-social-links--mobile a,
  body.index-page .mobile-status-link .login-social-links--mobile img {
    display: inline-flex !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* M */
@media (min-width: 431px) and (max-width: 767px) {
  body.index-page .title-section {
    margin-bottom: 4rem !important;
  }
}

/* Final override: raise only the 'Explore...' promo text on mobile breakpoints */
/* M */
@media (min-width: 431px) and (max-width: 767px) {
  body.index-page .mobile-action-bar .login-trial-promo--mobile {
    margin-top: 0.9rem !important;
    transform: translateY(-0.95rem) !important;
  }
}

/* S */
@media (max-width: 430px) {
  body.index-page .mobile-action-bar .login-trial-promo--mobile {
    margin-top: 0.8rem !important;
    transform: translateY(-1.1rem) !important;
  }
}

/* CSS-owned mobile spacing: no viewport measurements or runtime inline styles. */
/* M */
@media (min-width: 431px) and (max-width: 767px) {
  body.index-page .mobile-action-bar .register-area {
    margin-top: 0 !important;
    position: relative !important;
    top: clamp(1.2rem, 4.5vh, 2.2rem) !important;
  }
}

/* S */
@media (max-width: 430px) {
  body.index-page .page-wrapper {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 3.5rem) !important;
  }

  body.index-page .mobile-action-bar .register-area {
    margin-top: 0 !important;
    position: relative !important;
    top: clamp(0.8rem, 3.3vh, 1.45rem) !important;
  }
}

/* Absolute final override: reliable slogan motion after intro (mobile only) */
@keyframes hhSloganBreathLeft {
  0% { transform: translateX(0); }
  10% { transform: translateX(-9px); }
  25% { transform: translateX(-16px); }
  50% { transform: translateX(-28px); }
  75% { transform: translateX(-16px); }
  100% { transform: translateX(0); }
}

@keyframes hhSloganBreathRight {
  0% { transform: translateX(0); }
  10% { transform: translateX(9px); }
  25% { transform: translateX(16px); }
  50% { transform: translateX(28px); }
  75% { transform: translateX(16px); }
  100% { transform: translateX(0); }
}

@keyframes hhSloganSlideLeftFlow {
  from { transform: translateX(-96px); }
  to { transform: translateX(0); }
}

@keyframes hhSloganSlideRightFlow {
  from { transform: translateX(96px); }
  to { transform: translateX(0); }
}

/* M */
@media (min-width: 431px) and (max-width: 767px) {
  body.index-page .slogan-top {
    animation: hhSloganSlideLeftFlow 2.75s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both !important;
  }

  body.index-page .slogan-bottom {
    animation: hhSloganSlideRightFlow 2.75s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both !important;
  }

  body.index-page .slogan-top h2 {
    animation: hhSloganBreathRight 14s linear 2.77s infinite !important;
  }

  body.index-page .slogan-bottom h2 {
    animation: hhSloganBreathLeft 14s linear 2.85s infinite !important;
  }
}

/* S */
@media (max-width: 430px) {
  body.index-page .slogan-top {
    animation: hhSloganSlideLeftFlow 2.75s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both !important;
  }

  body.index-page .slogan-bottom {
    animation: hhSloganSlideRightFlow 2.75s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both !important;
  }

  body.index-page .slogan-top h2 {
    animation: hhSloganBreathRight 14s linear 2.77s infinite !important;
  }

  body.index-page .slogan-bottom h2 {
    animation: hhSloganBreathLeft 14s linear 2.85s infinite !important;
  }
}

/* M */
@media (min-width: 431px) and (max-width: 767px) {
  :root {
    font-size: 15px;
  }
}

/* S */
@media (max-width: 430px) {
  :root {
    font-size: 14px;
  }
}

/* S+M: resolution-balanced landing normalization */
@media (max-width: 767px) {
  body.index-page .title-section h1 {
    font-size: clamp(1.95rem, 4.3vw + 0.8rem, 2.3rem) !important;
    line-height: 1.02 !important;
  }

  body.index-page .slogan-top h2,
  body.index-page .slogan-bottom h2 {
    font-size: clamp(0.95rem, 1.45vw + 0.5rem, 1.08rem) !important;
    line-height: 1.18 !important;
  }

  body.index-page .mobile-action-bar .login-open-btn,
  body.index-page .mobile-action-bar .register-btn {
    width: clamp(118px, 36vw, 152px) !important;
    min-width: clamp(118px, 36vw, 152px) !important;
    height: clamp(39px, 10.3vw, 44px) !important;
    min-height: clamp(39px, 10.3vw, 44px) !important;
    font-size: clamp(0.96rem, 1.25vw + 0.42rem, 1.05rem) !important;
  }

  body.index-page .mobile-action-bar .register-area .trial-register-cta,
  body.index-page .login-box .register-area--inside .trial-register-cta {
    font-size: clamp(0.85rem, 0.95vw + 0.55rem, 0.94rem) !important;
    line-height: 1.2 !important;
  }

  body.index-page .mobile-action-bar .login-trial-promo--mobile {
    font-size: clamp(0.9rem, 1.05vw + 0.6rem, 0.98rem) !important;
    line-height: 1.34 !important;
  }

  body.index-page .mobile-status-link {
    font-size: clamp(0.9rem, 0.95vw + 0.6rem, 0.98rem) !important;
  }
}

/* XS: ultra-compact resolution band */
@media (max-width: 326px) {
  body.index-page .title-section h1 {
    font-size: 1.9rem !important;
  }

  body.index-page .mobile-action-bar .login-open-btn,
  body.index-page .mobile-action-bar .register-btn {
    width: 116px !important;
    min-width: 116px !important;
  }
}

/* ============================================================
   XS OVERRIDES — phones ≤360px  (5-tier XS band)
   Intentionally LAST so it wins over the ≤430 phone base above
   for ≤360px screens. Match the base selector; if the base rule
   uses !important, use !important here too (later source wins).
   ============================================================ */
@media (max-width: 360px) {
  body.index-page .mobile-action-bar .login-open-wrapper {
    margin-bottom: 0.22rem !important;
  }

  body.index-page .mobile-status-link {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.7rem) !important;
    max-width: calc(100vw - 1rem) !important;
  }

  body.index-page .mobile-action-bar .register-area {
    top: clamp(0.06rem, 0.78vh, 0.34rem) !important;
  }

  body.index-page .mobile-action-bar .register-area .trial-register-cta {
    margin-bottom: 0.52rem !important;
  }
}

/* ============================================================
   BOTANICAL GLASS — shared theme for login, registration,
   welcome and administration pages
   ============================================================ */
@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/great-vibes-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --hh-font-script: "Great Vibes", "Courgette", "Segoe Script", cursive;
  --hh-card-bg: rgba(3, 28, 22, 0.82);
  --hh-card-border: rgba(235, 194, 77, 0.3);
}

.login-box,
.register-box,
.member-box,
.body-modal-content,
.app-dialog {
  background:
    linear-gradient(145deg, rgba(8, 43, 34, 0.9), rgba(2, 18, 14, 0.92)) !important;
  border: 1px solid var(--hh-card-border) !important;
  border-radius: 18px !important;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.035) !important;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.login-box input,
.register-box input,
.member-box input,
.member-box select,
.member-box textarea,
.body-modal-content input,
.body-modal-content select,
.body-modal-content textarea {
  background: rgba(0, 17, 13, 0.72) !important;
  border: 1px solid rgba(235, 194, 77, 0.25) !important;
  color: #f5f0df !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.login-box input:focus,
.register-box input:focus,
.member-box input:focus,
.member-box select:focus,
.member-box textarea:focus,
.body-modal-content input:focus,
.body-modal-content select:focus,
.body-modal-content textarea:focus {
  border-color: rgba(246, 208, 91, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(241, 199, 77, 0.12), 0 0 20px rgba(241, 199, 77, 0.08) !important;
  outline: none;
}

.login-box button:not(.pw-toggle),
.register-box .hh-btn,
.member-box .hh-btn,
.register-btn,
.login-open-btn {
  border-radius: 11px !important;
  background: linear-gradient(135deg, #f7d35f, #e9ad31) !important;
  color: #102119 !important;
  -webkit-text-fill-color: #102119 !important;
  box-shadow: 0 10px 28px rgba(232, 177, 49, 0.22) !important;
}

.body-modal {
  background: rgba(0, 8, 6, 0.82) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.title-section h1,
.slogan-top h2,
.slogan-bottom h2 {
  color: #ffe08a !important;
  -webkit-text-fill-color: #ffe08a !important;
  text-shadow: 0 0 22px rgba(229, 174, 39, 0.2) !important;
}

table {
  border-color: rgba(235, 194, 77, 0.2) !important;
  background: rgba(2, 22, 17, 0.7);
}

th {
  background: rgba(7, 42, 33, 0.92) !important;
  color: #ffe08a !important;
}

td { border-color: rgba(235, 194, 77, 0.1) !important; }

/* ============================================================
   UI AUDIT — shared interaction, form and member-area system
   ============================================================ */
:where(a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid rgba(255, 224, 128, 0.62);
  outline-offset: 3px;
}

:where(button, input, select, textarea):disabled {
  cursor: not-allowed;
}

#sound_toggle_button {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
}

.login-box input,
.register-box input,
.body-modal-content input {
  min-height: 44px !important;
  padding-block: 0.6rem !important;
}

.pw-toggle,
.login-box .pw-toggle,
.register-box .pw-toggle,
.body-modal .pw-toggle {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
}

body.index-page .login-box .pw-wrap > .pw-toggle,
body .login-box .pw-wrap > .pw-toggle,
body .register-box .pw-wrap > .pw-toggle,
body .body-modal .pw-wrap > .pw-toggle {
  right: 0 !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 8px !important;
}

#loginBtn,
#forgotPasswordBtn,
#modalLoginBtn,
#modalCloseBtn,
.login-open-btn,
.register-btn,
.register-box .hh-btn {
  min-height: 44px !important;
}

.login-social-links a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 10px;
}

.forgot-password-link a,
.back-to-login-link a,
.member-home-link a,
#contactAdminBtn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Member area */
body.member-page {
  height: auto !important;
  min-height: 100%;
  overflow-y: visible !important;
}

body.member-page .page-wrapper {
  min-height: 100dvh;
  align-items: center !important;
  gap: 1rem;
  padding: clamp(1rem, 3vh, 2rem) max(1rem, 5vw) 2.5rem;
}

body.member-page .top-section {
  display: flex !important;
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  padding: 0 !important;
}

body.member-page .member-welcome {
  margin: 0 !important;
  color: #ffe08a !important;
  font-family: var(--hh-font-script);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 0 24px rgba(229, 174, 39, 0.22);
}

body.member-page .member-box {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  margin: 0 !important;
  padding: clamp(1.2rem, 3vw, 2rem) !important;
  border: 1px solid rgba(235, 194, 77, 0.3) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(8, 43, 34, 0.92), rgba(2, 18, 14, 0.94)) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38) !important;
  font-size: 1rem !important;
  line-height: 1.45 !important;
  text-align: center;
}

body.member-page .member-box > * {
  min-width: 0;
  margin: 0 !important;
}

body.member-page .member-box > .member-user,
body.member-page .member-email-display,
body.member-page .member-box > .subscription-request,
body.member-page #accessStatus,
body.member-page #contactFormSection,
body.member-page .member-box > p:has(#memberLogout),
body.member-page .member-home-link {
  grid-column: 1 / -1;
}

body.member-page .member-box > p.member-user:first-of-type {
  font-size: clamp(1.25rem, 3vw, 1.65rem) !important;
  font-weight: 650;
}

body.member-page .member-box > p.member-user:nth-of-type(2) {
  margin-top: -0.55rem !important;
  color: #f4eedf !important;
  font-size: 1.08rem !important;
  font-weight: 650;
}

body.member-page .member-box p,
body.member-page .member-box strong,
body.member-page .member-box span {
  color: #dce8df !important;
}

body.member-page .member-box .verification-status {
  padding: 0.75rem;
  border: 1px solid rgba(235, 194, 77, 0.14);
  border-radius: 10px;
  background: rgba(0, 17, 13, 0.45);
  color: #dce8df !important;
  font-size: 0.92rem !important;
}

body.member-page .member-box p.verification-status + p.verification-status,
body.member-page .member-box > p.member-user:nth-of-type(2) + p.verification-status {
  margin-top: 0 !important;
}

body.member-page .member-email-display {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.15rem 0;
  overflow-wrap: anywhere;
}

body.member-page .member-email-display strong {
  color: #ffe08a !important;
}

body.member-page #accessStatus:empty {
  display: none;
}

body.member-page .member-box form.verification-status {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 0.45rem 0.6rem !important;
  align-items: end !important;
  width: 100%;
  max-width: none !important;
  margin: 0.25rem 0 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
  text-align: left;
}

body.member-page #memberEmailForm label {
  grid-column: 1 / -1;
  color: #ffe08a !important;
  font-size: 0.88rem;
  font-weight: 700;
}

body.member-page #memberEmailInput,
body.member-page #contactMessage {
  width: 100%;
  min-height: 44px !important;
  padding: 0.65rem 0.8rem !important;
  border: 1px solid rgba(235, 194, 77, 0.28) !important;
  border-radius: 10px !important;
  background: rgba(0, 17, 13, 0.82) !important;
  color: #f4eedf !important;
  font: inherit;
}

body.member-page #memberEmailStatus {
  grid-column: 1 / -1 !important;
  min-height: 1.2em;
  color: #c6d4cb !important;
  font-size: 0.84rem !important;
}

body.member-page .subscribe-btn,
body.member-page #memberLogout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 150px !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 1rem !important;
  border: 1px solid rgba(246, 208, 91, 0.32) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #f7d35f, #e9ad31) !important;
  color: #102119 !important;
  -webkit-text-fill-color: #102119 !important;
  box-shadow: 0 9px 24px rgba(232, 177, 49, 0.17) !important;
  filter: none !important;
  font: inherit;
  font-size: 0.92rem !important;
  font-weight: 750;
  cursor: pointer;
}

body.member-page .subscription-request {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.member-page .subscription-request + .subscription-request,
body.member-page .member-box p.verification-status + p.subscription-request,
body.member-page .member-box p.subscription-request + div#contactFormSection {
  margin-top: 0 !important;
}

body.member-page .subscribe-btn:hover:not(:disabled),
body.member-page #memberLogout:hover {
  background: linear-gradient(135deg, #ffe287, #efbd45) !important;
  transform: translateY(-1px) !important;
}

body.member-page .subscribe-btn:disabled {
  opacity: 0.5 !important;
  box-shadow: none !important;
  animation: none !important;
}

body.member-page #contactFormSection {
  padding-top: 0.3rem;
}

body.member-page #contactAdminBtn,
body.member-page .member-home-link a {
  justify-content: center;
  color: #ffe08a;
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(255, 224, 138, 0.42);
  text-underline-offset: 0.25em;
  text-shadow: none;
}

body.member-page #contactFormWrapper {
  display: none;
  margin-top: 0.65rem;
}

body.member-page #contactMessage {
  min-height: 110px !important;
  resize: vertical;
}

body.member-page #contactSendBtn {
  margin-top: 0.6rem !important;
}

body.member-page #contactStatus {
  min-height: 1.2em;
  margin-top: 0.4rem !important;
  color: #c6d4cb !important;
  font-size: 0.84rem;
}

body.member-page .member-box > p:has(#memberLogout) {
  display: flex !important;
  justify-content: center !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
}

body.member-page .member-home-link {
  margin: -0.2rem 0 0 !important;
}

body.member-page .member-plans {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.35rem;
}

body.member-page .member-plans h2,
body.member-page .member-plans p {
  margin: 0 !important;
}

body.member-page .member-plans h2 {
  color: #ffe08a;
  font-size: 1.12rem;
}

body.member-page .member-plans > p {
  color: rgba(231, 238, 229, 0.75) !important;
  font-size: 0.88rem !important;
}

body.member-page .member-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

body.member-page .member-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(235, 194, 77, 0.2);
  border-radius: 12px;
  background: rgba(0, 20, 15, 0.55);
}

body.member-page .member-plan-card.featured {
  border-color: rgba(246, 208, 91, 0.5);
}

body.member-page .member-plan-card em {
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: #f2c95d;
  color: #102119;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 850;
}

body.member-page .member-plan-price {
  color: #fff3bd !important;
  font-size: 1.8rem !important;
  font-weight: 800;
}

body.member-page .member-plan-price small {
  font-size: 0.78rem;
  font-weight: 650;
}

body.member-page .member-plan-card .subscribe-btn {
  width: 100% !important;
  min-height: 48px !important;
  height: auto !important;
  margin-top: auto !important;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  /* Public account pages retain the landing/login leaf framing on portrait
     and tablet screens without stretching the artwork. */
  .page-wrapper.register-page::before,
  .page-wrapper.register-page::after,
  body.member-page .page-wrapper::before,
  body.member-page .page-wrapper::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 62%;
    z-index: 0;
    background-image: url("../images/botanical-glass-background.webp");
    background-size: auto 100%;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
  }

  .page-wrapper.register-page::before,
  body.member-page .page-wrapper::before {
    left: 0;
    background-position: left center;
    -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.68) 54%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.68) 54%, transparent 100%);
  }

  .page-wrapper.register-page::after,
  body.member-page .page-wrapper::after {
    right: 0;
    background-position: right center;
    -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.68) 54%, transparent 100%);
    mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.68) 54%, transparent 100%);
  }

  .page-wrapper.register-page > *,
  body.member-page .page-wrapper > * {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 767px) {
  /* Portrait crops expose less of the brighter leaf detail than desktop.
     Ease only the login-page veil so the same artwork remains visible. */
  body.index-page::before {
    background:
      radial-gradient(circle at 50% 12%, rgba(15, 92, 71, 0.14), transparent 38rem),
      rgba(0, 9, 7, 0.55);
  }

  body.member-page .page-wrapper {
    padding-top: 1rem;
  }

  body.member-page .member-box {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  body.member-page .member-box > * {
    grid-column: 1;
  }

  body.member-page .member-box form.verification-status {
    grid-template-columns: 1fr !important;
  }

  body.member-page .member-plan-grid {
    grid-template-columns: 1fr;
  }

  body.member-page #memberEmailSave,
  body.member-page .subscription-request .subscribe-btn {
    width: 100% !important;
  }
}

@media (max-width: 430px) {
  body.index-page #loginModal.body-modal {
    padding-top: 0.75rem !important;
  }

  body.index-page #loginModal .modal-button-group .hh-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  body.member-page .page-wrapper {
    padding-inline: 0 !important;
  }

  body.member-page .top-section {
    width: calc(100% - 3.5rem) !important;
    margin-inline: auto !important;
  }

  body.member-page .member-box {
    width: calc(100% - 1.5rem) !important;
    max-width: calc(100% - 1.5rem) !important;
    padding: 1rem !important;
  }

  body.member-page .member-welcome {
    padding-inline: 0 !important;
    font-size: clamp(2rem, 11vw, 2.7rem);
  }

  .login-social-links a {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
}

/* ============================================================
   LOGIN PAGE — deterministic responsive layout
   Keeps the landing content in normal flow so short screens,
   landscape phones and virtual keyboards cannot trap or overlap it.
   ============================================================ */
body.index-page.login-page {
  --hh-login-action-width: clamp(156px, 46vw, 190px);
  height: auto !important;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  background:
    linear-gradient(rgba(0, 9, 7, 0.34), rgba(0, 9, 7, 0.34)),
    url("../images/botanical-glass-background.webp") center / cover fixed no-repeat !important;
}

body.index-page.login-page::before {
  background:
    radial-gradient(circle at 50% 12%, rgba(15, 92, 71, 0.08), transparent 38rem),
    rgba(0, 9, 7, 0.12);
}

body.index-page.login-page .page-wrapper {
  width: 100%;
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  overflow: visible !important;
}

/* These controls belong to the document, rather than the viewport. This keeps
   them clear of the reset form after hash navigation or vertical scrolling. */
body.index-page.login-page > .lang-select,
body.index-page.login-page #sound_toggle_button {
  position: absolute !important;
}

body.index-page.login-page .login-landing-link {
  position: absolute;
  top: calc(0.78rem + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: var(--hh-z-lang-select);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 218, 107, 0.34);
  border-radius: 999px;
  color: #ffe08a;
  background: rgba(2, 24, 18, 0.7);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.index-page.login-page .login-landing-link svg {
  width: 18px;
  height: 18px;
}

body.index-page.login-page .login-landing-link:hover,
body.index-page.login-page .login-landing-link:focus-visible {
  border-color: rgba(255, 218, 107, 0.72);
  background: rgba(8, 48, 37, 0.88);
}

body.index-page.login-page.login-modal-open .login-landing-link {
  visibility: hidden;
}

body.index-page.login-page .login-page-footer {
  display: contents;
}

body.index-page.login-page .login-desktop-footer {
  display: none;
}

@keyframes hhLoginSloganFromLeft {
  from { opacity: 0; transform: translate3d(-3rem, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hhLoginSloganFromRight {
  from { opacity: 0; transform: translate3d(3rem, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hhLoginSloganDriftRight {
  0%, 100% { transform: translate3d(-28px, 0, 0); }
  50% { transform: translate3d(28px, 0, 0); }
}

@keyframes hhLoginSloganDriftLeft {
  0%, 100% { transform: translate3d(28px, 0, 0); }
  50% { transform: translate3d(-28px, 0, 0); }
}

body.index-page.login-page .slogan-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  order: 2;
  width: 100%;
  min-width: 0;
}

body.index-page.login-page .slogan-line .slogan-top,
body.index-page.login-page .slogan-line .slogan-bottom {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
}

body.index-page.login-page .slogan-line .slogan-top {
  animation:
    hhLoginSloganFromLeft 680ms cubic-bezier(0.22, 0.75, 0.25, 1) 80ms both,
    hhLoginSloganDriftRight 9s ease-in-out 850ms infinite !important;
}

body.index-page.login-page .slogan-line .slogan-bottom {
  animation:
    hhLoginSloganFromRight 680ms cubic-bezier(0.22, 0.75, 0.25, 1) 80ms both,
    hhLoginSloganDriftLeft 9s ease-in-out 850ms infinite !important;
}

@keyframes hhLoginSloganDriftRightWide {
  0%, 100% { transform: translate3d(-58px, 0, 0); }
  50% { transform: translate3d(58px, 0, 0); }
}

@keyframes hhLoginSloganDriftLeftWide {
  0%, 100% { transform: translate3d(58px, 0, 0); }
  50% { transform: translate3d(-58px, 0, 0); }
}

body.index-page.login-page .slogan-line h2 {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
  text-align: center !important;
  font-size: clamp(1.05rem, 2.2vw, 1.75rem) !important;
  line-height: 1.15 !important;
  font-style: normal !important;
  animation: none !important;
}

body.index-page.login-page.login-modal-open {
  height: 100dvh !important;
  overflow: hidden !important;
}

body.index-page.login-page #loginModal.body-modal.open {
  inset: var(--hh-login-visual-top, 0px) 0 auto !important;
  height: var(--hh-login-visual-height, 100dvh) !important;
  align-items: flex-start !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scroll-padding-block: 0.75rem 5rem;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem
    max(0.5rem, env(safe-area-inset-bottom, 0px)) !important;
}

body.index-page.login-page #loginModal .body-modal-content {
  flex: 0 0 auto;
  width: min(360px, 100%) !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 0 auto !important;
  overflow-x: hidden;
  overflow-y: visible;
}

body.index-page.login-page #loginModal .modal-button-group {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 0.55rem 0 0.1rem;
  background: linear-gradient(to bottom, rgba(3, 28, 22, 0), rgba(3, 28, 22, 0.98) 32%);
}

@media (max-height: 500px) {
  body.index-page.login-page #loginModal .body-modal-content {
    padding: 0.75rem !important;
  }

  body.index-page.login-page #modalLoginTitle {
    margin: 0 0 0.55rem !important;
  }

  body.index-page.login-page #loginModal label {
    display: block;
    margin: 0.2rem 0 0.15rem;
  }

  body.index-page.login-page #loginModal input {
    margin-bottom: 0.35rem !important;
  }

  body.index-page.login-page #loginModal .pw-wrap {
    margin-bottom: 0.35rem !important;
  }

  body.index-page.login-page #loginModal .modal-forgot-password-link {
    margin: 0.25rem 0 !important;
  }

  body.index-page.login-page #loginModal .modal-button-group {
    margin-top: 0.45rem !important;
  }
}

@media (max-height: 360px) {
  body.index-page.login-page #loginModal.body-modal.open {
    padding-block: 0.35rem !important;
  }

  body.index-page.login-page #loginModal .body-modal-content {
    padding: 0.5rem 0.75rem !important;
  }

  body.index-page.login-page #modalLoginTitle {
    margin-bottom: 0.2rem !important;
    font-size: 1rem !important;
  }

  body.index-page.login-page #loginModal label {
    margin: 0.05rem 0 !important;
    font-size: 0.82rem;
    line-height: 1.1;
  }

  body.index-page.login-page #loginModal input {
    min-height: 40px !important;
    height: 40px !important;
    margin-bottom: 0.15rem !important;
  }

  body.index-page.login-page #loginModal .pw-wrap {
    margin-bottom: 0.15rem !important;
  }

  body.index-page.login-page #loginModal .modal-forgot-password-link,
  body.index-page.login-page #loginModal .modal-forgot-password-link a {
    min-height: 28px !important;
    margin: 0 !important;
    font-size: 0.8rem;
  }

  body.index-page.login-page #loginModal .modal-button-group {
    gap: 0.35rem;
    margin-top: 0.15rem !important;
    padding-top: 0.2rem;
  }

  body.index-page.login-page #loginModal .modal-button-group .hh-btn {
    min-height: 40px !important;
    height: 40px !important;
  }
}

/* Phones: one layout system with three stable vertical zones — controls,
   content and footer. Height bands only change scale, not composition. */
@media (max-width: 767px) {
  body.index-page.login-page {
    --hh-login-action-width: clamp(154px, 42vw, 180px);
    --hh-login-action-height: 42px;
    --hh-login-lotus-height: clamp(10rem, 22dvh, 11.5rem);
    --hh-login-title-size: clamp(2.05rem, 8vw, 2.35rem);
    --hh-login-shell-top: 3.25rem;
    --hh-login-title-gap: 3.5rem;
    --hh-login-action-gap: 4.95rem;
    --hh-login-copy-gap: 2.2rem;
    --hh-login-register-gap: 2.75rem;
    display: block;
    background-size: auto, cover !important;
    background-position: center, center !important;
  }

  /* Same proportional leaf treatment as the landing page. */
  body.index-page.login-page::before,
  body.index-page.login-page::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 62%;
    z-index: var(--hh-z-overlay);
    background-image: url("../images/botanical-glass-background.webp");
    background-size: auto 100%;
    background-repeat: no-repeat;
    opacity: 0.46;
    pointer-events: none;
  }

  body.index-page.login-page::before {
    right: auto;
    left: 0;
    background-position: left center;
    -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.72) 55%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.72) 55%, transparent 100%);
  }

  body.index-page.login-page::after {
    right: 0;
    left: auto;
    background-position: right center;
    -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.72) 55%, transparent 100%);
    mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.72) 55%, transparent 100%);
  }

  body.index-page.login-page .page-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: stretch !important;
    justify-content: stretch !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: calc(var(--hh-login-shell-top) + env(safe-area-inset-top, 0px)) 0.85rem
      max(0.35rem, env(safe-area-inset-bottom, 0px)) !important;
  }

  body.index-page.login-page .top-section {
    grid-row: 1;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: start !important;
    justify-items: center !important;
    gap: 0 !important;
    width: min(100%, 28rem) !important;
    max-width: 28rem !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  body.index-page.login-page .left-group,
  body.index-page.login-page .right-group {
    display: contents !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.index-page.login-page .brand-lockup {
    order: 1 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
  }

  body.index-page.login-page .main-image {
    display: flex !important;
    width: 100% !important;
    height: var(--hh-login-lotus-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  body.index-page.login-page .main-image picture {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
  }

  body.index-page.login-page .main-image img {
    width: auto !important;
    max-width: min(76vw, 20rem) !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transform: scale(1.08) !important;
    transform-origin: center !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: brightness(0.92) contrast(0.96) saturate(1.02)
      drop-shadow(0 9px 18px rgba(0, 0, 0, 0.34))
      drop-shadow(0 0 13px rgba(224, 171, 47, 0.16)) !important;
  }

  body.index-page.login-page .title-section {
    width: 100% !important;
    margin: -1.35rem 0 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  body.index-page.login-page .title-section h1 {
    margin: 0 !important;
    font-size: var(--hh-login-title-size) !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  body.index-page.login-page .slogan-line {
    order: 2 !important;
    gap: 0.22rem;
    margin: var(--hh-login-title-gap) 0 0 !important;
  }

  body.index-page.login-page .slogan-line h2 {
    font-size: clamp(1.05rem, 4.2vw, 1.2rem) !important;
    line-height: 1.12 !important;
  }

  body.index-page.login-page .mobile-action-bar {
    order: 3 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: var(--hh-login-action-gap) 0 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    transform: none !important;
  }

  body.index-page.login-page .mobile-action-bar > * {
    position: static !important;
    top: auto !important;
    transform: none !important;
  }

  body.index-page.login-page .mobile-action-bar .login-open-wrapper {
    order: 1 !important;
    width: var(--hh-login-action-width) !important;
    min-width: var(--hh-login-action-width) !important;
    max-width: var(--hh-login-action-width) !important;
    margin: 0 auto !important;
  }

  body.index-page.login-page .mobile-action-bar .login-trial-promo--mobile {
    order: 2 !important;
    width: min(calc(100vw - 2rem), 320px) !important;
    min-width: 0 !important;
    max-width: 320px !important;
    margin: var(--hh-login-copy-gap) auto 0 !important;
    padding: 0 !important;
    font-size: clamp(0.88rem, 2.8vw, 0.96rem) !important;
    line-height: 1.3 !important;
  }

  body.index-page.login-page .mobile-action-bar .register-area {
    order: 3 !important;
    width: var(--hh-login-action-width) !important;
    min-width: var(--hh-login-action-width) !important;
    max-width: var(--hh-login-action-width) !important;
    margin: var(--hh-login-register-gap) auto 0 !important;
  }

  body.index-page.login-page .mobile-action-bar #loginOpenBtn,
  body.index-page.login-page .mobile-action-bar .register-area > .register-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--hh-login-action-width) !important;
    min-width: var(--hh-login-action-width) !important;
    max-width: var(--hh-login-action-width) !important;
    height: var(--hh-login-action-height) !important;
    min-height: var(--hh-login-action-height) !important;
    max-height: var(--hh-login-action-height) !important;
    margin: 0 !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    flex: none !important;
    font-size: 1rem !important;
  }

  body.index-page.login-page .mobile-action-bar #loginOpenBtn {
    border-color: rgba(210, 178, 69, 0.72) !important;
    background: linear-gradient(135deg, #0b4b36, #03281e) !important;
    color: #fff3c2 !important;
    -webkit-text-fill-color: #fff3c2 !important;
    box-shadow:
      0 0 0 1px rgba(255, 218, 107, 0.18),
      0 0 8px rgba(255, 218, 107, 0.62),
      0 0 18px rgba(232, 177, 49, 0.32),
      0 8px 18px rgba(0, 19, 13, 0.42) !important;
  }

  body.index-page.login-page .mobile-action-bar #loginOpenBtn:hover,
  body.index-page.login-page .mobile-action-bar #loginOpenBtn:focus-visible {
    background: linear-gradient(135deg, #126448, #073728) !important;
    box-shadow:
      0 0 0 1px rgba(255, 224, 128, 0.24),
      0 0 10px rgba(255, 224, 128, 0.72),
      0 0 22px rgba(232, 177, 49, 0.38),
      0 9px 20px rgba(0, 19, 13, 0.48) !important;
  }

  body.index-page.login-page .mobile-action-bar .register-area > .register-btn {
    border-color: rgba(74, 176, 122, 0.92) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(48, 113, 214, 0.08)) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 10px 26px rgba(11, 82, 57, 0.32) !important;
  }

  body.index-page.login-page .mobile-action-bar .register-area > .register-btn:hover,
  body.index-page.login-page .mobile-action-bar .register-area > .register-btn:focus-visible {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(57, 127, 235, 0.15)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 12px 30px rgba(17, 108, 74, 0.38) !important;
  }

  body.index-page.login-page .login-page-footer {
    grid-row: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-self: end;
    width: 100%;
    margin: 0;
  }

  body.index-page.login-page .login-landing-link {
    position: static;
    width: max-content;
    min-height: 38px;
    margin: 0 auto;
    padding: 0.3rem 0.7rem;
    transform: none;
  }

  body.index-page.login-page .mobile-status-link {
    display: block !important;
    position: static !important;
    width: max-content !important;
    max-width: calc(100% - 1rem) !important;
    margin: 0.4rem auto 0 !important;
    transform: none !important;
  }

  body.index-page.login-page .forgot-password-section {
    order: 5;
    width: min(100%, 24rem);
    margin: 0 auto;
    padding: 0 !important;
  }

  body.index-page.login-page.forgot-password-open .mobile-action-bar {
    display: none !important;
  }
}

/* Compact portrait phones keep the same zones with a smaller scale. */
@media (max-width: 767px) and (max-height: 640px) and (orientation: portrait) {
  body.index-page.login-page {
    --hh-login-action-width: clamp(150px, 44vw, 170px);
    --hh-login-action-height: 40px;
    --hh-login-lotus-height: 8.25rem;
    --hh-login-title-size: 1.95rem;
    --hh-login-shell-top: 2.25rem;
    --hh-login-title-gap: 2.4rem;
    --hh-login-action-gap: 3.5rem;
    --hh-login-copy-gap: 1.6rem;
    --hh-login-register-gap: 2rem;
  }

  body.index-page.login-page .login-landing-link {
    min-height: 36px;
  }

  body.index-page.login-page .mobile-status-link {
    margin-top: 0.2rem !important;
  }
}

/* The smallest-height phones reduce only the scale, never the zone order. */
@media (max-width: 767px) and (max-height: 520px) and (orientation: portrait) {
  body.index-page.login-page {
    --hh-login-lotus-height: 6.5rem;
    --hh-login-shell-top: 1.5rem;
    --hh-login-title-gap: 1.8rem;
    --hh-login-action-gap: 2.55rem;
    --hh-login-copy-gap: 1.2rem;
    --hh-login-register-gap: 1.6rem;
  }

  body.index-page.login-page .slogan-line h2 {
    font-size: 1rem !important;
  }
}

/* Portrait composition: the register button is centred in the complete free
   region between the promotional copy and the Home/footer block. */
@media (max-width: 767px) and (orientation: portrait) {
  body.index-page.login-page .page-wrapper {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  body.index-page.login-page .top-section {
    grid-row: 1;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-self: stretch !important;
    height: 100%;
  }

  body.index-page.login-page .brand-lockup {
    grid-row: 1;
  }

  body.index-page.login-page .slogan-line {
    grid-row: 2;
  }

  body.index-page.login-page .mobile-action-bar {
    grid-row: 3;
    grid-template-rows: auto auto minmax(var(--hh-login-action-height), 1fr);
    align-self: stretch !important;
  }

  body.index-page.login-page .mobile-action-bar .register-area {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: var(--hh-login-action-height) !important;
    min-height: var(--hh-login-action-height) !important;
    align-self: center !important;
    margin-top: 0 !important;
  }

  body.index-page.login-page .login-page-footer {
    grid-row: 2;
  }
}

/* Short phone landscapes use two columns and remain vertically scrollable. */
@media (min-width: 480px) and (max-width: 767px) and (orientation: landscape) and (max-height: 500px) {
  body.index-page.login-page .page-wrapper {
    min-height: 100% !important;
    padding-top: calc(4.25rem + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 0 !important;
  }

  body.index-page.login-page .top-section {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.9fr) !important;
    grid-template-rows: auto auto auto auto !important;
    column-gap: 1.2rem !important;
    row-gap: 0.15rem !important;
    max-width: 44rem !important;
    align-items: center !important;
  }

  body.index-page.login-page .main-image {
    grid-column: 1;
    grid-row: 1;
    height: clamp(7.5rem, 42dvh, 10rem) !important;
  }

  body.index-page.login-page .title-section {
    grid-column: 1;
    grid-row: 2;
    margin: 0 !important;
  }

  body.index-page.login-page .title-section h1 {
    font-size: clamp(1.45rem, 4.6vw, 1.9rem) !important;
  }

  body.index-page.login-page .slogan-line {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0 !important;
  }

  body.index-page.login-page .mobile-action-bar {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center !important;
    margin: 0 !important;
  }

  body.index-page.login-page .mobile-action-bar .login-trial-promo--mobile {
    width: 100% !important;
  }

  body.index-page.login-page.forgot-password-open .forgot-password-section {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    width: 100%;
  }
}

/* Tablets and desktops */
@media (min-width: 768px) {
  body.index-page.login-page .slogan-line .slogan-top {
    animation:
      hhLoginSloganFromLeft 680ms cubic-bezier(0.22, 0.75, 0.25, 1) 80ms both,
      hhLoginSloganDriftRightWide 11s ease-in-out 850ms infinite !important;
  }

  body.index-page.login-page .slogan-line .slogan-bottom {
    animation:
      hhLoginSloganFromRight 680ms cubic-bezier(0.22, 0.75, 0.25, 1) 80ms both,
      hhLoginSloganDriftLeftWide 11s ease-in-out 850ms infinite !important;
  }

  body.index-page.login-page .page-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: max(clamp(4.25rem, 8vh, 5.5rem), calc(1rem + env(safe-area-inset-top, 0px)))
      clamp(1.5rem, 5vw, 5rem) 2.25rem !important;
  }

  body.index-page.login-page .top-section {
    grid-row: 1;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem) !important;
    gap: clamp(2rem, 5vw, 5rem) !important;
    width: min(100%, 75rem) !important;
    margin: 0 auto !important;
    align-items: start !important;
  }

  body.index-page.login-page .right-group {
    grid-column: 1;
    grid-row: 1;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    align-self: start !important;
  }

  body.index-page.login-page .brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: clamp(0.15rem, 0.7vh, 0.45rem);
  }

  body.index-page.login-page .brand-lockup .main-image {
    order: 1 !important;
  }

  body.index-page.login-page .brand-lockup .title-section {
    order: 2 !important;
  }

  body.index-page.login-page .left-group {
    grid-column: 2;
    grid-row: 1;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(3rem, 9vh, 6.25rem) 0 0 !important;
    gap: 1rem !important;
    align-self: start !important;
  }

  body.index-page.login-page .title-section {
    width: 100% !important;
    margin: -2.15rem 0 4rem !important;
    padding: 0 !important;
    transform: none !important;
  }

  body.index-page.login-page .title-section h1 {
    font-size: clamp(2.7rem, 4.5vw, 3.55rem) !important;
    line-height: 1.02 !important;
  }

  body.index-page.login-page .login-section {
    width: 100% !important;
    margin: 0 !important;
  }

  body.index-page.login-page .login-section > .login-box {
    width: min(100%, 23rem) !important;
    max-width: 23rem !important;
    margin: 0 auto !important;
  }

  body.index-page.login-page .main-image {
    width: 100% !important;
    height: clamp(12rem, 34dvh, 22rem) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  body.index-page.login-page .main-image picture {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
  }

  body.index-page.login-page .main-image img {
    width: auto !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transform: scale(1.14) !important;
    transform-origin: center !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: brightness(0.92) contrast(0.96) saturate(1.02)
      drop-shadow(0 9px 18px rgba(0, 0, 0, 0.34))
      drop-shadow(0 0 13px rgba(224, 171, 47, 0.16)) !important;
  }

  body.index-page.login-page .right-group .slogan-line .slogan-top,
  body.index-page.login-page .right-group .slogan-line .slogan-bottom {
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.index-page.login-page .slogan-line {
    margin: 0 0 1.8rem !important;
  }

  body.index-page.login-page .slogan-line h2 {
    font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
    line-height: 1.18 !important;
  }

  body.index-page.login-page #loginBtn,
  body.index-page.login-page .register-btn--inside {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }

  body.index-page.login-page .register-btn--inside {
    border-color: rgba(74, 176, 122, 0.92) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(48, 113, 214, 0.08)) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 10px 26px rgba(11, 82, 57, 0.32) !important;
  }

  body.index-page.login-page .register-btn--inside:hover,
  body.index-page.login-page .register-btn--inside:focus-visible {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(57, 127, 235, 0.15)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 12px 30px rgba(17, 108, 74, 0.38) !important;
  }

  body.index-page.login-page .login-trial-promo--desktop {
    width: min(calc(100vw - 3rem), 44rem) !important;
    max-width: 44rem !important;
    margin: 0 auto !important;
  }

  body.index-page.login-page .login-social-links--desktop {
    width: max-content !important;
    max-width: 100% !important;
    margin: clamp(0.7rem, 1.7vh, 1.15rem) auto 0 !important;
  }

  body.index-page.login-page .login-page-footer {
    grid-row: 2;
    display: block !important;
    width: 100%;
    align-self: end;
  }

  body.index-page.login-page .login-desktop-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
}

@media (min-width: 768px) and (max-height: 700px) {
  body.index-page.login-page .page-wrapper {
    align-items: flex-start !important;
    padding-top: 4rem !important;
    padding-bottom: 1.65rem !important;
  }

  body.index-page.login-page .top-section {
    align-items: start !important;
  }

  body.index-page.login-page .left-group {
    gap: 0.55rem !important;
    padding-top: 2.25rem !important;
  }

  body.index-page.login-page .title-section h1 {
    font-size: 2.25rem !important;
  }

  body.index-page.login-page .title-section {
    margin-bottom: 3.55rem !important;
  }

  body.index-page.login-page .login-section > .login-box {
    padding: 1.05rem 1.25rem !important;
  }

  body.index-page.login-page .login-box h2 {
    margin-bottom: 1rem !important;
  }

  body.index-page.login-page .main-image {
    height: clamp(10rem, 38dvh, 15rem) !important;
  }

  body.index-page.login-page .login-social-links--desktop {
    margin-top: 0.6rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.index-page.login-page .slogan-line .slogan-top,
  body.index-page.login-page .slogan-line .slogan-bottom {
    animation: none !important;
  }
}

/* Keyboard-safe authentication modal. It remains at the visible top edge on
   every viewport; compact spacing preserves fields and actions when the mobile
   keyboard is open, without reducing their touch targets. */
body.index-page.login-page #loginModal.body-modal.open {
  align-items: flex-start !important;
  padding: max(0.4rem, env(safe-area-inset-top, 0px)) 0.5rem
    max(0.3rem, env(safe-area-inset-bottom, 0px)) !important;
  scroll-padding-block: 0.4rem 4rem;
}

body.index-page.login-page #loginModal .body-modal-content {
  width: min(340px, 100%) !important;
  padding: 0.8rem 0.9rem !important;
}

body.index-page.login-page #modalLoginTitle {
  margin: 0 0 0.5rem !important;
  line-height: 1.15;
}

body.index-page.login-page #modalLoginForm {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

body.index-page.login-page #loginModal label {
  margin: 0.12rem 0 0.08rem !important;
  line-height: 1.15;
}

body.index-page.login-page #loginModal input {
  min-height: 42px !important;
  height: 42px !important;
  margin-bottom: 0.18rem !important;
  padding-block: 0.42rem !important;
}

body.index-page.login-page #loginModal .pw-wrap {
  margin-bottom: 0.18rem !important;
}

body.index-page.login-page #loginModal .modal-forgot-password-link,
body.index-page.login-page #loginModal .modal-forgot-password-link a {
  min-height: 34px !important;
  margin: 0 !important;
}

body.index-page.login-page #loginModal .modal-button-group {
  gap: 0.4rem;
  margin-top: 0.25rem !important;
  padding: 0.25rem 0 0 !important;
}

body.index-page.login-page #loginModal .modal-button-group .hh-btn {
  min-height: 42px !important;
  height: 42px !important;
  margin-top: 0 !important;
}

@media (max-height: 500px) {
  body.index-page.login-page #loginModal.body-modal.open {
    padding-block: max(0.2rem, env(safe-area-inset-top, 0px)) 0.2rem !important;
  }

  body.index-page.login-page #loginModal .body-modal-content {
    padding: 0.55rem 0.75rem !important;
  }

  body.index-page.login-page #modalLoginTitle {
    margin-bottom: 0.25rem !important;
  }
}

/* Some browser compositors clip the tall capitals of Great Vibes to the
   transformed slogan wrapper's paint bounds. Keep this after all responsive
   overrides and enlarge that bound without changing the composition spacing. */
body.index-page.login-page .right-group .slogan-line .slogan-top,
body.index-page.login-page .right-group .slogan-line .slogan-bottom {
  padding-block: 0.18em 0.08em !important;
  margin-block: -0.18em -0.08em !important;
  overflow: visible !important;
}

/* Keep the native recovery dialog independent from the older inline-section
   sizing rules that appear in the responsive login layout above. */
body.index-page.login-page #forgot-password.forgot-password-dialog {
  inset: max(0.75rem, env(safe-area-inset-top, 0px)) 0 auto !important;
  width: min(calc(100% - 1.5rem), 34rem) !important;
  max-width: 34rem !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.index-page.login-page #forgot-password.forgot-password-dialog > .login-box {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

@media (max-width: 480px) {
  body.index-page.login-page #forgot-password.forgot-password-dialog {
    inset-block-start: max(0.5rem, env(safe-area-inset-top, 0px)) !important;
    width: calc(100% - 1rem) !important;
  }
}

/* ============================================================
   Registration page — branded, focused account-creation flow
   ============================================================ */
.register-page .left-group {
  width: min(100%, 40.625rem);
  gap: 0.9rem !important;
}

.register-page .register-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  color: #ffd461;
  text-decoration: none;
  filter: drop-shadow(0 0 16px rgba(239, 183, 43, 0.16));
}

.register-page .register-brand img {
  width: clamp(3.75rem, 7vw, 4.75rem);
  height: auto;
  display: block;
}

.register-page .register-brand span {
  font-family: var(--hh-font-script);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1;
}

.register-page .title-section {
  gap: 0.38rem !important;
  margin-bottom: 0.35rem !important;
}

.register-page .title-section h1 {
  order: 1 !important;
}

.register-page .register-byline {
  order: 2;
  max-width: 26rem;
  margin: 0;
  color: rgba(239, 239, 220, 0.82);
  font: 500 0.96rem/1.4 var(--hh-font-body);
  text-shadow: none;
}

.register-page .register-trial-badge {
  order: 3;
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  margin-top: 0.15rem;
  padding: 0.22rem 0.72rem;
  border: 1px solid rgba(241, 199, 77, 0.38);
  border-radius: 999px;
  background: rgba(241, 199, 77, 0.1);
  color: #ffe28c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: none;
}

.register-page .register-box {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(39, 113, 88, 0.15), transparent 18rem),
    rgba(3, 28, 22, 0.88) !important;
  border-color: rgba(235, 194, 77, 0.34) !important;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.34), 0 0 34px rgba(241, 199, 77, 0.06) !important;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.register-page .register-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 14%;
  left: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 128, 0.72), transparent);
  pointer-events: none;
}

@media (max-width: 430px) {
  .register-page .left-group {
    gap: 0.65rem !important;
  }

  .register-page .register-box {
    width: calc(100% - 1.5rem) !important;
    max-width: 22.5rem !important;
    margin-inline: auto !important;
  }

  .register-page .register-brand img {
    width: 3.5rem;
  }

  .register-page .register-brand span {
    font-size: 1.05rem;
  }

  .register-page .register-byline {
    font-size: 0.86rem;
  }

  .register-page .register-trial-badge {
    min-height: 1.55rem;
    font-size: 0.65rem;
  }
}
