/*
 * Tang Luck Builder: the wizard's Ads step (web/js/wizard/steps/ads.mjs and
 * web/js/wizard/ads/): the provider choice, the AppLovin MAX units, the
 * Appodeal app states, the rules box and the debug APK option.
 */

/* provider choice */
.net-choose { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 16px; }
.seg.net-provider { align-self: flex-start; }
.seg.net-provider button { padding: 9px 20px; font-size: .98rem; }
.net-provider-err:empty, .net-sdk-err:empty, .net-key-note:empty { display: none; }
.net-panel { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10, 5, 30, .35); }
.net-panel h4 { margin: 0; color: var(--gold); }
.net-panel .alert { margin: 0; }

/* AppLovin MAX: the SDK key (saved or written) and the three units */
.net-key { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); }
.net-key-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.net-key-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.net-key-body p { margin: 0; }
.net-key-body select { max-width: 420px; }
.net-sdk-err { margin: 0; }
.net-units input { font-family: var(--mono); }
.net-units #f-applovin_app_open .hint { color: var(--muted); }

/* Appodeal: the state cards */
.net-body { display: flex; flex-direction: column; gap: 12px; }
.net-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); }
.net-card p { margin: 0; }
.net-card .actions { margin-top: 6px; align-items: center; }
.net-card.ok { border-color: rgba(62, 224, 143, .5); background: rgba(62, 224, 143, .07); }
.net-card.info { border-color: rgba(74, 168, 255, .5); background: rgba(74, 168, 255, .08); }
.net-create select { max-width: 420px; }
.net-test-api { color: var(--blue); border-color: rgba(74, 168, 255, .45); }
.net-recorded-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.net-recorded-head b { color: var(--ok); }
.net-fp { padding: 3px 10px; border-radius: 8px; background: rgba(0, 0, 0, .3); color: var(--text); font-size: .9rem; user-select: all; }
.net-recorded h4 { margin: 6px 0 0; color: var(--text); font-size: .92rem; }
.net-checklist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: .88rem; }
.net-checklist b { color: var(--text); }
.net-pending { flex-direction: row; align-items: center; gap: 10px; color: var(--text); }
.net-pending .spin { color: var(--blue); }
.net-clock { font-family: var(--mono); color: var(--blue); margin-left: 4px; }
.net-demo { display: flex; flex-direction: column; gap: 2px; }
.net-demo small:empty { display: none; }
.net-demo-on { margin: 0; }

/* Appodeal: paste, retry, the manual way and the copy chips */
.net-paste { display: flex; flex-direction: column; gap: 2px; }
.net-paste .actions { margin-top: 6px; }
.net-paste input { max-width: 560px; }
.net-paste.prominent { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 213, 74, .5); background: rgba(255, 213, 74, .06); }
.net-retry .actions { margin-top: 6px; }
.net-manual p { margin: 0 0 4px; }
.chip.net-copy { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 10px; font-size: .8rem; font-weight: 500; cursor: pointer; box-shadow: none; }
.chip.net-copy code { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.net-notice { margin: 0; }

/* the confirmation dialog */
.net-sent th { width: 46%; }
.net-server { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* rules box and the debug APK option */
.net-rules { margin: 16px 0 10px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line2); background: rgba(255, 255, 255, .02); }
.net-rules p { margin: 0; }
.net-rules-line { font-weight: 700; color: var(--gold); letter-spacing: .01em; margin-bottom: 4px !important; }
.net-debug small { font-weight: 400; }

@media (max-width: 520px) {
  .net-panel { padding: 12px; }
  .seg.net-provider { align-self: stretch; }
  .seg.net-provider button { flex: 1; padding: 8px 10px; }
  .net-sent th { width: auto; }
}
