/* RealGunz · Feature pages (modules/features.php) — loaded only on /features.
   Tone per page via --fx (blue/gold/red/green = owner colour semantics).
   Shares the theme-2026 tokens and the .rg-lite-yt trailer player. */

.rg-fx{ --fx: #3d7dff; display: flex; flex-direction: column; gap: 36px; }
.rg-fx--gold { --fx: #e6c576; }
.rg-fx--red  { --fx: #ff3b5c; }
.rg-fx--green{ --fx: #4ec07a; }

/* ---------- Breadcrumb + tab rail ---------- */
.rg-fx-crumbs{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; color: #8fa3c9; font-family: var(--rg-font-ui); font-weight: 700; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; }
.rg-fx-crumbs a{ color: #b9c7e2 !important; }
.rg-fx-crumbs a:hover{ color: #fff !important; }
.rg-fx-crumbs li + li::before{ content: "/"; margin-inline-end: 8px; opacity: .5; }
.rg-fx-rail{
    display: flex; gap: 6px; padding: 8px; margin: 0; list-style: none; overflow-x: auto;
    border-radius: 16px; border: 1px solid var(--rg-line);
    background: linear-gradient(180deg, rgba(10,20,44,.75), rgba(4,9,22,.75));
    scrollbar-width: none;
}
.rg-fx-rail::-webkit-scrollbar{ display: none; }
.rg-fx-rail a{
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 10px 14px; border-radius: 11px; border: 1px solid transparent;
    color: #c2cfe8 !important; font-family: var(--rg-font-ui); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.rg-fx-rail a i{ color: #6f9dff; font-size: 12px; }
.rg-fx-rail a:hover{ background: rgba(61,125,255,.10); border-color: rgba(61,125,255,.32); color: #fff !important; }
.rg-fx-rail a.is-active{ color: #14110a !important; background: linear-gradient(135deg, var(--rg-gold-2), var(--rg-gold)); box-shadow: 0 12px 24px -12px rgba(230,197,118,.9); }
.rg-fx-rail a.is-active i{ color: #14110a; }

/* ---------- Hero ---------- */
.rg-fx-hero{
    position: relative; overflow: hidden; isolation: isolate;
    padding: 50px 44px; border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--fx) 42%, transparent);
    background:
        radial-gradient(60% 100% at 100% 0%, color-mix(in srgb, var(--fx) 26%, transparent), transparent 62%),
        radial-gradient(50% 80% at 0% 100%, rgba(61,125,255,.14), transparent 60%),
        linear-gradient(160deg, #0b1733 0%, #050b1c 72%);
    box-shadow: 0 40px 80px -50px color-mix(in srgb, var(--fx) 80%, transparent);
}
.rg-fx-hero::before{
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(148,176,224,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148,176,224,.06) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 15%, transparent 70%);
            mask-image: radial-gradient(ellipse at 70% 30%, #000 15%, transparent 70%);
}
.rg-fx-hero__icon{
    position: absolute; right: 44px; top: 50%; z-index: -1; transform: translateY(-50%);
    font-size: 200px; line-height: 1; color: color-mix(in srgb, var(--fx) 16%, transparent);
    filter: drop-shadow(0 0 40px color-mix(in srgb, var(--fx) 35%, transparent));
    pointer-events: none;
}
.rg-fx-hero__top{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rg-fx-kicker{
    display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--fx) 50%, transparent); background: color-mix(in srgb, var(--fx) 12%, transparent);
    color: color-mix(in srgb, var(--fx) 60%, #fff); font-family: var(--rg-font-ui); font-weight: 800; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
}
.rg-fx-status{
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    color: #fff; background: linear-gradient(135deg, #ff5470, var(--rg-red)); box-shadow: 0 10px 22px -10px rgba(255,59,92,.9);
    font-family: var(--rg-font-ui); font-weight: 800; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
}
.rg-fx-hero__title{
    max-width: 760px; margin: 18px 0 14px; color: #fff;
    font-family: var(--rg-font-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(32px, 4.6vw, 60px); line-height: 1.03; letter-spacing: .01em;
}
.rg-fx-hero__title .rg-grad{ display: block; margin-top: .2em; font-size: .62em; }
.rg-fx-hero__lead{ max-width: 640px; margin: 0 0 26px; color: #c6d3ec; font-size: 17px; line-height: 1.7; }
.rg-fx-hero__cta{ display: flex; flex-wrap: wrap; gap: 12px; }
.rg-fx-btn{
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 14px;
    font-family: var(--rg-font-ui); font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
    text-decoration: none !important; transition: transform .22s var(--rg-ease), filter .2s ease, border-color .2s ease, background .2s ease;
}
.rg-fx-btn--gold{ color: #14110a !important; background: linear-gradient(135deg, #fff0c2, var(--rg-gold) 45%, #c99a3c); box-shadow: 0 20px 40px -18px rgba(230,197,118,.95), inset 0 0 0 1px rgba(255,255,255,.45); }
.rg-fx-btn--ghost{ color: #c9d6ef !important; border: 1px solid var(--rg-line-2); background: rgba(255,255,255,.03); }
.rg-fx-btn:hover{ transform: translateY(-2px); filter: brightness(1.06); }
.rg-fx-btn--ghost:hover{ border-color: var(--fx); background: color-mix(in srgb, var(--fx) 10%, transparent); color: #fff !important; }

/* ---------- Highlights ---------- */
.rg-fx-hl{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rg-fx-hl__card{
    position: relative; padding: 22px 20px; border-radius: 18px;
    border: 1px solid var(--rg-line); background: linear-gradient(180deg, rgba(12,24,54,.75), rgba(5,10,26,.92));
    transition: transform .25s var(--rg-ease), border-color .25s ease;
}
.rg-fx-hl__card:hover{ transform: translateY(-3px); border-color: color-mix(in srgb, var(--fx) 60%, transparent); }
.rg-fx-hl__card > i{
    width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; font-size: 18px;
    color: color-mix(in srgb, var(--fx) 70%, #fff); background: color-mix(in srgb, var(--fx) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--fx) 40%, transparent);
}
.rg-card .rg-fx-hl__card h3{ margin: 14px 0 6px; padding: 0; border: 0; color: #fff; font-size: 16px; letter-spacing: .03em; }
.rg-fx-hl__card p{ margin: 0; color: #aebcd8; font-size: 14px; line-height: 1.6; }

/* ---------- Body: article + sticky aside ---------- */
.rg-fx-body{ display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.rg-fx-article section{ padding: 0 0 26px; margin: 0 0 26px; border-bottom: 1px dashed rgba(148,176,224,.14); }
.rg-fx-article section:last-child{ border-bottom: 0; margin-bottom: 0; }
.rg-card .rg-fx-article h2{
    display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0; border: 0;
    color: #fff; font-family: var(--rg-font-display); font-weight: 900; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .04em; text-transform: uppercase;
}
.rg-card .rg-fx-article h2::before{ content: ""; width: 5px; height: 1.05em; border-radius: 3px; background: linear-gradient(180deg, var(--fx), var(--rg-gold)); flex: 0 0 auto; }
.rg-fx-article p{ margin: 0 0 12px; color: #c6d3ec; font-size: 16px; line-height: 1.8; }
.rg-fx-article p:last-child{ margin-bottom: 0; }
.rg-fx-aside{ position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.rg-fx-box{ border-radius: 18px; border: 1px solid var(--rg-line); background: linear-gradient(180deg, rgba(12,24,54,.8), rgba(5,10,26,.95)); overflow: hidden; }
.rg-fx-box__head{
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--rg-line);
    color: #fff; font-family: var(--rg-font-display); font-weight: 900; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
}
.rg-fx-box__head i{ color: var(--rg-gold); margin-inline-end: 8px; }
.rg-fx-box__head a{ color: #8fb4ff !important; font-family: var(--rg-font-ui); font-size: 11px; letter-spacing: .16em; }
.rg-fx-box__body{ padding: 12px 18px 16px; }
.rg-fx-box__note{ margin: 0; color: #aebcd8; font-size: 14px; line-height: 1.6; }
.rg-fx-live{ display: inline-flex; align-items: center; gap: 6px; color: #6fe0a0; font-family: var(--rg-font-ui); font-size: 10.5px; letter-spacing: .18em; }
.rg-fx-live::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ec07a; box-shadow: 0 0 0 3px rgba(78,192,122,.25); }

/* Live leaderboard list */
.rg-fx-top{ list-style: none; margin: 0; padding: 0; }
.rg-fx-top li{ display: grid; grid-template-columns: 30px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(148,176,224,.12); }
.rg-fx-top li:last-child{ border-bottom: 0; }
.rg-fx-top__pos{ width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(61,125,255,.1); border: 1px solid rgba(61,125,255,.24); color: #c9d6ef; font-family: var(--rg-font-display); font-weight: 900; font-size: 12px; }
.rg-fx-top li:nth-child(1) .rg-fx-top__pos{ color: #1a1200; border-color: transparent; background: linear-gradient(135deg, #fff0c2, #e6c576 55%, #b98c34); }
.rg-fx-top li:nth-child(2) .rg-fx-top__pos{ color: #101318; border-color: transparent; background: linear-gradient(135deg, #fff, #cdd3dc 55%, #8f9aad); }
.rg-fx-top li:nth-child(3) .rg-fx-top__pos{ color: #1a0e06; border-color: transparent; background: linear-gradient(135deg, #ffd2ab, #d08a5a 55%, #94542c); }
.rg-fx-top__av{ width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.05); color: #fff; font-family: var(--rg-font-display); font-weight: 900; font-size: 14px; overflow: hidden; }
.rg-fx-top__av img{ width: 100%; height: 100%; object-fit: contain; }
.rg-fx-top__name{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 700; font-size: 14px; }
.rg-fx-top__name a{ color: #fff !important; }
.rg-fx-top__val{ text-align: end; white-space: nowrap; }
.rg-fx-top__val b{ display: block; color: var(--rg-gold); font-family: var(--rg-font-display); font-weight: 900; font-size: 14px; font-variant-numeric: tabular-nums; }
.rg-fx-top__val em{ font-style: normal; color: #8fa3c9; font-family: var(--rg-font-ui); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; }

/* Streak (daily rewards) */
.rg-fx-streak{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rg-fx-streak li{ display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--rg-line); background: rgba(255,255,255,.02); }
.rg-fx-streak li b{ width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(78,192,122,.12); border: 1px solid rgba(78,192,122,.35); color: #a8ecc0; font-family: var(--rg-font-display); font-weight: 900; font-size: 16px; }
.rg-fx-streak li span{ color: #e1e9f8; font-size: 13.5px; line-height: 1.45; }
.rg-fx-streak li.is-grand{ border-color: rgba(230,197,118,.5); background: linear-gradient(90deg, rgba(230,197,118,.12), transparent); }
.rg-fx-streak li.is-grand b{ color: #1a1200; background: linear-gradient(135deg, #fff0c2, #e6c576 55%, #b98c34); border-color: transparent; }

/* Related links */
.rg-fx-links{ list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rg-fx-links a{
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 11px;
    border: 1px solid var(--rg-line); color: #d8e3f5 !important; font-weight: 600; font-size: 14px;
    transition: border-color .2s ease, background .2s ease, transform .2s var(--rg-ease);
}
.rg-fx-links a i{ color: #8fb4ff; transition: transform .2s var(--rg-ease); }
.rg-fx-links a:hover{ border-color: color-mix(in srgb, var(--fx) 60%, transparent); background: color-mix(in srgb, var(--fx) 8%, transparent); }
.rg-fx-links a:hover i{ transform: translateX(3px); }
.rg-fx-aside .rg-lite-yt-wrap{ position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0; box-shadow: none; }
.rg-fx-aside .rg-lite-yt-wrap::before, .rg-fx-aside .rg-lite-yt-wrap::after{ display: none; }
.rg-fx-aside .rg-lite-yt__play{ width: 64px; height: 64px; }
.rg-fx-aside .rg-lite-yt__play::after{ border-width: 11px 0 11px 19px; }
.rg-fx-aside .rg-lite-yt__cap em{ display: none; }

/* ---------- FAQ ---------- */
.rg-fx-head{ margin-bottom: 16px; }
.rg-fx-head span{ color: var(--rg-gold); font-family: var(--rg-font-ui); font-weight: 800; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; }
.rg-card .rg-fx-head h2{ margin: 6px 0 0; padding: 0; border: 0; color: #fff; font-family: var(--rg-font-display); font-weight: 900; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .04em; text-transform: uppercase; }
.rg-fx-faq{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.rg-fx-faq details{ border-radius: 14px; border: 1px solid var(--rg-line); background: rgba(255,255,255,.02); transition: border-color .2s ease, background .2s ease; }
.rg-fx-faq details[open]{ border-color: color-mix(in srgb, var(--fx) 55%, transparent); background: color-mix(in srgb, var(--fx) 6%, transparent); }
.rg-fx-faq summary{ list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: #fff; font-weight: 700; font-size: 15px; }
.rg-fx-faq summary::-webkit-details-marker{ display: none; }
.rg-fx-faq summary::after{ content: "+"; flex: 0 0 auto; color: var(--rg-gold); font-family: var(--rg-font-display); font-size: 20px; line-height: 1; transition: transform .2s ease; }
.rg-fx-faq details[open] summary::after{ transform: rotate(45deg); }
.rg-fx-faq details p{ margin: 0; padding: 0 18px 16px; color: #aebcd8; font-size: 14px; line-height: 1.65; }

/* ---------- Prev / next + final call ---------- */
.rg-fx-pn{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rg-fx-pn a{
    display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px;
    border: 1px solid var(--rg-line); background: rgba(255,255,255,.02);
    transition: border-color .2s ease, transform .2s var(--rg-ease), background .2s ease;
}
.rg-fx-pn a:hover{ border-color: rgba(61,125,255,.5); background: rgba(61,125,255,.06); transform: translateY(-2px); }
.rg-fx-pn a.is-next{ text-align: end; align-items: flex-end; }
.rg-fx-pn em{ font-style: normal; color: #8fa3c9; font-family: var(--rg-font-ui); font-weight: 800; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; }
.rg-fx-pn b{ color: #fff; font-family: var(--rg-font-display); font-size: 17px; letter-spacing: .04em; }
.rg-fx-final{
    position: relative; overflow: hidden; text-align: center; padding: 46px 24px; border-radius: 22px;
    border: 1px solid rgba(230,197,118,.35);
    background: radial-gradient(60% 120% at 50% 0%, rgba(230,197,118,.2), transparent 60%), linear-gradient(180deg, #0c1834, #050b1c);
}
.rg-card .rg-fx-final h2{ margin: 0 0 10px; padding: 0; border: 0; color: #fff; font-family: var(--rg-font-display); font-weight: 900; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .04em; text-transform: uppercase; }
.rg-fx-final p{ margin: 0 auto 24px; max-width: 560px; color: #c6d3ec; font-size: 16px; }
.rg-fx-final .rg-fx-hero__cta{ justify-content: center; }

/* ---------- Hub grid ---------- */
.rg-fx-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rg-fx-card{
    --fx: #3d7dff;
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 250px; padding: 26px 24px 22px;
    border-radius: 20px; border: 1px solid color-mix(in srgb, var(--fx) 34%, rgba(148,176,224,.14));
    background: radial-gradient(90% 90% at 100% 0%, color-mix(in srgb, var(--fx) 20%, transparent), transparent 60%), linear-gradient(180deg, rgba(12,24,54,.8), rgba(5,10,26,.95));
    color: inherit !important; text-decoration: none !important;
    transition: transform .28s var(--rg-ease), border-color .28s ease, box-shadow .28s ease;
}
.rg-fx-card--gold{ --fx: #e6c576; } .rg-fx-card--red{ --fx: #ff3b5c; } .rg-fx-card--green{ --fx: #4ec07a; }
.rg-fx-card:hover{ transform: translateY(-4px); border-color: color-mix(in srgb, var(--fx) 70%, transparent); box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--fx) 90%, transparent); }
.rg-fx-card__ico{ width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--fx), color-mix(in srgb, var(--fx) 40%, #000)); box-shadow: 0 14px 30px -14px var(--fx); }
.rg-fx-card__big{ position: absolute; right: -14px; bottom: -26px; font-size: 130px; line-height: 1; color: color-mix(in srgb, var(--fx) 10%, transparent); pointer-events: none; }
.rg-card .rg-fx-card h2{ margin: 4px 0 0; padding: 0; border: 0; color: #fff; font-family: var(--rg-font-display); font-weight: 900; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.rg-fx-card p{ margin: 0; color: #aebcd8; font-size: 14.5px; line-height: 1.6; }
.rg-fx-card__go{ margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: color-mix(in srgb, var(--fx) 65%, #fff); font-family: var(--rg-font-ui); font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.rg-fx-card__go i{ transition: transform .2s var(--rg-ease); }
.rg-fx-card:hover .rg-fx-card__go i{ transform: translateX(4px); }
.rg-fx-card .rg-fx-status{ position: absolute; top: 18px; right: 18px; padding: 5px 10px; font-size: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px){
    .rg-fx-hl{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rg-fx-body{ grid-template-columns: minmax(0, 1fr); }
    .rg-fx-aside{ position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rg-fx-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px){
    .rg-fx{ gap: 28px; }
    .rg-fx-hero{ padding: 30px 20px; border-radius: 18px; }
    .rg-fx-hero__icon{ font-size: 120px; right: -10px; top: auto; bottom: -10px; transform: none; }
    .rg-fx-hero__lead{ font-size: 15.5px; }
    .rg-fx-btn{ width: 100%; justify-content: center; }
    .rg-fx-hl, .rg-fx-aside, .rg-fx-faq, .rg-fx-pn, .rg-fx-grid{ grid-template-columns: minmax(0, 1fr); }
    .rg-fx-article p{ font-size: 15px; }
}
html[dir="rtl"] .rg-fx-hero__icon{ right: auto; left: 44px; }
html[dir="rtl"] .rg-fx-card__big{ right: auto; left: -14px; }
html[dir="rtl"] .rg-fx-card .rg-fx-status{ right: auto; left: 18px; }
