/* =========================================================
   RefractSMP — Tebex template styles
   Colors match the REFRACTSMP emerald logo
   ========================================================= */
:root {
    --rf-bg: #050e0a;
    --rf-bg-2: #08160f;
    --rf-panel: #0c1d16;
    --rf-glass: rgba(10,26,19,.78);
    --rf-glass-2: rgba(16,40,32,.82);
    --rf-panel-2: #102820;
    --rf-line: #17392b;
    --rf-line-2: #1f4f3b;
    --rf-text: #e6fff5;
    --rf-muted: #8fb5a5;
    --rf-mint: #8affd6;
    --rf-green: #22e59b;
    --rf-green-2: #13c483;
    --rf-deep: #0a6e49;
    --rf-deeper: #04301f;
    --rf-red: #ff5d6c;
    --rf-radius: 6px;
    --rf-wrap: 1200px;
    --rf-pixel: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; /* clean bold font (no pixel font) */

    /* Tebex legal footer (required — styled, never hidden) */
    --tebex-legal-footer-background-color: #040b08;
    --tebex-legal-footer-text-color: #8fb5a5;
    --tebex-legal-footer-border-color: #17392b;
    --tebex-legal-footer-logo-color: #8fb5a5;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--rf-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--rf-mint); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--rf-pixel); font-weight: 800; letter-spacing: .5px; line-height: 1.15; margin: 0 0 .5em; }

.rf-wrap { width: 100%; max-width: var(--rf-wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- background ----------
   The image sits at the top of the page and scrolls away with it,
   fading into the dark Refract green. Glowing particles float over
   the whole page (drawn by the script in layout.html). */
body {
    background:
        radial-gradient(1200px 900px at 15% 1400px, rgba(34,229,155,.05), transparent 70%),
        radial-gradient(1000px 800px at 85% 2200px, rgba(34,229,155,.04), transparent 70%),
        var(--rf-bg);
    position: relative;
}
.rf-bg {
    position: absolute; top: 0; left: 0; right: 0; height: 1050px; z-index: -2; pointer-events: none; overflow: hidden;
    background:
        radial-gradient(900px 420px at 50% -80px, rgba(34,229,155,.22), transparent 70%),
        linear-gradient(rgba(34,229,155,.035) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(34,229,155,.035) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(180deg, var(--rf-bg-2), var(--rf-bg) 70%);
    /* fade the whole background layer into the page colour */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0,0,0,.6) 65%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0,0,0,.6) 65%, transparent 100%);
}
.rf-particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* uploaded background image, recoloured to Refract green */
.rf-bg__img, .rf-bg__tint, .rf-bg__shade { position: absolute; inset: 0; }
.rf-bg__img { background-position: center top; background-size: cover; background-repeat: no-repeat; filter: saturate(1.15); }
.rf-bg__tint {
    background: linear-gradient(160deg, #8affd6, #22e59b 45%, #0a6e49); mix-blend-mode: color;
    /* tint fades out toward the top-centre (behind the logo), like the inspo */
    -webkit-mask-image: radial-gradient(ellipse 36% 30% at 50% 12%, transparent 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.8) 75%, #000 100%);
            mask-image: radial-gradient(ellipse 36% 30% at 50% 12%, transparent 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.8) 75%, #000 100%);
}
.rf-bg__shade {
    /* darkness clears in the centre-top and builds toward the edges and bottom */
    background:
        radial-gradient(ellipse 38% 32% at 50% 12%, transparent 0%, rgba(5,14,10,.35) 55%, rgba(5,14,10,.75) 100%),
        linear-gradient(180deg, transparent 0%, transparent 25%, rgba(5,14,10,.6) 60%, #050e0a 100%);
}

/* ---------- buttons (3D block style, like the logo) ---------- */
.rf-btn {
    --b: var(--rf-green); --b-top: var(--rf-mint); --b-side: var(--rf-deep);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--rf-pixel); font-weight: 800; font-size: 15px; letter-spacing: .3px;
    color: #03241a; text-transform: uppercase;
    padding: 11px 20px; border: 2px solid #021309; border-radius: var(--rf-radius);
    background: linear-gradient(180deg, var(--b-top), var(--b) 55%);
    box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 5px 0 var(--b-side), 0 7px 0 #021309;
    cursor: pointer; transition: transform .08s, box-shadow .08s, filter .15s;
    position: relative; top: 0;
}
.rf-btn:hover { filter: brightness(1.08); color: #021a12; }
.rf-btn:active { top: 4px; box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 1px 0 var(--b-side), 0 3px 0 #021309; }
.rf-btn--sm { padding: 7px 14px; font-size: 14px; }
.rf-btn--block { width: 100%; }
.rf-btn--ghost {
    color: var(--rf-text); background: var(--rf-panel-2);
    box-shadow: inset 0 2px 0 rgba(255,255,255,.06), 0 5px 0 #06140e, 0 7px 0 #021309;
    border-color: var(--rf-line-2);
}
.rf-btn--ghost:hover { color: #fff; }
.rf-btn--danger { --b: #ff5d6c; --b-top: #ffb0b8; --b-side: #8f1f2b; color: #2b0006; }
.rf-btn[disabled], .rf-btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---------- header ---------- */
.rf-header { padding: 36px 0 18px; }
.rf-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.rf-logo { justify-self: center; display: block; }
.rf-logo img { max-height: 190px; width: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.55)); animation: rf-float 5s ease-in-out infinite; }
.rf-logo__text { font-family: var(--rf-pixel); font-size: 56px; color: var(--rf-mint); text-shadow: 0 4px 0 var(--rf-deep), 0 8px 0 #021309; }
@keyframes rf-float { 50% { transform: translateY(-8px); } }

.rf-pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
    font-family: var(--rf-pixel); font-weight: 700; font-size: 15px; color: var(--rf-text);
    background: rgba(12,29,22,.85); border: 2px solid var(--rf-line-2); border-radius: 999px;
    box-shadow: 0 4px 0 #021309; cursor: pointer; transition: border-color .15s, transform .15s;
}
.rf-pill:hover { border-color: var(--rf-green); color: #fff; transform: translateY(-2px); }
.rf-ip { justify-self: start; position: relative; }
.rf-ip__label { color: var(--rf-green); }
.rf-ip__value { color: var(--rf-muted); font-family: "Inter", sans-serif; font-weight: 600; font-size: 13px; }
.rf-ip__copied { display: none; color: var(--rf-green); }
.rf-ip.is-copied .rf-ip__value { display: none; }
.rf-ip.is-copied .rf-ip__copied { display: inline; }
.rf-dot { width: 9px; height: 9px; background: var(--rf-green); border-radius: 2px; box-shadow: 0 0 0 0 rgba(34,229,155,.6); animation: rf-ping 1.8s infinite; }
@keyframes rf-ping { 70% { box-shadow: 0 0 0 8px rgba(34,229,155,0); } 100% { box-shadow: 0 0 0 0 rgba(34,229,155,0); } }
.rf-discord { justify-self: end; }
.rf-discord svg { color: #8ea1ff; }

/* ---------- nav ---------- */
.rf-nav { position: sticky; top: 0; z-index: 50; padding: 10px 0; }
.rf-nav__inner {
    display: flex; align-items: center; gap: 12px;
    background: rgba(12,29,22,.92); backdrop-filter: blur(8px);
    border: 2px solid var(--rf-line); border-radius: 10px; padding: 8px 10px;
    box-shadow: 0 6px 0 #021309, 0 20px 40px rgba(0,0,0,.35);
}
.rf-nav__toggle { display: none; background: none; border: 0; color: var(--rf-text); font-size: 22px; cursor: pointer; }
.rf-nav__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
.rf-nav__links > li > a {
    display: block; padding: 8px 14px; border-radius: 6px;
    font-family: var(--rf-pixel); font-weight: 500; font-size: 16px; color: var(--rf-muted);
}
.rf-nav__links > li > a:hover, .rf-nav__links > li > a.is-active { color: #fff; background: var(--rf-panel-2); }
.rf-nav__links > li > a.is-active { box-shadow: inset 0 -3px 0 var(--rf-green); }
.rf-drop { position: relative; }
.rf-caret { font-size: 11px; }
.rf-drop__menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 200px; list-style: none; margin: 6px 0 0; padding: 6px;
    background: var(--rf-panel); border: 2px solid var(--rf-line-2); border-radius: 8px; box-shadow: 0 6px 0 #021309;
}
.rf-drop:hover .rf-drop__menu, .rf-drop:focus-within .rf-drop__menu { display: block; }
.rf-drop__menu a { display: block; padding: 8px 12px; border-radius: 5px; color: var(--rf-text); }
.rf-drop__menu a:hover { background: var(--rf-panel-2); color: var(--rf-mint); }
.rf-nav__right { display: flex; align-items: center; gap: 12px; }
.rf-basket { position: relative; }
.rf-badge {
    position: absolute; top: -10px; right: -10px; min-width: 22px; height: 22px; padding: 0 5px;
    display: grid; place-items: center; font-size: 12px; color: #fff; background: var(--rf-red);
    border: 2px solid #021309; border-radius: 6px;
}
.rf-user { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.rf-user img { border-radius: 4px; image-rendering: pixelated; border: 2px solid var(--rf-line-2); }
.rf-user__logout { color: var(--rf-muted); font-size: 12px; padding: 4px 6px; border-radius: 4px; }
.rf-user__logout:hover { color: var(--rf-red); background: rgba(255,93,108,.1); }

/* ---------- toast ---------- */
.rf-toast {
    max-width: var(--rf-wrap); margin: 10px auto 0; width: calc(100% - 40px);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-radius: 8px; border: 2px solid var(--rf-green);
    background: rgba(34,229,155,.12); font-weight: 600;
}
.rf-toast--danger, .rf-toast--error { border-color: var(--rf-red); background: rgba(255,93,108,.12); }
.rf-toast--warning { border-color: #ffc94d; background: rgba(255,201,77,.12); }
.rf-toast button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 14px; }

/* ---------- layout ---------- */
.rf-main { flex: 1; padding-top: 28px; padding-bottom: 60px; }
.rf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.rf-panel {
    background: linear-gradient(180deg, var(--rf-glass-2), var(--rf-glass));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--rf-line); border-radius: 10px; padding: 24px;
    box-shadow: 0 6px 0 #021309;
}
.rf-panel + .rf-panel { margin-top: 24px; }
.rf-title {
    display: flex; align-items: center; gap: 12px; font-size: 30px; color: #fff;
    text-shadow: 0 3px 0 var(--rf-deeper);
}
.rf-title::before { content: ""; width: 14px; height: 14px; background: var(--rf-green); box-shadow: 4px 4px 0 var(--rf-deep); flex: none; }
.rf-sub { color: var(--rf-muted); margin: -4px 0 20px; }
.rf-content { color: #cfe8dd; }
.rf-content img { border-radius: 8px; }
.rf-content a { text-decoration: underline; }

/* ---------- hero (home) ---------- */
.rf-hero {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center;
    padding: 34px; margin-bottom: 28px;
    background:
        linear-gradient(120deg, rgba(34,229,155,.18), transparent 55%),
        linear-gradient(180deg, var(--rf-glass-2), var(--rf-glass));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--rf-line-2); border-radius: 12px; box-shadow: 0 6px 0 #021309;
}
.rf-hero h1 { font-size: 40px; color: #fff; text-shadow: 0 4px 0 var(--rf-deeper); }
.rf-hero h1 span { color: var(--rf-green); }
.rf-hero p { color: var(--rf-muted); max-width: 460px; margin: 0 0 22px; }
.rf-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.rf-hero__art { justify-self: end; display: grid; grid-template-columns: repeat(4, 46px); gap: 6px; }
.rf-hero__art i { width: 46px; height: 46px; border-radius: 4px; background: linear-gradient(180deg, var(--rf-mint), var(--rf-green)); box-shadow: inset 0 3px 0 rgba(255,255,255,.5), 0 6px 0 var(--rf-deep), 0 8px 0 #021309; }
.rf-hero__art i:nth-child(3n) { background: linear-gradient(180deg, #3cf0ad, var(--rf-green-2)); }
.rf-hero__art i:nth-child(4n+1) { opacity: .35; }
.rf-hero__art i:nth-child(7) { opacity: 0; }

/* ---------- category tiles (home) ---------- */
.rf-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.rf-cat {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px;
    background: var(--rf-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--rf-line); border-radius: 10px; box-shadow: 0 5px 0 #021309;
    font-family: var(--rf-pixel); font-weight: 700; font-size: 19px; color: #fff; transition: transform .15s, border-color .15s;
}
.rf-cat:hover { transform: translateY(-3px); border-color: var(--rf-green); color: #fff; }
.rf-cat span { color: var(--rf-green); font-size: 22px; }

/* ---------- packages ---------- */
.rf-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.rf-pkg {
    position: relative; display: flex; flex-direction: column; text-align: center;
    background: linear-gradient(180deg, var(--rf-glass-2), var(--rf-glass));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--rf-line); border-radius: 10px; padding: 18px 16px 20px;
    box-shadow: 0 6px 0 #021309; transition: transform .15s, border-color .15s;
}
.rf-pkg:hover { transform: translateY(-4px); border-color: var(--rf-green); }
.rf-pkg__img { height: 130px; display: grid; place-items: center; margin-bottom: 12px; }
.rf-pkg__img img { max-height: 130px; width: auto; image-rendering: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.5)); transition: transform .2s; }
.rf-pkg:hover .rf-pkg__img img { transform: scale(1.06) rotate(-2deg); }
.rf-pkg__ph { width: 84px; height: 84px; border-radius: 8px; background: linear-gradient(180deg, var(--rf-mint), var(--rf-green)); box-shadow: inset 0 4px 0 rgba(255,255,255,.5), 0 8px 0 var(--rf-deep), 0 10px 0 #021309; }
.rf-pkg__name { font-family: var(--rf-pixel); font-weight: 800; font-size: 20px; color: #fff; margin: 0 0 6px; }
.rf-pkg__name a { color: inherit; }
.rf-price { font-weight: 700; font-size: 18px; color: var(--rf-mint); margin-bottom: 14px; }
.rf-price small { font-size: 12px; color: var(--rf-muted); font-weight: 600; }
.rf-price s { color: var(--rf-muted); font-weight: 500; font-size: 14px; margin-right: 6px; }
.rf-pkg__actions { margin-top: auto; display: grid; gap: 10px; }
.rf-sale {
    position: absolute; top: 12px; left: -2px; padding: 3px 10px 3px 8px; font-family: var(--rf-pixel); font-weight: 700; font-size: 13px;
    color: #fff; background: var(--rf-red); border: 2px solid #021309; border-radius: 0 6px 6px 0;
}
.rf-in-basket { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 700; color: var(--rf-green); }

/* list display type */
.rf-packages--list { grid-template-columns: 1fr; }
.rf-packages--list .rf-pkg { flex-direction: row; align-items: center; text-align: left; gap: 18px; padding: 14px 18px; }
.rf-packages--list .rf-pkg__img { height: 64px; width: 64px; margin: 0; flex: none; }
.rf-packages--list .rf-pkg__img img { max-height: 64px; }
.rf-packages--list .rf-pkg__ph { width: 52px; height: 52px; }
.rf-packages--list .rf-pkg__body { flex: 1; }
.rf-packages--list .rf-price { margin: 0; }
.rf-packages--list .rf-pkg__actions { margin: 0; grid-auto-flow: column; }

/* ---------- package detail ---------- */
.rf-detail { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.rf-detail__img { background: var(--rf-bg-2); border: 2px solid var(--rf-line); border-radius: 10px; padding: 24px; display: grid; place-items: center; min-height: 240px; }
.rf-detail__buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.rf-detail__buy .rf-price { margin: 0; font-size: 26px; }
.rf-note { color: var(--rf-muted); font-size: 13px; }

/* ---------- basket ---------- */
.rf-basket-list { list-style: none; margin: 0 0 20px; padding: 0; }
.rf-basket-item {
    display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center;
    padding: 14px 0; border-bottom: 2px dashed var(--rf-line);
}
.rf-basket-item__name { font-weight: 700; color: #fff; }
.rf-basket-item__qty { color: var(--rf-muted); font-size: 13px; }
.rf-basket-item__remove { color: var(--rf-muted); padding: 6px 10px; border-radius: 6px; border: 2px solid var(--rf-line); }
.rf-basket-item__remove:hover { color: var(--rf-red); border-color: var(--rf-red); }
.rf-total { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 20px; font-family: var(--rf-pixel); font-size: 24px; }
.rf-total strong { color: var(--rf-mint); }
.rf-empty { text-align: center; padding: 40px 10px; color: var(--rf-muted); }
.rf-empty .rf-pkg__ph { margin: 0 auto 22px; opacity: .5; }

/* ---------- login ---------- */
.rf-login { max-width: 460px; margin: 20px auto; text-align: center; }
.rf-login img.rf-head { margin: 0 auto 18px; width: 96px; height: 96px; image-rendering: pixelated; border-radius: 8px; border: 2px solid var(--rf-line-2); box-shadow: 0 6px 0 #021309; }
.rf-input {
    width: 100%; padding: 13px 14px; margin-bottom: 16px; font: inherit; font-weight: 600; color: var(--rf-text);
    background: var(--rf-bg-2); border: 2px solid var(--rf-line-2); border-radius: 8px; outline: none;
}
.rf-input:focus { border-color: var(--rf-green); box-shadow: 0 0 0 3px rgba(34,229,155,.18); }

/* ---------- sidebar & Tebex modules ---------- */
.rf-sidebar { display: grid; gap: 20px; }
.rf-sidebar > * {
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    background: var(--rf-glass); border: 2px solid var(--rf-line); border-radius: 10px; padding: 18px; box-shadow: 0 5px 0 #021309;
}
.rf-sidebar > * > .panel, .rf-sidebar > * > .card { background: none; border: 0; padding: 0; margin: 0; box-shadow: none; }
.rf-sidebar .panel-heading, .rf-sidebar h3, .rf-sidebar h4 { font-family: var(--rf-pixel); font-size: 18px; color: #fff; margin: 0 0 12px; }
.rf-sidebar .progress { height: 14px; background: var(--rf-bg-2); border: 2px solid var(--rf-line-2); border-radius: 4px; overflow: hidden; }
.rf-sidebar .progress-bar { height: 100%; background: repeating-linear-gradient(-45deg, var(--rf-green) 0 10px, var(--rf-green-2) 10px 20px); }
.rf-sidebar img { image-rendering: pixelated; }

/* ---------- footer ---------- */
.rf-footer { border-top: 2px solid var(--rf-line); background: rgba(4,11,8,.85); padding: 30px 0; }
.rf-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.rf-footer__brand { font-family: var(--rf-pixel); font-size: 22px; font-weight: 700; color: var(--rf-mint); }
.rf-footer p { margin: 2px 0 0; color: var(--rf-muted); font-size: 14px; }
.rf-footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.rf-footer__links a { color: var(--rf-muted); font-weight: 600; }
.rf-footer__links a:hover { color: var(--rf-mint); }
.rf-footer__small { width: 100%; font-size: 12px !important; opacity: .7; }

/* ---------- header play / discord buttons ---------- */
.rf-cta {
    display: inline-flex; align-items: center; gap: 16px; padding: 0; border: 0; background: none; cursor: pointer;
    color: #fff; font: inherit; text-align: left;
}
.rf-cta--discord { justify-self: end; text-align: right; }
.rf-cta--play { justify-self: start; }
.rf-cta__icon {
    flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #6ff7c6 0%, #22e59b 45%, #0fae72 100%);
    box-shadow: 0 0 18px rgba(34,229,155,.5), 0 0 40px rgba(34,229,155,.22);
    transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s cubic-bezier(.22,1,.36,1);
}
.rf-cta--play .rf-cta__icon svg { margin-left: 3px; color: #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.rf-cta--discord .rf-cta__icon { background: #5865f2; box-shadow: 0 0 18px rgba(88,101,242,.55), 0 0 40px rgba(88,101,242,.25); }
.rf-cta--play:hover .rf-cta__icon { box-shadow: 0 0 24px rgba(34,229,155,.7), 0 0 54px rgba(34,229,155,.32); }
.rf-cta--discord:hover .rf-cta__icon { box-shadow: 0 0 24px rgba(88,101,242,.75), 0 0 54px rgba(88,101,242,.35); }
.rf-cta__text { display: flex; flex-direction: column; gap: 3px; }
.rf-cta__top { display: flex; align-items: center; gap: 10px; font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: .2px; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.rf-cta--discord .rf-cta__top { justify-content: flex-end; }
.rf-cta__sub { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: var(--rf-muted); }
.rf-count {
    display: inline-grid; place-items: center; min-width: 38px; height: 22px; padding: 0 9px; border-radius: 999px;
    font-size: 12px; font-weight: 800; letter-spacing: 0; text-shadow: none;
    background: #eafff6; color: #0a6e49; box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.rf-count[hidden] { display: none; }
#rf-discord { color: #5865f2; background: #eef0ff; }
.rf-ip .rf-ip__copied { display: none; color: var(--rf-green); }
.rf-ip.is-copied .rf-ip__value { display: none; }
.rf-ip.is-copied .rf-ip__copied { display: inline; }
.rf-ip:hover .rf-ip__value { color: var(--rf-mint); }
@media (max-width: 720px) {
    .rf-cta { gap: 10px; }
    .rf-cta__icon { width: 46px; height: 46px; }
    .rf-cta__icon svg { width: 20px; height: 20px; }
    .rf-cta__top { font-size: 16px; gap: 6px; }
    .rf-cta__sub { font-size: 10px; letter-spacing: 1px; }
}

/* ---------- home page category cards ---------- */
.rf-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.rf-card {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 206px; padding: 28px 34px;
    background:
        radial-gradient(420px 220px at 85% 50%, rgba(34,229,155,.16), transparent 70%),
        linear-gradient(135deg, rgba(16,46,35,.86), rgba(8,24,17,.86));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(34,229,155,.28); border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(138,255,214,.12), 0 18px 40px rgba(0,0,0,.35);
    color: #fff; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.rf-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 40%, rgba(138,255,214,.08) 50%, transparent 60%);
    transform: translateX(-100%); transition: transform .6s;
}
.rf-card:hover { transform: translateY(-4px); border-color: rgba(34,229,155,.7); color: #fff;
    box-shadow: inset 0 1px 0 rgba(138,255,214,.2), 0 0 0 3px rgba(34,229,155,.12), 0 24px 50px rgba(0,0,0,.45); }
.rf-card:hover::after { transform: translateX(100%); }
.rf-card__title {
    font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: 30px; letter-spacing: .2px;
    text-transform: uppercase; color: #f2fff9; margin: 0 0 6px; text-shadow: 0 2px 0 rgba(4,48,31,.8);
}
.rf-card__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--rf-muted); font-size: 15px; transition: color .2s, gap .2s; }
.rf-card:hover .rf-card__cta { color: var(--rf-mint); gap: 10px; }
.rf-card__art { flex: none; width: 170px; height: 150px; display: grid; place-items: center; }
.rf-card__art img { max-width: 170px; max-height: 150px; width: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); transition: transform .25s; }
.rf-card:hover .rf-card__art img { transform: scale(1.08) rotate(-3deg); }
.rf-card__ph { display: grid; grid-template-columns: repeat(2, 42px); gap: 6px; transform: none; }
.rf-card__ph i { width: 42px; height: 42px; border-radius: 5px; background: linear-gradient(180deg, var(--rf-mint), var(--rf-green));
    box-shadow: inset 0 3px 0 rgba(255,255,255,.5), 0 6px 0 var(--rf-deep), 0 8px 0 #021309; }
.rf-card__ph i:nth-child(2) { opacity: .35; }
@media (max-width: 820px) {
    .rf-cards { grid-template-columns: 1fr; gap: 16px; }
    .rf-card { min-height: 150px; padding: 22px 24px; }
    .rf-card__title { font-size: 24px; }
    .rf-card__art { width: 110px; height: 100px; }
    .rf-card__art img { max-width: 110px; max-height: 100px; }
}

/* ---------- featured package under each category card ---------- */
.rf-cards { align-items: start; }
.rf-cardcol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rf-feat {
    position: relative; display: flex; align-items: center; gap: 18px; min-height: 120px; padding: 18px 22px;
    background: linear-gradient(135deg, rgba(16,46,35,.86), rgba(8,24,17,.86));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(34,229,155,.28); border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(138,255,214,.12), 0 14px 30px rgba(0,0,0,.3), var(--rf-glow);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s;
}
.rf-feat::before {
    content: ""; position: absolute; top: -1.5px; left: 50%; width: 72px; height: 4px; transform: translateX(-50%);
    background: var(--rf-green); border-radius: 0 0 4px 4px; box-shadow: 0 0 12px rgba(34,229,155,.8);
}
.rf-feat:hover { transform: translateY(-3px) scale(1.015); border-color: rgba(34,229,155,.8);
    box-shadow: inset 0 1px 0 rgba(138,255,214,.2), 0 20px 40px rgba(0,0,0,.4), var(--rf-glow-hover); }
.rf-feat__img { flex: none; width: 84px; height: 84px; display: grid; place-items: center; }
.rf-feat__img img { max-width: 84px; max-height: 84px; width: auto; filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.rf-feat__img .rf-pkg__ph { width: 58px; height: 58px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.rf-feat:hover .rf-feat__img img, .rf-feat:hover .rf-feat__img .rf-pkg__ph { transform: scale(1.1) rotate(-7deg); }
.rf-feat__info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.rf-feat__badge {
    font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--rf-mint);
    background: rgba(34,229,155,.12); border: 1px solid rgba(34,229,155,.3); padding: 3px 10px; border-radius: 999px;
}
.rf-feat__name { font-weight: 800; font-size: 19px; color: #fff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-feat__name:hover { color: var(--rf-mint); }
.rf-feat__price { font-size: 14px; color: #fff; }
.rf-feat__price s { color: var(--rf-muted); margin-right: 4px; }
.rf-feat .rf-btn { flex: none; }
.rf-feat.is-loading { justify-content: center; }
.rf-feat__skel { width: 100%; height: 84px; border-radius: 10px;
    background: linear-gradient(90deg, rgba(34,229,155,.05), rgba(34,229,155,.12), rgba(34,229,155,.05)); background-size: 200% 100%;
    animation: rf-skel 1.2s linear infinite; }
@keyframes rf-skel { to { background-position: -200% 0; } }
@media (max-width: 560px) {
    .rf-feat { flex-wrap: wrap; }
    .rf-feat .rf-btn { width: 100%; }
}

/* ---------- section heading (e.g. COMMUNITY) ---------- */
.rf-section-title {
    position: relative; text-align: center; margin: 8px 0 30px; padding-bottom: 14px;
    font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: 30px; letter-spacing: .5px;
    text-transform: uppercase; color: #f2fff9; text-shadow: 0 2px 0 rgba(4,48,31,.8);
}
.rf-section-title::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; transform: translateX(-50%);
    background: var(--rf-green); border-radius: 4px; box-shadow: 0 0 12px rgba(34,229,155,.8);
}
.rf-goal__times { display: inline-flex; align-items: center; gap: 6px; }
.rf-goal__times svg { color: var(--rf-green); }

/* ---------- modules (goal, payments, top customer, gift card) ---------- */
/* flex so a module left on its own fills the row instead of leaving a gap */
.rf-modules { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.rf-modules > * { flex: 1 1 calc(50% - 12px); min-width: 0; }
.rf-modules > .rf-mod--wide { flex-basis: 100%; }
/* always the inspo order: goals, recent payments, then top customer beside gift card */
.rf-modules > * { order: 5; }
.rf-modules > .rf-goal { order: 1; }
.rf-modules > .rf-payments { order: 2; }
.rf-modules > .rf-top { order: 3; }
.rf-modules > .rf-gift { order: 4; }
.rf-modules > * {
    background: linear-gradient(135deg, rgba(16,46,35,.86), rgba(8,24,17,.86));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(34,229,155,.28); border-radius: 16px; padding: 26px;
    box-shadow: inset 0 1px 0 rgba(138,255,214,.12), 0 18px 40px rgba(0,0,0,.35), var(--rf-glow);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s;
}
.rf-modules > *:hover {
    transform: translateY(-3px) scale(1.012); border-color: rgba(34,229,155,.8);
    box-shadow: inset 0 1px 0 rgba(138,255,214,.2), 0 24px 50px rgba(0,0,0,.45), var(--rf-glow-hover);
}
.rf-mod { position: relative; text-align: center; }
.rf-mod::before {
    content: ""; position: absolute; top: -1.5px; left: 50%; width: 72px; height: 4px; transform: translateX(-50%);
    background: var(--rf-green); border-radius: 0 0 4px 4px; box-shadow: 0 0 12px rgba(34,229,155,.8);
}
.rf-mod__title { font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: 21px; color: #f2fff9; margin: 0 0 18px; }
.rf-mod__desc { color: var(--rf-muted); margin: -8px 0 16px; font-size: 14px; }

/* goal */
.rf-goal__bar { height: 42px; background: rgba(2,12,8,.75); border: 1.5px solid var(--rf-line); border-radius: 10px; overflow: hidden; }
.rf-goal__fill {
    height: 100%; min-width: 54px; display: flex; align-items: center; justify-content: flex-end; padding-right: 14px;
    background: linear-gradient(90deg, #13c483, #22e59b 60%, #8affd6); border-radius: 8px;
    box-shadow: 0 0 20px rgba(34,229,155,.45), inset 0 2px 0 rgba(255,255,255,.35);
    transition: width 1s cubic-bezier(.2,.8,.2,1);
}
.rf-goal__fill span { font-weight: 800; font-size: 15px; color: #03241a; }
.rf-goal__bar.is-striped .rf-goal__fill, .rf-goal__bar.is-animated .rf-goal__fill {
    background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.14) 0 12px, transparent 12px 24px), linear-gradient(90deg, #13c483, #22e59b 60%, #8affd6);
    background-size: 34px 34px, 100% 100%;
}
.rf-goal__bar.is-animated .rf-goal__fill { animation: rf-stripes 1s linear infinite; }
@keyframes rf-stripes { to { background-position: 34px 0, 0 0; } }
.rf-goal__meta { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 14px; color: var(--rf-muted); font-size: 14px; }

/* recent payments */
.rf-payments__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 16px 10px; }
.rf-payments__item { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.rf-payments__item img {
    width: 64px; height: 64px; border-radius: 10px; image-rendering: pixelated;
    box-shadow: 0 8px 16px rgba(0,0,0,.45); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.rf-payments__item:hover img { transform: scale(1.12) rotate(-6deg); box-shadow: 0 0 18px rgba(34,229,155,.55), 0 8px 16px rgba(0,0,0,.45); }
.rf-payments__name { font-size: 13px; color: #cfe8dd; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-payments__extra { font-size: 12px; color: var(--rf-muted); margin-top: -6px; }

/* top customer */
.rf-top__body { display: flex; align-items: center; justify-content: center; gap: 28px; }
.rf-top__skin { position: relative; width: 140px; height: 200px; display: grid; place-items: center; }
.rf-top__skin::before { content: ""; position: absolute; inset: 10% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(34,229,155,.35), transparent); }
.rf-top__skin::after { content: ""; position: absolute; bottom: 0; left: 25%; right: 25%; height: 12px; border-radius: 50%; background: rgba(0,0,0,.45); filter: blur(4px); }
.rf-top__skin img { position: relative; z-index: 1; max-height: 190px; width: auto; image-rendering: pixelated; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.rf-top:hover .rf-top__skin img { transform: scale(1.06) rotate(-6deg); }
.rf-top__info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
.rf-top__badge { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #ffd24d; background: rgba(255,210,77,.12); border: 1px solid rgba(255,210,77,.25); padding: 3px 10px; border-radius: 999px; }
.rf-top__name { font-weight: 800; font-size: 24px; color: #fff; }
.rf-top__amount { color: var(--rf-mint); font-weight: 700; }

/* gift card */
.rf-gift { display: flex; flex-direction: column; justify-content: center; }
.rf-gift__form { display: flex; gap: 12px; align-items: flex-start; }
.rf-gift__form .rf-input { margin: 0; flex: 1; }
.rf-gift__form .rf-btn { padding: 12px 22px; }
.rf-gift__result { margin: 14px 0 0; color: var(--rf-mint); }
.rf-gift__result.is-bad { color: var(--rf-red); }
.rf-gift__result.is-warn { color: #ffc94d; }

/* the same modules inside the narrow sidebar on other pages */
.rf-sidebar .rf-mod { padding: 0; }
.rf-sidebar .rf-mod::before { top: -20px; }
.rf-sidebar .rf-top__body { flex-direction: column; gap: 10px; }
.rf-sidebar .rf-top__info { align-items: center; text-align: center; }
.rf-sidebar .rf-gift__form { flex-direction: column; align-items: stretch; }
.rf-sidebar .rf-payments__list { grid-template-columns: repeat(3, 1fr); }
.rf-sidebar .rf-payments__item img { width: 48px; height: 48px; }

@media (max-width: 820px) {
    .rf-modules { gap: 16px; }
    .rf-modules > * { flex-basis: 100%; }
    .rf-top__body { flex-direction: column; gap: 12px; }
    .rf-top__info { align-items: center; text-align: center; }
}

/* =========================================================
   GLOW + HOVER EFFECTS
   - boxes always have a soft glow; on hover they glow brighter,
     grow slightly and their image tilts
   - the centre logo always glows; on hover it only grows
   ========================================================= */
:root {
    --rf-glow: 0 0 22px rgba(34,229,155,.16);
    --rf-glow-hover: 0 0 0 2px rgba(34,229,155,.35), 0 0 34px rgba(34,229,155,.5), 0 0 70px rgba(34,229,155,.18);
}

/* logo */
.rf-logo { transition: transform .5s cubic-bezier(.22,1,.36,1); }
.rf-logo img {
    /* outline glow: tight bright edge + small halo, hugging the logo's shape */
    filter:
        drop-shadow(0 0 1px #8affd6) drop-shadow(0 0 1px #8affd6)
        drop-shadow(0 0 4px rgba(34,229,155,.9))
        drop-shadow(0 0 10px rgba(34,229,155,.45))
        drop-shadow(0 12px 18px rgba(0,0,0,.5));
    transition: filter .5s cubic-bezier(.22,1,.36,1);
}
.rf-logo:hover { transform: scale(1.06); }
.rf-logo:hover img {
    filter:
        drop-shadow(0 0 1px #b8ffe6) drop-shadow(0 0 2px #8affd6)
        drop-shadow(0 0 6px rgba(34,229,155,1))
        drop-shadow(0 0 14px rgba(34,229,155,.55))
        drop-shadow(0 12px 18px rgba(0,0,0,.5));
}

/* boxes: home cards, category tiles, package cards, sidebar modules */
.rf-card, .rf-cat, .rf-pkg, .rf-sidebar > * {
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s;
    will-change: transform;
}
.rf-card { box-shadow: inset 0 1px 0 rgba(138,255,214,.12), 0 18px 40px rgba(0,0,0,.35), var(--rf-glow); }
.rf-cat, .rf-pkg, .rf-sidebar > * { box-shadow: 0 5px 0 #021309, var(--rf-glow); }

.rf-card:hover {
    transform: translateY(-4px) scale(1.025);
    border-color: rgba(34,229,155,.8);
    box-shadow: inset 0 1px 0 rgba(138,255,214,.2), 0 24px 50px rgba(0,0,0,.45), var(--rf-glow-hover);
}
.rf-cat:hover, .rf-pkg:hover, .rf-sidebar > *:hover {
    transform: translateY(-4px) scale(1.035);
    border-color: var(--rf-green);
    box-shadow: 0 5px 0 #021309, var(--rf-glow-hover);
}
.rf-sidebar > *:hover { transform: translateY(-3px) scale(1.02); }

/* images tilt on hover */
.rf-card__art img, .rf-card__ph, .rf-pkg__img img, .rf-pkg__ph {
    transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s;
}
.rf-card:hover .rf-card__art img { transform: scale(1.12) rotate(-8deg); filter: drop-shadow(0 0 18px rgba(34,229,155,.45)) drop-shadow(0 16px 20px rgba(0,0,0,.55)); }
.rf-card:hover .rf-card__ph { transform: scale(1.1) rotate(-8deg); }
.rf-pkg:hover .rf-pkg__img img { transform: scale(1.1) rotate(-7deg); filter: drop-shadow(0 0 16px rgba(34,229,155,.45)) drop-shadow(0 12px 16px rgba(0,0,0,.5)); }
.rf-pkg:hover .rf-pkg__ph { transform: scale(1.08) rotate(-7deg); }
.rf-cat:hover span { transform: translateX(4px); }
.rf-cat span { transition: transform .25s; display: inline-block; }

/* play / discord buttons */
.rf-cta { transition: transform .45s cubic-bezier(.22,1,.36,1); }
.rf-cta:hover { transform: translateY(-2px); }
.rf-cta:hover .rf-cta__icon { transform: scale(1.07); }
.rf-cta:active .rf-cta__icon { transform: scale(.97); transition-duration: .15s; }
.rf-cta__top, .rf-cta__sub { transition: color .45s cubic-bezier(.22,1,.36,1); }
.rf-cta--play:hover .rf-cta__sub { color: var(--rf-mint); }
.rf-cta--discord:hover .rf-cta__sub { color: #b8c0ff; }

@media (prefers-reduced-motion: reduce) {
    .rf-card:hover, .rf-cat:hover, .rf-pkg:hover, .rf-sidebar > *:hover, .rf-logo:hover, .rf-cta:hover { transform: none; }
}
@media (hover: none) {
    .rf-card:hover, .rf-cat:hover, .rf-pkg:hover, .rf-sidebar > *:hover { transform: none; }
}

/* =========================================================
   TOP BAR (pill tabs, currency, player, cart)
   ========================================================= */
.rf-nav__inner {
    background: rgba(8,26,19,.45); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(34,229,155,.16); border-radius: 18px; padding: 10px 14px;
    box-shadow: 0 12px 34px rgba(0,0,0,.4);
}
.rf-nav__links { gap: 6px; align-items: center; }
.rf-nav__links > li > a {
    display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 13px;
    font-family: var(--rf-pixel); font-weight: 700; font-size: 15px; color: #cfe8dd;
    transition: background .35s cubic-bezier(.22,1,.36,1), color .35s, box-shadow .35s, transform .35s cubic-bezier(.22,1,.36,1);
}
.rf-nav__links > li > a svg { color: var(--rf-green); flex: none; transition: color .35s, transform .35s cubic-bezier(.22,1,.36,1); }
.rf-nav__links > li > a:hover { background: rgba(34,229,155,.1); color: #fff; box-shadow: none; }
.rf-nav__links > li > a:hover svg { transform: scale(1.12) rotate(-6deg); }
.rf-nav__links > li > a.is-active {
    color: #fff; background: linear-gradient(135deg, #2bea9f, #0fae72);
    box-shadow: 0 0 20px rgba(34,229,155,.45), inset 0 1px 0 rgba(255,255,255,.25);
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.rf-nav__links > li > a.is-active svg { color: #fff; }
.rf-nav__right { gap: 18px; }

/* currency */
.rf-cur { position: relative; }
.rf-cur__btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; cursor: pointer;
    font: 800 14px var(--rf-pixel); color: #fff; letter-spacing: .3px;
    background: rgba(34,229,155,.08); border: 1px solid rgba(34,229,155,.35); border-radius: 999px;
    transition: background .3s, border-color .3s, box-shadow .3s;
}
.rf-cur__btn svg { color: var(--rf-green); }
.rf-cur__btn:hover, .rf-cur:focus-within .rf-cur__btn { background: rgba(34,229,155,.15); border-color: var(--rf-green); box-shadow: 0 0 16px rgba(34,229,155,.3); }
.rf-cur__panel {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 304px; padding: 14px;
    background: rgba(7,22,16,.97);
    border: 1px solid rgba(34,229,155,.25); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 30px rgba(34,229,155,.08);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
    transition: opacity .25s, transform .3s cubic-bezier(.22,1,.36,1), visibility .25s;
}
.rf-cur.is-open .rf-cur__panel { opacity: 1; visibility: visible; transform: none; }
.rf-cur.is-open .rf-caret { display: inline-block; transform: rotate(180deg); }
.rf-cur__title { font-weight: 800; font-size: 15px; color: #fff; margin: 0 0 12px 2px; }
.rf-cur__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.rf-cur__grid a {
    display: flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 6px;
    background: rgba(2,12,8,.6); border: 1px solid rgba(34,229,155,.12); border-radius: 10px; color: #fff;
    transition: background .25s, border-color .25s, box-shadow .25s, transform .25s cubic-bezier(.22,1,.36,1);
}
.rf-cur__grid a b { font-weight: 800; font-size: 14px; }
.rf-cur__grid a small { font-size: 12px; color: var(--rf-muted); }
.rf-cur__grid a:hover { border-color: rgba(34,229,155,.5); background: rgba(34,229,155,.1); transform: translateY(-1px); color: #fff; }
.rf-cur__grid a.is-active { background: linear-gradient(135deg, #2bea9f, #0fae72); border-color: transparent; box-shadow: 0 0 16px rgba(34,229,155,.45); }
.rf-cur__grid a.is-active small { color: rgba(255,255,255,.85); }
.rf-cur__note { margin: 12px 0 0 2px; font-size: 12.5px; color: var(--rf-muted); }

/* player + cart */
.rf-who, .rf-cart { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.rf-who img {
    width: 42px; height: 42px; border-radius: 11px; image-rendering: pixelated;
    box-shadow: 0 4px 12px rgba(0,0,0,.4); transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
}
.rf-who:hover img { transform: scale(1.08) rotate(-5deg); box-shadow: 0 0 16px rgba(34,229,155,.45), 0 4px 12px rgba(0,0,0,.4); }
.rf-who__text { display: flex; flex-direction: column; line-height: 1.2; }
.rf-who__text b { font-weight: 800; font-size: 14px; color: #fff; }
.rf-who__text small { font-size: 12.5px; color: var(--rf-muted); transition: color .3s; }
.rf-who:hover .rf-who__text small, .rf-cart:hover .rf-who__text small { color: var(--rf-mint); }
.rf-cart__icon {
    position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #6ff7c6 0%, #22e59b 45%, #0fae72 100%);
    box-shadow: 0 0 16px rgba(34,229,155,.45); transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
}
.rf-cart:hover .rf-cart__icon { transform: scale(1.07); box-shadow: 0 0 24px rgba(34,229,155,.7); }
.rf-cart__icon .rf-badge { top: -6px; right: -6px; }

@media (max-width: 980px) {
    .rf-who__text { display: none; }
    .rf-nav__links > li > a { padding: 10px 14px; }
}
@media (max-width: 720px) {
    .rf-cur { display: none; }
    .rf-nav__links > li > a { width: 100%; }
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */
.rf-login {
    max-width: 560px; margin: 30px auto; text-align: center; padding: 34px 32px 30px;
    background: linear-gradient(160deg, rgba(16,46,35,.9), rgba(8,24,17,.9)) !important;
    border: 1px solid rgba(34,229,155,.3) !important; border-radius: 22px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,.45), var(--rf-glow) !important;
}
.rf-login__head { width: 104px; height: 104px; margin: 0 auto 18px; animation: rf-sway-x 6s ease-in-out infinite; }
.rf-login__head img {
    width: 104px; height: 104px; border-radius: 18px; image-rendering: pixelated;
    box-shadow: 0 14px 28px rgba(0,0,0,.5), 0 0 26px rgba(34,229,155,.25);
    animation: rf-sway-y 6s ease-in-out -1.5s infinite; transition: opacity .25s;
}
.rf-login__head img.is-swapping { opacity: .35; }
/* x and y move a quarter-cycle apart, so together the head drifts in a slow, small circle */
@keyframes rf-sway-x { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
@keyframes rf-sway-y { 0%, 100% { transform: translateY(-5px) rotate(-2deg); } 50% { transform: translateY(5px) rotate(2deg); } }
.rf-login__title { font-weight: 900; font-size: 34px; letter-spacing: .5px; color: #fff; margin: 0 0 10px; text-transform: uppercase; }
.rf-login__sub { color: var(--rf-muted); margin: 0 0 22px; }
.rf-edition { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.rf-edition button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; cursor: pointer;
    font: 800 15px var(--rf-pixel); color: var(--rf-muted);
    background: rgba(2,12,8,.7); border: 1px solid rgba(34,229,155,.12); border-radius: 12px;
    transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.rf-edition button:hover { color: #fff; border-color: rgba(34,229,155,.35); }
.rf-edition button.is-active { color: #fff; background: rgba(34,229,155,.14); border-color: var(--rf-green); box-shadow: 0 0 16px rgba(34,229,155,.25); }
.rf-edition button svg { color: var(--rf-green); }
.rf-ignbox { position: relative; margin-bottom: 14px; }
.rf-ignbox .rf-input { margin: 0; padding: 15px 16px; font-size: 15px; background: rgba(2,12,8,.75); border: 1px solid rgba(34,229,155,.3); border-radius: 12px; }
.rf-ignbox .rf-input:focus { border-color: var(--rf-green); box-shadow: 0 0 0 3px rgba(34,229,155,.15), 0 0 16px rgba(34,229,155,.2); }
.rf-ignbox__dot { display: none; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 900; font-size: 18px; color: var(--rf-green); pointer-events: none; }
.rf-login.is-bedrock .rf-ignbox__dot { display: block; }
.rf-login.is-bedrock .rf-ignbox .rf-input { padding-left: 28px; }
.rf-login__go {
    width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; cursor: pointer;
    font: 800 16px var(--rf-pixel); color: #fff; border: 0; border-radius: 12px;
    background: linear-gradient(135deg, #2bea9f, #0fae72);
    box-shadow: 0 0 22px rgba(34,229,155,.4), inset 0 1px 0 rgba(255,255,255,.25);
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.rf-login__go:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(34,229,155,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.rf-login__go:active { transform: translateY(0) scale(.99); }
.rf-login__hint { margin: 14px 0 0; font-size: 13px; color: var(--rf-muted); min-height: 1.2em; }

/* ---------- top bar sits at the very top, full width, stuck while scrolling ---------- */
.rf-nav {
    position: sticky; top: 0; z-index: 50; padding: 0;
    background: rgba(8,26,19,.5); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(34,229,155,.14);
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.rf-nav .rf-nav__inner {
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 0; border-radius: 0; box-shadow: none; padding: 9px 20px; min-height: 64px;
}
.rf-header { padding-top: 40px; }

/* =========================================================
   BUTTONS — smooth flat glowing style (replaces the 3D blocks)
   ========================================================= */
.rf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border: 0; border-radius: 10px; top: 0;
    font-family: var(--rf-pixel); font-weight: 800; font-size: 14.5px; letter-spacing: .2px; text-transform: none;
    color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25);
    background: linear-gradient(135deg, #2bea9f, #0fae72);
    box-shadow: 0 0 18px rgba(34,229,155,.35), inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, filter .35s;
}
.rf-btn:hover { color: #fff; filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 0 26px rgba(34,229,155,.55), inset 0 1px 0 rgba(255,255,255,.25); }
.rf-btn:active { top: 0; transform: translateY(0) scale(.98); box-shadow: 0 0 14px rgba(34,229,155,.35), inset 0 1px 0 rgba(255,255,255,.2); }
.rf-btn--sm { padding: 9px 16px; font-size: 13.5px; }
.rf-btn--ghost {
    color: #fff; text-shadow: none; background: rgba(2,12,8,.65);
    border: 1px solid rgba(34,229,155,.22); box-shadow: none;
}
.rf-btn--ghost:hover { background: rgba(34,229,155,.1); border-color: rgba(34,229,155,.5); box-shadow: 0 0 14px rgba(34,229,155,.2); }
.rf-btn--danger, .rf-btn--remove {
    color: #ff7b88; text-shadow: none; background: rgba(255,93,108,.08);
    border: 1px solid rgba(255,93,108,.35); box-shadow: none; font-weight: 700;
}
.rf-btn--danger:hover, .rf-btn--remove:hover { color: #fff; background: rgba(255,93,108,.2); border-color: #ff5d6c; box-shadow: 0 0 16px rgba(255,93,108,.3); }
.rf-icon-btn {
    flex: none; width: 42px; height: 42px; display: grid; place-items: center; color: #fff;
    background: rgba(2,12,8,.65); border: 1px solid rgba(34,229,155,.22); border-radius: 10px;
    transition: background .3s, border-color .3s, box-shadow .3s, transform .35s cubic-bezier(.22,1,.36,1);
}
.rf-icon-btn:hover { color: #fff; background: rgba(34,229,155,.12); border-color: rgba(34,229,155,.5); box-shadow: 0 0 14px rgba(34,229,155,.25); transform: translateY(-2px); }

/* =========================================================
   CATEGORY PAGE — header box + package cards
   ========================================================= */
.rf-cat-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 26px 32px; margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(16,46,35,.86), rgba(8,24,17,.86));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(34,229,155,.25); border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.3), var(--rf-glow);
}
.rf-cat-head h1 { margin: 0; font-weight: 900; font-size: 30px; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.rf-cat-desc { margin-bottom: 28px; }
.rf-shop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 24px; padding-top: 12px; }
.rf-item {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 34px 22px 22px;
    background: linear-gradient(160deg, rgba(16,46,35,.88), rgba(8,24,17,.88));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(34,229,155,.22); border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,.3), var(--rf-glow);
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .35s;
}
.rf-item:hover { transform: translateY(-4px) scale(1.02); border-color: rgba(34,229,155,.7); box-shadow: 0 20px 40px rgba(0,0,0,.4), var(--rf-glow-hover); }
.rf-item.is-in-cart { border-color: rgba(34,229,155,.5); }
.rf-off {
    position: absolute; top: -13px; right: 18px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 800; letter-spacing: .5px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.2);
    background: linear-gradient(135deg, #ffb52e, #ff7a1a); box-shadow: 0 6px 16px rgba(255,138,30,.35);
}
.rf-item__img { width: 100%; height: 140px; display: grid; place-items: center; margin-bottom: 16px; padding: 0 4px; }
.rf-item__img img { max-width: 100%; max-height: 140px; width: auto; filter: drop-shadow(0 12px 16px rgba(0,0,0,.5)); transition: transform .4s cubic-bezier(.22,1,.36,1); }
.rf-item__img .rf-pkg__ph { width: 86px; height: 86px; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.rf-item:hover .rf-item__img img, .rf-item:hover .rf-item__img .rf-pkg__ph { transform: scale(1.1) rotate(-6deg); }
.rf-item__name { margin: 0 0 6px; font-weight: 800; font-size: 18px; line-height: 1.25; }
.rf-item__name a { color: #fff; }
.rf-item__name a:hover { color: var(--rf-mint); }
.rf-item__price { font-size: 15px; margin-bottom: 20px; }
.rf-item__price s { color: var(--rf-muted); font-size: 13px; margin-right: 6px; }
.rf-item__price b { color: var(--rf-green); font-weight: 700; }
.rf-item__actions { margin-top: auto; width: 100%; display: flex; gap: 10px; }
.rf-item__actions .rf-btn { flex: 1; }

.rf-shop--list { grid-template-columns: 1fr; }
.rf-shop--list .rf-item { flex-direction: row; text-align: left; gap: 22px; padding: 18px 24px; }
.rf-shop--list .rf-item__img { width: 90px; height: 90px; margin: 0; flex: none; }
.rf-shop--list .rf-item__img img { max-width: 90px; max-height: 90px; }
.rf-shop--list .rf-item__name, .rf-shop--list .rf-item__price { margin: 0; }
.rf-shop--list .rf-item__actions { width: auto; margin: 0 0 0 auto; flex: none; }

@media (max-width: 1100px) { .rf-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .rf-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rf-cat-head { padding: 20px 22px; } }
@media (max-width: 520px)  { .rf-shop { grid-template-columns: 1fr; } }

/* =========================================================
   PACKAGE PAGE (the "info" page)
   ========================================================= */
.rf-back {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px 4px;
    font-size: 12.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--rf-muted);
    transition: color .3s, gap .3s;
}
.rf-back:hover { color: var(--rf-mint); gap: 11px; }
.rf-pdp { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; align-items: start; }
.rf-pdp__buy, .rf-pdp__info {
    position: relative;
    background: linear-gradient(160deg, rgba(16,46,35,.88), rgba(8,24,17,.88));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(34,229,155,.22); border-radius: 18px;
    box-shadow: 0 16px 36px rgba(0,0,0,.32), var(--rf-glow);
}
.rf-pdp__buy { position: sticky; top: 90px; padding: 40px 30px 30px; text-align: center; }
.rf-pdp__img { height: 280px; display: grid; place-items: center; margin-bottom: 24px; }
.rf-pdp__img img { max-width: 240px; max-height: 260px; width: auto; filter: drop-shadow(0 18px 22px rgba(0,0,0,.5)); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.rf-pdp__buy:hover .rf-pdp__img img { transform: scale(1.06) rotate(-5deg); }
.rf-pdp__price { margin-bottom: 24px; }
.rf-pdp__price s { color: var(--rf-muted); font-size: 16px; margin-right: 8px; }
.rf-pdp__price b { color: var(--rf-green); font-weight: 800; font-size: 26px; }
.rf-pdp__actions { display: grid; gap: 12px; }
.rf-pdp__actions .rf-btn { width: 100%; padding: 13px 18px; }
.rf-pdp__info { padding: 34px 34px 30px; }
.rf-pdp__title { margin: 0 0 18px; font-weight: 900; font-size: 30px; line-height: 1.2; color: #fff; }
.rf-pdp__desc { color: #b9d6ca; font-size: 15px; line-height: 1.7; }
.rf-pdp__desc b, .rf-pdp__desc strong { color: #fff; font-weight: 800; }
.rf-pdp__desc p { margin: 0 0 4px; }
.rf-pdp__desc ul, .rf-pdp__desc ol { margin: 6px 0; padding-left: 20px; }
.rf-pdp__desc li { margin: 2px 0; }
.rf-pdp__desc li::marker { color: var(--rf-green); }
.rf-pdp__desc a { color: var(--rf-mint); }
.rf-pdp__desc img { max-width: 100%; border-radius: 10px; }
@media (max-width: 900px) {
    .rf-pdp { grid-template-columns: 1fr; }
    .rf-pdp__buy { position: relative; top: 0; }
    .rf-pdp__img { height: 200px; }
}

/* =========================================================
   POP-IN REVEAL (added by the script in layout.html)
   Uses "backwards" fill so hover effects work normally afterwards.
   ========================================================= */
.rf-reveal:not(.is-in) { opacity: 0; }
.rf-reveal.is-in { animation: rf-pop .75s cubic-bezier(.22,1,.36,1) var(--rf-d, 0s) backwards; }
@keyframes rf-pop {
    0%   { opacity: 0; transform: translateY(28px) scale(.95) rotate(-1.6deg); }
    55%  { opacity: 1; transform: translateY(-4px) scale(1.012) rotate(.35deg); }
    100% { opacity: 1; transform: none; }
}
/* layers on top of a box pop in a moment later, tilting into straight */
.rf-reveal:not(.is-in) :is(.rf-off, .rf-feat__badge, .rf-top__badge, .rf-count, .rf-in-basket, .rf-sale) { opacity: 0; }
.rf-reveal.is-in :is(.rf-off, .rf-feat__badge, .rf-top__badge, .rf-count, .rf-in-basket, .rf-sale) {
    animation: rf-pop-layer .6s cubic-bezier(.34,1.56,.64,1) calc(var(--rf-d, 0s) + .32s) backwards;
}
@keyframes rf-pop-layer {
    0%   { opacity: 0; transform: translateY(8px) scale(.55) rotate(-9deg); }
    70%  { opacity: 1; transform: translateY(-1px) scale(1.06) rotate(1.5deg); }
    100% { opacity: 1; transform: none; }
}
/* images inside a box settle in with their own small tilt */
.rf-reveal.is-in :is(.rf-card__art img, .rf-item__img img, .rf-pdp__img img, .rf-feat__img img, .rf-top__skin img) {
    animation: rf-pop-img .8s cubic-bezier(.22,1,.36,1) calc(var(--rf-d, 0s) + .12s) backwards;
}
@keyframes rf-pop-img {
    0%   { opacity: 0; transform: scale(.8) rotate(-6deg); }
    100% { opacity: 1; transform: none; }
}
/* players with "reduce motion" on still get the pop-ins, just softer: a gentle fade and rise, no tilt or bounce */
@keyframes rf-soft { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .rf-reveal.is-in { animation-name: rf-soft; animation-duration: .6s; }
    .rf-reveal.is-in :is(.rf-off, .rf-feat__badge, .rf-top__badge, .rf-count, .rf-in-basket, .rf-sale, .rf-money),
    .rf-reveal.is-in :is(.rf-card__art img, .rf-item__img img, .rf-pdp__img img, .rf-feat__img img, .rf-top__skin img) { animation-name: rf-fade; }
}

/* =========================================================
   CART PAGE
   ========================================================= */
.rf-cart-page { display: flex; justify-content: center; }
.rf-cartbox {
    width: 100%; max-width: 760px; padding: 32px 32px 26px;
    background: linear-gradient(160deg, rgba(16,46,35,.9), rgba(8,24,17,.9));
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(34,229,155,.25); border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,.45), var(--rf-glow);
}
.rf-cartbox__title { text-align: center; margin: 0 0 22px; font-weight: 900; font-size: 30px; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.rf-cartlist { display: grid; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid rgba(34,229,155,.15); }
.rf-cartrow {
    display: flex; align-items: center; gap: 16px; padding: 14px 18px;
    background: rgba(2,12,8,.65); border: 1px solid rgba(34,229,155,.12); border-radius: 14px;
    transition: border-color .3s, box-shadow .3s;
}
.rf-cartrow:hover { border-color: rgba(34,229,155,.35); box-shadow: 0 0 16px rgba(34,229,155,.12); }
.rf-cartrow__img { flex: none; width: 48px; height: 48px; display: grid; place-items: center; }
.rf-cartrow__img img { max-width: 48px; max-height: 48px; width: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.rf-cartrow__img .rf-pkg__ph { width: 36px; height: 36px; box-shadow: inset 0 3px 0 rgba(255,255,255,.5), 0 4px 0 var(--rf-deep); }
.rf-cartrow__name { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; color: #fff; }
.rf-cartrow__name:hover { color: var(--rf-mint); }
.rf-qty {
    flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 4px;
    background: rgba(34,229,155,.06); border: 1px solid rgba(34,229,155,.25); border-radius: 999px;
}
.rf-qty__btn {
    width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
    background: none; color: var(--rf-green); font-size: 17px; font-weight: 800; line-height: 1;
    transition: background .25s, color .25s;
}
.rf-qty__btn:hover { background: rgba(34,229,155,.15); color: #fff; }
.rf-qty__val {
    width: 34px; text-align: center; border: 0; background: none; color: #fff; font: 800 14px var(--rf-pixel);
    -moz-appearance: textfield; appearance: textfield;
}
.rf-qty__val::-webkit-outer-spin-button, .rf-qty__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rf-qty__val:focus { outline: none; }
.rf-qty.is-locked .rf-qty__btn { visibility: hidden; }
.rf-qty.is-busy { opacity: .5; pointer-events: none; }
.rf-cartrow__price { flex: none; min-width: 90px; text-align: right; font-weight: 800; color: var(--rf-green); }
.rf-cartrow__trash {
    flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #ff7b88;
    background: rgba(255,93,108,.12); border: 1px solid rgba(255,93,108,.3);
    transition: background .25s, color .25s, box-shadow .25s, transform .3s cubic-bezier(.22,1,.36,1);
}
.rf-cartrow__trash:hover { color: #fff; background: rgba(255,93,108,.3); box-shadow: 0 0 14px rgba(255,93,108,.35); transform: scale(1.06); }
.rf-cartbox__total { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px 18px; }
.rf-cartbox__total span { font-weight: 800; color: #fff; }
.rf-cartbox__total b { font-weight: 900; font-size: 18px; color: #fff; }
.rf-verify {
    display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; margin-bottom: 16px; cursor: pointer;
    background: rgba(2,12,8,.65); border: 1px solid rgba(34,229,155,.12); border-radius: 14px;
    font-size: 14px; color: var(--rf-muted); line-height: 1.55; transition: border-color .3s;
}
.rf-verify:hover { border-color: rgba(34,229,155,.35); }
.rf-verify b { color: #fff; }
.rf-verify input { position: absolute; opacity: 0; pointer-events: none; }
.rf-verify__box {
    flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 5px; background: #fff;
    border: 2px solid #fff; display: grid; place-items: center; transition: background .25s, border-color .25s, box-shadow .25s;
}
.rf-verify input:checked + .rf-verify__box { background: var(--rf-green); border-color: var(--rf-green); box-shadow: 0 0 12px rgba(34,229,155,.5); }
.rf-verify input:checked + .rf-verify__box::after { content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid #04301f; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.rf-verify input:focus-visible + .rf-verify__box { box-shadow: 0 0 0 3px rgba(34,229,155,.35); }
.rf-cartbox__go { width: 100%; padding: 14px 18px; font-size: 15px; margin-bottom: 12px; }
.rf-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.3); }
.rf-cartbox__note { margin: 6px 0 0; text-align: center; font-size: 12.5px; color: var(--rf-muted); }
.rf-cartbox__empty { text-align: center; padding: 20px 0 6px; color: var(--rf-muted); }
.rf-cartbox__empty .rf-pkg__ph { display: block; margin: 0 auto 16px; opacity: .6; }
@media (max-width: 640px) {
    .rf-cartbox { padding: 24px 16px 20px; }
    .rf-cartrow { flex-wrap: wrap; gap: 10px 12px; }
    .rf-cartrow__name { flex-basis: calc(100% - 64px); }
    .rf-qty { margin-left: 60px; }
    .rf-cartrow__price { margin-left: auto; min-width: 0; }
}

/* round "+ $X money" badge */
.rf-money {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 800; letter-spacing: .3px; color: #04301f; white-space: nowrap;
    background: linear-gradient(135deg, #8affd6, #22e59b); box-shadow: 0 0 14px rgba(34,229,155,.45), inset 0 1px 0 rgba(255,255,255,.4);
}
.rf-money svg { color: #0a6e49; }
.rf-money--inline { margin-left: 8px; vertical-align: middle; position: relative; top: -2px; padding: 4px 10px; font-size: 11.5px; }
.rf-money--big { margin-left: 12px; top: -4px; padding: 6px 13px; font-size: 13px; }
.rf-reveal:not(.is-in) .rf-money { opacity: 0; }
.rf-reveal.is-in .rf-money { animation: rf-pop-layer .6s cubic-bezier(.34,1.56,.64,1) calc(var(--rf-d, 0s) + .4s) backwards; }

/* =========================================================
   COMPARE RANKS (modal table)
   ========================================================= */
.rf-compare-btn { padding: 10px 16px; font-size: 13.5px; }
body.rf-modal-open { overflow: hidden; }
.rf-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.rf-modal[hidden] { display: none; }
.rf-modal__backdrop { position: absolute; inset: 0; background: rgba(2,8,6,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.rf-modal__box {
    position: relative; width: min(1200px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column;
    background: linear-gradient(160deg, rgba(14,40,30,.98), rgba(6,20,14,.98));
    border: 1px solid rgba(34,229,155,.3); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 40px rgba(34,229,155,.1);
    opacity: 0; transform: translateY(20px) scale(.97) rotate(-.6deg); transition: opacity .3s, transform .45s cubic-bezier(.22,1,.36,1);
}
.rf-modal.is-open .rf-modal__backdrop { opacity: 1; }
.rf-modal.is-open .rf-modal__box { opacity: 1; transform: none; }
.rf-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid rgba(34,229,155,.15); }
.rf-modal__head h2 { margin: 0; font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: .5px; }
.rf-modal__body { overflow: auto; padding: 18px 22px 22px; }
.rf-cmp__loading { padding: 40px; text-align: center; color: var(--rf-muted); }

.rf-cmp { display: grid; grid-template-columns: minmax(170px, 1.3fr) repeat(var(--cols), minmax(92px, 1fr)); gap: 6px; min-width: max-content; }
.rf-cmp__corner { align-self: end; font-size: 11.5px; color: var(--rf-muted); padding: 0 4px 6px; }
.rf-cmp__rank {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 12px; text-align: center;
    background: rgba(2,12,8,.6); border: 1px solid rgba(34,229,155,.15); border-radius: 12px; color: #fff;
    transition: border-color .3s, transform .35s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
.rf-cmp__rank:hover { color: #fff; border-color: rgba(34,229,155,.6); transform: translateY(-3px); box-shadow: 0 0 16px rgba(34,229,155,.2); }
.rf-cmp__rank img { height: 46px; max-width: 100%; width: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.rf-cmp__rank .rf-pkg__ph { width: 38px; height: 38px; }
.rf-cmp__rank b { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.rf-cmp__rank small {
    font-size: 11px; color: var(--rf-muted); text-decoration: underline; text-decoration-color: transparent;
    text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color .25s, text-decoration-color .25s;
}
.rf-cmp__rank:hover small { color: var(--rf-mint); text-decoration-color: var(--rf-mint); }
.rf-cmp__tag {
    position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap;
    padding: 3px 9px; border-radius: 999px; font-size: 9.5px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase;
    color: #04301f; background: linear-gradient(135deg, #8affd6, #22e59b); box-shadow: 0 0 12px rgba(34,229,155,.5);
}
.rf-cmp__sec { grid-column: 1 / -1; margin: 14px 0 2px; padding-left: 4px; font-size: 11px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: var(--rf-muted); }
.rf-cmp__label, .rf-cmp__cell {
    display: flex; align-items: center; min-height: 40px; padding: 8px 12px;
    background: rgba(2,12,8,.55); border: 1px solid rgba(34,229,155,.1); border-radius: 9px; font-size: 13px;
}
.rf-cmp__label { font-weight: 700; color: #fff; }
.rf-cmp__label.is-cmd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; font-size: 12.5px; color: #cfe8dd; }
.rf-cmp__cell { justify-content: center; font-weight: 800; color: #fff; text-align: center; }
.rf-cmp__rank.is-top, .rf-cmp__cell.is-top { border-color: rgba(34,229,155,.6); background: rgba(34,229,155,.09); box-shadow: inset 0 0 0 1px rgba(34,229,155,.2); }
.rf-yes { color: var(--rf-green); font-size: 15px; }
.rf-no { color: #ff6b7a; font-size: 12px; }
.rf-dash { color: var(--rf-muted); }
.rf-cmp__price { flex-direction: column; gap: 7px; padding: 10px 8px; }
.rf-cmp__price b { font-size: 12.5px; }
.rf-cmp__label--price { min-height: 76px; }
.rf-btn--xs { padding: 6px 12px; font-size: 12px; border-radius: 8px; width: 100%; }
.rf-cmp__foot { margin: 14px 0 0; font-size: 12px; color: var(--rf-muted); }
@media (prefers-reduced-motion: reduce) { .rf-modal__box { transition: opacity .2s; transform: none; } }

/* ⓘ info popup */
.rf-info { width: min(1000px, 100%); padding: 26px; overflow: auto; }
.rf-info__x { position: absolute; top: 14px; right: 14px; z-index: 3; }
.rf-info__grid { grid-template-columns: 300px minmax(0, 1fr); }
.rf-info .rf-pdp__buy { position: relative; top: 0; }
.rf-info .rf-pdp__img { height: 220px; }
.rf-info .rf-pdp__title { padding-right: 40px; }
@media (max-width: 760px) { .rf-info__grid { grid-template-columns: 1fr; } .rf-info { padding: 16px; } }

/* inline compare section + in-page rank view */
.rf-compare { margin-top: 0; }
/* compare: the panel fades in, then the table builds in layers */

@keyframes rf-fade { from { opacity: 0; } to { opacity: 1; } }
.rf-cmp.is-anim > * { animation: rf-pop .55s cubic-bezier(.22,1,.36,1) var(--rf-d, 0s) backwards; }
.rf-cmp.is-anim .rf-cmp__rank img, .rf-cmp.is-anim .rf-cmp__rank .rf-pkg__ph { animation: rf-pop-img .7s cubic-bezier(.22,1,.36,1) calc(var(--rf-d, 0s) + .12s) backwards; }
.rf-cmp.is-anim .rf-cmp__tag { animation: rf-pop-tag .6s cubic-bezier(.34,1.56,.64,1) calc(var(--rf-d, 0s) + .4s) backwards; }
.rf-cmp.is-anim .rf-yes, .rf-cmp.is-anim .rf-no { display: inline-block; animation: rf-pop-mark .45s cubic-bezier(.34,1.56,.64,1) calc(var(--rf-d, 0s) + .2s) backwards; }
@keyframes rf-pop-tag  { 0% { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.5) rotate(-10deg); } 70% { opacity: 1; transform: translateX(-50%) scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: translateX(-50%); } }
@keyframes rf-pop-mark { 0% { opacity: 0; transform: scale(.3) rotate(-20deg); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .rf-cmp.is-anim > *, .rf-pkgview.is-in :is(.rf-back, .rf-pdp__buy, .rf-pdp__info, .rf-pdp__price, .rf-pdp__actions, .rf-line) { animation-name: rf-soft; }
    .rf-cmp.is-anim .rf-cmp__tag, .rf-cmp.is-anim .rf-yes, .rf-cmp.is-anim .rf-no, .rf-cmp.is-anim .rf-cmp__rank img,
    .rf-pkgview.is-in :is(.rf-off, .rf-money, .rf-pdp__img) { animation-name: rf-fade; }
}
.rf-compare-btn.is-active { background: rgba(34,229,155,.14); border-color: var(--rf-green); box-shadow: 0 0 14px rgba(34,229,155,.25); }
/* no outer panel: every row/cell is its own glass box sitting on the background */
.rf-compare__body { overflow-x: auto; padding: 14px 2px 6px; }
.rf-compare .rf-cmp__rank, .rf-compare .rf-cmp__label, .rf-compare .rf-cmp__cell {
    background: linear-gradient(160deg, rgba(18,52,39,.78), rgba(9,28,20,.78));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(34,229,155,.2); box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.rf-compare .rf-cmp__rank { border-radius: 14px; }
.rf-compare .rf-cmp__label, .rf-compare .rf-cmp__cell { border-radius: 10px; min-height: 44px; }
.rf-compare .rf-cmp__rank.is-top, .rf-compare .rf-cmp__cell.is-top {
    background: linear-gradient(160deg, rgba(34,229,155,.2), rgba(12,60,42,.8));
    border-color: rgba(34,229,155,.75); box-shadow: 0 0 16px rgba(34,229,155,.22), inset 0 0 0 1px rgba(34,229,155,.2);
}
.rf-compare .rf-cmp__sec { margin-top: 18px; color: #cfe8dd; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.rf-compare .rf-cmp__corner, .rf-compare .rf-cmp__foot { color: #cfe8dd; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.rf-compare .rf-cmp__label--price { min-height: 80px; }
/* rank info: layered pop-in */
.rf-pkgview.is-in .rf-back      { animation: rf-pop .55s cubic-bezier(.22,1,.36,1) 0s backwards; }
.rf-pkgview.is-in .rf-pdp__buy  { animation: rf-pop .75s cubic-bezier(.22,1,.36,1) .05s backwards; }
.rf-pkgview.is-in .rf-pdp__info { animation: rf-pop .75s cubic-bezier(.22,1,.36,1) .15s backwards; }
.rf-pkgview.is-in .rf-pdp__img  { animation: rf-pop-img .8s cubic-bezier(.22,1,.36,1) .25s backwards; }
.rf-pkgview.is-in .rf-pdp__price, .rf-pkgview.is-in .rf-pdp__actions { animation: rf-pop .6s cubic-bezier(.22,1,.36,1) .35s backwards; }
.rf-pkgview.is-in .rf-off   { animation: rf-pop-layer .6s cubic-bezier(.34,1.56,.64,1) .5s backwards; }
.rf-pkgview.is-in .rf-money { animation: rf-pop-layer .6s cubic-bezier(.34,1.56,.64,1) .55s backwards; }
.rf-pkgview.is-in .rf-line  { animation: rf-line .5s cubic-bezier(.22,1,.36,1) var(--rf-d, .3s) backwards; }
@keyframes rf-line { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.rf-pkgview .rf-pdp__buy { top: 90px; }
/* slow small circle drift for rank icons on the info view */
.rf-orbit { display: inline-grid; place-items: center; animation: rf-sway-x 6s ease-in-out infinite; }
.rf-orbit > * { animation: rf-sway-y 6s ease-in-out -1.5s infinite; }
.rf-pdp__img .rf-orbit img { max-width: 240px; max-height: 260px; width: auto; filter: drop-shadow(0 18px 22px rgba(0,0,0,.5)); }
.rf-pdp__buy:hover .rf-orbit img { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .rf-grid { grid-template-columns: 1fr; }
    .rf-hero { grid-template-columns: 1fr; }
    .rf-hero__art { display: none; }
    .rf-detail { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .rf-header__inner { grid-template-columns: 1fr 1fr; }
    .rf-logo { grid-column: 1 / -1; order: -1; }
    .rf-logo img { max-height: 130px; }
    .rf-ip__value { display: none; }
    .rf-nav__toggle { display: block; }
    .rf-nav__inner { flex-wrap: wrap; }
    .rf-nav__links { display: none; order: 3; flex-basis: 100%; flex-direction: column; }
    .rf-menu-open .rf-nav__links { display: flex; }
    .rf-nav__right { margin-left: auto; }
    .rf-drop__menu { position: static; display: block; box-shadow: none; border: 0; padding-left: 14px; }
    .rf-hero { padding: 24px; }
    .rf-hero h1 { font-size: 30px; }
    .rf-basket-item { grid-template-columns: 1fr auto; }
}