:root {
  --hitpa-dark: #4c2d33;
  --hitpa-cream: #F2E7DF;
  --hitpa-gold: #B38B45;
  --hitpa-dark-92: rgba(76, 45, 51, .92);
  --hitpa-dark-72: rgba(76, 45, 51, .72);
  --hitpa-dark-28: rgba(76, 45, 51, .28);
  --hitpa-dark-15: rgba(76, 45, 51, .15);
  --hitpa-dark-08: rgba(76, 45, 51, .08);
  --hitpa-gold-28: rgba(179, 139, 69, .28);
  --hitpa-gold-14: rgba(179, 139, 69, .14);
  --hitpa-shadow: 0 24px 70px rgba(76, 45, 51, .18);
  --hitpa-radius-xl: 28px;
  --hitpa-radius-lg: 20px;
  --hitpa-radius-md: 14px;
}

.hitpa-shell,
.hitpa-modal,
.hitpa-toast-region,
.hitpa-header-button {
  direction: rtl;
  color: var(--hitpa-dark);
  font-family: Heebo, Arial, sans-serif;
}

.hitpa-shell *,
.hitpa-modal *,
.hitpa-toast-region *,
.hitpa-header-button * { box-sizing: border-box; }

.hitpa-icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.hitpa-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.hitpa-shell {
  width: min(1240px, calc(100% - 28px));
  margin: clamp(18px, 4vw, 52px) auto;
  min-height: 420px;
}

.hitpa-shell h1,
.hitpa-shell h2,
.hitpa-shell h3,
.hitpa-modal h2 {
  color: var(--hitpa-dark);
  font-family: "Heebo", Arial, sans-serif;
}

.hitpa-loading-view {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--hitpa-gold-28);
  border-radius: var(--hitpa-radius-xl);
  background: var(--hitpa-cream);
  box-shadow: var(--hitpa-shadow);
  text-align: center;
}
.hitpa-loading-view strong { font-size: 21px; }
.hitpa-loading-view span { color: var(--hitpa-dark-72); }
.hitpa-loading-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hitpa-gold);
  border-radius: 50%;
  color: var(--hitpa-gold);
  animation: hitpa-float 1.8s ease-in-out infinite;
}
.hitpa-loading-mark .hitpa-icon { width: 34px; height: 34px; }

.hitpa-guest-view,
.hitpa-member-view {
  animation: hitpa-enter .45s ease both;
}

.hitpa-guest-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  min-height: 610px;
  padding: clamp(34px, 6vw, 78px);
  border: 1px solid var(--hitpa-gold);
  border-radius: var(--hitpa-radius-xl);
  background: var(--hitpa-cream);
  box-shadow: var(--hitpa-shadow);
}
.hitpa-guest-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--hitpa-gold);
}
.hitpa-guest-copy { position: relative; z-index: 2; }
.hitpa-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--hitpa-gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}
.hitpa-guest-copy h1 {
  max-width: 720px;
  margin: 12px 0 18px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.hitpa-guest-copy > p {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--hitpa-dark-72);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}
.hitpa-guest-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hitpa-privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px !important;
  font-size: 13px !important;
}

.hitpa-guest-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.hitpa-orbit {
  position: absolute;
  border: 1px solid var(--hitpa-gold-28);
  border-radius: 50%;
  animation: hitpa-spin 24s linear infinite;
}
.hitpa-orbit-one { width: 340px; height: 340px; }
.hitpa-orbit-two { width: 250px; height: 250px; animation-direction: reverse; animation-duration: 18s; }
.hitpa-orbit-one::before,
.hitpa-orbit-two::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--hitpa-gold);
}
.hitpa-history-seal {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid var(--hitpa-gold);
  border-radius: 50%;
  background: var(--hitpa-dark);
  color: var(--hitpa-cream);
  box-shadow: 0 18px 50px var(--hitpa-dark-28);
}
.hitpa-history-seal .hitpa-icon { width: 48px; height: 48px; color: var(--hitpa-gold); }
.hitpa-history-seal span { font-family: "Heebo", Arial, sans-serif; font-size: 23px; font-weight: 700; }
.hitpa-floating-card {
  position: absolute;
  z-index: 3;
  padding: 10px 15px;
  border: 1px solid var(--hitpa-gold);
  border-radius: 999px;
  background: var(--hitpa-cream);
  color: var(--hitpa-dark);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 30px var(--hitpa-dark-15);
  animation: hitpa-float 3s ease-in-out infinite;
}
.hitpa-floating-card-a { top: 17%; right: 0; }
.hitpa-floating-card-b { bottom: 18%; left: 1%; animation-delay: .7s; }
.hitpa-floating-card-c { top: 48%; left: -5%; animation-delay: 1.2s; }

.hitpa-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.hitpa-benefit-grid article {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--hitpa-dark-15);
  border-radius: var(--hitpa-radius-lg);
  background: var(--hitpa-cream);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.hitpa-benefit-grid article::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  left: -30px;
  bottom: -30px;
  border: 1px solid var(--hitpa-gold-28);
  border-radius: 50%;
}
.hitpa-benefit-grid article:hover { transform: translateY(-6px); border-color: var(--hitpa-gold); box-shadow: 0 18px 45px var(--hitpa-dark-15); }
.hitpa-benefit-grid .hitpa-icon { width: 34px; height: 34px; color: var(--hitpa-gold); }
.hitpa-benefit-grid h2 { margin: 18px 0 8px; font-size: 27px; }
.hitpa-benefit-grid p { margin: 0; color: var(--hitpa-dark-72); line-height: 1.65; }

.hitpa-primary,
.hitpa-secondary,
.hitpa-header-button,
.hitpa-icon-button,
.hitpa-link-button,
.hitpa-remove-button,
.hitpa-danger-button,
.hitpa-back-button,
.hitpa-dashboard-nav button,
.hitpa-channel-grid button,
.hitpa-modal-close {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hitpa-primary,
.hitpa-secondary,
.hitpa-header-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.hitpa-primary { border: 1px solid var(--hitpa-dark); background: var(--hitpa-dark); color: var(--hitpa-cream); }
.hitpa-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--hitpa-dark-28); color: var(--hitpa-cream); }
.hitpa-secondary { border: 1px solid var(--hitpa-dark); background: transparent; color: var(--hitpa-dark); }
.hitpa-secondary:hover { transform: translateY(-2px); background: var(--hitpa-dark); color: var(--hitpa-cream); }
.hitpa-primary:disabled,
.hitpa-secondary:disabled { opacity: .55; cursor: wait; transform: none; }
.hitpa-header-button { border: 1px solid currentColor; background: transparent; color: inherit; padding: 7px 14px; min-height: 38px; }

.hitpa-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--hitpa-gold);
  border-radius: var(--hitpa-radius-xl) var(--hitpa-radius-xl) 0 0;
  background: var(--hitpa-dark);
  color: var(--hitpa-cream);
  box-shadow: var(--hitpa-shadow);
}
.hitpa-dashboard-hero h1 { margin: 4px 0 7px; color: var(--hitpa-cream); font-size: clamp(35px, 5vw, 56px); line-height: 1.1; }
.hitpa-member-identity { display: flex; align-items: center; gap: 20px; }
.hitpa-avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 2px solid var(--hitpa-gold);
  border-radius: 50%;
  background: var(--hitpa-cream);
  color: var(--hitpa-dark);
  font-family: "Heebo", Arial, sans-serif;
  font-size: 38px;
  font-weight: 900;
}
.hitpa-sync-line { display: flex; align-items: center; gap: 8px; color: var(--hitpa-cream); font-size: 13px; }
.hitpa-sync-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hitpa-gold); box-shadow: 0 0 0 5px var(--hitpa-gold-14); }
.hitpa-sync-dot.is-busy { animation: hitpa-pulse 1s ease infinite; }
.hitpa-hero-actions { display: flex; align-items: center; gap: 10px; }
.hitpa-dashboard-hero .hitpa-secondary { border-color: var(--hitpa-cream); color: var(--hitpa-cream); }
.hitpa-dashboard-hero .hitpa-secondary:hover { background: var(--hitpa-cream); color: var(--hitpa-dark); }
.hitpa-icon-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hitpa-gold);
  border-radius: 50%;
  background: transparent;
  color: var(--hitpa-gold);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.hitpa-icon-button:hover { transform: rotate(20deg); background: var(--hitpa-gold); color: var(--hitpa-dark); }

