.hc-partner,
.hc-partner-login,
.hc-partner-rules {
  --hc-ink: #181622;
  --hc-muted: #716b7b;
  --hc-soft: #f7f5fb;
  --hc-line: #e9e5ef;
  --hc-accent: #6847f5;
  --hc-accent-dark: #5334d8;
  --hc-accent-soft: #f2edff;
  --hc-mint: #13a977;
  --hc-shadow: 0 18px 55px rgba(35, 25, 63, .07);
  color: var(--hc-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
}

.hc-partner *,
.hc-partner-login *,
.hc-partner-rules * { box-sizing: border-box; }

.hc-partner {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 72px;
}

.hc-partner a,
.hc-partner-login a,
.hc-partner-rules a { color: var(--hc-accent-dark); text-decoration: none; }

.hc-partner button,
.hc-partner input,
.hc-partner-login button { font: inherit; }

.hc-partner button:focus-visible,
.hc-partner input:focus-visible,
.hc-partner a:focus-visible,
.hc-partner-login button:focus-visible,
.hc-partner-rules a:focus-visible {
  outline: 3px solid rgba(104, 71, 245, .2);
  outline-offset: 2px;
}

.hc-partner-topbar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin-bottom: 18px;
}

.hc-partner-back,
.hc-partner-tools {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--hc-line);
  border-radius: 14px;
  background: #fff;
  color: #514b59 !important;
  box-shadow: 0 8px 24px rgba(35, 25, 63, .035);
}

