/* ==========================================================================
   WhoOwl — promoter panel (promoters.html, promoter-login.html,
   promoter-dashboard.html). Loaded AFTER start.css and reuses its tokens
   (paper / ink / owl-yellow / night-navy). Only the panel's own parts live here.
   ========================================================================== */
.pr .hidden { display: none !important; }
.pr .hdr-btns { flex-direction: row; align-items: center; gap: 10px; }
.pr ::selection { background: var(--yellow); color: var(--ink); }
.pr :focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.pr input, .pr textarea, .pr select { caret-color: var(--navy); }
.pr a { text-underline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.pr .btn-ghost { white-space: nowrap; }
/* On a phone the login link lives under the form; the header keeps logo + language. */
@media (max-width: 559px) { .pr .nav-login { display: none; } }

/* ---------- join: hero ---------- */
.pr-hero { padding-block: 22px 8px; display: grid; gap: 24px; align-items: start; }
.pr-hero .h1 { font-size: clamp(2rem, 8.6vw, 3rem); margin: 6px 0 14px; text-wrap: balance; }
.pr-hero .h1 em { white-space: nowrap; }
.pr-hero .lead { margin: 0 0 18px; max-width: 32em; }
.pr-hero .lead b { animation: none; text-shadow: none; color: var(--ink); font-weight: 700; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .96rem; color: var(--ink); line-height: 1.4; }
.checks svg { flex: 0 0 auto; color: var(--green); margin-top: 3px; }
@media (min-width: 900px) {
  .pr-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; padding-block: 48px 20px; }
  .pr-hero .action { margin: 0; max-width: none; position: sticky; top: 84px; }
}