.hitpa-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-inline: 1px solid var(--hitpa-gold-28);
  background: var(--hitpa-gold-28);
}
.hitpa-stat-grid article {
  min-height: 145px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 3px 14px;
  padding: 24px;
  background: var(--hitpa-cream);
}
.hitpa-stat-icon { grid-row: 1 / 3; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--hitpa-gold); border-radius: 14px; color: var(--hitpa-gold); }
.hitpa-stat-grid strong { font-size: 30px; line-height: 1; }
.hitpa-stat-grid article > span:last-child { color: var(--hitpa-dark-72); font-size: 13px; }

.hitpa-dashboard-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 650px;
  border: 1px solid var(--hitpa-gold-28);
  border-top: 0;
  border-radius: 0 0 var(--hitpa-radius-xl) var(--hitpa-radius-xl);
  background: var(--hitpa-cream);
  box-shadow: var(--hitpa-shadow);
  overflow: hidden;
}
.hitpa-dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 24px 16px;
  border-left: 1px solid var(--hitpa-dark-15);
  background: var(--hitpa-dark-08);
}
.hitpa-dashboard-nav button {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--hitpa-dark);
  text-align: right;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.hitpa-dashboard-nav button:hover { transform: translateX(-3px); border-color: var(--hitpa-gold-28); }
.hitpa-dashboard-nav button.is-active { background: var(--hitpa-dark); color: var(--hitpa-cream); border-color: var(--hitpa-dark); }
.hitpa-dashboard-nav button b { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 999px; background: var(--hitpa-gold); color: var(--hitpa-dark); font-size: 12px; }
.hitpa-dashboard-content { min-width: 0; }
.hitpa-panel { padding: clamp(24px, 4vw, 48px); animation: hitpa-panel-in .3s ease both; }
.hitpa-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.hitpa-panel-heading h2 { margin: 5px 0; font-size: clamp(34px, 4vw, 48px); }
.hitpa-panel-heading p { margin: 0; color: var(--hitpa-dark-72); }

.hitpa-library-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.hitpa-search-field,
.hitpa-sort-field { position: relative; display: flex; align-items: center; }
.hitpa-search-field .hitpa-icon { position: absolute; right: 13px; width: 18px; height: 18px; color: var(--hitpa-gold); pointer-events: none; }
.hitpa-search-field input,
.hitpa-sort-field select,
.hitpa-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--hitpa-dark-15);
  border-radius: var(--hitpa-radius-md);
  background: var(--hitpa-cream);
  color: var(--hitpa-dark);
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.hitpa-search-field input { width: min(280px, 70vw); padding: 9px 42px 9px 14px; }
.hitpa-sort-field select { padding: 9px 13px; }
.hitpa-search-field input:focus,
.hitpa-sort-field select:focus,
.hitpa-field input:focus { border-color: var(--hitpa-gold); box-shadow: 0 0 0 4px var(--hitpa-gold-14); }

.hitpa-saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 18px; }
.hitpa-saved-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--hitpa-dark-15);
  border-radius: var(--hitpa-radius-lg);
  background: var(--hitpa-cream);
  box-shadow: 0 10px 28px var(--hitpa-dark-08);
  animation: hitpa-card-in .38s ease both;
  animation-delay: calc(var(--hitpa-card-index, 0) * 35ms);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, opacity .2s ease;
}
.hitpa-saved-card:hover { transform: translateY(-6px); border-color: var(--hitpa-gold); box-shadow: 0 18px 42px var(--hitpa-dark-15); }
.hitpa-saved-card.is-removing { opacity: .35; transform: scale(.96); pointer-events: none; }
.hitpa-saved-media { display: block; overflow: hidden; aspect-ratio: 16/9; border-bottom: 1px solid var(--hitpa-gold-28); background: var(--hitpa-dark); }
.hitpa-saved-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.hitpa-saved-card:hover .hitpa-saved-media img { transform: scale(1.045); }
.hitpa-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--hitpa-gold); font-family: "Heebo", Arial, sans-serif; font-size: 74px; }
.hitpa-saved-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.hitpa-saved-meta { color: var(--hitpa-gold); font-size: 12px; font-weight: 800; }
.hitpa-saved-card h3 { margin: 8px 0 10px; font-size: 23px; line-height: 1.32; }
.hitpa-saved-card h3 a { color: var(--hitpa-dark); text-decoration: none; }
.hitpa-saved-card p { margin: 0 0 20px; color: var(--hitpa-dark-72); line-height: 1.62; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.hitpa-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.hitpa-card-actions .hitpa-secondary { min-height: 38px; padding: 7px 15px; }
.hitpa-remove-button,
.hitpa-link-button,
.hitpa-back-button { border: 0; background: transparent; color: var(--hitpa-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.hitpa-remove-button:hover,
.hitpa-link-button:hover { color: var(--hitpa-gold); }
.hitpa-empty-state { min-height: 350px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.hitpa-empty-state > .hitpa-icon { width: 62px; height: 62px; color: var(--hitpa-gold); }
.hitpa-empty-state h3 { margin: 8px 0 0; font-size: 29px; }
.hitpa-empty-state p { max-width: 500px; margin: 0 0 14px; color: var(--hitpa-dark-72); }

.hitpa-preference-card,
.hitpa-account-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--hitpa-dark-15);
  border-radius: var(--hitpa-radius-lg);
  background: var(--hitpa-cream);
  box-shadow: 0 10px 28px var(--hitpa-dark-08);
}
.hitpa-preference-card + .hitpa-preference-card { margin-top: 18px; }
.hitpa-card-title { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.hitpa-card-title > .hitpa-icon { width: 32px; height: 32px; color: var(--hitpa-gold); }
.hitpa-card-title h3 { margin: 0 0 4px; font-size: 25px; }
.hitpa-card-title p { margin: 0; color: var(--hitpa-dark-72); }
.hitpa-topic-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.hitpa-topic-chip { position: relative; }
.hitpa-topic-chip input { position: absolute; opacity: 0; pointer-events: none; }
.hitpa-topic-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--hitpa-dark-15); border-radius: 999px; background: var(--hitpa-cream); color: var(--hitpa-dark); font-weight: 800; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.hitpa-topic-chip span:hover { transform: translateY(-2px); border-color: var(--hitpa-gold); }
.hitpa-topic-chip input:checked + span { background: var(--hitpa-dark); color: var(--hitpa-cream); border-color: var(--hitpa-dark); box-shadow: inset 0 -3px 0 var(--hitpa-gold); }
.hitpa-switch-row { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid var(--hitpa-dark-15); cursor: pointer; }
.hitpa-switch-row > span { display: grid; gap: 3px; }
.hitpa-switch-row small { color: var(--hitpa-dark-72); }
.hitpa-switch-row input { position: absolute; opacity: 0; }
.hitpa-switch-row i { position: relative; width: 52px; height: 29px; flex: 0 0 auto; border: 1px solid var(--hitpa-dark-28); border-radius: 999px; background: var(--hitpa-dark-08); transition: background .2s ease, border-color .2s ease; }
.hitpa-switch-row i::after { content: ""; position: absolute; top: 4px; right: 4px; width: 19px; height: 19px; border-radius: 50%; background: var(--hitpa-dark); transition: transform .22s ease, background .22s ease; }
.hitpa-switch-row input:checked + i { background: var(--hitpa-dark); border-color: var(--hitpa-dark); }
.hitpa-switch-row input:checked + i::after { transform: translateX(-23px); background: var(--hitpa-gold); }
.hitpa-switch-row input:disabled + i { opacity: .38; }
.hitpa-preference-card + .hitpa-primary,
.hitpa-panel form > .hitpa-primary { margin-top: 22px; }

.hitpa-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hitpa-account-card { min-width: 0; }
.hitpa-field { display: grid; gap: 7px; margin: 16px 0; color: var(--hitpa-dark); font-weight: 800; }
.hitpa-field input { padding: 10px 13px; }
.hitpa-identity-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--hitpa-dark-15); }
.hitpa-identity-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--hitpa-gold); border-radius: 12px; color: var(--hitpa-gold); }
.hitpa-identity-row div { min-width: 0; }
.hitpa-identity-row strong,
.hitpa-identity-row small { display: block; }
.hitpa-identity-row small { overflow: hidden; color: var(--hitpa-dark-72); direction: ltr; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.hitpa-verified-badge { padding: 5px 9px; border: 1px solid var(--hitpa-dark-28); border-radius: 999px; color: var(--hitpa-dark-72); font-size: 11px; font-weight: 900; white-space: nowrap; }
.hitpa-verified-badge.is-verified { border-color: var(--hitpa-gold); color: var(--hitpa-gold); }
.hitpa-privacy-card { grid-column: 1 / -1; }
.hitpa-privacy-card ul { margin: 0 0 22px; padding-right: 22px; line-height: 1.8; color: var(--hitpa-dark-72); }
.hitpa-danger-button { min-height: 42px; padding: 8px 15px; border: 1px solid var(--hitpa-dark); border-radius: 999px; background: transparent; color: var(--hitpa-dark); font-weight: 900; transition: background .18s ease, color .18s ease; }
.hitpa-danger-button:hover { background: var(--hitpa-dark); color: var(--hitpa-cream); }

.hitpa-modal[hidden] { display: none !important; }
.hitpa-modal { position: fixed; inset: 0; z-index: 10000050; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; }
.hitpa-modal.is-open { opacity: 1; visibility: visible; }
.hitpa-modal-backdrop { position: absolute; inset: 0; background: var(--hitpa-dark-92); backdrop-filter: blur(7px); }
.hitpa-modal-dialog {
  position: relative;
  width: min(520px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  margin: max(12px, 6vh) auto;
  padding: clamp(25px, 5vw, 40px);
  border: 1px solid var(--hitpa-gold);
  border-radius: 26px;
  background: var(--hitpa-cream);
  color: var(--hitpa-dark);
  box-shadow: 0 32px 100px var(--hitpa-dark-72);
  transform: translateY(18px) scale(.97);
  transition: transform .22s ease;
}
.hitpa-modal.is-open .hitpa-modal-dialog { transform: translateY(0) scale(1); }
.hitpa-modal-dialog h2 { margin: 8px 0; font-size: clamp(34px, 6vw, 46px); }
.hitpa-modal-dialog > p,
.hitpa-auth-step > p { margin: 0 0 20px; color: var(--hitpa-dark-72); line-height: 1.65; }
.hitpa-modal-close { position: absolute; top: 13px; left: 15px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--hitpa-dark); font-size: 30px; line-height: 1; transition: transform .18s ease, border-color .18s ease; }
.hitpa-modal-close:hover { transform: rotate(8deg); border-color: var(--hitpa-gold); }
.hitpa-auth-progress { display: flex; gap: 7px; margin-bottom: 24px; padding-left: 54px; }
.hitpa-auth-progress span { height: 4px; flex: 1; border-radius: 999px; background: var(--hitpa-dark-15); transition: background .2s ease, transform .2s ease; }
.hitpa-auth-progress span.is-active { background: var(--hitpa-gold); transform: scaleY(1.3); }
.hitpa-auth-step { animation: hitpa-panel-in .25s ease both; }
.hitpa-channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.hitpa-channel-grid button { min-height: 112px; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 12px; padding: 17px; border: 1px solid var(--hitpa-dark-15); border-radius: 17px; background: transparent; color: var(--hitpa-dark); text-align: right; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.hitpa-channel-grid button:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--hitpa-gold); }
.hitpa-channel-grid button.is-active { border-color: var(--hitpa-dark); background: var(--hitpa-dark); color: var(--hitpa-cream); box-shadow: inset 0 -4px 0 var(--hitpa-gold); }
.hitpa-channel-grid button:disabled { opacity: .45; cursor: not-allowed; }
.hitpa-channel-grid .hitpa-icon { grid-row: 1/3; width: 32px; height: 32px; color: var(--hitpa-gold); }
.hitpa-channel-grid strong { font-size: 17px; }
.hitpa-channel-grid small { opacity: .72; }
.hitpa-modal form .hitpa-primary { width: 100%; }
.hitpa-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.hitpa-code-field input { height: 64px; text-align: center; direction: ltr; font-size: 31px; font-weight: 900; letter-spacing: 10px; border-color: var(--hitpa-gold); }
.hitpa-code-field + small { display: block; margin: -8px 0 20px; color: var(--hitpa-dark-72); text-align: center; }
.hitpa-back-button { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; text-decoration: none; }
.hitpa-resend { width: 100%; margin-top: 15px; text-align: center; }
.hitpa-resend:disabled { opacity: .58; cursor: default; text-decoration: none; }
.hitpa-auth-message { min-height: 25px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; text-align: center; font-weight: 800; }
.hitpa-auth-message:empty { min-height: 0; padding: 0; }
.hitpa-auth-message.is-error { border: 1px solid var(--hitpa-gold); background: var(--hitpa-gold-14); color: var(--hitpa-dark); }
.hitpa-auth-message.is-success { border: 1px solid var(--hitpa-dark); background: var(--hitpa-dark); color: var(--hitpa-cream); }
.hitpa-auth-message.is-working { color: var(--hitpa-gold); }
.hitpa-auth-legal { display: flex; align-items: flex-start; gap: 7px; margin: 18px 0 0 !important; color: var(--hitpa-dark-72); font-size: 11px; }
.hitpa-auth-legal .hitpa-icon { margin-top: 2px; color: var(--hitpa-gold); }
.hitpa-modal-open { overflow: hidden; }

