/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
 *
 * ── Semantic class hooks (sa-*) ────────────────────────────────────────────
 * Every section, snippet and key element carries a stable `sa-` class you can
 * target with plain CSS — no Tailwind rebuild needed. These classes ship with
 * NO styles of their own; they exist purely as selectors for you to hook onto.
 *
 * Page scope   body.sa-tpl-<template>      e.g. .sa-tpl-product, .sa-tpl-shop
 *              body.sa-no-product-images / .sa-no-category-images when the
 *              matching theme setting is off
 * Chrome       .sa-header .sa-navbar .sa-footer
 *              .sa-navbar-link .sa-navbar-logo .sa-navbar-cart .sa-footer-link
 * Sections     .sa-<component>             e.g. .sa-hero, .sa-features, .sa-faq
 *   variant    .sa-<component>--<variant>  e.g. .sa-hero--split-media
 *   inner      .sa-<component>-title / -subtitle / -eyebrow / -media /
 *              -items / -item / -actions / -link / -price / -badge / -icon
 * Primitives   .sa-btn (+ .sa-btn--<variant>), .sa-section-header
 *              (.sa-section-title / -eyebrow / -subtitle),
 *              .sa-product-card (+ .sa-product-card--<style>,
 *              .sa-product-card-title / -price / -stock / -status / -badges),
 *              .sa-product-form + .sa-add-to-cart, .sa-product-gallery,
 *              .sa-cart-panel + .sa-cart-item, .sa-searchbar, .sa-pagination,
 *              .sa-breadcrumbs, .sa-toasts + .sa-toast, .sa-feedback-card
 *
 * Example — bigger hero heading only on the product page:
 *   .sa-tpl-product .sa-hero-title { font-size: 3rem; }
 * ───────────────────────────────────────────────────────────────────────────
*/

/* ===========================================================================
   RebornClient — chrome on black
   =========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Saira:ital,wdth,wght@0,75..125,300..800;1,75..125,300..800&display=swap");

:root {
  --rc-chrome: linear-gradient(180deg,
      #ffffff 0%, #eef0f3 30%, #9aa0a9 48%, #4c5058 52%,
      #b9bec6 62%, #ffffff 82%, #d4d7dc 100%);
  --rc-chrome-flat: linear-gradient(180deg, #ffffff 0%, #d7dade 45%, #9ea3ab 55%, #e9ebee 100%);
}

/* Studio spotlight + lens-flare streak behind every page */
html[data-scheme="dark"] body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 38% at 50% 18%, rgba(255,255,255,.10), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(160,170,185,.07), transparent 70%);
}

/* ---------- Type ---------- */
.sa-section-title,
.sa-custom-page-heading h1,
[class*="sa-page-"] h1 {
  font-style: italic;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.01em;
}
html[data-scheme="dark"] .sa-section-title,
html[data-scheme="dark"] .sa-custom-page-heading h1,
html[data-scheme="dark"] [class*="sa-page-"] h1 {
  background: var(--rc-chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Navbar shop name */
.sa-navbar-logo span {
  font-style: italic; font-weight: 700;
  font-variation-settings: "wdth" 125;
}
html[data-scheme="dark"] .sa-navbar-logo span {
  background: var(--rc-chrome-flat);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sa-navbar-logo img { border-radius: 0; }

/* ---------- Buttons: every solid accent button becomes polished chrome ---------- */
html[data-scheme="dark"] a.bg-accent-500,
html[data-scheme="dark"] button.bg-accent-500 {
  background-image: var(--rc-chrome-flat);
  color: #0b0c0e;
  font-weight: 700;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.25), 0 0 0 1px #6c7078, 0 8px 24px -10px rgba(255,255,255,.3);
  transition: filter var(--dur), box-shadow var(--dur), transform var(--dur);
}
html[data-scheme="dark"] a.bg-accent-500:hover,
html[data-scheme="dark"] button.bg-accent-500:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.25), 0 0 0 1px #8a8f97, 0 10px 30px -8px rgba(255,255,255,.4);
}
html[data-scheme="dark"] button.bg-accent-500:disabled { filter: grayscale(1) brightness(.5); box-shadow: none; }

