/* XRHost Retailer. Colours come from retailer.theme in the configuration (see render_start). */
:root {
  --bg: #05070c; --surface: #10151f; --text: #eef3f8; --text-muted: #8b96a8; --accent: #18d8ff; --accent-text: #05070c;
  --border: color-mix(in srgb, var(--text) 12%, transparent);
  --surface-2: color-mix(in srgb, var(--surface) 80%, var(--text) 4%);
  --danger: #ff5c7a; --warning: #ffb347; --success: #3ddc97;
  --radius: 14px; --shadow: 0 18px 48px rgba(0, 0, 0, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
html { height: 100%; }
/* Header, growing main area and footer: the footer sits at the bottom of the window on short pages and after the content on long ones. */
body { margin: 0; min-height: 100%; display: flex; flex-direction: column; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.site-main { flex: 1 0 auto; width: 100%; }
.site-footer { flex-shrink: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--text-muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.danger { color: var(--danger); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-text); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; z-index: 100; }

/* layout */
.container { width: min(1120px, 100% - 32px); margin: 0 auto; padding: 32px 0; }
.container.wide { width: min(1400px, 100% - 32px); }
.container.narrow { max-width: 560px; }
.container.narrow-wide { max-width: 860px; }
.section { padding: 48px 0; border-top: 1px solid var(--border); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: start; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.page-head h1 { margin-bottom: .2em; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 12px 20px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand img { height: 32px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav > a { padding: 8px 12px; border-radius: 8px; color: var(--text); }
.site-nav > a:hover, .site-nav > a.is-active { background: var(--surface); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; width: 40px; height: 36px; padding: 6px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 4px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 8px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu[open] summary { background: var(--surface); }
.user-menu-panel { position: absolute; right: 0; top: 110%; min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: grid; }
.user-menu-panel a, .user-menu-panel button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--surface-2); text-decoration: none; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); padding: 10px; border-bottom: 1px solid var(--border); }
  .site-nav.is-open { display: flex; }
  .user-menu-panel { position: static; box-shadow: none; }
}

/* buttons and forms */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.button:hover { filter: brightness(1.12); text-decoration: none; }
.button-primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.button-danger { background: var(--danger); color: #fff; border-color: transparent; }
.button-small { padding: 5px 10px; font-size: .86rem; border-radius: 8px; }
.button-large { padding: 13px 24px; font-size: 1.05rem; }
.button[disabled] { opacity: .5; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.inline-form { display: inline; }
.form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .95rem; }
.form label small { font-weight: 400; }
.form input:not([type=checkbox]):not([type=radio]):not([type=color]), .form select, .form textarea, .inline-search input, .inline-search select, .row-menu-panel input[type=text] {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form textarea { min-height: 80px; resize: vertical; }
.form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 20px; }
.form legend { font-weight: 700; padding: 0 8px; }
.check-label { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.check-label input { width: auto; margin: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.input-suffix { display: flex; align-items: center; margin-top: 6px; }
.input-suffix input { margin-top: 0 !important; border-radius: 10px 0 0 10px !important; }
.input-suffix span { padding: 10px 12px; border: 1px solid var(--border); border-left: 0; border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--text-muted); white-space: nowrap; }
.input-suffix span:first-child { border-left: 1px solid var(--border); border-right: 0; border-radius: 10px 0 0 10px; }
.input-suffix span:first-child + input { border-radius: 0 10px 10px 0 !important; }
.inline-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.inline-search input, .inline-search select { flex: 1 1 200px; margin: 0; }
.hp { position: absolute; left: -9999px; }
.auth-card { padding: 32px; }
.slug-ok { color: var(--success); }
.slug-bad { color: var(--danger); }

/* flashes and notices */
.flash-stack { width: min(1120px, 100% - 32px); margin: 16px auto 0; display: grid; gap: 8px; }
.flash { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.flash-error { border-left-color: var(--danger); }
.flash-success { border-left-color: var(--success); }
.flash button { background: none; border: 0; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--warning); }
.notice-danger { border-left-color: var(--danger); }
.announcement { text-align: center; padding: 10px 16px; background: var(--accent); color: var(--accent-text); font-weight: 600; }

/* badges, meters */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); vertical-align: middle; }
.badge-accent { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.status-active, .job-done, .sub-active, .sub-trialing { background: color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }
.status-pending, .status-provisioning, .job-queued, .job-running, .sub-incomplete { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.status-suspended, .status-removing, .sub-past_due, .sub-unpaid { background: color-mix(in srgb, var(--warning) 20%, transparent); color: var(--warning); }
.status-failed, .job-failed, .sub-canceled { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 8px 0 4px; }
.meter.tall { height: 18px; }
.meter-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s; }
.meter.warning .meter-fill { background: var(--warning); }
.meter.danger .meter-fill { background: var(--danger); }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { color: var(--text-muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.table tr.is-muted { opacity: .6; }
.table-wrap { overflow-x: auto; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.dl dt { color: var(--text-muted); }
.dl dd { margin: 0; }

/* landing */
.hero { padding: 72px 0 48px; text-align: center; background: radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%); }
.hero-logo { height: 96px; margin-bottom: 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--accent); font-weight: 700; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 820px; margin: 0 auto .5em; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 680px; margin: 0 auto 1.6em; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.feature-grid li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-weight: 600; }
.check { color: var(--accent); margin-right: 6px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.plan-card .button { margin-top: auto; }
.plan-price strong { font-size: 2rem; }
.plan-features { list-style: none; padding: 0; margin: 0 0 12px; color: var(--text-muted); }
.plan-features li::before { content: "✔"; color: var(--accent); margin-right: 8px; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: grid; gap: 6px; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 800; }
.steps span { color: var(--text-muted); }
.faq { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--surface); }
.faq summary { padding: 14px 18px; cursor: pointer; font-weight: 600; }
.faq p { padding: 0 18px 14px; margin: 0; color: var(--text-muted); }

/* footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; background: var(--surface); }
.footer-inner { width: min(1120px, 100% - 32px); margin: 0 auto; padding: 28px 0; display: grid; gap: 8px; }
.footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* dashboard */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.platform-card { color: var(--text); display: block; }
.platform-card:hover { text-decoration: none; border-color: var(--accent); }
.notifications { list-style: none; padding: 0; margin: 0; }
.note { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 8px; margin-bottom: 8px; }
.note p { margin: 2px 0 0; color: var(--text-muted); }
.note-warning { border-left-color: var(--warning); }
.note-danger { border-left-color: var(--danger); }
.note.is-read { opacity: .6; }
.tip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tip p { color: var(--text-muted); }
.plan-options { display: grid; gap: 10px; }
.plan-option { display: flex !important; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 400 !important; }
.plan-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.plan-option input { width: auto !important; margin: 0 !important; }

/* platform page */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs a { padding: 10px 14px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.job-status { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 20px; }
.job-status.job-failed { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--text); }
.job-status.job-done { border-color: var(--success); background: color-mix(in srgb, var(--success) 10%, var(--surface)); color: var(--text); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.instructions { padding-left: 20px; color: var(--text-muted); }
.instructions li { margin-bottom: 8px; }
.snippet { margin: 12px 0; }
.snippet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.snippet pre { margin: 0; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; font-size: .8rem; white-space: pre-wrap; word-break: break-all; max-height: 200px; overflow: auto; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.color-field span { display: flex; gap: 6px; margin-top: 6px; }
.color-field input[type=color] { width: 42px; height: 42px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }
.color-field input[type=text] { margin-top: 0 !important; }
.theme-preview { margin: 16px 0; padding: 18px; border-radius: 12px; border: 1px solid var(--border); background: #020304 radial-gradient(circle at 50% 120%, #0d2233, #020304 70%); }
.tp-window { max-width: 360px; margin: 0 auto; border: 1px solid #4c4f55; box-shadow: 0 10px 30px #000b; background: var(--tp-tex-panel, none) center/var(--tp-tex-panel-size, cover) var(--tp-tex-panel-repeat, no-repeat), var(--tp-panel, #3b3f47); background-blend-mode: var(--tp-tex-panel-blend, overlay); color: var(--tp-text, #f2f2f2); font-family: Arial, Helvetica, sans-serif; }
.tp-titlebar { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 10px; background: var(--tp-tex-title, none) center/var(--tp-tex-title-size, cover) var(--tp-tex-title-repeat, no-repeat), color-mix(in srgb, var(--tp-bar, #4a4e57) 80%, #2b2d32); background-blend-mode: var(--tp-tex-title-blend, overlay); color: var(--tp-muted, #b7b9bd); border-bottom: 1px solid #08090b; font-size: 14px; }
.tp-close { color: var(--tp-text, #f2f2f2); font-size: 18px; }
.tp-body { padding: 12px; }
.tp-text { margin: 0 0 4px; color: var(--tp-text, #f2f2f2); }
.tp-muted { margin: 0 0 12px; color: var(--tp-muted, #b7b9bd); font-size: .85rem; }
.tp-row { display: flex; gap: 8px; }
.tp-btn { padding: 5px 12px; border: 1px solid #606268; border-radius: 5px; color: var(--tp-text, #f2f2f2); text-shadow: 0 1px 2px #000; background: linear-gradient(color-mix(in srgb, var(--tp-bar, #4a4e57) 82%, white), color-mix(in srgb, var(--tp-bar, #4a4e57) 72%, black)); font-size: .85rem; }
.tp-selected { color: var(--tp-accent, #00ff63); border-color: var(--tp-accent, #00ff63); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.prose { line-height: 1.7; }
.prose img { max-width: 100%; }

/* admin */
.admin-layout { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: start; }
.admin-nav { display: grid; gap: 2px; position: sticky; top: 76px; }
.admin-nav a { padding: 9px 12px; border-radius: 8px; color: var(--text); }
.admin-nav a:hover, .admin-nav a.is-active { background: var(--surface); text-decoration: none; }
.admin-nav a.is-active { color: var(--accent); font-weight: 600; }
.admin-content { min-width: 0; }
@media (max-width: 860px) { .admin-layout { grid-template-columns: 1fr; } .admin-nav { position: static; display: flex; flex-wrap: wrap; } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.stat span { color: var(--text-muted); font-size: .82rem; }
.stat strong { font-size: 1.5rem; }
.stat-danger { border-color: var(--danger); }
.chart, .sparkline { width: 100%; height: auto; display: block; }
.sparkline { height: 70px; }
.row-menu { position: relative; display: inline-block; }
.row-menu summary { list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu-panel { position: fixed; z-index: 60; max-height: calc(100vh - 24px); overflow-y: auto; min-width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 10px; display: grid; gap: 8px; text-align: left; }
.row-menu-panel form { display: grid; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.row-menu-panel form:last-child { border-bottom: 0; padding-bottom: 0; }
.row-menu-panel button { align-self: start; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.row-menu-panel button.danger { color: var(--danger); }
.top-list li { padding: 4px 0; }
.kind-sale, .cashout-paid, .cashout-approved { background: color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }
.kind-commission, .kind-cashout, .kind-payout { background: color-mix(in srgb, var(--warning) 20%, transparent); color: var(--warning); }
.kind-adjustment, .cashout-pending { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.cashout-denied { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }
.inline-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Website tab */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; }
.bullets { padding-left: 18px; }
.bullets li { margin: 6px 0; }

/* Domain: certificates */
.ssl-choice { border: 1px solid var(--border, #243044); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.ssl-choice legend { padding: 0 6px; font-weight: 700; }
.ssl-choice:has(input[value="letsencrypt"]:checked) .ssl-files { display: none; }
.ssl-files { margin: 6px 0 0 26px; }
.cert-field { margin: 8px 0; }
.cert-field textarea { width: 100%; }
.cert-status { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border, #243044); }
.cert-status h3 { margin: 0 0 6px; }
.cert-upload { margin-top: 10px; }

/* Landing page: platforms the admin put in the spotlight (logo + name, opens the platform in a new tab). */
.why-intro { max-width: 820px; margin: 0 auto 28px; text-align: center; }
.why-intro h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.why-lead { font-size: 1.12rem; line-height: 1.65; }
.why-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.why-grid li { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.why-grid strong { color: var(--accent); align-self: start; } /* titles share a row, so every description starts at the same height */
.why-grid span { color: var(--text-muted); font-size: .95rem; }
.spotlight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.spotlight-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.spotlight-card:hover, .spotlight-card:focus-visible { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 14px 36px color-mix(in srgb, var(--accent) 16%, transparent); }
.spotlight-logo { position: relative; display: block; flex: none; aspect-ratio: 16 / 10; overflow: hidden; padding: 22px; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--bg); border-bottom: 1px solid var(--border); }
.spotlight-logo img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; } /* every logo fits the same box */
.spotlight-name { flex: 1; display: flex; align-items: center; padding: 14px 18px; font-weight: 700; font-size: 1.05rem; }
.spotlight-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.spotlight-form input[type="number"] { width: 58px; padding: 4px 6px; }
.spotlight-on { color: var(--warning); }
@media (max-width: 520px) { .spotlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .spotlight-logo img { inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); } .spotlight-name { padding: 10px 12px; font-size: .95rem; } }

.tp-content { display: grid; gap: 2px; margin: 0 0 12px; padding: 8px 10px; background: var(--tp-tex-content, none) center/var(--tp-tex-content-size, cover) var(--tp-tex-content-repeat, no-repeat), color-mix(in srgb, var(--tp-panel, #3b3f47) 57%, black); background-blend-mode: var(--tp-tex-content-blend, overlay); font-size: .85rem; font-weight: 700; }
.texture-field { margin: 10px 0; padding: 10px 12px 4px; border: 1px solid var(--border); border-radius: 10px; }
.texture-field legend { padding: 0 6px; font-weight: 700; }
.texture-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.texture-row label { font-size: .85rem; }
.texture-upload { display: flex; gap: 12px; align-items: center; }
.texture-upload[hidden] { display: none; }
[data-show-if][hidden] { display: none !important; }
.texture-thumb { flex: none; width: 54px; height: 54px; border-radius: 8px; border: 1px solid var(--border); background: center/cover; }
.range-row { display: flex; gap: 12px; align-items: center; }
.range-row input { flex: 1; }
@media (max-width: 640px) { .texture-row { grid-template-columns: 1fr; } }

.scenery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; align-items: end; }
.upload-field { display: grid; gap: 6px; margin: 10px 0; }
.upload-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.upload-row audio { height: 34px; max-width: 100%; }
.upload-current { font-size: .85rem; color: var(--text-muted); }
@media (max-width: 640px) { .scenery-grid { grid-template-columns: 1fr; } }
.site-status { margin-bottom: 20px; border-left: 4px solid var(--success); }
.site-status.is-offline { border-left-color: var(--warning); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 8px 0 12px; }

.spotlight-word { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; color: #fff; text-shadow: 0 0 10px #fff, 0 2px 8px rgba(0, 0, 0, .8); pointer-events: none; }
.spotlight-word b { font-size: 1.35rem; letter-spacing: .3em; margin-right: -.3em; }
.spotlight-word small { font-size: .95rem; letter-spacing: .28em; margin-right: -.28em; }

/* Store tab and Admin → Free items */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.subtabs a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-weight: 600; font-size: .9rem; }
.subtabs a:hover { text-decoration: none; color: var(--text); }
.subtabs a.is-active { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.store-item { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.02); }
.store-item.is-off { opacity: .55; }
.store-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.store-item-body strong { overflow-wrap: anywhere; }
.store-item .store-thumb { width: 100%; height: auto; aspect-ratio: 1; }
.store-thumb { display: inline-block; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: rgba(127,127,127,.12); vertical-align: middle; }
.store-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.store-share-form { display: flex; flex-direction: column; gap: 6px; }
.store-share-form input[type=text] { width: 100%; }
.store-table td .inline-form { display: inline-block; margin-left: 4px; }

/* Branding → Browser icon */
.favicon-row { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.favicon-row p { margin: 0; }
.favicon-preview { flex: none; width: 56px; height: 56px; border-radius: 12px; background: #1b1f27; display: grid; place-items: center; border: 1px solid var(--border); }
.favicon-preview img { width: 32px; height: 32px; object-fit: contain; }
.store-item > .badge { align-self: flex-start; }