.hitpa-toast-region { position: fixed; left: 18px; bottom: 18px; z-index: 10000080; display: grid; gap: 9px; pointer-events: none; }
.hitpa-toast { max-width: min(390px, calc(100vw - 36px)); padding: 13px 18px; border: 1px solid var(--hitpa-gold); border-radius: 14px; background: var(--hitpa-dark); color: var(--hitpa-cream); box-shadow: 0 16px 45px var(--hitpa-dark-28); opacity: 0; transform: translateY(12px); transition: opacity .22s ease, transform .22s ease; font-weight: 800; }
.hitpa-toast.is-visible { opacity: 1; transform: translateY(0); }
.hitpa-toast.is-error { background: var(--hitpa-cream); color: var(--hitpa-dark); }

.hitpa-primary:focus-visible,
.hitpa-secondary:focus-visible,
.hitpa-header-button:focus-visible,
.hitpa-icon-button:focus-visible,
.hitpa-link-button:focus-visible,
.hitpa-remove-button:focus-visible,
.hitpa-danger-button:focus-visible,
.hitpa-back-button:focus-visible,
.hitpa-dashboard-nav button:focus-visible,
.hitpa-channel-grid button:focus-visible,
.hitpa-modal-close:focus-visible,
.hitpa-topic-chip input:focus-visible + span,
.hitpa-switch-row input:focus-visible + i {
  outline: 3px solid var(--hitpa-gold);
  outline-offset: 3px;
}

@keyframes hitpa-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hitpa-panel-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes hitpa-card-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes hitpa-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hitpa-spin { to { transform: rotate(360deg); } }
@keyframes hitpa-pulse { 0%,100% { box-shadow: 0 0 0 4px var(--hitpa-gold-14); } 50% { box-shadow: 0 0 0 9px var(--hitpa-gold-14); } }

@media (max-width: 980px) {
  .hitpa-guest-hero { grid-template-columns: 1fr; min-height: auto; }
  .hitpa-guest-visual { min-height: 360px; }
  .hitpa-benefit-grid { grid-template-columns: 1fr; }
  .hitpa-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hitpa-dashboard-layout { grid-template-columns: 1fr; }
  .hitpa-dashboard-nav { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--hitpa-dark-15); }
  .hitpa-dashboard-nav button { min-width: 180px; }
}

@media (max-width: 720px) {
  .hitpa-shell { width: min(100% - 16px, 1240px); margin: 12px auto; }
  .hitpa-guest-hero { padding: 34px 22px 24px; border-radius: 22px; }
  .hitpa-guest-copy h1 { font-size: clamp(42px, 13vw, 62px); }
  .hitpa-guest-actions { flex-direction: column; }
  .hitpa-guest-actions .hitpa-primary,
  .hitpa-guest-actions .hitpa-secondary { width: 100%; }
  .hitpa-guest-visual { min-height: 310px; transform: scale(.88); margin: -18px 0; }
  .hitpa-floating-card-a { right: -4%; }
  .hitpa-floating-card-c { left: -9%; }
  .hitpa-dashboard-hero { align-items: flex-start; flex-direction: column; padding: 26px 20px; border-radius: 22px 22px 0 0; }
  .hitpa-member-identity { align-items: flex-start; }
  .hitpa-avatar { width: 62px; height: 62px; font-size: 30px; }
  .hitpa-hero-actions { width: 100%; justify-content: space-between; }
  .hitpa-stat-grid article { min-height: 120px; grid-template-columns: 38px 1fr; padding: 17px 13px; }
  .hitpa-stat-icon { width: 38px; height: 38px; }
  .hitpa-stat-grid strong { font-size: 25px; }
  .hitpa-dashboard-layout { border-radius: 0 0 22px 22px; }
  .hitpa-dashboard-nav { padding: 12px; }
  .hitpa-dashboard-nav button { min-width: 155px; min-height: 47px; padding: 9px 12px; }
  .hitpa-panel { padding: 27px 15px 34px; }
  .hitpa-panel-heading { align-items: stretch; flex-direction: column; }
  .hitpa-library-tools { flex-direction: column; }
  .hitpa-search-field input { width: 100%; }
  .hitpa-search-field,
  .hitpa-sort-field,
  .hitpa-sort-field select { width: 100%; }
  .hitpa-saved-grid { grid-template-columns: 1fr; }
  .hitpa-account-grid { grid-template-columns: 1fr; }
  .hitpa-privacy-card { grid-column: auto; }
  .hitpa-identity-row { grid-template-columns: 38px minmax(0,1fr) auto; }
  .hitpa-identity-row .hitpa-link-button { grid-column: 2 / 4; justify-self: start; }
  .hitpa-channel-grid { grid-template-columns: 1fr; }
  .hitpa-modal-dialog { margin: 12px auto; padding: 28px 18px 24px; border-radius: 20px; }
  .hitpa-toast-region { left: 10px; right: 10px; bottom: 10px; }
  .hitpa-toast { max-width: none; width: 100%; }
}


