:root {
  --hub-bg: var(--bg);
  --hub-card: #f7f7fb;
  --hub-card-alt: #eef0f5;
  --hub-card-text: #101820;
  --hub-card-muted: #4c5564;
  --hub-text: var(--text);
  --hub-muted: var(--muted);
  --hub-border: rgba(16, 24, 32, 0.12);
  --hub-accent: var(--brand);
  --hub-accent-soft: rgba(74, 144, 226, 0.15);
  --hub-success: #4bb272;
}

body.theme-light .creatorsHubRoot {
  --hub-bg: #f4f5f9;
  --hub-text: #101820;
  --hub-muted: #4c5564;
  --hub-border: rgba(16, 24, 32, 0.18);
}

body.theme-dark .creatorsHubRoot {
  --hub-bg: #0f1014;
  --hub-text: #efe9dd;
  --hub-muted: #c9c2b6;
  --hub-border: rgba(239, 233, 221, 0.18);
}

.creatorsHubRoot {
  background: var(--hub-bg);
  color: var(--hub-text);
  min-height: 70vh;
}

.creatorsHubRoot .hub-container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.creatorsHubRoot .hub-kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--hub-muted);
  margin-bottom: 12px;
}

.creatorsHubRoot .hub-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0 0 12px;
  color: var(--hub-text);
}

.creatorsHubRoot .hub-subtitle {
  font-size: 1rem;
  color: var(--hub-text);
  margin-bottom: 4px;
}

.creatorsHubRoot .hub-card {
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  color: var(--hub-card-text);
}

.creatorsHubRoot .hub-card h2,
.creatorsHubRoot .hub-card h3,
.creatorsHubRoot .hub-card h4 {
  color: var(--hub-card-text);
  margin: 0 0 8px;
}

.creatorsHubRoot .hub-card p {
  color: var(--hub-card-muted);
  margin: 0 0 12px;
}

.creatorsHubRoot .hub-card .hub-muted,
.creatorsHubRoot .hub-card .hub-note {
  color: var(--hub-card-muted);
}

.creatorsHubRoot .hub-card .hub-status {
  color: var(--hub-success);
}

.creatorsHubRoot .hub-section {
  margin-top: 32px;
}

.creatorsHubRoot .hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.creatorsHubRoot .hub-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.creatorsHubRoot .hub-badge {
  background: var(--hub-accent-soft);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  color: var(--hub-card-text);
}

.creatorsHubRoot .hub-badge strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.creatorsHubRoot .hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.creatorsHubRoot .hub-btn,
.creatorsHubRoot .hub-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--hub-accent);
  color: var(--hub-text);
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.creatorsHubRoot .hub-btn.primary {
  background: var(--hub-accent);
  color: #0b0b0c;
}

.creatorsHubRoot .hub-btn.secondary {
  border-color: var(--hub-border);
  color: var(--hub-text);
}

.creatorsHubRoot .hub-form {
  display: grid;
  gap: 12px;
}

.creatorsHubRoot .hub-form label {
  font-size: 0.86rem;
  color: var(--hub-muted);
  display: block;
  margin-bottom: 6px;
}

.creatorsHubRoot .hub-form input,
.creatorsHubRoot .hub-form select,
.creatorsHubRoot .hub-form textarea,
.creatorsHubRoot textarea,
.creatorsHubRoot input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  background: #fff;
  color: var(--hub-card-text);
  font-size: 0.95rem;
}

.creatorsHubRoot textarea {
  min-height: 110px;
  resize: vertical;
}

.creatorsHubRoot .hub-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.creatorsHubRoot .hub-inline-space {
  justify-content: space-between;
}

.creatorsHubRoot .hub-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--hub-accent-soft);
  font-size: 0.75rem;
  color: var(--hub-text);
}

.creatorsHubRoot .hub-muted {
  color: var(--hub-muted);
}

.creatorsHubRoot .hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.creatorsHubRoot .hub-list li {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  background: #fff;
}

.creatorsHubRoot .hub-divider {
  height: 1px;
  background: var(--hub-border);
  margin: 18px 0;
}

.creatorsHubRoot .hub-note {
  font-size: 0.85rem;
  color: var(--hub-muted);
}

.creatorsHubRoot .hub-status {
  font-size: 0.85rem;
  color: var(--hub-success);
}

.creatorsHubRoot .hub-panel {
  border: 1px solid var(--hub-border);
  border-radius: 16px;
  padding: 20px;
  background: var(--hub-card-alt);
}

.creatorsHubRoot .hub-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.creatorsHubRoot .hidden {
  display: none;
}

.creatorsHubRoot .hub-banner {
  position: relative;
  background: var(--hub-card);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.creatorsHubRoot .hub-banner--light {
  background: #f4f4f7;
  color: #121212;
}

.creatorsHubRoot .hub-banner--light .hub-banner-name,
.creatorsHubRoot .hub-banner--light .hub-banner-tag,
.creatorsHubRoot .hub-banner--light .hub-muted {
  color: #121212;
}

.creatorsHubRoot .hub-banner-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.creatorsHubRoot .hub-banner-tag {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--hub-border);
  background: rgba(16, 24, 32, 0.08);
  grid-column: 2;
  justify-self: center;
}