.hc-partner-back { width: 46px; font-size: 20px; }
.hc-partner-tools { gap: 8px; padding: 0 16px; font-size: 12px; font-weight: 600; }
.hc-partner-back:hover,
.hc-partner-tools:hover { border-color: #d8d0f4; background: #faf8ff; color: var(--hc-accent-dark) !important; }
.hc-partner-topbar h1 { margin: 2px 0 0; font-size: clamp(21px, 2.5vw, 27px); line-height: 1.08; font-weight: 580; letter-spacing: -.035em; }
.hc-partner-kicker { display: block; color: #806bdf; font-size: 10px; line-height: 1.3; font-weight: 650; letter-spacing: .085em; text-transform: uppercase; }

.hc-partner-notice {
  margin: 0 0 14px;
  padding: 12px 15px;
  border: 1px solid #ded7fa;
  border-radius: 13px;
  background: #f5f2ff;
  color: #5945bd;
  font-size: 12px;
}
.hc-partner-notice.is-success { border-color: #cdeade; background: #effaf6; color: #247458; }
.hc-partner-notice.is-error { border-color: #f0d2d2; background: #fff4f4; color: #a44343; }

.hc-partner-token-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
  gap: 14px;
}

.hc-partner-token-hero article {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 27px 29px;
  border: 1px solid var(--hc-line);
  border-radius: 25px;
}

.hc-partner-token-balance {
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .24), transparent 32%),
    linear-gradient(135deg, #6746f3 0%, #805cf7 54%, #9877fa 100%);
  color: #fff;
  box-shadow: 0 22px 55px rgba(94, 65, 219, .2);
}
.hc-partner-token-balance:after {
  content: "T";
  position: absolute;
  right: 26px;
  bottom: -31px;
  color: rgba(255, 255, 255, .1);
  font-size: 156px;
  line-height: 1;
  font-weight: 700;
}
.hc-partner-token-balance > * { position: relative; z-index: 1; }
.hc-partner-token-balance > span,
.hc-partner-token-current > span { display: block; font-size: 11px; font-weight: 550; letter-spacing: .015em; }
.hc-partner-token-balance > span { color: rgba(255, 255, 255, .78); }
.hc-partner-token-balance strong,
.hc-partner-token-current strong { display: block; margin: 21px 0 8px; font-size: clamp(34px, 5vw, 52px); line-height: 1; font-weight: 520; letter-spacing: -.055em; }
.hc-partner-token-balance strong small,
.hc-partner-token-current strong small { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.hc-partner-token-balance p { max-width: 520px; margin: 0; color: rgba(255, 255, 255, .72); font-size: 11.5px; line-height: 1.55; }

.hc-partner-token-current { background: linear-gradient(145deg, #fff, #faf8ff); }
.hc-partner-token-current > span { color: var(--hc-muted); }
.hc-partner-token-current strong { color: var(--hc-ink); }
.hc-partner-token-current a { display: inline-flex; margin-top: 12px; font-size: 11.5px; font-weight: 600; }

.hc-partner-token-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--hc-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(35, 25, 63, .04);
}
.hc-partner-token-stats article { min-width: 0; padding: 17px 19px; }
.hc-partner-token-stats article + article { border-left: 1px solid var(--hc-line); }
.hc-partner-token-stats strong { display: block; margin-bottom: 5px; font-size: 22px; line-height: 1; font-weight: 540; letter-spacing: -.025em; }
.hc-partner-token-stats span { display: block; color: var(--hc-muted); font-size: 10.5px; line-height: 1.4; }

.hc-partner-card {
  margin-top: 14px;
  padding: 24px 26px;
  border: 1px solid var(--hc-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 13px 40px rgba(35, 25, 63, .035);
}
.hc-partner-card h2,
.hc-partner-faq h2 { margin: 5px 0 9px; font-size: 20px; line-height: 1.25; font-weight: 550; letter-spacing: -.025em; }
.hc-partner-card p { margin: 0; color: var(--hc-muted); font-size: 12.5px; line-height: 1.65; }

.hc-partner-token-how {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 34px;
  align-items: center;
  background: linear-gradient(145deg, #fff 58%, #fbf9ff);
}
.hc-partner-token-how ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.hc-partner-token-how li { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid #efecf3; }
.hc-partner-token-how li:last-child { border-bottom: 0; }
.hc-partner-token-how li b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--hc-accent-soft); color: var(--hc-accent-dark); font-size: 12px; font-weight: 650; }
.hc-partner-token-how li strong,
.hc-partner-token-how li small { display: block; }
.hc-partner-token-how li strong { margin-bottom: 2px; font-size: 12px; font-weight: 600; }
.hc-partner-token-how li small { color: #918b98; font-size: 10.5px; line-height: 1.4; }

.hc-partner-section-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; }
.hc-partner-section-head > span:not(.hc-partner-rate-pill) { color: #938d9b; font-size: 10px; }
.hc-partner-rate-pill { display: inline-flex; align-items: center; min-height: 29px; padding: 0 11px; border-radius: 999px; background: var(--hc-accent-soft); color: var(--hc-accent-dark); font-size: 10.5px; font-weight: 650; white-space: nowrap; }

.hc-partner-link-box { margin-top: 15px; }
.hc-partner-link-box label,
.hc-partner-promo-grid label { display: block; margin: 0 0 7px; color: #5f5967; font-size: 10.5px; font-weight: 600; }
.hc-partner-targets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.hc-partner-target {
  min-height: 33px;
  padding: 0 11px;
  border: 1px solid var(--hc-line);
  border-radius: 10px;
  background: #faf9fb;
  color: #6e6875;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 550;
  transition: .16s ease;
}
.hc-partner-target:hover { border-color: #d8cffb; color: var(--hc-accent-dark); }
.hc-partner-target.is-active { border-color: #d7cdfd; background: var(--hc-accent-soft); color: var(--hc-accent-dark); }
.hc-partner-link-label { margin-top: 3px !important; }
.hc-partner-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 7px; }
.hc-partner-link-row input,
.hc-partner-promo-edit input,
.hc-partner-invitee-promo input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #e4e0e8;
  border-radius: 12px;
  background: #fbfafc;
  color: #38333e;
  font-size: 12px;
  box-shadow: none;
}
.hc-partner-link-row input:focus,
.hc-partner-promo-edit input:focus,
.hc-partner-invitee-promo input:focus { border-color: #bfb0fa; background: #fff; }
.hc-partner-link-row button,
.hc-partner-promo-grid button,
.hc-partner-invitee-promo button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #ddd5fb;
  border-radius: 12px;
  background: var(--hc-accent-soft);
  color: var(--hc-accent-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: .16s ease;
}
.hc-partner-link-row button:hover,
.hc-partner-promo-grid button:hover,
.hc-partner-invitee-promo button:hover { border-color: #cfc2fc; background: #eae3ff; }
.hc-partner-link-row .is-icon { width: 44px; padding: 0; font-size: 16px; }
.hc-partner button.is-copied { border-color: #bfe5d6; background: #ebf8f3; color: #167b58; }

.hc-partner-promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; }
.hc-partner-promo-current,
.hc-partner-promo-edit { padding: 15px; border: 1px solid #efecf2; border-radius: 15px; background: #fcfbfd; }
.hc-partner-promo-current > div { display: flex; gap: 8px; align-items: center; }
.hc-partner-promo-current code { flex: 1; overflow: hidden; color: #2a2630; font: 600 17px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .035em; text-overflow: ellipsis; }
.hc-partner-promo-edit > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.hc-partner-promo-current small,
.hc-partner-promo-edit small { display: block; margin-top: 8px; color: #99939f; font-size: 9.5px; }

.hc-partner-invitee-promo { display: grid; grid-template-columns: 1fr minmax(330px, .8fr); gap: 24px; align-items: center; background: linear-gradient(120deg, #fcfbff, #f5f1ff); }
.hc-partner-invitee-promo form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.hc-partner-invitee-promo button { border-color: var(--hc-accent); background: var(--hc-accent); color: #fff; }
.hc-partner-invitee-promo button:hover { border-color: var(--hc-accent-dark); background: var(--hc-accent-dark); }

.hc-partner-list { margin-top: 4px; }
.hc-partner-list-row { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #efecf2; }
.hc-partner-list-row:last-child { border-bottom: 0; }
.hc-partner-list-row strong,
.hc-partner-list-row span { display: block; }
.hc-partner-list-row strong { margin-bottom: 3px; color: var(--hc-mint); font-size: 12.5px; font-weight: 650; }
.hc-partner-list-row span { color: var(--hc-muted); font-size: 10.5px; line-height: 1.45; }
.hc-partner-list-row time { flex: 0 0 auto; color: #9d97a2; font-size: 10px; white-space: nowrap; }
.hc-partner-empty { padding: 34px 12px; color: #938d99; text-align: center; font-size: 11px; }

.hc-partner-faq { max-width: 920px; margin: 22px auto 0; padding: 22px 8px 0; }
.hc-partner-faq h2 { margin-bottom: 12px; font-size: 23px; }
.hc-partner-faq details { border-bottom: 1px solid var(--hc-line); }
.hc-partner-faq summary { position: relative; padding: 15px 32px 15px 1px; cursor: pointer; font-size: 12.5px; font-weight: 570; list-style: none; }
.hc-partner-faq summary::-webkit-details-marker { display: none; }
.hc-partner-faq summary:after { content: "+"; position: absolute; right: 4px; top: 11px; color: #8a8292; font-size: 20px; font-weight: 350; }
.hc-partner-faq details[open] summary:after { content: "−"; }
.hc-partner-faq details p { margin: -2px 34px 15px 1px; color: var(--hc-muted); font-size: 11.5px; line-height: 1.65; }
.hc-partner-rules-link { margin: 17px 0 0 !important; font-size: 11px !important; }

.hc-partner-login {
  width: min(760px, calc(100% - 28px));
  margin: 50px auto;
  padding: 45px 38px;
  border: 1px solid var(--hc-line);
  border-radius: 28px;
  background: radial-gradient(circle at 86% 8%, rgba(104, 71, 245, .14), transparent 34%), #fff;
  box-shadow: var(--hc-shadow);
  text-align: center;
}
.hc-partner-login-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 15px; border-radius: 18px; background: linear-gradient(135deg, #6847f5, #9776ff); color: #fff; font-size: 23px; font-weight: 650; }
.hc-partner-login h1 { margin: 8px 0 12px; font-size: clamp(27px, 5vw, 35px); line-height: 1.14; font-weight: 560; letter-spacing: -.045em; }
.hc-partner-login p { max-width: 590px; margin: 0 auto; color: var(--hc-muted); font-size: 13px; line-height: 1.65; }
.hc-partner-login-actions { display: flex; justify-content: center; gap: 8px; margin-top: 23px; }
.hc-partner-login-actions button { min-width: 145px; min-height: 46px; border: 1px solid var(--hc-line); border-radius: 13px; background: #fff; color: #4e4855; cursor: pointer; font-size: 12px; font-weight: 600; }
.hc-partner-login-actions .is-primary { border-color: var(--hc-accent); background: var(--hc-accent); color: #fff; }

.hc-partner-rules { width: min(900px, calc(100% - 28px)); margin: 28px auto 72px; }
.hc-partner-rules-hero { padding: 36px; border: 1px solid var(--hc-line); border-radius: 25px; background: radial-gradient(circle at 91% 7%, rgba(104, 71, 245, .13), transparent 34%), #fff; box-shadow: var(--hc-shadow); }
.hc-partner-rules-hero > a { display: inline-flex; margin-bottom: 24px; font-size: 11.5px; font-weight: 600; }
.hc-partner-rules-hero > span { display: block; margin-bottom: 7px; color: #806bdf; font-size: 9.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.hc-partner-rules-hero h1 { margin: 0 0 10px; font-size: clamp(27px, 5vw, 34px); line-height: 1.12; font-weight: 560; letter-spacing: -.04em; }
.hc-partner-rules-hero p { margin: 0; color: var(--hc-muted); font-size: 13px; line-height: 1.6; }
.hc-partner-rules > section { margin-top: 10px; padding: 23px 26px; border: 1px solid var(--hc-line); border-radius: 18px; background: #fff; }
.hc-partner-rules h2 { margin: 0 0 10px; font-size: 16px; line-height: 1.3; font-weight: 580; letter-spacing: -.015em; }
.hc-partner-rules p { margin: 0; color: #625c68; font-size: 12px; line-height: 1.72; }
.hc-partner-rules p strong { color: #2b2730; font-weight: 650; }
.hc-partner-rules footer { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-top: 14px; padding: 16px 19px; border-radius: 14px; background: var(--hc-soft); color: #77717c; font-size: 10px; }
.hc-partner-rules footer strong { color: #4c4652; font-weight: 650; }

@media (max-width: 820px) {
  .hc-partner-token-hero,
  .hc-partner-token-how,
  .hc-partner-invitee-promo { grid-template-columns: 1fr; }
  .hc-partner-token-current { min-height: 150px !important; }
  .hc-partner-token-stats { grid-template-columns: repeat(2, 1fr); }
  .hc-partner-token-stats article:nth-child(3) { border-left: 0; }
  .hc-partner-token-stats article:nth-child(-n+2) { border-bottom: 1px solid var(--hc-line); }
  .hc-partner-token-how { gap: 18px; }
}

@media (max-width: 560px) {
  .hc-partner { width: calc(100% - 20px); margin-top: 14px; }
  .hc-partner-topbar { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 9px; }
  .hc-partner-back { width: 42px; min-height: 42px; }
  .hc-partner-tools { width: 42px; min-height: 42px; padding: 0; font-size: 0; }
  .hc-partner-tools span { font-size: 16px; }
  .hc-partner-topbar h1 { font-size: 19px; }
  .hc-partner-token-hero article,
  .hc-partner-card { padding: 20px 18px; border-radius: 19px; }
  .hc-partner-token-hero article { min-height: 170px; }
  .hc-partner-token-balance strong,
  .hc-partner-token-current strong { font-size: 34px; }
  .hc-partner-token-stats article { padding: 14px; }
  .hc-partner-token-stats strong { font-size: 19px; }
  .hc-partner-section-head { gap: 10px; }
  .hc-partner-promo-grid { grid-template-columns: 1fr; }
  .hc-partner-targets { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .hc-partner-targets::-webkit-scrollbar { display: none; }
  .hc-partner-target { flex: 0 0 auto; }
  .hc-partner-link-row { grid-template-columns: minmax(0, 1fr) auto; }
  .hc-partner-link-row .is-icon { display: none; }
  .hc-partner-promo-current > div { align-items: stretch; flex-direction: column; }
  .hc-partner-promo-edit > div,
  .hc-partner-invitee-promo form { grid-template-columns: 1fr; }
  .hc-partner-list-row { flex-direction: column; gap: 5px; }
  .hc-partner-faq { padding-left: 5px; padding-right: 5px; }
  .hc-partner-login { margin-top: 24px; padding: 34px 20px; }
  .hc-partner-login-actions { flex-direction: column; }
  .hc-partner-login-actions button { width: 100%; }
  .hc-partner-rules { width: calc(100% - 20px); margin-top: 14px; }
  .hc-partner-rules-hero { padding: 28px 21px; border-radius: 21px; }
  .hc-partner-rules > section { padding: 20px 18px; }
  .hc-partner-rules footer { align-items: flex-start; flex-direction: column; }
}