/* ==========================================================
   Layout and icon integrity
   Keeps typography and symbols stable against external styles.
   ========================================================== */
.hitpa-shell,
.hitpa-modal,
.hitpa-toast-region,
.hitpa-header-button {
  text-align: right;
  text-align-last: auto;
  unicode-bidi: isolate;
}

body .hitpa-shell p,
body .hitpa-shell li,
body .hitpa-shell small,
body .hitpa-modal p,
body .hitpa-modal small {
  text-align: right !important;
  text-align-last: auto !important;
  word-spacing: normal !important;
  letter-spacing: normal;
}

.hitpa-guest-copy,
.hitpa-member-identity > div,
.hitpa-panel-heading > div,
.hitpa-card-title > div {
  min-width: 0;
}

body .hitpa-shell .hitpa-guest-copy h1 {
  width: min(100%, 14ch);
  max-width: 14ch;
  margin-inline: 0 !important;
  font-size: clamp(42px, 5.2vw, 70px) !important;
  line-height: 1.06 !important;
  letter-spacing: -.02em !important;
  word-spacing: normal !important;
  text-align: right !important;
  text-align-last: right !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

body .hitpa-shell .hitpa-guest-copy > p {
  width: min(100%, 650px);
  max-width: 650px;
  font-size: clamp(17px, 1.55vw, 21px) !important;
  line-height: 1.72 !important;
}

.hitpa-icon,
body .hitpa-shell .hitpa-icon,
body .hitpa-modal .hitpa-icon,
body .hitpa-toast-region .hitpa-icon,
body .hitpa-header-button .hitpa-icon {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 1.25em;
  height: 1.25em;
  min-width: 0;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
  align-self: center;
  overflow: visible;
  vertical-align: middle !important;
  transform: none !important;
  transform-origin: center;
  shape-rendering: geometricPrecision;
}

.hitpa-primary,
.hitpa-secondary,
.hitpa-header-button,
.hitpa-back-button,
.hitpa-link-button,
.hitpa-danger-button,
.hitpa-remove-button,
.hitpa-icon-button,
.hitpa-modal-close {
  line-height: 1.2 !important;
}

.hitpa-primary > .hitpa-icon,
.hitpa-secondary > .hitpa-icon,
.hitpa-header-button > .hitpa-icon,
.hitpa-back-button > .hitpa-icon {
  width: 20px !important;
  height: 20px !important;
}

.hitpa-primary > span,
.hitpa-secondary > span,
.hitpa-header-button > span,
.hitpa-back-button > span {
  display: inline-block;
  min-width: 0;
  line-height: 1.25;
}

.hitpa-icon-button .hitpa-icon,
.hitpa-modal-close .hitpa-icon,
.hitpa-stat-icon .hitpa-icon,
.hitpa-identity-icon .hitpa-icon {
  width: 22px !important;
  height: 22px !important;
  justify-self: center;
}

.hitpa-card-title > .hitpa-icon {
  width: 32px !important;
  height: 32px !important;
  margin-top: 1px !important;
}

.hitpa-privacy-note .hitpa-icon,
.hitpa-auth-legal .hitpa-icon {
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px !important;
}

.hitpa-dashboard-nav button .hitpa-icon {
  width: 21px !important;
  height: 21px !important;
  justify-self: center;
}

.hitpa-channel-grid button {
  grid-template-columns: 42px minmax(0, 1fr) !important;
}
.hitpa-channel-grid .hitpa-icon {
  width: 30px !important;
  height: 30px !important;
  justify-self: center;
  align-self: center;
}
.hitpa-channel-grid strong,
.hitpa-channel-grid small {
  min-width: 0;
  line-height: 1.35;
}

.hitpa-modal-close {
  font-size: 0 !important;
}
.hitpa-modal-close .hitpa-icon {
  width: 23px !important;
  height: 23px !important;
}

.hitpa-search-field .hitpa-icon {
  top: 50% !important;
  right: 14px !important;
  transform: translateY(-50%) !important;
}

.hitpa-guest-actions,
.hitpa-hero-actions,
.hitpa-card-actions {
  align-items: center;
}

@media (max-width: 980px) {
  body .hitpa-shell .hitpa-guest-copy h1 {
    width: min(100%, 16ch);
    max-width: 16ch;
    font-size: clamp(42px, 8vw, 66px) !important;
  }
  .hitpa-guest-copy {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  body .hitpa-shell .hitpa-guest-copy h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(36px, 11.2vw, 54px) !important;
    line-height: 1.08 !important;
  }
  body .hitpa-shell .hitpa-guest-copy > p {
    font-size: 17px !important;
    line-height: 1.65 !important;
  }
  .hitpa-guest-copy,
  .hitpa-guest-copy h1,
  .hitpa-guest-copy > p {
    text-align: right !important;
  }
  .hitpa-primary,
  .hitpa-secondary,
  .hitpa-header-button {
    min-height: 48px;
  }
  .hitpa-card-title {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .hitpa-shell {
    width: min(100% - 10px, 1240px);
  }
  .hitpa-guest-hero {
    padding-inline: 17px;
  }
  .hitpa-channel-grid button {
    min-height: 96px !important;
  }
  .hitpa-modal-dialog h2 {
    font-size: clamp(31px, 10vw, 40px) !important;
    line-height: 1.12 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hitpa-shell *,
  .hitpa-modal *,
  .hitpa-toast-region * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   Visual isolation - prevents external accent colors
   from leaking into the personal area, including hover/focus.
   ========================================================== */
.hitpa-shell,
.hitpa-modal,
.hitpa-toast-region,
.hitpa-header-button {
  --hitpa-dark: #4c2d33;
  --hitpa-cream: #F2E7DF;
  --hitpa-gold: #B38B45;
  accent-color: var(--hitpa-dark);
}

.hitpa-shell ::selection,
.hitpa-modal ::selection {
  background: var(--hitpa-gold) !important;
  color: var(--hitpa-dark) !important;
}

body .hitpa-shell .hitpa-primary,
body .hitpa-modal .hitpa-primary,
body a.hitpa-header-button {
  border-color: var(--hitpa-dark) !important;
  background-color: var(--hitpa-dark) !important;
  background-image: none !important;
  color: var(--hitpa-cream) !important;
  box-shadow: none;
  text-shadow: none !important;
}
body .hitpa-shell .hitpa-primary:hover,
body .hitpa-shell .hitpa-primary:focus,
body .hitpa-shell .hitpa-primary:active,
body .hitpa-modal .hitpa-primary:hover,
body .hitpa-modal .hitpa-primary:focus,
body .hitpa-modal .hitpa-primary:active,
body a.hitpa-header-button:hover,
body a.hitpa-header-button:focus,
body a.hitpa-header-button:active {
  border-color: var(--hitpa-gold) !important;
  background-color: var(--hitpa-dark) !important;
  background-image: none !important;
  color: var(--hitpa-cream) !important;
}

body .hitpa-shell .hitpa-secondary,
body .hitpa-modal .hitpa-secondary {
  border-color: var(--hitpa-dark) !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--hitpa-dark) !important;
  text-shadow: none !important;
}
body .hitpa-shell .hitpa-secondary:hover,
body .hitpa-shell .hitpa-secondary:focus,
body .hitpa-shell .hitpa-secondary:active,
body .hitpa-modal .hitpa-secondary:hover,
body .hitpa-modal .hitpa-secondary:focus,
body .hitpa-modal .hitpa-secondary:active {
  border-color: var(--hitpa-dark) !important;
  background-color: var(--hitpa-dark) !important;
  background-image: none !important;
  color: var(--hitpa-cream) !important;
}

body .hitpa-modal .hitpa-modal-close,
body .hitpa-modal .hitpa-back-button,
body .hitpa-modal .hitpa-link-button,
body .hitpa-shell .hitpa-link-button,
body .hitpa-shell .hitpa-icon-button,
body .hitpa-shell .hitpa-remove-button,
body .hitpa-shell .hitpa-danger-button {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--hitpa-dark) !important;
  text-shadow: none !important;
}
body .hitpa-modal .hitpa-modal-close:hover,
body .hitpa-modal .hitpa-modal-close:focus,
body .hitpa-modal .hitpa-modal-close:active {
  border-color: var(--hitpa-gold) !important;
  background-color: var(--hitpa-dark) !important;
  color: var(--hitpa-cream) !important;
}
body .hitpa-shell .hitpa-danger-button:hover,
body .hitpa-shell .hitpa-danger-button:focus,
body .hitpa-shell .hitpa-danger-button:active {
  border-color: var(--hitpa-dark) !important;
  background-color: var(--hitpa-dark) !important;
  color: var(--hitpa-cream) !important;
}

body .hitpa-modal .hitpa-channel-grid button,
body .hitpa-shell .hitpa-dashboard-nav button {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--hitpa-dark) !important;
  text-shadow: none !important;
}
body .hitpa-modal .hitpa-channel-grid button.is-active,
body .hitpa-shell .hitpa-dashboard-nav button.is-active {
  border-color: var(--hitpa-dark) !important;
  background-color: var(--hitpa-dark) !important;
  background-image: none !important;
  color: var(--hitpa-cream) !important;
}
body .hitpa-modal .hitpa-channel-grid button:hover:not(:disabled):not(.is-active),
body .hitpa-modal .hitpa-channel-grid button:focus:not(:disabled):not(.is-active),
body .hitpa-shell .hitpa-dashboard-nav button:hover:not(.is-active),
body .hitpa-shell .hitpa-dashboard-nav button:focus:not(.is-active) {
  border-color: var(--hitpa-gold) !important;
  background-color: var(--hitpa-gold-14) !important;
  color: var(--hitpa-dark) !important;
}

body .hitpa-shell a,
body .hitpa-modal a {
  text-decoration-color: var(--hitpa-gold) !important;
}
body .hitpa-shell a:hover,
body .hitpa-shell a:focus,
body .hitpa-modal a:hover,
body .hitpa-modal a:focus {
  color: var(--hitpa-gold) !important;
}
body .hitpa-shell a.hitpa-primary:hover,
body .hitpa-shell a.hitpa-primary:focus {
  color: var(--hitpa-cream) !important;
}

body .hitpa-shell input,
body .hitpa-shell select,
body .hitpa-modal input,
body .hitpa-modal select {
  border-color: var(--hitpa-dark-28) !important;
  background-color: var(--hitpa-cream) !important;
  color: var(--hitpa-dark) !important;
  box-shadow: none !important;
  caret-color: var(--hitpa-dark) !important;
}
body .hitpa-shell input:focus,
body .hitpa-shell select:focus,
body .hitpa-modal input:focus,
body .hitpa-modal select:focus {
  border-color: var(--hitpa-gold) !important;
  outline: 2px solid var(--hitpa-gold) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

.hitpa-guest-copy h1,
.hitpa-modal-dialog h2,
.hitpa-panel-heading h2 {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

/* Preserve component geometry against global button resets. */
body .hitpa-shell button,
body .hitpa-modal button,
body .hitpa-shell a.hitpa-primary,
body a.hitpa-header-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  font-family: Heebo, Arial, sans-serif !important;
}
body .hitpa-shell .hitpa-primary,
body .hitpa-shell .hitpa-secondary,
body .hitpa-modal .hitpa-primary,
body .hitpa-modal .hitpa-secondary,
body a.hitpa-header-button {
  border-radius: 999px !important;
  padding: 10px 20px !important;
}
body .hitpa-modal .hitpa-modal-close {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  line-height: 1 !important;
}
body .hitpa-modal .hitpa-channel-grid button {
  min-height: 112px !important;
  padding: 17px !important;
  border-radius: 17px !important;
}

/* ==========================================================
   2.4 typography, icon alignment and accessibility hardening
   ========================================================== */
.hitpa-shell,
.hitpa-shell *,
.hitpa-modal,
.hitpa-modal *,
.hitpa-toast-region,
.hitpa-toast-region *,
.hitpa-header-button,
.hitpa-header-button * {
  font-family: "Heebo", Arial, sans-serif !important;
  font-synthesis: none;
}

.hitpa-shell,
.hitpa-modal,
.hitpa-toast-region,
.hitpa-header-button {
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hitpa-shell button,
.hitpa-shell input,
.hitpa-shell select,
.hitpa-shell textarea,
.hitpa-modal button,
.hitpa-modal input,
.hitpa-modal select,
.hitpa-modal textarea,
.hitpa-header-button {
  font: inherit !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-transform: none !important;
}

.hitpa-shell h1,
.hitpa-shell h2,
.hitpa-shell h3,
.hitpa-shell h4,
.hitpa-modal h1,
.hitpa-modal h2,
.hitpa-modal h3,
.hitpa-modal h4 {
  font-family: "Heebo", Arial, sans-serif !important;
  font-style: normal !important;
}

/* A single protected inline unit keeps icon and label together. */
.hitpa-button-content,
body .hitpa-shell .hitpa-button-content,
body .hitpa-modal .hitpa-button-content,
body .hitpa-header-button .hitpa-button-content {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: nowrap;
  pointer-events: none;
}

.hitpa-button-content > span {
  display: block !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

.hitpa-button-content > .hitpa-icon {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 21px !important;
  height: 21px !important;
  min-width: 21px !important;
  min-height: 21px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
  transform: none !important;
  vertical-align: middle !important;
}

.hitpa-button-content--advance > .hitpa-icon {
  width: 23px !important;
  height: 23px !important;
  min-width: 23px !important;
  min-height: 23px !important;
}

/* Prevent theme button rules such as column layout or space-between. */
body .hitpa-shell .hitpa-primary,
body .hitpa-shell .hitpa-secondary,
body .hitpa-modal .hitpa-primary,
body .hitpa-modal .hitpa-secondary,
body .hitpa-modal .hitpa-back-button,
body .hitpa-header-button {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
  writing-mode: horizontal-tb !important;
}

body .hitpa-modal form .hitpa-primary {
  width: 100% !important;
  min-height: 54px !important;
  height: auto !important;
  padding: 12px 22px !important;
  justify-content: center !important;
  font-size: 18px !important;
}

body .hitpa-header-button {
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
}

body .hitpa-header-button .hitpa-button-content {
  gap: 8px !important;
}

body .hitpa-header-button .hitpa-button-content > .hitpa-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
}

body .hitpa-modal .hitpa-back-button {
  min-height: 44px !important;
  padding: 8px 4px !important;
  justify-content: flex-start !important;
}

body .hitpa-modal .hitpa-modal-close,
body .hitpa-shell .hitpa-icon-button {
  display: inline-grid !important;
  place-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
}

body .hitpa-modal .hitpa-modal-close .hitpa-icon,
body .hitpa-shell .hitpa-icon-button .hitpa-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
}

/* Channel cards retain their grid while keeping symbols optically centered. */
body .hitpa-modal .hitpa-channel-grid button {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-items: stretch !important;
  column-gap: 14px !important;
  row-gap: 2px !important;
  text-align: right !important;
  line-height: 1.35 !important;
}

body .hitpa-modal .hitpa-channel-grid button > .hitpa-icon {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  justify-self: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
}

body .hitpa-modal .hitpa-channel-grid button > strong,
body .hitpa-modal .hitpa-channel-grid button > small {
  grid-column: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: right !important;
}

/* Inputs remain readable at text zoom and do not trigger mobile auto-zoom. */
body .hitpa-shell input,
body .hitpa-shell select,
body .hitpa-modal input,
body .hitpa-modal select {
  min-height: 48px !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

body .hitpa-modal .hitpa-code-field input {
  height: auto !important;
  min-height: 64px !important;
  font-size: clamp(25px, 8vw, 31px) !important;
  line-height: 1.2 !important;
}

/* Consistent accessible target sizes for all controls. */
body .hitpa-shell .hitpa-link-button,
body .hitpa-shell .hitpa-remove-button,
body .hitpa-shell .hitpa-danger-button,
body .hitpa-modal .hitpa-link-button,
body .hitpa-modal .hitpa-resend,
body .hitpa-dashboard-nav button {
  min-height: 44px;
}

body .hitpa-shell button:focus-visible,
body .hitpa-shell a:focus-visible,
body .hitpa-shell input:focus-visible,
body .hitpa-shell select:focus-visible,
body .hitpa-modal button:focus-visible,
body .hitpa-modal a:focus-visible,
body .hitpa-modal input:focus-visible,
body .hitpa-modal select:focus-visible,
body .hitpa-header-button:focus-visible {
  outline: 3px solid var(--hitpa-gold) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px var(--hitpa-cream) !important;
}

.hitpa-shell [hidden],
.hitpa-modal [hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .hitpa-button-content {
    gap: 9px !important;
  }

  body .hitpa-shell .hitpa-primary,
  body .hitpa-shell .hitpa-secondary,
  body .hitpa-modal .hitpa-primary,
  body .hitpa-modal .hitpa-secondary {
    min-height: 50px !important;
  }

  body .hitpa-modal form .hitpa-primary {
    min-height: 54px !important;
    font-size: 17px !important;
  }

  body .hitpa-modal .hitpa-channel-grid button {
    min-height: 96px !important;
  }
}

@media (max-width: 380px) {
  .hitpa-button-content {
    white-space: normal;
  }

  body .hitpa-modal form .hitpa-primary {
    padding-inline: 16px !important;
  }
}

@media (prefers-contrast: more) {
  .hitpa-shell,
  .hitpa-modal {
    --hitpa-dark-15: rgba(76, 45, 51, .35);
    --hitpa-dark-28: rgba(76, 45, 51, .55);
  }

  body .hitpa-shell button,
  body .hitpa-shell a,
  body .hitpa-shell input,
  body .hitpa-shell select,
  body .hitpa-modal button,
  body .hitpa-modal input,
  body .hitpa-modal select {
    border-width: 2px !important;
  }
}

@media (forced-colors: active) {
  .hitpa-shell,
  .hitpa-modal,
  .hitpa-toast-region,
  .hitpa-header-button {
    forced-color-adjust: auto;
  }

  .hitpa-icon {
    stroke: currentColor;
  }

  .hitpa-primary,
  .hitpa-secondary,
  .hitpa-header-button,
  .hitpa-modal-close,
  .hitpa-channel-grid button,
  .hitpa-field input,
  .hitpa-sort-field select {
    border: 1px solid ButtonText !important;
  }
}



/* The header trigger also remains inside the brand palette. */
body button.hitpa-header-button,
body .hitpa-header-button {
  border-color: var(--hitpa-gold) !important;
  background-color: var(--hitpa-dark) !important;
  background-image: none !important;
  color: var(--hitpa-cream) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body button.hitpa-header-button:hover,
body button.hitpa-header-button:focus,
body button.hitpa-header-button:active,
body .hitpa-header-button:hover,
body .hitpa-header-button:focus,
body .hitpa-header-button:active {
  border-color: var(--hitpa-gold) !important;
  background-color: var(--hitpa-cream) !important;
  color: var(--hitpa-dark) !important;
}

/* =========================================================
   2.8.0 - Verified account dashboard and final brand isolation
   ========================================================= */

.hitpa-account-status {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--hitpa-gold);
  border-radius: 18px;
  background: var(--hitpa-cream);
  color: var(--hitpa-dark);
  box-shadow: 0 12px 30px var(--hitpa-dark-08);
}

.hitpa-account-status-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hitpa-dark);
  color: var(--hitpa-cream);
}

.hitpa-account-status-icon .hitpa-icon { width: 25px; height: 25px; }
.hitpa-account-status-copy { min-width: 0; display: grid; gap: 2px; }
.hitpa-account-status-copy strong { font-size: 18px; font-weight: 900; line-height: 1.35; }
.hitpa-account-status-copy span { overflow-wrap: anywhere; color: var(--hitpa-dark-72); font-weight: 600; }

.hitpa-session-badge,
.hitpa-inline-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--hitpa-gold);
  border-radius: 999px;
  color: var(--hitpa-dark);
  background: var(--hitpa-gold-14);
  font-weight: 800;
  white-space: nowrap;
}

