/* Package comparison, bundle builder, and customer subscription workspace. */
/* The shop illustration has its own aspect-ratio box; never stretch a tall
   scenic background across the full desktop heading and crop the mascot out. */
.realm-shop .store-hero { padding: 0; background: #f5f2ff; overflow: hidden; }
.shop-intro-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 2rem; padding-block: 2.75rem; }
.shop-intro-copy { min-width: 0; position: relative; z-index: 1; }
.realm-shop .store-hero h1 { font-size: clamp(2rem, 3.4vw, 3.4rem); max-width: none; }
.realm-shop .store-hero .lead { font-size: 1rem; }
.realm-shop .store-hero .lead br { display: none; }
.realm-shop .store-hero-meta span { font-size: .875rem; }
.shop-intro-art { min-width: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 1.5rem; }
.shop-intro-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.features-workspace { padding-block: 3rem; }
.features-heading { max-width: 46rem; }
.features-heading h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.15; letter-spacing: -.04em; }
.features-heading p { font-size: 1rem; line-height: 1.7; }
.features-jump-links { display: flex; gap: .75rem; flex-wrap: wrap; margin: 2rem 0; }
.features-jump-links a { border: 1px solid #d6c8f2; border-radius: 2rem; padding: .85rem 1.2rem; font-size: .95rem; background: #fff; }
.feature-bot { border-top: 1px solid #ded5ee; padding-block: 2.5rem; scroll-margin-top: 7rem; }
.feature-bot > header { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.feature-bot h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); margin: 0; }
.feature-bot-art img { width: 120px; height: 120px; object-fit: contain; }
.feature-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.feature-tool-grid article { padding: 1.5rem; background: #fff; border: 1px solid #e2dcf0; border-radius: 1rem; }
.feature-tool-grid h3 { font-size: 1.15rem; margin: 1rem 0 .5rem; }
.feature-tool-grid p { font-size: 1rem; line-height: 1.7; color: #554b6b; }
.feature-tool-icon { color: #6534db; }
.feature-package-note { font-size: .9rem; color: #625571; margin-top: 1.5rem; }
.package-kind { color: #6742a6; font-size: .875rem; font-weight: 700; }
.package-required-total { border-top: 1px solid #e2d9f0; padding-top: 1rem; margin-top: 1rem; }
.package-required-total strong { display: block; color: #3a235e; font-size: 1rem; }
.package-required-total span { display: block; margin-top: .35rem; color: #645475; font-size: .875rem; line-height: 1.6; }
.support-workspace { padding-block: 3rem 4rem; max-width: 1200px; }
.support-heading { max-width: 48rem; margin-bottom: 2rem; }
.support-heading h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.1; letter-spacing: -.045em; overflow-wrap: anywhere; }
.support-heading p { font-size: 1rem; line-height: 1.7; }
.support-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: 2.5rem; align-items: start; }
.support-form-panel { padding: clamp(1.25rem, 3vw, 2.2rem); border: 1px solid #ded4ef; border-radius: 1.35rem; background: #fff; }
.support-form-title { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.5rem; }
.support-form-title > svg { color: #6833df; width: 28px; height: 28px; }
.support-form-title h2 { font-size: 1.4rem; margin: 0; }
.support-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.support-field { margin: 1.25rem 0; }
.support-field label { display: block; font-size: .95rem; font-weight: 700; margin-bottom: .55rem; }
.support-field input:not([type='checkbox']), .support-field select, .support-field textarea { width: 100%; min-width: 0; min-height: 48px; background: #fcfaff; color: #211835; border: 1px solid #cbbfe3; border-radius: .6rem; padding: .85rem; font: inherit; }
.support-field textarea { resize: vertical; }
.support-field :is(input,select,textarea):focus-visible { outline: 3px solid #ad8cff; outline-offset: 2px; }
.support-consent label { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; font-weight: 500; line-height: 1.6; }
.support-consent input[type='checkbox'] { flex: 0 0 20px; min-height: 20px; width: 20px; margin-top: .15rem; }
.support-privacy-note { font-size: .875rem; line-height: 1.7; color: #625571; margin-block: 1.4rem; }
.support-form .btn { width: 100%; }
.support-form fieldset:disabled { opacity: .65; }
.support-explainer { padding-block: .5rem; }
.support-private-badge { display: flex; align-items: center; gap: .75rem; color: #6033c0; padding: 1rem; background: #eee7ff; border-radius: .8rem; font-size: .95rem; }
.support-explainer h2 { font-size: 1.3rem; margin-top: 2rem; }
.support-explainer ol { padding-left: 1.25rem; }
.support-explainer li { padding-left: .5rem; margin: 1.5rem 0; }
.support-explainer li::marker { color: #6b34d9; font-weight: 800; }
.support-explainer p { font-size: 1rem; line-height: 1.7; color: #5d526e; }
.support-policy { border-top: 1px solid #ddd3ec; margin-top: 2rem; padding-top: 1rem; }
.support-policy h3 { font-size: 1rem; }
.support-policy p { font-size: .9rem; }
.support-history { margin-top: 2rem; }
.support-history > a { display: flex; gap: 1rem; justify-content: space-between; padding: 1.2rem 0; border-bottom: 1px solid #dfd8ec; flex-wrap: wrap; }
.support-history > a > div { display: grid; gap: .4rem; overflow-wrap: anywhere; }
.support-ticket-state { max-width: 760px; }
.support-ticket-state h2 { font-size: 1.5rem; }
.support-ticket-state p { font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.support-ticket-state form { margin-top: 1rem; }
.support-request-copy, .support-close-form { border-top: 1px solid #ded5ed; margin-top: 2rem; padding-top: 1.5rem; }
.support-request-copy summary { cursor: pointer; font-weight: 700; }
.support-ticket-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.support-ticket-actions .btn { min-height: 48px; white-space: normal; text-align: center; }
@media (max-width: 850px) {
    .support-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .shop-intro-layout { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2rem; }
    .shop-intro-art { width: 100%; max-width: 600px; justify-self: center; }
    .realm-shop .store-hero h1 { font-size: clamp(2rem, 6vw, 3rem); }
    .realm-shop .store-hero-meta { display: flex; }
    .feature-bot > header { grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; }
    .feature-bot > header > a { grid-column: 1 / -1; justify-self: start; }
    .feature-bot-art img { width: 88px; height: 88px; }
}
.bot-product-intro { background: linear-gradient(115deg, #f2ecff, #faf9ff 65%); border-bottom: 1px solid var(--line); }
.bot-product-intro-inner { display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 40px; padding: 30px 0; }
.bot-product-intro .eyebrow { margin: 20px 0 10px; }
.bot-product-intro h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.12; margin: 0; }
.bot-product-intro .rich-product-summary { max-width: 660px; color: var(--muted-bright); font-size: 1rem; }
.bot-product-intro .btn { margin-top: 12px; }
.bot-product-intro img { width: 280px; height: 280px; object-fit: contain; justify-self: center; }
.bot-product-intro picture { justify-self: center; }
.bundle-shop { padding-top: 42px; padding-bottom: 40px; }
.package-section-heading h2, .bundle-builder h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; line-height: 1.2; }
.package-section-heading .eyebrow { margin-bottom: 10px; }
.package-section-heading p:last-child { color: var(--muted); margin: 12px 0 22px; }
.bundle-cadence-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; margin-bottom: 24px; border: 1px solid var(--line); background: #f0ebfa; border-radius: 13px; }
.bundle-cadence-tabs .btn { min-width: 116px; border-color: transparent; background: transparent; font-size: .9rem; }
.bundle-cadence-tabs [aria-pressed="true"] { color: white; background: var(--primary); box-shadow: 0 3px 8px #5622cc20; }
.package-explainer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.package-explainer { padding: 24px; border: 1px solid #ded7ed; border-radius: 15px; background: #fff; border-top: 3px solid #b095ef; }
.package-explainer:nth-child(2) { border-top-color: #6cafa1; }
.package-explainer:nth-child(3) { border-top-color: #bc8c62; }
.package-explainer:nth-child(4) { border-top-color: #939dde; }
.package-explainer-top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; gap: 8px; }
.package-number { font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: #786495; }
.package-explainer h3 { font-size: 1.45rem; margin: 18px 0 7px; line-height: 1.15; }
.package-unit-price { font-size: 1.15rem; font-weight: 800; margin: 0 0 20px; }
.package-unit-price span { color: var(--muted); font-weight: 500; font-size: .88rem; }
.package-explainer-copy { font-size: .88rem; line-height: 1.7; color: var(--muted-bright); }
.package-explainer-copy ul { padding-left: 18px; }
.package-explainer-copy li { margin: 8px 0; }
.bundle-builder { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; padding: 32px; margin: 32px 0; background: #fff; border: 1px solid #ddd2f2; border-radius: 20px; box-shadow: 0 12px 40px #49306c08; }
.bundle-builder-controls { min-width: 0; scroll-margin-top: 108px; }
.bundle-cadence-label { font-size: .9rem; color: var(--muted); margin: 10px 0 28px; }
.bundle-builder fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.bundle-builder legend { font-weight: 750; font-size: 1rem; padding: 0; margin-bottom: 14px; }
.bundle-builder legend > span { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; font-size: .8rem; border: 1px solid #d2bffa; border-radius: 50%; color: var(--primary); }
.bundle-count-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 9px; }
.bundle-count-options label { position: relative; display: block; cursor: pointer; margin: 0; }
.bundle-count-options input { position: absolute; top: 13px; right: 10px; width: 16px; height: 16px; min-height: 0; margin: 0; }
.bundle-count-options label > span { display: flex; flex-direction: column; padding: 15px 12px; gap: 5px; min-height: 108px; height: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fcfaff; }
.bundle-count-options strong { padding-right: 15px; font-size: .85rem; }
.bundle-count-options b { font-size: 1.15rem; }
.bundle-count-options small { font-size: .75rem; color: var(--muted); font-weight: 500; }
.bundle-count-options input:checked + span { border-color: var(--primary); background: #f2ecff; box-shadow: inset 0 0 0 1px var(--primary); }
.bundle-count-options input:focus-visible + span { outline: 3px solid #9669ef; outline-offset: 3px; }
.bundle-package-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bundle-choice { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.bundle-choice:has(input[name="plan_ids"]:checked) { border-color: #966aeb; background: #faf7ff; }
.bundle-choice > label:first-child { display: flex; align-items: center; gap: 11px; padding: 16px 13px; min-height: 58px; margin: 0; cursor: pointer; }
.bundle-choice input[type="checkbox"] { width: 19px; height: 19px; min-height: 0; flex: 0 0 auto; margin: 0; }
.bundle-choice strong { font-size: .95rem; }
.bundle-choice b { margin-left: auto; font-size: .85rem; }
.bundle-choice small { display: block; font-size: .75rem; color: var(--muted); }
.bundle-choice:has(input[name="plan_ids"]:disabled) { opacity: .55; }
.bundle-invite { padding: 0 13px 13px; font-size: .8rem; }
.bundle-invite input { width: 100%; margin-top: 5px; }
.bundle-selection-status { font-size: .88rem; color: var(--primary-strong); min-height: 24px; margin: 0; }
.bundle-receipt { align-self: start; position: sticky; top: 110px; border: 1px solid #e0d8ed; border-radius: 14px; padding: 24px; background: #f8f5ff; }
.bundle-receipt .eyebrow { margin-bottom: 12px; }
.bundle-receipt h3 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 10px; }
.bundle-receipt > p { color: var(--muted-bright); font-size: .88rem; }
.bundle-receipt dl { margin: 22px 0 12px; }
.bundle-receipt dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: .85rem; }
.bundle-receipt dd { margin: 0; font-weight: 750; white-space: nowrap; }
.bundle-receipt-saving { color: #187352; }
.bundle-receipt dl > .bundle-receipt-total { border-top: 1px solid #d9cfe9; margin-top: 14px; padding-top: 17px; flex-wrap: wrap; }
.bundle-receipt-total dd { font-size: 2rem; letter-spacing: -.05em; }
.bundle-receipt-total small { display: block; color: var(--muted); }
.bundle-receipt .bundle-receipt-note, .bundle-receipt > small { font-size: .75rem; line-height: 1.6; color: var(--muted); }
.bundle-receipt .btn { width: 100%; margin: 12px 0; }
.bundle-receipt > small { display: block; }
.bundle-change-note { text-align: center; color: var(--muted); font-size: .88rem; }
.catalog-page .product-media { height: 240px; background: radial-gradient(ellipse at 50% 70%, #e9dffa, transparent 72%); }
.catalog-page .product-media img { object-fit: contain; height: 100%; width: 100%; padding: 10px; }
.catalog-page .product-header { display: flex; flex-direction: column; gap: 20px; }
.catalog-page .product-header > div { width: 100%; }
.dashboard-bots { min-width: 0; }
.dashboard-bots-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 16px; }
.dashboard-bots-heading h2 { font-size: 1.3rem; margin: 0; }
.dashboard-bots-heading h2 span { color: var(--muted); font-size: .95rem; margin-left: 5px; }
.dashboard-bots-heading > a { color: var(--primary); font-size: .85rem; white-space: nowrap; }
.dashboard-bot-card { margin-bottom: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.dashboard-bot-heading { display: flex; gap: 16px; align-items: center; }
.dashboard-bot-heading img { width: 76px; height: 76px; object-fit: contain; }
.dashboard-bot-heading h3 { font-size: 1.35rem; margin: 7px 0 2px; }
.dashboard-bot-heading small { font-size: .75rem; color: var(--muted); }
.dashboard-bot-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0 16px; }
.dashboard-bot-facts dt { color: var(--muted); font-size: .8rem; }
.dashboard-bot-facts dd { margin: 4px 0 0; font-size: 1.1rem; font-weight: 750; }
.dashboard-bot-facts small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.dashboard-bot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dashboard-bot-actions .btn { font-size: .8rem; padding: 11px 17px; }
.dashboard-renewal-note { color: var(--muted); font-size: .8rem; }
.dashboard-discord-help { display: flex; align-items: flex-start; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.dashboard-discord-help .ui-icon { color: var(--primary); }
.dashboard-discord-help strong { font-size: .9rem; }
.dashboard-discord-help p { font-size: .8rem; color: var(--muted); margin: 7px 0 0; }
.dashboard-discord-help > a { color: var(--primary); white-space: nowrap; font-size: .8rem; }
.realm-billing .dashboard-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.realm-billing .dashboard { padding-top: 36px; }
.billing-credit-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; background: #f1ebff; }
.billing-credit-strip h3, .billing-credit-strip p { margin: 0; }
.billing-credit-strip p { color: var(--muted); font-size: .85rem; }
.billing-credit-strip > strong { font-size: 1.8rem; }
.realm-billing .tabs { display: inline-flex; flex-wrap: wrap; max-width: 100%; margin: 26px 0; padding: 5px; gap: 6px; overflow: visible; border: 1px solid var(--line); border-radius: 14px; background: #f1ebff; }
/* Reset the legacy dark-theme background for every billing tab state. */
.realm-billing .tab-button { min-height: 48px; padding: 10px 18px; border: 1px solid #d8cbea; border-radius: 9px; background: #fff; color: var(--muted-bright); font-size: .9rem; font-weight: 700; transition: background .15s, color .15s, border-color .15s; }
.realm-billing .tab-button:hover { background: #f8f5ff; color: var(--primary-strong); border-color: #bca5ec; }
.realm-billing .tab-button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 5px #5422d226; }
.realm-billing .tab-button.is-active:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.realm-billing .tab-button:focus-visible { outline: 3px solid var(--primary-strong); outline-offset: 3px; }
.realm-billing .subscription-card { border-radius: 15px; border-color: var(--line); background: #fff; }
.realm-billing .tab-panel[data-tab="subscriptions"] > .dashboard-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
.realm-billing .tab-panel[data-tab="subscriptions"] > .dashboard-card > h3 { margin-bottom: 16px; }
.realm-billing .subscription-primary > strong { font-size: 1.1rem; }
.realm-billing .subscription-manage-area { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 20px; }
.realm-billing .subscription-manage-area h4 { font-size: 1rem; margin-top: 0; }
.realm-billing .package-option { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; border-radius: 9px; }
.realm-billing .package-option input[type="checkbox"] { width: 18px; min-height: 0; }
.realm-billing .package-option > span { flex: 1; font-size: .9rem; }
.realm-billing .package-option small { font-size: .8rem; }
.change-cadence-label { display: block; margin-bottom: 15px; font-size: .9rem; }
.change-cadence-label select { display: block; width: 100%; margin-top: 6px; }
.package-review { position: fixed; inset: 0; margin: auto; width: min(500px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 30px; border: 1px solid #d9c9f4; border-radius: 18px; color: var(--text); background: #fff; box-shadow: 0 25px 80px #22103940; }
.package-review::backdrop { background: #20143f80; backdrop-filter: blur(4px); }
.package-review h2 { font-size: 1.65rem; margin-top: 0; }
.package-review p { color: var(--muted-bright); }
.package-review .review-total { font-size: 1.5rem; font-weight: 750; color: var(--text); }
.package-review .cta-row { margin-top: 25px; }
.account-side-card { align-self: start; }
.realm-billing .subscription-manage-area { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; background: transparent; align-items: start; }
.realm-billing .subscription-manage-area > p, .realm-billing .subscription-manage-area > .message { grid-column: 1 / -1; }
.realm-billing .subscription-manage-area > .manage-grid { display: grid; grid-template-columns: 1fr; margin: 0; gap: 18px; }
.realm-billing .subscription-manage-area > .manage-grid > div { padding: 22px; background: #faf8ff; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.realm-billing .subscription-manage-area > .manage-grid:has(.subscription-package-controls) { display: contents; }
.realm-billing .manage-grid > .subscription-package-controls { order: -1; grid-column: 1; grid-row: span 3; }
.realm-billing .subscription-manage-area .muted { font-size: .88rem; line-height: 1.65; }
.billing-credit-strip h3 { font-size: 1rem; }
.billing-credit-strip .plan-name { color: var(--primary); font-size: 1.6rem; font-weight: 800; white-space: nowrap; }
@media (max-width: 1000px) {
    .package-explainer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bundle-builder { grid-template-columns: 1fr; padding: 24px; }
    .bundle-receipt { position: static; }
    .bundle-count-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .realm-billing .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    .realm-billing .tab-button { min-width: 0; padding: 10px 6px; font-size: .8rem; white-space: normal; line-height: 1.4; }
    .realm-billing .subscription-card { padding: 16px; }
    .realm-billing .subscription-manage-area > .manage-grid > div { padding: 16px; }
    .realm-billing .subscription-manage-area, .realm-billing .subscription-manage-area > .manage-grid:has(.subscription-package-controls) { grid-template-columns: 1fr; }
    .realm-billing .manage-grid > .subscription-package-controls { grid-column: auto; grid-row: auto; }
    .bot-product-intro-inner { grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; padding: 24px 0; }
    .bot-product-intro img { width: 125px; height: 155px; }
    .bot-product-intro h1 { font-size: 1.9rem; }
    .bot-product-intro .rich-product-summary { font-size: .88rem; }
    .bot-product-intro .btn { padding: 11px 14px; font-size: .8rem; }
    .bundle-shop { padding-top: 28px; }
    .package-explainer-grid { gap: 10px; }
    .package-explainer { padding: 16px; }
    .package-explainer h3 { font-size: 1.15rem; }
    .package-explainer-copy { font-size: .85rem; }
    .package-unit-price { font-size: 1rem; }
    .package-explainer .plan-badge { font-size: .68rem; }
    .bundle-builder { padding: 20px 16px; gap: 20px; margin-top: 24px; }
    .bundle-count-options, .bundle-package-options { grid-template-columns: 1fr 1fr; }
    .bundle-choice > label:first-child { flex-wrap: wrap; gap: 8px; padding: 12px; }
    .bundle-choice b { width: 100%; margin-left: 27px; }
    .bundle-receipt { padding: 20px; }
    .dashboard-bot-card { padding: 20px; }
    .dashboard-bot-facts { grid-template-columns: 1fr; gap: 14px; }
    .dashboard-bot-actions { flex-direction: column; }
    .dashboard-discord-help { flex-wrap: wrap; }
    .dashboard-discord-help > div { flex: 1; }
    .dashboard-discord-help > a { margin-left: 36px; }
    .billing-credit-strip { align-items: flex-start; flex-direction: column-reverse; gap: 6px; }
}
@media (max-width: 360px) { .package-explainer-grid { grid-template-columns: 1fr; } }
/* Referral workspace reuses the existing account palette and controls. */
.referral-workspace { padding-block: 2.5rem 4rem; max-width: 1200px; }
.referral-heading { display:flex; justify-content:space-between; align-items:center; gap:2rem; margin-bottom:1.8rem; }
.referral-heading h1 { font-size:clamp(2rem,4vw,3.5rem); margin:.5rem 0; line-height:1.1; }
.referral-heading p { max-width:44rem; }
.referral-floor { flex-shrink:0; padding:1.3rem 1.6rem; border-radius:1.1rem; background:#ece6ff; color:#5421c7; font-size:1.4rem; font-weight:750; }
.referral-floor span { display:block; font-size:.875rem; font-weight:500; margin-top:.35rem; }
.referral-main-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:1.2rem; margin-block:1.2rem; }
.referral-panel { min-width:0; padding:1.5rem; border:1px solid #e2dcf0; border-radius:1.1rem; background:#fff; box-shadow:0 4px 22px #27105405; }
.referral-panel h2 { font-size:1.4rem; line-height:1.3; margin:0 0 1rem; }
.referral-panel h2 small { display:block; font-size:.875rem; color:#59526d; font-weight:500; margin-top:.4rem; }
.referral-panel p { line-height:1.65; }
.referral-panel label { display:block; font-size:.9rem; font-weight:650; }
.referral-panel input,.referral-panel select { width:100%; min-width:0; min-height:48px; border:1px solid #cfc5e7; border-radius:.6rem; padding:.7rem; background:#fff; color:#201637; font:inherit; }
.referral-panel input:focus,.referral-panel select:focus { outline:3px solid #a78bfa; outline-offset:2px; }
.referral-copy { display:flex; gap:.6rem; margin:.5rem 0; }
.referral-copy input { flex:1; }
.referral-copy button { flex-shrink:0; }
.referral-code { font-size:.9rem; overflow-wrap:anywhere; }
.referral-explainer { border-top:1px solid #eee9f6; padding-top:1.2rem; margin-top:1.2rem; }
.referral-form { display:grid; gap:.8rem; }
.referral-form label { display:grid; gap:.45rem; }
.referral-fine-print,.referral-environment { font-size:.875rem; color:#60556f; }
.referral-section-title,.referral-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.referral-section-title span { color:#635477; }
.referral-row { padding:1rem 0; border-top:1px solid #eee9f6; font-size:.95rem; flex-wrap:wrap; }
.referral-row small { display:block; color:#6a607b; margin-top:.25rem; }
.referral-empty { padding:1.3rem 0 .5rem; }
.referral-empty h3 { font-size:1.1rem; }
.referral-rules summary { cursor:pointer; font-weight:700; padding:.25rem 0; }
.referral-tier { border-top:1px solid #eee9f6; padding-top:1rem; margin-top:1rem; }
.referral-tier h3 { font-size:1.05rem; }
.referral-admin-links { display:flex; flex-wrap:wrap; gap:1rem; font-size:.9rem; }
@media(max-width:720px) { .referral-heading { flex-direction:column; align-items:flex-start; gap:.8rem; } .referral-main-grid { grid-template-columns:1fr; } .referral-floor { font-size:1.1rem; padding:.8rem 1rem; } .referral-panel { padding:1.2rem; } .referral-copy { flex-direction:column; } .referral-workspace { padding-top:1.5rem; } }

/* Automated setup guidance for the KOH and WA game bots. */
.bot-setup { margin-top: 2rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #d8c8f4; border-radius: 1.4rem; background: linear-gradient(120deg, #f0e9ff, #faf8ff); }
.bot-setup-heading { display: flex; align-items: flex-start; gap: 1rem; }
.bot-setup-heading > div { min-width: 0; }
.bot-setup-heading .eyebrow { margin: 0 0 .5rem; color: #6530cb; }
.bot-setup-heading h2 { margin: 0; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.2; }
.bot-setup-heading p:last-child { margin: .75rem 0 0; max-width: 52rem; color: #554567; font-size: 1rem; line-height: 1.7; }
.bot-setup-icon, .bot-setup-step-icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; color: #6731ce; background: #e5d8ff; border-radius: .8rem; width: 44px; height: 44px; }
.bot-setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: setup; }
.bot-setup-steps li { display: flex; gap: .8rem; align-items: flex-start; padding: 1.1rem; background: #ffffffbf; border: 1px solid #e3d8f5; border-radius: 1rem; counter-increment: setup; }
.bot-setup-steps strong { display: block; color: #2d174d; font-size: .95rem; line-height: 1.5; }
.bot-setup-steps strong::before { content: counter(setup) '. '; color: #6731ce; }
.bot-setup-steps p { margin: .4rem 0 0; color: #5c4d70; font-size: .875rem; line-height: 1.6; }
.bot-setup-step-icon { width: 32px; height: 32px; border-radius: .55rem; }
.bot-setup-step-icon .ui-icon { width: 20px; height: 20px; }
.bot-setup-note { display: flex; align-items: flex-start; gap: .65rem; margin: 1rem 0; padding: .9rem 1rem; border: 1px solid #dfd1f7; border-radius: .8rem; background: #f3edff; color: #6031b9; }
.bot-setup-note > .ui-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: .1rem; }
.bot-setup-note strong { display: block; font-size: .9rem; line-height: 1.5; }
.bot-setup-note p { margin: .25rem 0 0; color: #554567; font-size: .875rem; line-height: 1.6; }
.realm-product-card .bot-setup-note { width: 100%; }
@media (max-width: 850px) { .bot-setup-steps { grid-template-columns: 1fr; gap: .65rem; } }
@media (max-width: 480px) { .bot-setup-heading { gap: .75rem; } .bot-setup-icon { width: 36px; height: 36px; } .bot-setup-heading p:last-child { font-size: .9rem; } }