/* ---------- forms ---------- */
.pr .action { padding: 20px; }
.form-h { font-family: var(--font-title); font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; }
.form-sub { margin: 0 0 16px; font-size: .88rem; color: var(--ink-2); }
.fg { margin-bottom: 14px; }
.fg label, .plabel { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-2); margin: 0 0 6px; }
.fg .opt { font-weight: 500; color: var(--ink-3); }
.fg small, .fnote { display: block; margin-top: 5px; font-size: .78rem; color: var(--ink-3); line-height: 1.4; }
.inp { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; padding: 0 14px; height: 52px; outline: 0; transition: border-color .15s, box-shadow .15s; }
textarea.inp { height: auto; padding: 12px 14px; resize: vertical; min-height: 88px; line-height: 1.45; }
.inp::placeholder { color: #8088A4; }
.inp:hover { border-color: #C9CEE4; }
.inp:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(20, 26, 60, .08); }
.inp.ltr { direction: ltr; text-align: left; }
.pr .btn { margin-top: 4px; }
.pr .btn:disabled { opacity: .6; cursor: wait; }
.pr .btn-yellow { margin-top: 4px; }
.pr .btn-sm { width: auto; height: 44px; padding: 0 18px; font-size: .92rem; border-radius: 12px; margin-top: 0; white-space: nowrap; }
.btn-line { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-line:hover { border-color: var(--navy); }
.btn-wa { background: #1FAF54; color: #fff; box-shadow: 0 8px 20px rgba(31, 175, 84, .28); }
.btn-wa:hover { background: #17994A; }
.alt-link { text-align: center; margin: 16px 0 0; font-size: .88rem; color: var(--ink-2); }
.alt-link a { color: var(--ink); font-weight: 700; }
.pr .ok h2 { font-family: var(--font-title); margin: 0 0 6px; font-size: 1.3rem; }

/* ---------- join: sections ---------- */
.pr-sec { padding-block: 44px 0; }
.pr-sec > h2 { font-family: var(--font-title); font-size: clamp(1.5rem, 5.5vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
.pr-sec > .sub { text-align: start; margin: 0 0 22px; max-width: 40em; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel + .panel { margin-top: 14px; }
.panel h3 { font-family: var(--font-title); font-size: 1.08rem; font-weight: 800; margin: 0 0 12px; letter-spacing: -.01em; }

.qual { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.qual li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.qual li:first-child { border-top: 0; padding-top: 0; }
.qual li:last-child { padding-bottom: 0; }
.qual .q-n { font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; color: var(--ink); line-height: 1; direction: ltr; text-align: start; }
html[dir="rtl"] .qual .q-n { text-align: end; }
.qual .q-n svg { color: var(--green); display: block; }
@media (min-width: 760px) {
  .qual { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .qual li:nth-child(2) { border-top: 0; padding-top: 0; }
  .qual li:nth-last-child(2) { padding-bottom: 0; }
}

.tiers { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tiers th { text-align: start; font-size: .76rem; font-weight: 700; color: var(--ink-3); padding: 0 10px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
html[dir="rtl"] .tiers th { padding: 0 0 10px 10px; }
.tiers td { padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
html[dir="rtl"] .tiers td { padding: 14px 0 14px 10px; }
.tiers tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.tiers .money { font-family: var(--font-title); font-weight: 800; font-size: 1.1rem; color: var(--green); white-space: nowrap; }
.tag { display: inline-block; border-radius: 999px; padding: 3px 11px; font-size: .76rem; font-weight: 700; line-height: 1.5; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.tag.silver { background: #EEF0F7; color: #3C4466; border-color: #D6DAE8; }
.tag.gold { background: #FFF4CC; color: #7A5700; border-color: #FFE4A0; }
.tag.good { background: var(--green-bg); color: var(--green); border-color: transparent; }
.tag.wait { background: #FFF4CC; color: #7A5700; border-color: transparent; }
@media (max-width: 639px) {
  .tiers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tiers, .tiers tbody, .tiers tr, .tiers td { display: block; }
  .tiers tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tiers tr:first-child { padding-top: 0; }
  .tiers tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .tiers td, html[dir="rtl"] .tiers td { padding: 0; border: 0; }
  .tiers td + td { margin-top: 6px; }
}
.terms { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.terms li { display: flex; gap: 10px; align-items: flex-start; }
.terms li::before { content: ''; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--navy); margin-top: .55em; }
.notice { background: #FFFDF2; border: 1px solid #FFE4A0; border-radius: 14px; padding: 14px 16px; font-size: .88rem; color: var(--ink-2); line-height: 1.5; display: flex; gap: 12px; align-items: flex-start; }
.notice svg { flex: 0 0 auto; color: #8A6300; margin-top: 2px; }
.notice b, .notice strong { color: var(--ink); }
.panel + .notice, .notice + .panel { margin-top: 14px; }
.pr .final { margin-top: 48px; }
.pr .final .btn { margin-top: 0; }
.pr .final .alt-link { color: #C9CEE4; position: relative; margin-top: 18px; }
/* start.css turns the RTL accent word green, which is unreadable on navy. */
html[dir="rtl"] .pr .final h2 em { color: var(--yellow); }
.pr .final .alt-link a { color: #fff; }

/* ---------- login ---------- */
.pr-login { min-height: calc(100vh - 190px); display: flex; flex-direction: column; justify-content: center; padding-block: 24px 40px; }
.pr-login .action { width: 100%; max-width: 440px; }
.pr-login h1 { font-family: var(--font-title); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.15; }

/* ---------- dashboard ---------- */
.who { font-size: .88rem; font-weight: 700; color: var(--ink-2); max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash { padding-block: 18px 10px; display: grid; gap: 16px; }
.dash-hi h1 { font-family: var(--font-title); font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; line-height: 1.15; }
.dash-hi p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.dash .panel { padding: 18px; }
.dash .panel + .panel { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 16px; }
.panel-head h2 { font-family: var(--font-title); font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 3px; }
.panel-head p { margin: 0; font-size: .88rem; color: var(--ink-2); max-width: 46em; }
.panel-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.share { box-shadow: var(--shadow-lg); border-color: transparent; }
.share .plabel { margin-bottom: 8px; }
.share-row { display: grid; gap: 8px; }
.share-url { display: block; direction: ltr; text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 14px; font-weight: 700; font-size: .98rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.share-row .btn { margin-top: 0; }
@media (min-width: 640px) { .share-row { grid-template-columns: 1fr auto; } .share-row .btn { width: auto; padding: 0 26px; height: auto; min-height: 54px; } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 2px 10px; border-inline-start: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat:last-child { padding-inline-end: 0; }
.stat-num { font-family: var(--font-title); font-weight: 800; font-size: clamp(1.5rem, 6.5vw, 2.1rem); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-num.money { color: var(--green); }
.stat-lbl { font-size: .78rem; color: var(--ink-3); line-height: 1.35; margin-top: 4px; }

.milestone { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.milestone-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.milestone-amount { font-family: var(--font-title); font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress-track { height: 12px; background: var(--paper); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.progress-fill { height: 100%; background: var(--yellow); border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--navy); transition: width .8s cubic-bezier(.16, 1, .3, 1); min-width: 12px; }
.milestone-note { font-size: .86rem; color: var(--ink-2); margin: 10px 0 0; line-height: 1.5; }
.tiers-strip { display: grid; gap: 8px; margin-top: 16px; }
@media (min-width: 640px) { .tiers-strip { grid-template-columns: repeat(3, 1fr); } }
.tier-step { display: flex; flex-direction: column; gap: 2px; background: var(--paper); border: 1.5px solid transparent; border-radius: 12px; padding: 10px 12px; font-size: .82rem; color: var(--ink-3); }
.tier-step .tier-name { font-weight: 800; color: var(--ink-2); }
.tier-step.reached { background: var(--green-bg); color: var(--green); }
.tier-step.reached .tier-name { color: var(--green); }
.tier-step.next { background: #fff; border-color: var(--navy); color: var(--ink-2); }
.tier-step.next .tier-name { color: var(--ink); }

.seg { display: inline-flex; direction: ltr; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-btn { background: transparent; border: 0; color: var(--ink-2); padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.lang-btn.active { background: var(--navy); color: #fff; }
.media-subtabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -18px 16px; padding: 0 18px 2px; scrollbar-width: none; }
.media-subtabs::-webkit-scrollbar { display: none; }
.media-subtab-btn { flex: 0 0 auto; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: .86rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.media-subtab-btn:hover { border-color: #C9CEE4; }
.media-subtab-btn.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.posts-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
.post-box { background: var(--paper); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.post-header-tag { font-size: .82rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.post-text-content { font-size: .88rem; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 132px; overflow: hidden; position: relative; }
.post-text-content:not(.expanded)::after { content: ''; position: absolute; inset: auto 0 0 0; height: 44px; background: linear-gradient(transparent, #fff); }
.post-text-content.expanded { max-height: none; }
.btn-toggle-expand { background: none; border: 0; color: var(--ink-2); font-size: .8rem; font-weight: 700; cursor: pointer; padding: 8px 0 0; text-decoration: underline; text-underline-offset: 3px; }
.post-actions-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.post-actions-row .btn { margin-top: 0; }
.banner-preview-card { background: var(--paper); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.banner-preview-card h3 { font-size: .95rem; font-weight: 800; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: baseline; }
.banner-preview-card h3 small { font-weight: 500; font-size: .78rem; color: var(--ink-3); }
.banner-code-box { background: var(--navy); color: #E6E9F7; border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .76rem; direction: ltr; text-align: left; overflow-x: auto; white-space: nowrap; margin-bottom: 10px; }
.media-tip { font-size: .8rem; color: var(--ink-3); margin: 14px 0 0; line-height: 1.5; }
.media-tip code { direction: ltr; unicode-bidi: isolate; font: inherit; font-weight: 700; color: var(--ink-2); word-break: break-all; }

.pay-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; background: var(--paper); border-radius: 14px; padding: 12px 14px; }
.pay-summary p { margin: 0; font-weight: 700; font-size: .95rem; color: var(--ink); }
.pay-step { margin-top: 22px; }
.pay-step:first-of-type { margin-top: 0; }
.pay-step > .plabel { font-size: .95rem; color: var(--ink); font-weight: 800; margin-bottom: 10px; }
.radio-rows { display: grid; gap: 8px; }
.radio-row { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; cursor: pointer; font-size: .9rem; color: var(--ink-2); line-height: 1.45; transition: border-color .15s, background .15s, box-shadow .15s; }
.radio-row:hover { border-color: #C9CEE4; }
.radio-row input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }
.radio-row b, .radio-row strong { color: var(--ink); display: block; }
.radio-row:has(input:checked) { border-color: var(--navy); background: #F7F8FD; box-shadow: 0 0 0 3px rgba(20, 26, 60, .07); }
.subbox { margin-top: 12px; background: var(--paper); border-radius: 14px; padding: 14px; }
.grid2 { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .full { grid-column: 1 / -1; } }
.grid2 .fg { margin-bottom: 0; }
.payout-methods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
@media (min-width: 760px) { .payout-methods-grid { grid-template-columns: repeat(4, 1fr); } }
.payout-method-tile { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 10px; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; cursor: pointer; color: var(--ink-2); transition: border-color .15s, background .15s, box-shadow .15s, transform .12s; }
.payout-method-tile:hover { border-color: #C9CEE4; }
.payout-method-tile:active { transform: scale(.985); }
.payout-method-tile i { font-size: 22px; color: var(--ink-2); margin-bottom: 2px; }
.payout-method-tile.active { border-color: var(--navy); background: #F7F8FD; box-shadow: 0 0 0 3px rgba(20, 26, 60, .07); }
.payout-method-tile.active i { color: var(--navy); }
.pm-title { font-weight: 800; font-size: .92rem; color: var(--ink); }
.pm-desc { font-size: .74rem; color: var(--ink-3); }
.save-row { margin-top: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.save-row .btn { width: auto; padding: 0 28px; margin-top: 0; }
#payout-save-msg { font-size: .88rem; font-weight: 700; }
#legal-approval-notice { margin-top: 10px; font-size: .82rem; font-weight: 700; }
#legal-approval-notice:empty { display: none; }

.todo { background: #FFFDF2; border: 1px solid #FFE4A0; border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.todo-b { display: flex; gap: 12px; align-items: flex-start; flex: 1 1 280px; min-width: 0; }
.todo-b svg { flex: 0 0 auto; color: #8A6300; margin-top: 2px; }
.todo-b strong { display: block; font-size: .98rem; color: var(--ink); margin-bottom: 2px; }
.todo-b span { font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.growth { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden; }
.growth h3 { font-family: var(--font-title); font-size: 1.2rem; margin: 0 0 8px; color: var(--yellow); }
.growth p { margin: 0 0 8px; font-size: .9rem; line-height: 1.6; color: #DDE1F2; max-width: 56em; }
.growth p strong { color: #fff; }
.growth-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.growth .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.growth .btn-line:hover { border-color: #fff; }
.growth a.mail { color: #C9CEE4; font-size: .86rem; padding: 0 8px; }

.refs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.refs th { text-align: start; font-size: .76rem; font-weight: 700; color: var(--ink-3); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.refs td { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.refs tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.refs td:first-child { color: var(--ink); font-weight: 600; text-align: start; }
html[dir="rtl"] .refs td:first-child { text-align: right; }
.refs td.num { font-family: var(--font-title); font-weight: 800; color: var(--ink); }
.refs th:last-child, .refs td:last-child { text-align: end; }
.refs .empty { text-align: center !important; color: var(--ink-3); font-weight: 500; padding: 18px 0 6px; }
.refs-wrap { overflow-x: auto; }

#toast-banner { display: none; position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .9rem; font-weight: 600; z-index: 9999; max-width: 92vw; text-align: center; box-shadow: var(--shadow-lg); animation: pr-toast .28s cubic-bezier(.16, 1, .3, 1); }
@keyframes pr-toast { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

.pmodal { display: none; position: fixed; inset: 0; background: rgba(14, 19, 48, .55); backdrop-filter: blur(4px); z-index: 10000; align-items: flex-end; justify-content: center; }
.pmodal-card { background: #fff; width: 100%; max-width: 600px; border-radius: 22px 22px 0 0; padding: 18px 18px 24px; max-height: 92vh; overflow-y: auto; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); }
@media (min-width: 640px) { .pmodal { align-items: center; padding: 20px; } .pmodal-card { border-radius: 22px; padding: 24px; } }
.pmodal-card p { margin: 0 0 12px; font-size: .92rem; line-height: 1.65; color: var(--ink-2); }
.pmodal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } #toast-banner { animation: none; } }
html.a11y-noanim .progress-fill { transition: none; }