.hitpa-session-badge i,
.hitpa-inline-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hitpa-gold);
  box-shadow: 0 0 0 4px var(--hitpa-gold-14);
}

.hitpa-membership-card { grid-column: 1 / -1; }
.hitpa-account-facts { margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hitpa-account-facts > div { min-width: 0; padding: 13px; border: 1px solid var(--hitpa-dark-15); border-radius: 14px; background: var(--hitpa-gold-14); }
.hitpa-account-facts dt { margin: 0 0 5px; color: var(--hitpa-dark-72); font-size: 13px; font-weight: 700; }
.hitpa-account-facts dd { margin: 0; color: var(--hitpa-dark); font-size: 16px; font-weight: 900; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .hitpa-account-status { grid-template-columns: 46px minmax(0, 1fr); }
  .hitpa-session-badge { grid-column: 1 / -1; justify-self: start; margin-inline-start: 60px; }
  .hitpa-account-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .hitpa-account-status { padding: 14px; border-radius: 15px; }
  .hitpa-session-badge { margin-inline-start: 0; }
  .hitpa-account-facts { grid-template-columns: 1fr; }
}

/* Final isolation from theme and builder accent colors. */
#hitpa-personal-area,
#hitpa-personal-area *,
#hitpa-auth-modal,
#hitpa-auth-modal *,
body .hitpa-header-button,
body .hitpa-header-button * {
  font-family: "Heebo", Arial, sans-serif !important;
  --e-global-color-accent: var(--hitpa-gold) !important;
  --wp--preset--color--vivid-red: var(--hitpa-dark) !important;
  accent-color: var(--hitpa-dark) !important;
  caret-color: var(--hitpa-dark);
}

#hitpa-personal-area :is(input, select, textarea, button, a),
#hitpa-auth-modal :is(input, select, textarea, button, a),
body .hitpa-header-button {
  text-shadow: none !important;
  -webkit-tap-highlight-color: var(--hitpa-gold-14);
}

#hitpa-personal-area :is(input, select, textarea),
#hitpa-auth-modal :is(input, select, textarea) {
  border-color: var(--hitpa-dark-28) !important;
  background-color: var(--hitpa-cream) !important;
  background-image: none !important;
  color: var(--hitpa-dark) !important;
  box-shadow: none !important;
  outline-color: var(--hitpa-gold) !important;
}