.creatorsHubRoot .hub-banner-name {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  letter-spacing: 0.12em;
  margin: 0;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--sans);
  width: 100%;
}
.creatorsHubRoot .hub-banner-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 6px;
}

.creatorsHubRoot .hub-theme-toggle {
  display: grid;
  gap: 6px;
  text-align: right;
  justify-self: end;
}

.creatorsHubRoot .hub-toggle {
  display: inline-flex;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--hub-border);
  background: rgba(16, 24, 32, 0.08);
  font-size: 0.85rem;
}

.creatorsHubRoot .hub-toggle label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  color: inherit;
}

.creatorsHubRoot .hub-toggle input {
  width: auto;
}

.creatorsHubRoot .hub-profile-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.creatorsHubRoot .hub-bio-text {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--hub-card-text);
  line-height: 1.6;
}

.creatorsHubRoot .hub-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.creatorsHubRoot .hub-profile-block label {
  font-size: 0.85rem;
  color: var(--hub-muted);
  margin-bottom: 6px;
  display: block;
}

.creatorsHubRoot .hub-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.creatorsHubRoot .hub-avatar-option {
  border: 1px solid var(--hub-border);
  border-radius: 14px;
  padding: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.creatorsHubRoot .hub-avatar-option img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.creatorsHubRoot .hub-avatar-option.is-selected {
  border-color: var(--hub-accent);
  box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.4);
  transform: translateY(-2px);
}

.creatorsHubRoot .hub-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--hub-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--hub-card-text);
  font-weight: 700;
}
.creatorsHubRoot .hub-avatar--lg {
  width: 128px;
  height: 128px;
}
.creatorsHubRoot .hub-avatar-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.creatorsHubRoot .hub-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  transform-origin: center;
}

.hub-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
}

.hub-avatar--lg {
  width: 128px;
  height: 128px;
}

.hub-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.creatorsHubRoot .hub-auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.creatorsHubRoot .hub-bullet-list {
  list-style: disc;
  padding-left: 18px;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.creatorsHubRoot .hub-bullet-list li {
  color: var(--hub-muted);
}

.creatorsHubRoot [data-member-only].is-locked {
  opacity: 0.5;
}

.creatorsHubRoot .hub-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creatorsHubRoot .hub-modal.hidden {
  display: none;
}

.creatorsHubRoot .hub-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.7);
}

.creatorsHubRoot .hub-modal__content {
  position: relative;
  max-width: 420px;
  width: calc(100% - 48px);
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: 18px;
  padding: 24px;
  z-index: 1;
}

.creatorsHubRoot .hub-back {
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hub-accent);
  text-decoration: none;
  font-weight: 600;
}

.creatorsHubRoot .hub-copy-btn {
  border: 1px solid var(--hub-border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--hub-card-text);
}

.creatorsHubRoot .hub-template-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.creatorsHubRoot .hub-template-actions button {
  border: 1px solid var(--hub-border);
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  color: var(--hub-card-text);
  cursor: pointer;
}

.creatorsHubRoot .hub-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(16, 18, 24, 0.95);
  color: #f8fafc;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(239, 233, 221, 0.2);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  z-index: 120;
  font-size: 0.9rem;
}


body.theme-dark .creatorsHubRoot [data-inpage-links] .hub-btn.secondary {
  color: #101820;
  opacity: 1;
  border-color: rgba(16, 24, 32, 0.24);
}

@media (max-width: 700px) {
  .creatorsHubRoot .hub-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .creatorsHubRoot .hub-banner-top {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .creatorsHubRoot .hub-theme-toggle {
    justify-self: center;
    text-align: center;
  }

  .creatorsHubRoot .hub-avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creatorsHubRoot .hub-avatar-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

.creatorsHubRoot label,
.creatorsHubRoot .hub-form label {
  color: var(--text);
}

.hub-settings-panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  justify-items: end;
  z-index: 1000;
}

.hub-settings-panel__card {
  width: min(560px, 100%);
  height: 100%;
  background: #101218;
  color: #efe9dd;
  padding: 24px;
  border-left: 1px solid rgba(239, 233, 221, 0.15);
  display: grid;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
}

.hub-settings-panel__card > h2 {
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(239, 233, 221, 0.2);
  font-size: 1.35rem;
}

.hub-profile-block {
  border: 1px solid rgba(239, 233, 221, 0.14);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 10px;
}

.hub-profile-block h3,
.hub-profile-block label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

#account-bio {
  min-height: 132px;
  resize: vertical;
}

.hub-avatar-row {
  align-items: start;
  gap: 14px;
}