/* Product cards: faint top-edge highlight like brushed metal */
html[data-scheme="dark"] .sa-product-card {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
html[data-scheme="dark"] .sa-product-card-price { color: #fff; font-style: italic; font-weight: 800; }

/* ---------- Download hero component ---------- */
.rc-download { position: relative; }
.rc-download::after {             /* horizontal flare line, echoing the logo */
  content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,.18) 30%, rgba(255,255,255,.45) 50%, rgba(255,255,255,.18) 70%, transparent 95%);
  z-index: -1;
}
.rc-download-inner {
  min-height: min(82vh, 760px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-block: 64px 80px;
}
.rc-download-emblem {
  width: clamp(80px, 10vw, 120px); height: auto; margin-bottom: 18px;
  filter: drop-shadow(0 0 30px rgba(255,255,255,.18));
}

.rc-chrome-title {
  position: relative; margin: 0; padding: 0 .08em;
  font-family: var(--ff-heading);
  font-size: clamp(3.75rem, 13vw, 9.5rem);
  font-weight: 800; font-style: italic; line-height: 1.02;
  font-variation-settings: "wdth" 125; letter-spacing: -.02em;
  background: var(--rc-chrome);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(255,255,255,.12));
}
html[data-scheme="light"] .rc-chrome-title {
  background: linear-gradient(180deg, #2a2d33 0%, #6b7079 48%, #1a1c20 52%, #4a4e56 100%);
  -webkit-background-clip: text; background-clip: text; filter: none;
}
/* single light sweep across the chrome on load */
.rc-chrome-title::after {
  content: attr(data-text);
  position: absolute; inset: 0; padding: inherit;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.95) 50%, transparent 60%);
  background-size: 250% 100%; background-position: 130% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rc-sweep 1.6s .35s cubic-bezier(.6,.1,.3,1) forwards;
}
@keyframes rc-sweep { to { background-position: -30% 0; } }

.rc-download-sub {
  max-width: 36ch; margin: 22px auto 44px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgb(var(--cl-t-muted));
}

.rc-dl-card {
  width: min(720px, 100%);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 26px 30px; text-align: left;
  background: linear-gradient(180deg, rgb(var(--cl-surface-raised)), rgb(var(--cl-surface)));
  border: var(--border-w) solid var(--cl-border);
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 80px -30px rgba(0,0,0,.9);
}
.rc-dl-icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 12px; font-size: 1.35rem;
  background: rgba(var(--cl-t-primary), .05); border: var(--border-w) solid var(--cl-border);
  color: rgb(var(--cl-t-primary));
}
.rc-dl-info p { margin: 0; }
.rc-dl-label { font-size: .8rem; font-weight: 500; color: rgb(var(--cl-t-muted)); }
.rc-dl-platform {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-heading); font-size: 1.5rem; font-weight: 700; line-height: 1.3;
  color: rgb(var(--cl-t-primary));
}
.rc-dl-version {
  font-family: var(--ff-body); font-size: .72rem; font-weight: 600;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(var(--cl-t-primary), .07); border: var(--border-w) solid var(--cl-border);
  color: rgb(var(--cl-t-muted));
}
.rc-dl-req { font-size: .9rem; color: rgb(var(--cl-t-muted)); }

.rc-btn-chrome {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: var(--radius-button);
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  color: #0b0c0e; background: var(--rc-chrome-flat);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.25), 0 0 0 1px #6c7078, 0 8px 24px -8px rgba(255,255,255,.25);
  transition: filter var(--dur), transform var(--dur), box-shadow var(--dur);
}
.rc-btn-chrome:hover { filter: brightness(1.08); transform: translateY(-1px); }
.rc-btn-chrome.is-disabled {
  pointer-events: none; transform: none; filter: none;
  color: rgb(var(--cl-t-muted)); background: rgba(var(--cl-t-primary), .05);
  box-shadow: inset 0 0 0 1px var(--cl-border);
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
}