#hitpa-personal-area :is(input, select, textarea):is(:hover, :focus, :focus-visible, :active, :invalid, :user-invalid),
#hitpa-auth-modal :is(input, select, textarea):is(:hover, :focus, :focus-visible, :active, :invalid, :user-invalid) {
  border-color: var(--hitpa-gold) !important;
  outline: 3px solid var(--hitpa-gold) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px var(--hitpa-cream) !important;
}

#hitpa-personal-area input:-webkit-autofill,
#hitpa-personal-area input:-webkit-autofill:hover,
#hitpa-personal-area input:-webkit-autofill:focus,
#hitpa-auth-modal input:-webkit-autofill,
#hitpa-auth-modal input:-webkit-autofill:hover,
#hitpa-auth-modal input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--hitpa-dark) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--hitpa-cream) inset !important;
  border-color: var(--hitpa-gold) !important;
  caret-color: var(--hitpa-dark) !important;
}

#hitpa-personal-area :is(button, a):focus,
#hitpa-personal-area :is(button, a):focus-visible,
#hitpa-auth-modal :is(button, a):focus,
#hitpa-auth-modal :is(button, a):focus-visible,
body .hitpa-header-button:focus,
body .hitpa-header-button:focus-visible {
  outline: 3px solid var(--hitpa-gold) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px var(--hitpa-cream) !important;
}

#hitpa-personal-area :is(button, a, input, select, textarea)::selection,
#hitpa-auth-modal :is(button, a, input, select, textarea)::selection {
  background: var(--hitpa-gold) !important;
  color: var(--hitpa-dark) !important;
}


/* 2.9 - Dynamic, accessible account trigger for the site header. */
body .hitpa-header-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: min(280px, 42vw) !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 6px 13px !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--hitpa-gold) !important;
  border-radius: 999px !important;
  background: var(--hitpa-dark) !important;
  background-image: none !important;
  color: var(--hitpa-cream) !important;
  box-shadow: none !important;
  font-family: "Heebo", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  isolation: isolate !important;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease !important;
}

body .hitpa-header-button[hidden],
body .hitpa-header-button [hidden] {
  display: none !important;
}

body .hitpa-header-button:hover {
  transform: translateY(-1px) !important;
  border-color: var(--hitpa-gold) !important;
  background: var(--hitpa-gold) !important;
  color: var(--hitpa-dark) !important;
  box-shadow: none !important;
}

body .hitpa-header-button:active {
  transform: translateY(0) !important;
}