.hub-settings-panel__card .hub-note,
.hub-settings-panel__card label,
.hub-settings-panel__card h2,
.hub-settings-panel__card h3 {
  color: #efe9dd;
}

.hub-settings-danger {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(239, 233, 221, 0.2);
}

.hub-confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  display: grid;
  place-items: center;
  z-index: 1100;
  padding: 20px;
}

.hub-settings-panel[hidden],
.hub-confirm-modal[hidden],
#settings-slide-over[hidden],
#delete-account-modal[hidden] {
  display: none !important;
}

.hub-confirm-modal__card {
  width: min(460px, 92vw);
  background: #12151d;
  color: #efe9dd;
  border: 1px solid rgba(239, 233, 221, 0.2);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  z-index: 1101;
}

.hub-confirm-modal__card h2,
.hub-confirm-modal__card p {
  color: #efe9dd;
  margin: 0;
}

.hub-confirm-modal__actions {
  justify-content: flex-end;
}

.hub-btn.hub-btn-danger {
  background: #c53030;
  border-color: #c53030;
  color: #fff;
}

.hub-btn.hub-btn-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.theme-light .hub-settings-panel__card,
body.theme-light .hub-confirm-modal__card {
  background: #ffffff;
  color: #101820;
  border-color: rgba(16, 24, 32, 0.2);
}

body.theme-light .hub-profile-block {
  background: #f8fafc;
  border-color: rgba(16, 24, 32, 0.16);
}

body.theme-light .hub-settings-panel__card .hub-note,
body.theme-light .hub-settings-panel__card label,
body.theme-light .hub-settings-panel__card h2,
body.theme-light .hub-settings-panel__card h3,
body.theme-light .hub-confirm-modal__card h2,
body.theme-light .hub-confirm-modal__card p {
  color: #101820;
}

body.theme-light .hub-btn.hub-btn-danger {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

[data-avatar-select-grid] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}



.hub-avatar-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(239, 233, 221, 0.28);
  border-radius: 50%;
  overflow: hidden;
  background: rgba(16, 18, 24, 0.8);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-avatar-thumb:hover {
  border-color: rgba(31, 212, 143, 0.65);
  transform: translateY(-1px);
}

.hub-avatar-thumb img,
.hub-avatar-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center;
  transform: scale(1.22);
  transform-origin: center;
}

.hub-avatar-thumb.is-selected {
  border-color: #1fd48f;
  box-shadow: 0 0 0 2px rgba(31, 212, 143, 0.7), 0 0 14px rgba(31, 212, 143, 0.45);
}

.hub-settings-panel [data-avatar-preview] {
  min-width: 88px;
  min-height: 88px;
  overflow: hidden;
  border: 2px solid rgba(239, 233, 221, 0.4);
  box-shadow: 0 0 0 1px rgba(239, 233, 221, 0.2);
}

.hub-settings-panel [data-avatar-preview] img {
  object-position: center;
  transform: scale(1.22);
  transform-origin: center;
}

.hub-settings-panel [data-theme-save] {
  border-color: #1fd48f !important;
  color: #08140f !important;
  background: #1fd48f !important;
  font-weight: 700;
}

.hub-avatar-placeholder {
  font-size: 0.8rem;
  color: rgba(239, 233, 221, 0.7);
  text-align: center;
  padding: 10px;
}

[data-account-settings] .hub-kicker{
  display:none;
}

[data-account-settings] .hub-note,
[data-account-settings] .hub-form label,
[data-account-settings] label,
[data-account-settings] input,
[data-account-settings] textarea,
[data-account-settings] select{
  color: var(--hub-text);
}

.hub-settings-panel__card input,
.hub-settings-panel__card textarea,
.hub-settings-panel__card select {
  background: rgba(16, 18, 24, 0.92);
  color: #efe9dd;
  border: 1px solid rgba(239, 233, 221, 0.26);
}

body.theme-light .hub-settings-panel__card input,
body.theme-light .hub-settings-panel__card textarea,
body.theme-light .hub-settings-panel__card select {
  background: #f8fafc;
  color: #101820;
  border-color: rgba(16, 24, 32, 0.28);
}

.close-settings-btn{
  border-color: rgba(239,233,221,0.35) !important;
  color:#efe9dd !important;
  background: rgba(239,233,221,0.12) !important;
  font-weight:700;
}

body.theme-light .close-settings-btn {
  border-color: rgba(16, 24, 32, 0.28) !important;
  color: #101820 !important;
  background: rgba(16, 24, 32, 0.08) !important;
}

body.theme-light .hub-avatar-thumb {
  background: #ffffff;
  border-color: rgba(16, 24, 32, 0.25);
}

body.theme-light .hub-avatar-thumb.is-selected {
  border-color: #129f6a;
  box-shadow: 0 0 0 2px rgba(18, 159, 106, 0.55), 0 0 12px rgba(18, 159, 106, 0.32);
}
