/*
 * Premium dark look for the other pages: checkout, login, course and legal pages.
 * Loaded after premium.css (uses its --pm-* variables on body.rl-dark).
 */
body.rl-dark main, body.rl-dark .wp-site-blocks { color: var(--pm-text); }
body.rl-dark :where(.entry-content, .wp-block-post-content) :where(p, li, td) { color: var(--pm-text); }
body.rl-dark .wp-block-post-title, body.rl-dark .rl-legal h2 { color: #fff !important; }
body.rl-dark .rl-legal p, body.rl-dark .rl-legal li { color: var(--pm-muted) !important; }

/* Form fields everywhere */
body.rl-dark :is(input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], select, textarea) {
	background: #0D0F15 !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .14) !important; border-radius: 12px !important;
}
body.rl-dark :is(input, select, textarea):focus { border-color: var(--pm-orange) !important; box-shadow: 0 0 0 3px rgba(255, 90, 31, .25) !important; outline: none !important; }
body.rl-dark ::placeholder { color: rgba(255, 255, 255, .35) !important; }
body.rl-dark label { color: var(--pm-text); }
body.rl-dark :is(button[type=submit], input[type=submit]):not(.wc-block-components-button) {
	background: linear-gradient(180deg, #FF6A2E, #F04A10) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--pm-glow) !important; font-weight: 700; cursor: pointer;
}

/* ---------- Checkout (WooCommerce blocks) ---------- */
body.rl-dark .wc-block-checkout { color: var(--pm-text); }
body.rl-dark .wc-block-components-checkout-step__title, body.rl-dark .wc-block-components-title { color: #fff !important; }
body.rl-dark :is(.wc-block-components-checkout-step__description, .wc-block-components-checkbox__label, .wc-block-components-product-metadata, .wc-block-checkout__terms, .wc-block-components-checkout-return-to-cart-button) { color: var(--pm-muted) !important; }
body.rl-dark .wc-block-components-text-input input, body.rl-dark .wc-block-components-combobox .wc-block-components-combobox-control input, body.rl-dark .wc-blocks-components-select__select {
	background: #0D0F15 !important; color: #fff !important; border-color: rgba(255, 255, 255, .16) !important;
}
body.rl-dark :is(.wc-block-components-text-input label, .wc-blocks-components-select__label, .wc-block-components-combobox-control label) { color: var(--pm-muted) !important; }
body.rl-dark .wc-blocks-components-select__container { background: #0D0F15 !important; }
body.rl-dark .wc-block-checkout__sidebar, body.rl-dark .wc-block-components-sidebar {
	background: var(--pm-card) !important; border: 1px solid var(--pm-line); border-radius: 22px; padding: 1.25rem !important;
}
body.rl-dark :is(.wc-block-components-totals-item, .wc-block-components-order-summary-item, .wc-block-components-product-name, .wc-block-formatted-money-amount, .wc-block-components-totals-footer-item) { color: #fff !important; }
body.rl-dark :is(.wc-block-components-totals-wrapper, .wc-block-components-order-summary-item, .wc-block-components-panel) { border-color: var(--pm-line) !important; }
body.rl-dark .wc-block-components-order-summary-item__image img { border-radius: 10px; background: #fff; }
body.rl-dark .wc-block-components-order-summary-item__quantity { background: var(--pm-orange) !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }
body.rl-dark :is(.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option, .wc-block-components-express-payment, .wc-block-components-payment-method-label) { color: #fff !important; border-color: var(--pm-line) !important; }
body.rl-dark .wc-block-components-radio-control--highlight-checked { background: var(--pm-card); border-radius: 14px; }
body.rl-dark .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { background: #0D0F15 !important; border-color: rgba(255, 255, 255, .3) !important; }
body.rl-dark .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff !important; }
body.rl-dark .wc-block-components-checkout-place-order-button, body.rl-dark .wc-block-components-button:not(.is-link) {
	background: linear-gradient(180deg, #FF6A2E, #F04A10) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--pm-glow) !important; font-weight: 800 !important; min-height: 56px;
}
body.rl-dark .wc-block-components-express-payment-continue-rule { color: var(--pm-muted) !important; }
body.rl-dark .wc-block-components-express-payment-continue-rule::before, body.rl-dark .wc-block-components-express-payment-continue-rule::after { border-color: var(--pm-line) !important; }
body.rl-dark .wc-block-components-notice-banner { background: rgba(255, 255, 255, .05) !important; color: #fff !important; border-color: var(--pm-line) !important; }
body.rl-dark .wc-block-components-skeleton__element, body.rl-dark .wc-block-components-skeleton { background: rgba(255, 255, 255, .06) !important; }
body.rl-dark .woocommerce-order, body.rl-dark .woocommerce-order * { color: var(--pm-text); }
body.rl-dark .woocommerce-order :is(table, td, th, li) { border-color: var(--pm-line) !important; }

/* Package box above the checkout */
body.rl-dark .rl-checkout-plan { max-width: 1160px; margin: 0 auto 1.75rem; padding: 1.25rem 1.5rem; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 90, 31, .1), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 90, 31, .35); }
body.rl-dark .rl-checkout-plan h2 { margin: .1rem 0 .4rem; font-size: 1.5rem !important; }
body.rl-dark .rl-checkout-plan p { margin: 0 0 .6rem; color: var(--pm-muted); }
body.rl-dark .rl-checkout-plan ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .4rem 1.25rem; }
body.rl-dark .rl-checkout-plan li { position: relative; padding-left: 1.5rem; font-size: .9375rem; color: #fff; }
body.rl-dark .rl-checkout-plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--pm-orange-2); font-weight: 800; }
body.rl-dark .rl-checkout-switch { margin: .9rem 0 0 !important; font-size: .875rem; }
body.rl-dark .rl-checkout-switch a { color: var(--pm-orange-2) !important; font-weight: 700; }
.rl-plan-label { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FF8A3D !important; }

/* ---------- Course: login, nav, content ---------- */
body.rl-dark .rl-portal-login form { background: var(--pm-card); border-color: var(--pm-line) !important; }
body.rl-dark :is(.rl-portal-login label, .rl-fields label) { color: var(--pm-text) !important; }
body.rl-dark :is(.rl-access-hero, .rl-portal-nav) { background: linear-gradient(180deg, #121520, #0B0D13) !important; border: 1px solid var(--pm-line); color: #fff; }
body.rl-dark .rl-access-hero { background: radial-gradient(80% 100% at 50% 0%, rgba(255, 90, 31, .28), transparent 70%), #0E1017 !important; }
body.rl-dark .rl-portal-nav nav a.is-current { background: linear-gradient(180deg, #FF6A2E, #F04A10); box-shadow: var(--pm-glow); }
body.rl-dark .rl-portal-nav nav a.is-locked { color: rgba(255, 255, 255, .4) !important; }
body.rl-dark .rl-portal-nav nav a.is-locked:hover { color: var(--pm-orange-2) !important; }
body.rl-dark .rl-portal-plan { display: inline-block; margin: 0 0 1rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--pm-muted); }
body.rl-dark .rl-portal-plan.is-pro { background: linear-gradient(180deg, #FF6A2E, #F04A10); color: #fff; box-shadow: var(--pm-glow); }
body.rl-dark .rl-portal-pdf { background: rgba(255, 255, 255, .08) !important; color: #fff !important; border: 1px solid var(--pm-line); }
body.rl-dark .rl-portal-main { background-color: var(--pm-card) !important; border-color: var(--pm-line) !important; }
body.rl-dark .rl-portal-main :is(p, li, td) { color: #D6DAE2 !important; }
body.rl-dark .rl-portal-main :is(h1, h2, h3, strong, b) { color: #fff !important; }
body.rl-dark .rl-portal-main :is(th, td) { border-color: var(--pm-line) !important; }
body.rl-dark .rl-portal-main th { background: rgba(255, 255, 255, .05) !important; color: #fff !important; }
body.rl-dark .rl-portal-main a:not(.wp-block-button__link):not(.rl-plan-up):not(.rl-btn):not(.is-next) { color: var(--pm-orange-2) !important; }
body.rl-dark .rl-box { background: rgba(255, 255, 255, .04) !important; border-color: var(--pm-line) !important; }
body.rl-dark .rl-box-do { background: rgba(34, 197, 94, .08) !important; border-color: rgba(34, 197, 94, .3) !important; }
body.rl-dark .rl-box-warn { background: rgba(255, 90, 31, .08) !important; border-color: rgba(255, 90, 31, .3) !important; }
body.rl-dark .rl-box-law { background: rgba(99, 102, 241, .1) !important; border-color: rgba(99, 102, 241, .35) !important; }
body.rl-dark :is(.rl-prompt, .rl-outputs) { background: #0A0C11 !important; border: 1px solid var(--pm-line); }
body.rl-dark .rl-checklist li { border-color: var(--pm-line) !important; }
body.rl-dark .rl-checklist li.is-done { background: rgba(34, 197, 94, .08) !important; border-color: rgba(34, 197, 94, .3) !important; }
body.rl-dark .rl-tool-box { background: var(--pm-card) !important; border-color: var(--pm-line) !important; }
body.rl-dark :is(.rl-verdict, .rl-box strong:first-child) { color: #fff !important; }
body.rl-dark .rl-welcome { background: rgba(34, 197, 94, .1) !important; border-color: rgba(34, 197, 94, .35) !important; color: #BBF7D0 !important; }
body.rl-dark .rl-setpass { background: rgba(255, 90, 31, .08) !important; }
body.rl-dark :is(.rl-dl a, .rl-account-card) { background: var(--pm-card) !important; color: #fff !important; border-color: var(--pm-line) !important; }
body.rl-dark .rl-portal-pager { border-color: var(--pm-line) !important; }
body.rl-dark .rl-portal-pager a:not(.is-next) { color: var(--pm-muted) !important; }
body.rl-dark .rl-portal-pager a.is-next { background: linear-gradient(180deg, #FF6A2E, #F04A10) !important; box-shadow: var(--pm-glow); }
body.rl-dark .rl-or span { background: var(--pm-bg) !important; color: var(--pm-muted) !important; }

/* "Your plan" card */
body.rl-dark .rl-plan { margin: 0 0 2rem; padding: 1.4rem 1.5rem; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 90, 31, .1), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 90, 31, .3); }
body.rl-dark .rl-plan h2 { margin: .2rem 0 .9rem !important; font-size: 1.5rem; }
body.rl-dark .rl-plan-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .45rem 1.25rem; }
body.rl-dark .rl-plan-list li { position: relative; padding-left: 1.5rem; font-size: .9063rem; }
body.rl-dark .rl-plan-list li.is-on::before { content: "\2713"; position: absolute; left: 0; color: #4ADE80; font-weight: 800; }
body.rl-dark .rl-plan-list li.is-pro::before { content: "\2605"; color: var(--pm-orange-2); }
body.rl-dark .rl-plan-list li.is-off { color: rgba(255, 255, 255, .38) !important; }
body.rl-dark .rl-plan-list li.is-off::before { content: "\2022"; position: absolute; left: .3rem; opacity: .6; }
body.rl-dark .rl-plan-list small { font-size: .65rem; font-weight: 800; letter-spacing: .08em; background: rgba(255, 90, 31, .18); color: var(--pm-orange-2); border-radius: 999px; padding: .05rem .45rem; margin-left: .3rem; }
body.rl-dark .rl-plan-up { display: inline-block; margin-top: 1.1rem; background: linear-gradient(180deg, #FF6A2E, #F04A10); color: #fff !important; font-weight: 800; border-radius: 999px; padding: .65rem 1.25rem; text-decoration: none; box-shadow: var(--pm-glow); }

/* Feedback round */
body.rl-dark .rl-fb { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--pm-line); }
body.rl-dark .rl-fb-form { display: grid; gap: 1rem; max-width: 560px; }
body.rl-dark .rl-fb-form label { display: grid; gap: .4rem; font-weight: 600; font-size: .9375rem; }
body.rl-dark .rl-fb-form input[type=file] { padding: .9rem; border: 1px dashed rgba(255, 90, 31, .45); border-radius: 14px; background: rgba(255, 90, 31, .05); color: var(--pm-muted); }
body.rl-dark .rl-fb-form button { justify-self: start; padding: .85rem 1.6rem; }
body.rl-dark .rl-fb-busy { color: var(--pm-orange-2) !important; font-weight: 600; }
body.rl-dark .rl-fb-video { display: block; width: 100%; max-width: 320px; aspect-ratio: 9 / 16; border-radius: 16px; background: #000; border: 1px solid var(--pm-line); margin: .75rem 0 1rem; }
body.rl-dark .rl-fb-img { max-width: 100%; border-radius: 14px; }
body.rl-dark .rl-fb-meta { color: var(--pm-muted) !important; }
body.rl-dark .rl-fb-wait { color: #FBBF24 !important; }
body.rl-dark .rl-fb-done { color: #4ADE80 !important; }
body.rl-dark .rl-fb-reply { margin-top: 1.5rem; padding: 1.25rem 1.4rem; border-radius: 18px; background: rgba(34, 197, 94, .07); border: 1px solid rgba(34, 197, 94, .3); }
body.rl-dark .rl-fb-reply h2 { margin-top: 0 !important; }

/* Heading sizes outside the sales page */
body.rl-dark:not(.home) h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem) !important; line-height: 1.2 !important; }
body.rl-dark .rl-portal-main h1 { font-size: clamp(1.9rem, 4vw, 2.6rem) !important; }
body.rl-dark .rl-portal-main h3 { font-size: 1.15rem !important; }
body.rl-dark .wc-block-components-checkout-step__title { font-size: 1.25rem !important; letter-spacing: -.01em; }
body.rl-dark .rl-plan h2, body.rl-dark .rl-checkout-plan h2 { font-size: 1.5rem !important; }
body.rl-dark .rl-fb-form :is(input[type=url], textarea) { padding: .75rem .9rem !important; font: inherit; }

/* ---------- Checkout: package picker and guarantee ---------- */
body.rl-dark .rl-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: .6rem 0 1.1rem; }
body.rl-dark .rl-pick-opt { position: relative; display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--pm-line); background: rgba(255, 255, 255, .03); color: #fff !important; text-decoration: none !important; transition: border-color .2s ease, background-color .2s ease; }
body.rl-dark .rl-pick-opt:hover { border-color: rgba(255, 90, 31, .5); background: rgba(255, 90, 31, .06); }
body.rl-dark .rl-pick-opt.is-on { border: 1.5px solid var(--pm-orange); background: rgba(255, 90, 31, .1); box-shadow: 0 0 0 3px rgba(255, 90, 31, .12); }
body.rl-dark .rl-pick-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); }
body.rl-dark .rl-pick-opt.is-on .rl-pick-dot { border-color: var(--pm-orange); background: radial-gradient(circle, var(--pm-orange) 0 45%, transparent 50%); }
body.rl-dark .rl-pick-text { flex: 1; min-width: 0; }
body.rl-dark .rl-pick-text b { display: block; font-size: 1rem; }
body.rl-dark .rl-pick-text small { display: block; margin-top: .15rem; color: var(--pm-muted); font-size: .8125rem; line-height: 1.35; }
body.rl-dark .rl-pick-price { font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em; }
body.rl-dark .rl-pick-tag { position: absolute; top: -10px; right: 14px; font-style: normal; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(180deg, #FF6A2E, #F04A10); color: #fff; padding: .2rem .6rem; border-radius: 999px; }
body.rl-dark .rl-pick-intro { margin: 0 0 .6rem !important; color: var(--pm-muted); }
body.rl-dark .rl-checkout-guarantee { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.1rem; padding: .9rem 1.1rem; border-radius: 14px; background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .3); }
body.rl-dark .rl-checkout-guarantee i { font-style: normal; font-size: 1.4rem; line-height: 1; }
body.rl-dark .rl-checkout-guarantee p { margin: 0 !important; color: var(--pm-muted) !important; font-size: .9063rem; }
body.rl-dark .rl-checkout-guarantee b { color: #fff; margin-right: .25rem; }

/* ---------- Checkout header ---------- */
body.rl-dark .rl-checkout-header { border-bottom: 1px solid var(--pm-line); background: rgba(7, 8, 12, .8); }
body.rl-dark .rl-checkout-header-inner { min-height: 72px; }
body.rl-dark .rl-checkout-secure { margin: 0; font-size: .875rem; color: var(--pm-muted) !important; }

/* ---------- Readability fixes ---------- */
/* Google button: white button, dark text (the dark theme made its text white). */
body.rl-dark a.rl-google-btn, body.rl-dark a.rl-google-btn span { color: #1f2937 !important; }
body.rl-dark a.rl-google-btn { background: #fff !important; border-color: #fff !important; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6); }
body.rl-dark a.rl-google-btn:hover { background: #f1f2f4 !important; }
body.rl-dark .rl-checkout-google { border-color: var(--pm-line) !important; background: var(--pm-card); }
body.rl-dark .rl-or { color: var(--pm-muted) !important; }
body.rl-dark .rl-or::before, body.rl-dark .rl-or::after { border-color: var(--pm-line) !important; }
body.rl-dark .rl-google-error { background: rgba(255, 90, 31, .1) !important; color: #FFB38A !important; }
/* Required-field stars and error text on dark backgrounds. */
body.rl-dark :is(.required, abbr.required, .woocommerce-error, .wc-block-components-validation-error) { color: #FF8A8A !important; }

/* ---------- Light surfaces always get dark text ---------- */
body.rl-dark :is(.rl-share-note, .rl-magic-ok, .rl-waitlist-ok, .rl-wd-ok, .rl-wd-no, .rl-copy-before, .rl-scene-before, .rl-float-card, .rl-app, .rl-cover-mark, .rl-page2),
body.rl-dark :is(.rl-share-note, .rl-magic-ok, .rl-waitlist-ok, .rl-wd-ok, .rl-wd-no, .rl-copy-before, .rl-scene-before, .rl-float-card, .rl-app) *:not(a) { color: #111827 !important; }
body.rl-dark :is(.rl-share-note, .rl-magic-ok, .rl-waitlist-ok, .rl-wd-ok, .rl-wd-no) a { color: #C2410C !important; }
body.rl-dark :is(.rl-ba-before .rl-ba-tag, .rl-copy-before .rl-ba-tag, .rl-ba .rl-ba-line::after) { color: #111827 !important; }
/* Orange buttons: white text. */
body.rl-dark :is(a.rl-btn, .rl-copy-btn, .rl-sticky-btn, .rl-plan-up, .rl-portal-pager a.is-next) { color: #fff !important; }
/* Native dropdown lists (country, state): dark text on a white list. */
body.rl-dark select option { color: #111827; background: #fff; }

/* ---------- My account: change name or email ---------- */
body.rl-dark .rl-account-edit { margin-top: 1rem; border-top: 1px solid var(--pm-line); padding-top: .9rem; }
body.rl-dark .rl-account-edit summary { cursor: pointer; font-weight: 700; color: var(--pm-orange-2) !important; list-style: none; }
body.rl-dark .rl-account-edit summary::-webkit-details-marker { display: none; }
body.rl-dark .rl-account-edit summary::after { content: " +"; }
body.rl-dark .rl-account-edit[open] summary::after { content: " −"; }
body.rl-dark .rl-account-edit form { display: grid; gap: .8rem; margin-top: .9rem; }
body.rl-dark .rl-account-edit label { display: grid; gap: .35rem; font-size: .875rem; font-weight: 600; color: var(--pm-text) !important; }
body.rl-dark .rl-account-edit input { padding: .65rem .8rem !important; font: inherit; }
body.rl-dark .rl-account-edit button { justify-self: start; padding: .7rem 1.4rem; }
body.rl-dark .rl-account-hint { margin: 0 !important; font-size: .8125rem; color: var(--pm-muted) !important; }
body.rl-dark .rl-account-msg { margin: .8rem 0 0 !important; padding: .7rem .9rem; border-radius: 12px; font-size: .875rem; }
body.rl-dark .rl-account-msg.is-ok { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); color: #BBF7D0 !important; }
body.rl-dark .rl-account-msg.is-err { background: rgba(255, 90, 31, .1); border: 1px solid rgba(255, 90, 31, .35); color: #FFB38A !important; }

/* Checkout picker with three packages */
body.rl-dark .rl-pick:has(.rl-pick-opt:nth-child(3)) { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
