/* Conditions are task UI: large controls, flat sections, one main action. */
.reward-flow {
    --rf-panel: #171a20;
    --rf-line: #333840;
    --rf-muted: #b1b8c3;
    --rf-yellow: #ffcc32;
    color: #f5f7fa;
    font: 400 16px/1.5 Inter, "Segoe UI", Arial, sans-serif;
}
.reward-flow * { box-sizing: border-box; }
.reward-flow p { margin: 0; }
.reward-flow svg { flex-shrink: 0; vertical-align: middle; }
.reward-flow ::selection { background: #ffcc32; color: #171713; }
.reward-flow :is(button, a, summary, label):focus-visible { outline: 2px solid var(--rf-yellow); outline-offset: 4px; }
.reward-flow button, .reward-flow a, .reward-flow label { -webkit-tap-highlight-color: #ffcc3226; }
.rf-reward { padding: 8px 2px 22px; }
.rf-state { color: var(--rf-muted); font-size: 16px; }
.rf-reward h1 { margin: 5px 0 7px; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 750; }
.rf-package { font-size: 15px; color: var(--rf-muted); font-variant-numeric: tabular-nums; }
.rf-reward h1 span { font-size: 20px; font-weight: 600; color: var(--rf-muted); }
.rf-gold { font-size: 20px; font-weight: 700; color: var(--rf-yellow); }
.rf-reward .rf-benefits { margin-top: 10px; color: var(--rf-muted); font-size: 15px; }
.rf-benefits span { padding: 0 3px; color: #8a929e; }
.rf-progress { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 0 2px 10px; }
.rf-progress h2 { margin: 0; font-size: 18px; font-weight: 650; }
.rf-progress > span { color: var(--rf-muted); white-space: nowrap; font-size: 15px; font-variant-numeric: tabular-nums; }
.rf-steps { overflow: clip; border: 1px solid var(--rf-line); border-radius: 16px; background: var(--rf-panel); }
.rf-step + .rf-step { border-top: 1px solid var(--rf-line); }
.rf-step[data-state="done"] > summary { min-height: 64px; }
.rf-step > summary { min-height: 78px; display: flex; align-items: center; gap: 12px; padding: 16px 14px; cursor: pointer; list-style: none; }
.rf-step > summary::-webkit-details-marker, .rf-help > summary::-webkit-details-marker { display: none; }
.rf-step-icon { display: grid; place-items: center; width: 28px; color: #cbd1da; }
.rf-step[data-state="done"] .rf-step-icon, .rf-step[data-state="done"] .rf-step-count { color: #83e4a4; }
.rf-step[data-state="pending"] .rf-step-icon, .rf-step[data-state="error"] .rf-step-icon { color: var(--rf-yellow); }
.rf-step-label { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rf-step-label strong { font-size: 16px; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
.rf-step-label small { color: var(--rf-muted); font-size: 14px; line-height: 1.4; }
.rf-step-count { font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.rf-personal-link { display: flex; gap: 8px; align-items: center; min-height: 72px; }
.rf-personal-link + .rf-personal-link { border-top: 1px solid var(--rf-line); }
.rf-personal-label { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rf-personal-label strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.rf-personal-label span { font-size: 14px; color: var(--rf-muted); font-variant-numeric: tabular-nums; }
.rf-link-icon { flex: none; min-width: 44px; width: 44px; min-height: 46px; padding: 10px; }
.rf-chevron { color: #a4acb8; transition: transform .18s ease-out; }
.rf-step[open] > summary .rf-chevron { transform: rotate(180deg); }
.rf-step[open] > summary { padding-bottom: 13px; }
.rf-step-body { padding: 0 16px 18px; }
.rf-step-body > p, .rf-step-body .youtube-evidence > p { margin: 0 0 16px; font-size: 16px; line-height: 1.5; color: #d7dce4; }
.rf-step-body .rf-note { font-size: 14px; color: var(--rf-muted); margin: 12px 0 0; }
.rf-channels { display: grid; }
.rf-channel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; min-height: 64px; }
.rf-channel + .rf-channel { border-top: 1px solid var(--rf-line); }
.rf-channel > span:first-child { min-width: 0; overflow-wrap: anywhere; font-weight: 550; }
.rf-confirmed { display: inline-flex; align-items: center; gap: 5px; color: #83e4a4; white-space: nowrap; font-size: 14px; }
.rf-confirmed svg { width: 18px; height: 18px; }
.rf-button { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; border: 1px solid #505761; border-radius: 10px; background: #20242c; color: #f5f7fa; font-size: 16px; font-weight: 650; line-height: 1.35; font-family: inherit; text-decoration: none; cursor: pointer; }
.rf-button:hover { background: #2b303a; border-color: #7c8594; }
.rf-button:active { background: #353b47; }
.rf-button:disabled { opacity: .6; cursor: wait; }
.rf-button-small { min-height: 44px; padding: 9px 12px; font-size: 14px; }
.rf-link-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rf-upload { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px; margin-top: 12px; border: 1px solid #b8983a; border-radius: 10px; background: #302a17; color: #ffe193; font-size: 16px; font-weight: 650; cursor: pointer; }
.rf-upload:hover { background: #3c341c; }
.rf-upload:focus-within { outline: 2px solid var(--rf-yellow, #ffcc32); outline-offset: 3px; }
.rf-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rf-upload:has(input:disabled) { opacity: .65; cursor: wait; }
.rf-feedback { color: #ffe193; font-size: 15px; margin-top: 14px; }
.rf-invite-channel { padding: 10px 0 16px; }
.rf-invite-channel + .rf-invite-channel { padding-top: 16px; border-top: 1px solid var(--rf-line); }
.rf-invite-channel > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rf-invite-channel strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.rf-invite-channel b { font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rf-invite-channel b span { font-size: 15px; color: var(--rf-muted); font-weight: 500; }
.rf-invite-channel progress { display: block; appearance: none; width: 100%; height: 6px; margin-top: 10px; border: 0; border-radius: 3px; background: #343a45; color: var(--rf-yellow); }
.rf-invite-channel progress::-webkit-progress-bar { background: #343a45; border-radius: 3px; }
.rf-invite-channel progress::-webkit-progress-value { background: var(--rf-yellow); border-radius: 3px; }
.rf-invite-channel progress::-moz-progress-bar { background: var(--rf-yellow); border-radius: 3px; }
.rf-invite-channel .rf-channel-note { font-size: 14px; color: var(--rf-muted); margin-top: 8px; }
.rf-button-prominent { width: 100%; border-color: #6d7685; }
.rf-share { display: grid; grid-template-columns: 1fr 50px; gap: 8px; margin-top: 2px; }
.rf-copy { padding: 10px; }
.rf-help { margin-top: 8px; }
.rf-help > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 12px 0; list-style: none; cursor: pointer; color: #c4cbd6; font-size: 14px; }
.rf-help p { font-size: 15px; line-height: 1.55; color: var(--rf-muted); margin: 0 0 12px; }
.rf-footer { padding: 18px 2px 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; justify-content: space-between; }
.rf-footer > p { font-size: 14px; color: var(--rf-muted); }
.rf-donate { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; border: 0; background: none; color: #d4d9e2; font: inherit; font-size: 14px; cursor: pointer; }
.rf-donate:hover { color: #ffe193; }
.rf-donate svg { width: 18px; height: 18px; }
.rf-claim-bar { position: fixed; z-index: 105; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom)); width: min(592px, calc(100% - 28px)); padding: 8px 0; background: #090a0d; }
.rf-claim { display: flex; justify-content: center; align-items: center; gap: 16px; width: 100%; min-height: 54px; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--rf-yellow); color: #191910; font: 750 17px/1.35 Inter, "Segoe UI", Arial, sans-serif; cursor: pointer; }
.rf-claim:hover { background: #ffdc6d; }
.rf-claim:active { background: #e7b728; }
.rf-claim:disabled { background: #938239; color: #111; cursor: wait; }
.rf-waiting { padding: 20px 0; border-block: 1px solid var(--rf-line); }
.rf-waiting h2 { font-size: 20px; margin: 0 0 8px; }
.rf-waiting p { color: var(--rf-muted); }
.rf-issued .action-credential-label small { font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: normal; text-transform: none; }
.rf-issued .action-credential-label span { width: 22px; height: 22px; background: none; }
.rf-issued .action-credential-label svg { width: 20px; height: 20px; }
.rf-issued .action-credential-field strong { font-size: 17px; line-height: 1.45; }
.rf-issued .action-copy-button { min-height: 44px; padding: 10px 12px; font-size: 14px; line-height: 1.3; font-weight: 650; }
.rf-issued .action-copy-button:focus-visible { outline: 2px solid var(--rf-yellow); outline-offset: 3px; }
.has-reward-flow .app-shell { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
.has-reward-flow .order-back { font-size: 16px; min-height: 44px; margin-bottom: 4px; }
.has-reward-flow #order-detail-content .profile-box { font-size: 16px; }
.free-storefront .bottom-nav small { font-size: 12px; line-height: 1.2; }
.free-storefront .bottom-nav .nav-item > span svg { width: 22px; height: 22px; }
.free-storefront .reward-card .reward-claim { font-size: 16px; min-height: 50px; }
.free-storefront .reward-card .reward-title { font-size: 16px; }
.reward-card-conditions { margin-top: 14px; border-top: 1px solid #484a4b; }
.reward-card-conditions > summary { display: flex; min-height: 48px; padding: 12px 0; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-size: 15px; }
.reward-card-conditions > summary::-webkit-details-marker { display: none; }
.reward-card-conditions summary svg { width: 20px; height: 20px; }
.reward-card-conditions[open] summary svg { transform: rotate(180deg); }
.reward-card-conditions ul { padding: 0; margin: 0 0 12px; display: grid; gap: 12px; list-style: none; }
.reward-card-conditions li { display: flex; gap: 10px; color: #c3c6ca; font-size: 15px; line-height: 1.5; }
.reward-card-conditions li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; }
.reward-card-conditions:focus-within { outline-color: #ffcc32; }
@media (max-width: 374px) {
    .rf-step > summary { gap: 8px; padding-inline: 12px; }
    .rf-step-icon { width: 22px; }
    .rf-step-label strong { font-size: 16px; }
    .rf-step-count { font-size: 14px; }
    .rf-reward h1 { font-size: 26px; }
    .rf-step-body { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .rf-chevron { transition: none; }
}

/* Both YouTube proofs use the same large controls in every reward package. */
.yt-proof-fields { display: grid; gap: 18px; }
.yt-proof-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yt-proof-heading strong { font-size: 16px; font-weight: 600; line-height: 1.4; }
.yt-proof-heading a { flex-shrink: 0; }
.yt-proof-row .rf-upload { margin-top: 8px; }
.yt-proof-row .rf-upload.is-attached { background: #193325; border-color: #49785b; color: #aff0c4; }
.youtube-evidence .yt-proof-status { margin-top: 12px; font-size: 14px; color: #b1b8c3; }
.yt-proof-retry { width: 100%; margin-top: 12px; }
.free-storefront #orders-overline, .free-storefront #orders-intro { display: none; }