body .hitpa-header-button:focus,
body .hitpa-header-button:focus-visible {
  border-color: var(--hitpa-gold) !important;
  outline: 3px solid var(--hitpa-gold) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px var(--hitpa-cream) !important;
}

body .hitpa-header-button .hitpa-header-guest,
body .hitpa-header-button .hitpa-header-member {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  gap: 8px !important;
  color: inherit !important;
  line-height: 1 !important;
}

body .hitpa-header-button .hitpa-header-icon-wrap,
body .hitpa-header-button .hitpa-header-avatar {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 30px !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
  border: 1px solid var(--hitpa-gold) !important;
  border-radius: 50% !important;
  background: var(--hitpa-cream) !important;
  color: var(--hitpa-dark) !important;
  box-shadow: none !important;
  font-family: "Heebo", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body .hitpa-header-button:hover .hitpa-header-icon-wrap,
body .hitpa-header-button:hover .hitpa-header-avatar {
  border-color: var(--hitpa-dark) !important;
  background: var(--hitpa-dark) !important;
  color: var(--hitpa-cream) !important;
}

body .hitpa-header-button .hitpa-header-icon-wrap .hitpa-icon {
  display: block !important;
  width: 17px !important;
  min-width: 17px !important;
  height: 17px !important;
  min-height: 17px !important;
  margin: 0 !important;
  transform: none !important;
  stroke-width: 2.15 !important;
}

body .hitpa-header-button .hitpa-header-label,
body .hitpa-header-button .hitpa-header-name {
  display: block !important;
  min-width: 0 !important;
  max-width: 190px !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: inherit !important;
  font-family: "Heebo", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body .hitpa-header-button .hitpa-header-member-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  min-width: 0 !important;
  gap: 3px !important;
  text-align: start !important;
}

body .hitpa-header-button .hitpa-header-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
  color: inherit !important;
  font-family: "Heebo", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  opacity: .86 !important;
}

body .hitpa-header-button .hitpa-header-status i {
  display: block !important;
  flex: 0 0 6px !important;
  width: 6px !important;
  height: 6px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: var(--hitpa-gold) !important;
  box-shadow: 0 0 0 3px var(--hitpa-gold-14) !important;
}

body .hitpa-header-button:hover .hitpa-header-status i {
  background: var(--hitpa-dark) !important;
  box-shadow: 0 0 0 3px var(--hitpa-dark-15) !important;
}

body .hitpa-header-button[data-hitpa-compact="1"] .hitpa-header-label,
body .hitpa-header-button[data-hitpa-compact="1"] .hitpa-header-member-copy {
  display: none !important;
}

body .hitpa-header-button[data-hitpa-compact="1"] {
  width: 44px !important;
  min-width: 44px !important;
  padding: 6px !important;
}

@media (max-width: 640px) {
  body .hitpa-header-button {
    max-width: min(210px, 58vw) !important;
    padding: 6px 10px !important;
  }

  body .hitpa-header-button .hitpa-header-label,
  body .hitpa-header-button .hitpa-header-name {
    max-width: 132px !important;
    font-size: 14px !important;
  }

  body .hitpa-header-button .hitpa-header-status {
    font-size: 10px !important;
  }
}

@media (max-width: 390px) {
  body .hitpa-header-button {
    max-width: 150px !important;
  }

  body .hitpa-header-button .hitpa-header-label,
  body .hitpa-header-button .hitpa-header-name {
    max-width: 92px !important;
  }

  body .hitpa-header-button .hitpa-header-status {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .hitpa-header-button {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  body .hitpa-header-button,
  body .hitpa-header-button .hitpa-header-icon-wrap,
  body .hitpa-header-button .hitpa-header-avatar {
    border: 1px solid ButtonText !important;
    forced-color-adjust: auto !important;
  }
}


/* ==========================================================
   3.1.0 - Complete member states, topic interests,
   recommendations and hard isolation from external accent styles
   ========================================================== */

/* Use literal brand colors here so no external custom property can replace them. */
body #hitpa-personal-area,
body #hitpa-auth-modal,
body .hitpa-header-button {
  --hitpa-dark: #4c2d33 !important;
  --hitpa-cream: #F2E7DF !important;
  --hitpa-gold: #B38B45 !important;
  color: #4c2d33 !important;
  font-family: "Heebo", Arial, sans-serif !important;
}

/* Icon integrity. Prevent site-wide rules from turning SVGs into empty boxes. */
body #hitpa-personal-area svg.hitpa-icon,
body #hitpa-auth-modal svg.hitpa-icon,
body .hitpa-header-button svg.hitpa-icon {
  display: block !important;
  width: 1.25em !important;
  height: 1.25em !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
body #hitpa-personal-area svg.hitpa-icon :is(path,circle,rect,line,polyline,polygon,ellipse),
body #hitpa-auth-modal svg.hitpa-icon :is(path,circle,rect,line,polyline,polygon,ellipse),
body .hitpa-header-button svg.hitpa-icon :is(path,circle,rect,line,polyline,polygon,ellipse) {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Remove foreign borders and shadows in normal states. Accessible focus remains gold. */
body #hitpa-personal-area :is(button,a,input,select,textarea),
body #hitpa-auth-modal :is(button,a,input,select,textarea),
body .hitpa-header-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  font-family: "Heebo", Arial, sans-serif !important;
  text-shadow: none !important;
  filter: none !important;
  accent-color: #4c2d33 !important;
  outline-color: transparent !important;
}
body #hitpa-personal-area :is(button,a):not(:focus-visible),
body #hitpa-auth-modal :is(button,a):not(:focus-visible),
body .hitpa-header-button:not(:focus-visible) {
  outline: 0 !important;
  box-shadow: none !important;
}
body #hitpa-personal-area :is(button,a,input,select,textarea):focus-visible,
body #hitpa-auth-modal :is(button,a,input,select,textarea):focus-visible,
body .hitpa-header-button:focus-visible {
  outline: 3px solid #B38B45 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #F2E7DF !important;
}
body #hitpa-personal-area :is(input,select,textarea),
body #hitpa-auth-modal :is(input,select,textarea) {
  border: 1px solid rgba(76,45,51,.28) !important;
  background: #F2E7DF !important;
  color: #4c2d33 !important;
  box-shadow: none !important;
}
body #hitpa-personal-area :is(input,select,textarea):is(:hover,:focus,:focus-visible),
body #hitpa-auth-modal :is(input,select,textarea):is(:hover,:focus,:focus-visible) {
  border-color: #B38B45 !important;
}

/* Explicit component borders, so global button styling cannot leak in. */
body #hitpa-personal-area .hitpa-primary,
body #hitpa-auth-modal .hitpa-primary {
  border: 1px solid #4c2d33 !important;
  background: #4c2d33 !important;
  color: #F2E7DF !important;
}
body #hitpa-personal-area .hitpa-secondary,
body #hitpa-auth-modal .hitpa-secondary {
  border: 1px solid #4c2d33 !important;
  background: transparent !important;
  color: #4c2d33 !important;
}
body #hitpa-personal-area .hitpa-secondary:hover,
body #hitpa-auth-modal .hitpa-secondary:hover {
  border-color: #4c2d33 !important;
  background: #4c2d33 !important;
  color: #F2E7DF !important;
}
body #hitpa-personal-area .hitpa-icon-button {
  border: 1px solid #B38B45 !important;
  background: transparent !important;
  color: #B38B45 !important;
  box-shadow: none !important;
}
body #hitpa-personal-area .hitpa-icon-button:hover {
  border-color: #B38B45 !important;
  background: #B38B45 !important;
  color: #4c2d33 !important;
}
body #hitpa-personal-area .hitpa-link-button,
body #hitpa-auth-modal .hitpa-link-button,
body #hitpa-personal-area .hitpa-remove-button {
  border: 0 !important;
  background: transparent !important;
  color: #4c2d33 !important;
  box-shadow: none !important;
}
body #hitpa-personal-area .hitpa-danger-button {
  border: 1px solid #4c2d33 !important;
  background: transparent !important;
  color: #4c2d33 !important;
  box-shadow: none !important;
}
body #hitpa-personal-area .hitpa-danger-button:hover {
  border-color: #4c2d33 !important;
  background: #4c2d33 !important;
  color: #F2E7DF !important;
}
body #hitpa-personal-area .hitpa-dashboard-nav button,
body #hitpa-auth-modal .hitpa-channel-grid button {
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
body #hitpa-personal-area .hitpa-dashboard-nav button.is-active,
body #hitpa-auth-modal .hitpa-channel-grid button.is-active {
  border-color: #4c2d33 !important;
  background: #4c2d33 !important;
  color: #F2E7DF !important;
}