.rc-download-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
  margin-top: 22px; font-size: .85rem; color: rgb(var(--cl-t-muted));
}
.rc-download-meta a {
  color: rgb(var(--cl-t-primary)); opacity: .8;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cl-border);
}
.rc-download-meta a:hover { opacity: 1; }

@media (max-width: 600px) {
  .rc-dl-card { grid-template-columns: auto 1fr; padding: 22px; }
  .rc-btn-chrome { grid-column: 1 / -1; width: 100%; }
  .rc-download-inner { min-height: 0; padding-block: 48px 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-chrome-title::after { animation: none; display: none; }
}

/* ---------- Home welcome ---------- */
.rc-welcome-inner {
  min-height: min(78vh, 700px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-block: 72px 88px;
}
.rc-welcome .rc-chrome-title { font-size: clamp(2.6rem, 8vw, 6.2rem); }
.rc-welcome .rc-download-sub { max-width: 44ch; margin-bottom: 36px; }
.rc-welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.rc-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: var(--radius-button);
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  color: rgb(var(--cl-t-primary)); border: var(--border-w) solid rgba(var(--cl-t-primary), .35);
  transition: background var(--dur), transform var(--dur);
}
.rc-btn-ghost:hover { background: rgba(var(--cl-t-primary), .08); transform: translateY(-1px); }

/* ---------- Premium page: featured card ---------- */
@property --rc-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rc-spin { to { --rc-ang: 360deg; } }
@keyframes rc-twinkle { 0%,100% { transform: scale(1) rotate(0deg); opacity: .9; } 50% { transform: scale(1.18) rotate(12deg); opacity: 1; } }

.rc-prem { padding-block: 56px 24px; }
.rc-prem-wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
.rc-prem-ghost {
  position: relative; z-index: 0; margin: 0 0 -.3em; user-select: none; pointer-events: none;
  font-family: var(--ff-heading); font-weight: 800; font-style: italic; line-height: .85;
  font-size: clamp(3.6rem, 17vw, 12rem); letter-spacing: -.02em;
  font-variation-settings: "wdth" 125;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rc-prem-card {
  position: relative; z-index: 1; isolation: isolate; overflow: hidden;
  min-height: 440px; padding: 44px; display: flex; align-items: flex-end;
  border-radius: 26px;
  background:
    radial-gradient(ellipse 55% 60% at 82% 8%, rgba(255,255,255,.20), transparent 62%),
    radial-gradient(ellipse 60% 70% at 8% 100%, rgba(150,160,175,.14), transparent 65%),
    linear-gradient(160deg, #1a1c21 0%, #0b0c0e 62%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 50px 120px -40px rgba(255,255,255,.22), 0 40px 90px -40px #000;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.rc-prem-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 60px 140px -40px rgba(255,255,255,.3), 0 40px 90px -40px #000; }
.rc-prem-card::before {            /* spinning chrome rim */
  content: ""; position: absolute; inset: 0; padding: 1.6px; border-radius: inherit; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--rc-ang), rgba(255,255,255,.14) 0deg, #fff 45deg, rgba(255,255,255,.14) 110deg, rgba(255,255,255,.14) 200deg, #aeb4bd 260deg, rgba(255,255,255,.14) 320deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rc-spin 7s linear infinite;
}
.rc-prem-mark {
  position: absolute; z-index: -1; right: -6%; top: -14%; width: 58%; max-width: 560px; height: auto;
  opacity: .07; filter: grayscale(1) brightness(2); pointer-events: none;
}
.rc-prem-star {
  position: absolute; top: 30px; right: 34px; width: 54px; height: 54px; color: #fff;
  filter: drop-shadow(0 0 14px rgba(255,255,255,.65)); animation: rc-twinkle 3.4s ease-in-out infinite;
}
.rc-prem-body { position: relative; width: 100%; }
.rc-prem-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.rc-pill {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgb(var(--cl-t-muted)); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08);
}
.rc-pill--chrome { color: #0b0c0e; background: var(--rc-chrome-flat); border-color: transparent; box-shadow: inset 0 1px 0 #fff; }
.rc-prem-title {
  margin: 0; font-family: var(--ff-heading); font-weight: 800; font-style: italic; line-height: 1;
  font-size: clamp(3.2rem, 9vw, 6rem); letter-spacing: -.02em; font-variation-settings: "wdth" 125;
  background: var(--rc-chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(255,255,255,.16));
}
.rc-prem-desc { max-width: 46ch; margin: 14px 0 0; font-size: 1.05rem; color: rgb(var(--cl-t-muted)); }
.rc-prem-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; margin-top: 34px; }
.rc-prem-price { display: flex; flex-direction: column; line-height: 1.05; }
.rc-prem-price > span { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; font-style: italic; color: #fff; }
.rc-prem-price small { font-size: .8rem; font-weight: 600; color: rgb(var(--cl-t-muted)); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.rc-prem-price em { margin-top: 6px; font-style: normal; font-size: .85rem; color: rgb(var(--cl-t-muted)); }
.rc-btn-chrome.rc-btn-lg { min-height: 60px; padding: 0 44px; font-size: 1.08rem; }
.rc-prem-card .rc-btn-chrome:not(.is-disabled) { box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.25), 0 0 0 1px #8a8f97, 0 0 40px -4px rgba(255,255,255,.45); }

/* ---------- Premium features ---------- */
.rc-premium-feats { padding-block: 56px 100px; }
.rc-feat-title {
  text-align: center; margin: 0 0 36px; font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; font-style: italic;
  font-variation-settings: "wdth" 125;
  background: var(--rc-chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rc-feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
.rc-feat {
  position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px;
  background: linear-gradient(180deg, rgb(var(--cl-surface-raised)), rgb(var(--cl-surface)));
  border: var(--border-w) solid var(--cl-border); border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.rc-feat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rc-feat > i {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(var(--cl-t-primary), .05); border: var(--border-w) solid var(--cl-border);
  color: rgb(var(--cl-t-primary));
}
.rc-feat h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; color: rgb(var(--cl-t-primary)); }
.rc-feat p { margin: 0; font-size: .92rem; color: rgb(var(--cl-t-muted)); }
.rc-feat--hot {
  padding: 26px 26px; border-color: rgba(255,255,255,.34);
  background: radial-gradient(ellipse 80% 90% at 90% 0%, rgba(255,255,255,.13), transparent 65%), linear-gradient(180deg, #1b1d22, #0d0e10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 46px -14px rgba(255,255,255,.3);
}
.rc-feat--hot > i { width: 50px; height: 50px; font-size: 1.15rem; color: #0b0c0e; background: var(--rc-chrome-flat); border-color: transparent; box-shadow: inset 0 1px 0 #fff; }
.rc-feat--hot h3 { font-size: 1.2rem; }
.rc-feat-tag {
  position: absolute; top: 14px; right: 16px; padding: 3px 10px; border-radius: 999px;
  font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #0b0c0e; background: var(--rc-chrome-flat);
}
@media (max-width: 640px) {
  .rc-feat-grid { grid-template-columns: 1fr; }
  .rc-prem-card { padding: 26px; min-height: 380px; }
  .rc-prem-star { width: 38px; height: 38px; top: 20px; right: 20px; }
  .rc-btn-chrome.rc-btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .rc-prem-card::before, .rc-prem-star { animation: none; } }


/* ===========================================================================
   Site-wide background — Reborn Client splash
   Tweak the three variables below to taste:
     --rc-bg-dim    0 = full brightness image, 1 = black
     --rc-bg-center extra darkening behind the middle so page text stays readable
     --rc-bg-pos    focal point of the image
   =========================================================================== */
:root {
  --rc-bg-dim: .38;
  --rc-bg-center: .78;
  --rc-bg-pos: 50% 50%;
}

/* let the fixed layer show through (html keeps the solid black fallback) */
html[data-scheme="dark"] body { background-color: transparent; }
html[data-scheme="dark"] body::before { display: none; }   /* old spotlight, replaced by the layer below */

.rc-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  background: #000;
}
.rc-bg-img {
  position: absolute; inset: 0;
  background: var(--rc-bg-img) var(--rc-bg-pos) / cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);                                   /* hides any edge bleed */
  animation: rc-bg-in 1.2s ease-out both;
}
.rc-bg-shade {
  position: absolute; inset: 0;
  background:
    /* soft pool of dark behind the centre so headings/cards stay crisp */
    radial-gradient(ellipse 58% 50% at 50% 48%, rgba(0,0,0,var(--rc-bg-center)) 0%, rgba(0,0,0,calc(var(--rc-bg-center) * .75)) 45%, transparent 78%),
    /* fade under the navbar and into the footer */
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 18%, transparent 70%, rgba(0,0,0,.65) 100%),
    /* overall dim; the chrome streaks at the corners still pop */
    rgba(0,0,0,var(--rc-bg-dim));
}
@keyframes rc-bg-in { from { opacity: 0; } to { opacity: 1; } }

/* glassy navbar so the artwork reads through it */
html[data-scheme="dark"] .sa-navbar > div:first-child {
  background-color: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(255,255,255,.08);
}

/* a touch more punch on the hero over the artwork */
.rc-welcome .rc-chrome-title { filter: drop-shadow(0 4px 40px rgba(0,0,0,.85)) drop-shadow(0 0 30px rgba(255,255,255,.14)); }
.rc-welcome .rc-download-sub { color: #c4c8cf; }
.rc-welcome .rc-download-meta { color: #aeb3bb; }
.rc-welcome .rc-download-sub,
.rc-welcome .rc-download-meta { text-shadow: 0 2px 16px #000, 0 0 3px rgba(0,0,0,.8); }
.rc-btn-ghost { background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

@media (max-width: 700px) {
  :root { --rc-bg-dim: .46; --rc-bg-center: .8; }
}
@media (prefers-reduced-motion: reduce) { .rc-bg-img { animation: none; } }


/* ===========================================================================
   Home hero frame — matches the Reborn launcher (green bar + corner brackets)
   Change --rc-green to recolour everything at once.
   =========================================================================== */
:root { --rc-green: 52, 235, 112; }

.rc-frame {
  position: relative; isolation: isolate;
  width: min(100%, 960px);
  padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 56px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(var(--rc-green), .07), transparent 70%),
    rgba(6, 8, 8, .58);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 0 80px -24px rgba(var(--rc-green), .35), 0 40px 90px -40px #000;
}

/* the circling green bar: a short bright segment orbiting the border */
.rc-frame::before,
.rc-frame::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  padding: 2px; border-radius: inherit;
  background: conic-gradient(from var(--rc-ang),
      rgba(var(--rc-green), .10) 0deg,
      rgba(var(--rc-green), .10) 20deg,
      rgba(var(--rc-green), .55) 48deg,
      #8dffb4 62deg,
      rgba(var(--rc-green), .55) 76deg,
      rgba(var(--rc-green), .10) 104deg,
      rgba(var(--rc-green), .10) 200deg,
      rgba(var(--rc-green), .28) 250deg,
      rgba(var(--rc-green), .10) 300deg,
      rgba(var(--rc-green), .10) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rc-spin 4.5s linear infinite;
}
.rc-frame::after { padding: 4px; filter: blur(9px); opacity: .9; }   /* soft glow trailing the bar */

/* launcher-style corner brackets */
.rc-corner { position: absolute; width: 22px; height: 22px; pointer-events: none; border: 0 solid rgb(var(--rc-green)); filter: drop-shadow(0 0 6px rgba(var(--rc-green), .8)); }
.rc-corner--tl { top: -5px;    left: -5px;  border-top-width: 3px;    border-left-width: 3px; }
.rc-corner--tr { top: -5px;    right: -5px; border-top-width: 3px;    border-right-width: 3px; }
.rc-corner--bl { bottom: -5px; left: -5px;  border-bottom-width: 3px; border-left-width: 3px; }
.rc-corner--br { bottom: -5px; right: -5px; border-bottom-width: 3px; border-right-width: 3px; }

/* hero content inside the frame */
.rc-frame .rc-download-sub { margin-bottom: 30px; }
.rc-frame .rc-welcome-actions { position: relative; }
.rc-frame .rc-download-meta { margin-top: 24px; }
@media (max-width: 600px) {
  .rc-welcome-inner { padding-block: 40px 56px; }
  .rc-frame .rc-welcome-actions { width: 100%; }
  .rc-frame .rc-btn-chrome, .rc-frame .rc-btn-ghost { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .rc-frame::before, .rc-frame::after { animation: none; } }
.rc-frame .rc-download-sub, .rc-frame .rc-download-meta { text-shadow: none; }
.rc-frame .rc-btn-ghost { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.04); }


/* ===========================================================================
   Green rotating rim on the Premium card + feature boxes
   (same bar as the home hero; colour comes from --rc-green)
   =========================================================================== */
.rc-prem-card::before,
.rc-feat::before,
.rc-feat::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  padding: 1.6px;
  background: conic-gradient(from var(--rc-ang),
      rgba(var(--rc-green), .10) 0deg,
      rgba(var(--rc-green), .10) 20deg,
      rgba(var(--rc-green), .55) 48deg,
      #8dffb4 62deg,
      rgba(var(--rc-green), .55) 76deg,
      rgba(var(--rc-green), .10) 104deg,
      rgba(var(--rc-green), .10) 200deg,
      rgba(var(--rc-green), .26) 250deg,
      rgba(var(--rc-green), .10) 300deg,
      rgba(var(--rc-green), .10) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rc-spin 5s linear infinite;
}
.rc-prem-card::before { z-index: 2; padding: 2px; animation-duration: 4.5s; }

/* feature boxes: rim + soft trailing glow, each box starts at a different angle */
.rc-feat::before { z-index: 1; }
.rc-feat::after  { z-index: 0; padding: 3px; filter: blur(7px); opacity: .85; }
.rc-feat:nth-child(2)::before, .rc-feat:nth-child(2)::after { animation-delay: -1.1s; }
.rc-feat:nth-child(3)::before, .rc-feat:nth-child(3)::after { animation-delay: -2.2s; }
.rc-feat:nth-child(4)::before, .rc-feat:nth-child(4)::after { animation-delay: -3.3s; }
.rc-feat:nth-child(5)::before, .rc-feat:nth-child(5)::after { animation-delay: -4.2s; }
.rc-feat > * { position: relative; z-index: 2; }
.rc-feat > .rc-feat-tag { position: absolute; }

/* matching green glow under the cards */
.rc-prem-card { box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 50px 120px -40px rgba(var(--rc-green), .28), 0 40px 90px -40px #000; }
.rc-prem-card:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 60px 140px -40px rgba(var(--rc-green), .4), 0 40px 90px -40px #000; }
.rc-feat--hot { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 46px -14px rgba(var(--rc-green), .35); }

@media (prefers-reduced-motion: reduce) { .rc-feat::before, .rc-feat::after { animation: none; } }


/* ===========================================================================
   Home — social cards (Socials section, "Cards" variant)
   Same card as the Premium page, one per social link.
   =========================================================================== */
.rc-social-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 22px; max-width: 1040px; margin: 0 auto;
}
.rc-social-card { min-height: 300px; padding: 36px; }
.rc-social-card .rc-prem-title { font-size: clamp(2.6rem, 5.4vw, 4rem); }
.rc-social-card .rc-prem-desc { font-size: 1rem; max-width: 34ch; }
.rc-social-card .rc-prem-bottom { margin-top: 28px; justify-content: flex-start; }
.rc-social-card .rc-btn-chrome.rc-btn-lg { min-height: 54px; padding: 0 32px; font-size: 1rem; }
.rc-social-mark {                 /* big faded brand icon, like the R on the Premium card */
  position: absolute; z-index: -1; right: -4%; top: 50%; transform: translateY(-50%) rotate(-8deg);
  font-size: clamp(11rem, 22vw, 16rem); line-height: 1; color: #fff; opacity: .055; pointer-events: none;
}
.rc-social-badge {                /* small brand icon in the corner, where Premium has its star */
  position: absolute; top: 28px; right: 30px; font-size: 2rem; color: #fff;
  filter: drop-shadow(0 0 14px rgba(255,255,255,.65)); animation: rc-twinkle 3.4s ease-in-out infinite;
}
.rc-social-card:nth-child(2)::before { animation-delay: -2.2s; }
@media (max-width: 640px) {
  .rc-social-card { min-height: 260px; padding: 26px; }
  .rc-social-badge { font-size: 1.5rem; top: 20px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) { .rc-social-badge { animation: none; } }



/* ===========================================================================
   Animated background — subtle and cheap.
   Only transform/opacity are animated (handled by the GPU, no repaints):
     1. the artwork drifts and zooms very slowly
     2. a soft light glint crosses the screen every so often
     3. a few dust specks float upward
   Set --rc-bg-motion: paused to freeze it all.
   =========================================================================== */
:root { --rc-bg-motion: running; }

.rc-bg-img {
  inset: -3%;                                   /* spare room so the drift never shows an edge */
  will-change: transform;
  animation: rc-bg-in 1.2s ease-out both, rc-bg-drift 38s ease-in-out infinite alternate;
  animation-play-state: running, var(--rc-bg-motion);
}
@keyframes rc-bg-drift {
  from { transform: scale(1.02) translate3d(-0.8%, -0.4%, 0); }
  to   { transform: scale(1.09) translate3d(0.9%, 0.7%, 0); }
}

.rc-bg-glint {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 34vw; min-width: 260px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.035) 35%, rgba(255,255,255,.10) 50%, rgba(255,255,255,.035) 65%, transparent);
  transform: translate3d(-60vw, 0, 0) skewX(-22deg);
  will-change: transform;
  animation: rc-bg-glint 11s ease-in-out 2s infinite;
  animation-play-state: var(--rc-bg-motion);
}
@keyframes rc-bg-glint {
  0%        { transform: translate3d(-60vw, 0, 0) skewX(-22deg); }
  45%, 100% { transform: translate3d(130vw, 0, 0) skewX(-22deg); }
}

.rc-bg-dust, .rc-bg-dust::after {
  position: absolute; left: 0; top: 0; width: 2px; height: 2px; border-radius: 50%;
  background: transparent;
  box-shadow:
     8vw 92vh 0 0 rgba(255,255,255,.55), 17vw 71vh 0 0 rgba(255,255,255,.35), 26vw 104vh 0 1px rgba(255,255,255,.30),
    34vw 83vh 0 0 rgba(255,255,255,.50), 43vw 118vh 0 0 rgba(255,255,255,.40), 52vw 76vh 0 1px rgba(255,255,255,.25),
    61vw 97vh 0 0 rgba(255,255,255,.55), 69vw 112vh 0 0 rgba(255,255,255,.35), 78vw 88vh 0 0 rgba(255,255,255,.45),
    87vw 106vh 0 1px rgba(255,255,255,.30), 94vw 79vh 0 0 rgba(255,255,255,.50), 13vw 126vh 0 0 rgba(255,255,255,.40);
  will-change: transform, opacity;
  animation: rc-bg-dust 26s linear infinite;
  animation-play-state: var(--rc-bg-motion);
}
.rc-bg-dust::after { content: ""; left: 4vw; animation-duration: 34s; animation-delay: -15s; }
@keyframes rc-bg-dust {
  0%   { transform: translate3d(0, 0, 0);          opacity: 0; }
  12%  { opacity: 1; }
  80%  { opacity: .8; }
  100% { transform: translate3d(3vw, -95vh, 0);    opacity: 0; }
}

@media (max-width: 700px) { .rc-bg-dust::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .rc-bg-img { animation: none; }
  .rc-bg-glint, .rc-bg-dust { display: none; }
}
