/* R15 creator program. Extends the existing warm BILAL theme. */
.creator-program, .creator-account, .creator-code-field { min-width: 0; }
.creator-program > * + *, .creator-account { margin-top: 28px; }
.creator-program > .tabs:first-child { margin-top: 0; }
.creator-program h1, .creator-program h2, .creator-program h3,
.creator-account h2 { color: #f3d39a; }
.creator-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 32px;
  align-items: center;
  background: radial-gradient(ellipse at top right, #8d573d38, transparent 65%), #2c211b;
}
.creator-intro h1 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.1; }
.creator-intro p { max-width: 58ch; }
.creator-rate { display: grid; gap: 12px; padding-left: 28px; border-left: 1px solid #937144; }
.creator-rate > strong { color: #f1c875; font-family: var(--reino-serif, Georgia, serif); font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 400; line-height: 1; }
.creator-rate > strong > span { font-size: .55em; }
.creator-rate > span { font-size: 17px; color: #ddcdb5; }
.creator-program-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.creator-program-steps h2 { font-size: 23px; margin: 0 0 12px; }
.creator-program-steps p { margin: 0; color: #cdbfae; font-size: 16px; }
.creator-payout-note { line-height: 1.65; font-size: 16px; }
.creator-section-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 20px; }
.creator-section-heading h2, .creator-section-heading h3 { margin: 0; }
.creator-section-heading p { margin: 6px 0 0; }
.creator-section-heading > div { min-width: 0; }
.creator-section-heading h2, .creator-section-heading h3, .creator-section-heading code { overflow-wrap: anywhere; }
.creator-section-heading .eyebrow { margin: 0 0 10px; }
.creator-code-field { margin: 20px 0; }
.creator-code-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.creator-code-entry input { width: 100%; min-width: 0; font-family: var(--reino-sans, Arial, sans-serif); font-size: 16px; }
.creator-code-entry .button { margin: 0; }
.creator-code-field .muted { font-size: 16px; margin: 10px 0; }
.creator-form-status { display: block; color: #f1ce90; font-size: 16px; line-height: 1.6; margin-top: 14px; white-space: normal; overflow-wrap: anywhere; }
.creator-form-status:empty { margin-top: 0; }
.creator-share { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 20px; margin: 24px 0; }
.creator-share > div:first-child { display: grid; gap: 8px; }
.creator-share strong { font-size: 1.65rem; color: #f5d89b; }
.creator-share > .field { margin-bottom: 0; }
.creator-share input { min-width: 0; width: 100%; }
.creator-share > .button { margin-bottom: 0; }
.creator-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.creator-stats > div { min-width: 0; padding: 16px; background: #1c1611; border-radius: 4px; }
.creator-stats dt { color: #cbbba4; font-size: 15px; line-height: 1.4; }
.creator-stats dd { margin: 10px 0 0; color: #f0cb88; font-size: clamp(1.05rem, 1.7vw, 1.55rem); font-weight: 600; overflow-wrap: anywhere; }
.creator-money { font-variant-numeric: tabular-nums; }
.creator-micro-detail { display: block; margin-top: 5px; font-size: 14px; line-height: 1.4; font-weight: 400; color: #c8b99f; }
.creator-status { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 10px; border: 1px solid #94733d; border-radius: 4px; background: #5d43252e; color: #edd3a0; font: 600 14px/1.45 var(--reino-sans, Arial, sans-serif); max-width: 100%; }
.creator-status-active, .creator-status-available, .creator-status-paid { color: #cfdbb4; border-color: #697956; background: #43512d30; }
.creator-status-held, .creator-status-invalid, .creator-status-paused, .creator-status-cancelled { color: #ecc4b7; border-color: #99624f; background: #582e2a30; }
.creator-history { margin-top: 36px; }
.creator-history > h2 { margin-bottom: 20px; }
.creator-payout-list, .creator-admin-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.creator-payout .stat-list, .creator-admin-card .stat-list { margin: 18px 0; }
.creator-program .stat-list dd { min-width: 0; margin-left: 16px; text-align: right; overflow-wrap: anywhere; }
.creator-program code, .creator-account code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .95em; overflow-wrap: anywhere; }
.creator-wallet-summary dd { max-width: 70%; }
.creator-receipt { margin-top: 24px; padding-top: 18px; }
.creator-receipt > summary { min-height: 44px; font-size: 17px; font-weight: 600; color: #f0ce8c; }
.creator-receipt form { margin-top: 22px; }
.creator-confirmation { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 12px; margin: 20px 0; font-size: 16px; line-height: 1.6; }
.creator-confirmation input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; padding: 0; margin: 3px 0 0; }
.creator-program [aria-busy="true"] { cursor: progress; }
.creator-program button:disabled, .creator-code-field button:disabled { cursor: wait; opacity: .65; }
.creator-account .actions { margin-top: 16px; }
/* R16: each account owns a share card; administrative lists remain bounded. */
.creator-account > section + section { margin-top: 24px; }
.creator-own-account { background: radial-gradient(ellipse at top left, #8d573d24, transparent 65%), #2c211b; }
.creator-own-intro { max-width: 70ch; color: #ddcdb5; font-size: 16px; line-height: 1.65; }
.creator-share strong, .creator-share strong code { min-width: 0; overflow-wrap: anywhere; }
.creator-own-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #93714466; }
.creator-own-footer > div { min-width: 0; }
.creator-own-footer p { margin: 0 0 6px; color: #f0cb88; font-weight: 600; font-size: 18px; }
.creator-own-footer span { color: #cdbfae; font-size: 16px; }
.creator-own-footer > .button { flex-shrink: 0; }
.creator-admin-manual > summary { color: #edce93; font-size: 17px; font-weight: 600; line-height: 1.5; min-height: 44px; cursor: pointer; }
.creator-admin-manual:not([open]) > summary { display: list-item; }
.creator-admin-manual > p { margin: 16px 0 22px; color: #cdbfae; font-size: 16px; line-height: 1.65; }
.creator-admin-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.creator-admin-filters .button { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0; min-width: 0; min-height: 48px; font-size: 16px; white-space: normal; }
.creator-filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; padding: 3px 8px; border-radius: 20px; background: #1b140d26; font-variant-numeric: tabular-nums; font-size: 15px; }
.creator-admin-filters .ghost .creator-filter-count { background: #ad82572b; }
.creator-admin-help { max-width: 80ch; margin: 16px 0 20px; font-size: 16px; line-height: 1.65; }
.creator-admin-results > h2:focus { outline: 2px solid #d6ac66; outline-offset: 6px; border-radius: 2px; }
.creator-pagination { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin: 20px 0; padding: 16px 0; }
.creator-pagination > p { margin: 0; text-align: center; font-size: 17px; font-weight: 600; color: #e8c994; }
.creator-pagination > p > span { display: block; margin-top: 5px; font-size: 15px; font-weight: 400; color: #cdbfae; }
.creator-pagination > .button { min-width: 120px; min-height: 46px; margin: 0; font-size: 16px; }
.creator-pagination > .button:disabled { cursor: default; opacity: .45; }
/* R17: one-address payout setup and clear separation of staff and player cards. */
.creator-card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.creator-balance-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 20px; padding: 20px; margin-top: 24px; background: #47331c61; border-radius: 4px; }
.creator-balance-total > span { color: #ddcdb5; font-size: 17px; }
.creator-balance-total > strong { min-width: 0; max-width: 100%; color: #f5d89b; font-size: clamp(1.5rem, 3vw, 2rem); overflow-wrap: anywhere; }
.creator-balance-total > small { grid-column: 1 / -1; font-size: 15px; line-height: 1.55; color: #cdbfae; }
.creator-withdraw { margin-top: 24px; padding-top: 22px; border-top: 1px solid #93714466; }
.creator-withdraw > summary.button { display: inline-flex; align-items: center; justify-content: center; min-width: 170px; min-height: 52px; margin: 0; padding: 13px 26px; font-size: 18px; font-weight: 700; list-style: none; cursor: pointer; }
.creator-withdraw > summary::marker, .creator-withdraw > summary::-webkit-details-marker { display: none; content: ''; }
.creator-withdraw-content { max-width: 760px; margin-top: 24px; }
.creator-withdraw-content h3 { margin: 0 0 16px; color: #f3d39a; font-size: 24px; }
.creator-withdraw-content p { font-size: 16px; line-height: 1.65; }
.creator-withdraw-content form { margin-top: 24px; }
.creator-withdraw-content input { width: 100%; min-width: 0; font-size: 16px; }
.creator-wallet-legacy { padding: 16px 0; margin: 18px 0; border-bottom: 1px solid #93714466; }
.creator-wallet-copy { max-width: 100%; font-size: 16px; }
.creator-invitation-result:empty { display: none; }
.creator-invitation-result:not(:empty) { margin-top: 22px; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.creator-invited-by { padding: 14px 18px; background: #2c211b; border-radius: 4px; }
.creator-invited-by strong { color: #f0cb88; }
.creator-staff-entry { padding: 32px; background: radial-gradient(ellipse at top right, #8d573d38, transparent 65%), #2c211b; }
.creator-staff-entry h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); line-height: 1.2; }
.creator-staff-entry > p:not(.eyebrow) { max-width: 65ch; font-size: 17px; line-height: 1.65; }
.creator-staff-entry .creator-admin-entry { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 72px; margin-top: 24px; padding: 18px 24px; font-size: clamp(1.1rem, 2.3vw, 1.5rem); text-align: center; white-space: normal; }
@media (max-width: 900px) {
  .creator-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-share { grid-template-columns: minmax(0, 1fr) auto; }
  .creator-share > div:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .creator-share > div:first-child > span { grid-column: 1 / -1; }
  .creator-program-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .creator-admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .creator-intro { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .creator-rate { padding-left: 0; padding-top: 18px; border-left: 0; border-top: 1px solid #937144; }
  .creator-rate > strong { font-size: 4rem; }
  .creator-code-entry, .creator-share { grid-template-columns: minmax(0, 1fr); }
  .creator-code-entry .button, .creator-share > .button { width: 100%; }
  .creator-share > div:first-child { grid-template-columns: minmax(0, 1fr); }
  .creator-share > div:first-child > span { grid-column: auto; }
  .creator-own-footer { display: grid; gap: 16px; }
  .creator-own-footer > .button { width: 100%; }
  .creator-admin-filters { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .creator-admin-filters .button { justify-content: space-between; padding-inline: 18px; }
  .creator-pagination { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .creator-pagination > p { grid-column: 1 / -1; grid-row: 1; }
  .creator-pagination > .button { min-width: 0; width: 100%; }
  .creator-balance-total { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .creator-withdraw > summary.button, .creator-withdraw-content .actions > .button { width: 100%; }
  .creator-program .stat-list > div { gap: 10px; align-items: start; }
  .creator-program .stat-list dd { margin-left: 0; max-width: 65%; }
  .creator-program .table-wrap { overflow-x: auto; }
  .creator-program table { min-width: 600px; }
}
@media (max-width: 430px) {
  .creator-stats { gap: 10px; }
  .creator-stats > div { padding: 12px; }
  .creator-stats dt { font-size: 14px; }
  .creator-program .panel, .creator-account .panel { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .creator-program *, .creator-account *, .creator-code-field * { transition: none; scroll-behavior: auto; }
}