/* Stable, readable dashboard hero at all viewport widths and zoom levels. */
body #hitpa-personal-area .hitpa-dashboard-hero {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: clamp(18px,4vw,44px) !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
body #hitpa-personal-area .hitpa-member-identity {
  min-width: 0 !important;
  max-width: 100% !important;
}
body #hitpa-personal-area .hitpa-member-identity > div {
  min-width: 0 !important;
}
body #hitpa-personal-area .hitpa-dashboard-hero h1 {
  max-width: 100% !important;
  margin: 4px 0 8px !important;
  color: #F2E7DF !important;
  font-size: clamp(30px,4.2vw,52px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.018em !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
body #hitpa-personal-area .hitpa-dashboard-hero .hitpa-kicker,
body #hitpa-personal-area .hitpa-dashboard-hero .hitpa-sync-line {
  color: #F2E7DF !important;
}
body #hitpa-personal-area .hitpa-dashboard-hero .hitpa-kicker {
  color: #B38B45 !important;
}
body #hitpa-personal-area .hitpa-hero-actions {
  justify-self: end !important;
  flex: 0 0 auto !important;
}
body #hitpa-personal-area .hitpa-dashboard-hero .hitpa-secondary {
  border-color: #F2E7DF !important;
  color: #F2E7DF !important;
}
body #hitpa-personal-area .hitpa-dashboard-hero .hitpa-secondary:hover {
  background: #F2E7DF !important;
  color: #4c2d33 !important;
}

/* Category selector. */
.hitpa-topic-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
.hitpa-topic-search { flex: 1 1 260px; }
.hitpa-topic-search input { width: 100% !important; }
.hitpa-topic-selected {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #B38B45;
  border-radius: 999px;
  background: rgba(179,139,69,.14);
  color: #4c2d33;
  font-weight: 700;
  white-space: nowrap;
}
.hitpa-topic-selected strong { font-size: 18px; }
.hitpa-topic-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr)) !important;
  gap: 11px !important;
}
.hitpa-topic-chip { min-width: 0; }
.hitpa-topic-chip[hidden] { display: none !important; }
.hitpa-topic-chip input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body #hitpa-personal-area .hitpa-topic-chip > span {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(76,45,51,.20) !important;
  border-radius: 14px !important;
  background: #F2E7DF !important;
  color: #4c2d33 !important;
  box-shadow: none !important;
}
.hitpa-topic-chip > span strong {
  min-width: 0;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
}
.hitpa-topic-chip > span small {
  color: rgba(76,45,51,.68);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
body #hitpa-personal-area .hitpa-topic-chip:hover > span {
  border-color: #B38B45 !important;
  transform: translateY(-1px);
}
body #hitpa-personal-area .hitpa-topic-chip input:checked + span {
  border-color: #4c2d33 !important;
  background: #4c2d33 !important;
  color: #F2E7DF !important;
  box-shadow: inset 0 -4px 0 #B38B45 !important;
}
body #hitpa-personal-area .hitpa-topic-chip input:checked + span small { color: #F2E7DF !important; opacity: .82; }
body #hitpa-personal-area .hitpa-topic-chip input:focus-visible + span {
  outline: 3px solid #B38B45 !important;
  outline-offset: 3px !important;
}
.hitpa-topic-empty { margin: 16px 0 0; color: rgba(76,45,51,.72); font-weight: 700; }

/* Personalized recommendation cards. */
.hitpa-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.hitpa-recommendation-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(76,45,51,.16);
  border-radius: 18px;
  background: #F2E7DF;
  box-shadow: 0 10px 28px rgba(76,45,51,.08);
  animation: hitpa-enter .35s ease both;
  animation-delay: calc(var(--hitpa-card-index,0) * 35ms);
}
.hitpa-recommendation-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 0 !important;
  border-bottom: 1px solid rgba(179,139,69,.28) !important;
  background: #4c2d33;
}
.hitpa-recommendation-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.hitpa-recommendation-card:hover .hitpa-recommendation-media img { transform: scale(1.035); }
.hitpa-recommendation-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.hitpa-recommendation-topics { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.hitpa-recommendation-topics span {
  padding: 4px 8px;
  border: 1px solid #B38B45;
  border-radius: 999px;
  color: #4c2d33;
  background: rgba(179,139,69,.14);
  font-size: 11px;
  font-weight: 800;
}
.hitpa-recommendation-card h3 { margin: 11px 0 8px; font-size: 22px; line-height: 1.35; }
.hitpa-recommendation-card h3 a { color: #4c2d33 !important; text-decoration: none !important; }
.hitpa-recommendation-card p { margin: 0 0 18px; color: rgba(76,45,51,.72); line-height: 1.6; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.hitpa-recommendation-card .hitpa-secondary { align-self: flex-start; margin-top: auto; min-height: 40px; padding: 7px 14px !important; }
.hitpa-recommendations-empty { min-height: 330px; }

/* Header has exactly one visible state. This also prevents a flash of "להתחבר" for a signed-in member. */
body .hitpa-header-button .hitpa-header-pending,
body .hitpa-header-button .hitpa-header-guest,
body .hitpa-header-button .hitpa-header-member {
  display: none !important;
}
body .hitpa-header-button[data-hitpa-logged-in="pending"] .hitpa-header-pending,
body .hitpa-header-button[data-hitpa-logged-in="0"] .hitpa-header-guest,
body .hitpa-header-button[data-hitpa-logged-in="1"] .hitpa-header-member {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
body .hitpa-header-button[data-hitpa-logged-in="1"] {
  cursor: pointer !important;
}
body .hitpa-header-button[data-hitpa-logged-in="1"] .hitpa-header-avatar {
  border-color: #B38B45 !important;
  background: #F2E7DF !important;
  color: #4c2d33 !important;
}

@media (max-width: 980px) {
  .hitpa-recommendations-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  body #hitpa-personal-area .hitpa-dashboard-hero {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
  body #hitpa-personal-area .hitpa-hero-actions {
    justify-self: stretch !important;
    width: 100% !important;
    justify-content: space-between !important;
  }
  body #hitpa-personal-area .hitpa-dashboard-hero h1 { font-size: clamp(29px,8.5vw,43px) !important; }
  .hitpa-recommendations-grid { grid-template-columns: 1fr; }
  .hitpa-topic-grid { grid-template-columns: 1fr !important; }
  .hitpa-topic-toolbar { align-items: stretch; flex-direction: column; }
  .hitpa-topic-search { flex-basis: auto; width: 100%; }
  .hitpa-topic-selected { align-self: flex-start; }
}
@media (max-width: 430px) {
  body #hitpa-personal-area .hitpa-member-identity { align-items: flex-start !important; gap: 12px !important; }
  body #hitpa-personal-area .hitpa-avatar { width: 56px !important; height: 56px !important; font-size: 27px !important; }
  body #hitpa-personal-area .hitpa-dashboard-hero h1 { font-size: 31px !important; }
  body .hitpa-header-button .hitpa-header-status { display: none !important; }
}

@media (forced-colors: active) {
  body #hitpa-personal-area :is(button,a,input,select,textarea),
  body #hitpa-auth-modal :is(button,a,input,select,textarea),
  body .hitpa-header-button,
  body #hitpa-personal-area .hitpa-topic-chip > span {
    border-color: ButtonText !important;
    forced-color-adjust: auto !important;
  }
}

/* ==========================================================
   3.1.1 - Remove foreign red/pink focus borders from auth controls
   ========================================================== */
body #hitpa-auth-modal .hitpa-modal-close,
body #hitpa-auth-modal .hitpa-back-button,
body #hitpa-auth-modal .hitpa-modal-close:hover,
body #hitpa-auth-modal .hitpa-modal-close:active,
body #hitpa-auth-modal .hitpa-modal-close:focus,
body #hitpa-auth-modal .hitpa-back-button:hover,
body #hitpa-auth-modal .hitpa-back-button:active,
body #hitpa-auth-modal .hitpa-back-button:focus {
  border: 0 !important;
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Keep keyboard focus accessible without drawing a rectangular frame. */
body #hitpa-auth-modal .hitpa-modal-close:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: rgba(179,139,69,.18) !important;
  color: #4c2d33 !important;
}
body #hitpa-auth-modal .hitpa-back-button:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: inset 0 -3px 0 #B38B45 !important;
  background: transparent !important;
  color: #4c2d33 !important;
}

/* Neutralize any late theme or builder rule that paints a red/pink ring. */
body #hitpa-auth-modal :is(button,a):is(:hover,:active,:focus,:focus-visible) {
  --e-global-color-accent: #B38B45 !important;
  --wp--preset--color--vivid-red: #4c2d33 !important;
  text-decoration-color: #B38B45 !important;
}
