/* =====================================================================
   RNI Securities — site shell (header, footer) and homepage.
   Loaded after style.css; everything here is rx- prefixed so the
   inner pages that still use style.css are not affected.
   ===================================================================== */
:root {
    --rx-ink: #0e1a2b;
    --rx-ink-2: #16263d;
    --rx-ink-3: #22385a;
    --rx-red: #d4252b;
    --rx-red-dark: #ae1a20;
    --rx-red-soft: #fdecec;
    --rx-green: #0f9d6b;
    --rx-green-soft: #e3f6ee;
    --rx-bg: #f6f4f1;
    --rx-card: #ffffff;
    --rx-line: #e7e3dd;
    --rx-text: #1d2433;
    --rx-muted: #5d6676;
    --rx-radius: 18px;
    --rx-radius-sm: 12px;
    --rx-shadow: 0 10px 30px -12px rgba(14, 26, 43, .18);
    --rx-shadow-lg: 0 30px 60px -20px rgba(14, 26, 43, .28);
    --rx-font: "Plus Jakarta Sans", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.rx { font-family: var(--rx-font); color: var(--rx-text); background: #fff; }
body.rx[lang="bn"], html[lang="bn"] body.rx { font-family: "Hind Siliguri", "Plus Jakarta Sans", sans-serif; }
.rx a { text-decoration: none; }
body.rx h1, body.rx h2, body.rx h3, body.rx h4, body.rx h5, body.rx h6 { font-family: var(--rx-font); }
body.rx footer.rx-footer { background: var(--rx-ink); color: rgba(255, 255, 255, .72); }
.rx-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.rx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; cursor: pointer; }
.rx-btn:hover { transform: translateY(-1px); }
.rx-btn-red { background: var(--rx-red); color: #fff; box-shadow: 0 10px 24px -10px rgba(212, 37, 43, .7); }
.rx-btn-red:hover { background: var(--rx-red-dark); color: #fff; }
.rx-btn-ghost { background: transparent; color: var(--rx-ink); border-color: var(--rx-line); }
.rx-btn-ghost:hover { border-color: var(--rx-ink); color: var(--rx-ink); }
.rx-btn-light { background: #fff; color: var(--rx-ink); }
.rx-btn-light:hover { background: #f1f1f1; color: var(--rx-ink); }
.rx-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.rx-btn-outline-light:hover { border-color: #fff; color: #fff; }
.rx-btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* =====================================================================
   HEADER
   ===================================================================== */
.rx-strip { background: var(--rx-ink); color: rgba(255, 255, 255, .78); font-size: 13px; }
.rx-strip .rx-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.rx-strip-left, .rx-strip-right { display: flex; align-items: center; gap: 18px; }
.rx-strip a { color: rgba(255, 255, 255, .78); }
.rx-strip a:hover { color: #fff; }
.rx-strip i { margin-right: 6px; opacity: .8; }
.rx-strip-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .18); }
.rx-market { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #fff; }
.rx-market-dot { width: 8px; height: 8px; border-radius: 50%; background: #8a94a6; box-shadow: 0 0 0 3px rgba(138, 148, 166, .25); }
.rx-market.is-open .rx-market-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); animation: rx-pulse 1.8s infinite; }
@keyframes rx-pulse { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }
.rx-lang { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); font-weight: 600; }

.rx-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.rx-header.is-scrolled { border-color: var(--rx-line); box-shadow: 0 8px 24px -16px rgba(14, 26, 43, .25); }
.rx-header .rx-container { display: flex; align-items: center; gap: 28px; height: 78px; }
.rx-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.rx-brand img { height: 48px; width: auto; }
.rx-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.rx-brand-name { font-weight: 800; font-size: 18px; color: var(--rx-ink); letter-spacing: -.01em; }
.rx-brand-sub { font-size: 11.5px; font-weight: 600; color: var(--rx-muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }

.rx-nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; flex: 1; }
.rx-nav > li { position: relative; }
.rx-nav > li > a { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--rx-text); transition: background .2s, color .2s; }
.rx-nav > li > a .fa-angle-down { font-size: 13px; opacity: .6; transition: transform .2s; }
.rx-nav > li:hover > a, .rx-nav > li.is-active > a { background: var(--rx-bg); color: var(--rx-ink); }
.rx-nav > li.is-active > a { color: var(--rx-red); }
.rx-nav > li:hover > a .fa-angle-down { transform: rotate(180deg); }

.rx-drop { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); min-width: 280px; background: #fff; border: 1px solid var(--rx-line); border-radius: var(--rx-radius); box-shadow: var(--rx-shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.rx-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.rx-nav > li:hover .rx-drop, .rx-nav > li:focus-within .rx-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.rx-drop.is-wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.rx-drop a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--rx-radius-sm); color: var(--rx-text); transition: background .15s; }
.rx-drop a:hover { background: var(--rx-bg); }
.rx-drop-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--rx-red-soft); color: var(--rx-red); font-size: 16px; }
.rx-drop-t { display: block; font-weight: 700; font-size: 14px; color: var(--rx-ink); }
.rx-drop-d { display: block; font-size: 12.5px; color: var(--rx-muted); margin-top: 1px; }

.rx-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rx-user { position: relative; }
.rx-user .rx-drop { left: auto; right: 0; transform: translateY(8px); min-width: 220px; }
.rx-user:hover .rx-drop, .rx-user:focus-within .rx-drop { opacity: 1; visibility: visible; transform: translateY(0); }

.rx-burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--rx-line); background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.rx-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--rx-ink); }

/* drawer */
.rx-drawer { position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: #fff; z-index: 1060; transform: translateX(100%); transition: transform .3s ease, visibility .3s; display: flex; flex-direction: column; visibility: hidden; }
.rx-drawer.is-open { transform: none; visibility: visible; box-shadow: var(--rx-shadow-lg); }
.rx-drawer-mask { position: fixed; inset: 0; background: rgba(14, 26, 43, .5); z-index: 1055; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.rx-drawer-mask.is-open { opacity: 1; visibility: visible; }
.rx-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--rx-line); }
.rx-drawer-head img { height: 40px; }
.rx-drawer-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--rx-line); background: #fff; font-size: 18px; color: var(--rx-ink); }
.rx-drawer-body { flex: 1; overflow-y: auto; padding: 12px 14px 20px; }
.rx-drawer-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 6px 14px; }
.rx-drawer-cta .rx-btn { height: 44px; padding: 0 12px; font-size: 14px; }
.rx-dlink, .rx-dtoggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 12px; border-radius: 12px; font-weight: 600; font-size: 15.5px; color: var(--rx-ink); background: none; border: 0; text-align: left; }
.rx-dlink:hover, .rx-dtoggle:hover { background: var(--rx-bg); color: var(--rx-ink); }
.rx-dlink > span, .rx-dtoggle > span { display: flex; align-items: center; gap: 12px; }
.rx-dlink i.lead, .rx-dtoggle i.lead { width: 20px; text-align: center; color: var(--rx-red); }
.rx-dtoggle .fa-angle-down { transition: transform .2s; }
.rx-dtoggle[aria-expanded="true"] .fa-angle-down { transform: rotate(180deg); }
.rx-dsub { padding: 2px 0 8px 44px; }
.rx-dsub a { display: block; padding: 9px 10px; border-radius: 10px; color: var(--rx-muted); font-size: 14.5px; }
.rx-dsub a:hover { color: var(--rx-ink); background: var(--rx-bg); }
.rx-drawer-foot { padding: 14px 20px; border-top: 1px solid var(--rx-line); display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--rx-muted); }
.rx-drawer-foot a { color: var(--rx-ink); font-weight: 600; }

/* =====================================================================
   HOMEPAGE
   ===================================================================== */
.rx-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--rx-line); font-size: 13px; font-weight: 700; color: var(--rx-ink); }
.rx-eyebrow b { color: var(--rx-red); }
.rx-kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rx-red); margin-bottom: 10px; }
.rx-h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--rx-ink); line-height: 1.15; margin: 0; }
.rx-lead { font-size: 17px; color: var(--rx-muted); line-height: 1.65; margin: 14px 0 0; }
.rx-sec { padding: 96px 0; }
.rx-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.rx-sec-head .rx-lead { max-width: 560px; }
.rx-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--rx-ink); }
.rx-link:hover { color: var(--rx-red); }
.rx-link i { transition: transform .2s; }
.rx-link:hover i { transform: translateX(3px); }

/* hero */
.rx-hero { position: relative; background: var(--rx-bg); overflow: hidden; padding: 64px 0 140px; }
.rx-hero::before { content: ""; position: absolute; right: -180px; top: -220px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 37, 43, .12), transparent 65%); }
.rx-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.rx-hero h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; color: var(--rx-ink); margin: 22px 0 0; }
.rx-hero h1 em { font-style: normal; color: var(--rx-red); }
.rx-hero-sub { font-size: 18px; line-height: 1.65; color: var(--rx-muted); margin: 22px 0 0; max-width: 540px; }
.rx-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.rx-hero-cta .rx-btn { height: 54px; padding: 0 28px; font-size: 16px; }
.rx-hero-trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rx-line); }
.rx-hero-trust div { display: flex; flex-direction: column; }
.rx-hero-trust strong { font-size: 26px; font-weight: 800; color: var(--rx-ink); letter-spacing: -.02em; }
.rx-hero-trust span { font-size: 13.5px; color: var(--rx-muted); font-weight: 600; }

.rx-hero-art { position: relative; }
.rx-hero-frame { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4.3; box-shadow: var(--rx-shadow-lg); background: var(--rx-ink); }
.rx-hero-frame .carousel, .rx-hero-frame .carousel-inner, .rx-hero-frame .carousel-item { height: 100%; }
.rx-hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.rx-hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(14, 26, 43, .55)); pointer-events: none; }
.rx-float { position: absolute; z-index: 2; background: #fff; border-radius: 16px; box-shadow: var(--rx-shadow-lg); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.rx-float-ico { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.rx-float b { display: block; font-size: 15px; color: var(--rx-ink); line-height: 1.2; }
.rx-float small { display: block; font-size: 12.5px; color: var(--rx-muted); font-weight: 600; }
.rx-float-a { left: -34px; top: 34px; }
.rx-float-a .rx-float-ico { background: var(--rx-green-soft); color: var(--rx-green); }
.rx-float-b { right: -22px; bottom: 44px; }
.rx-float-b .rx-float-ico { background: var(--rx-red-soft); color: var(--rx-red); }
.rx-hero-dots { position: absolute; z-index: 3; left: 22px; bottom: 20px; display: flex; gap: 6px; }
.rx-hero-dots button { width: 22px; height: 4px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .45); padding: 0; }
.rx-hero-dots button.active { background: #fff; width: 34px; }

/* quick actions */
.rx-quick { position: relative; z-index: 3; margin-top: -88px; }
.rx-quick-card { background: #fff; border-radius: 24px; box-shadow: var(--rx-shadow-lg); padding: 14px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.rx-qa { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 18px; border-radius: 18px; color: var(--rx-ink); transition: background .2s, transform .2s; }
.rx-qa:hover { background: var(--rx-bg); color: var(--rx-ink); transform: translateY(-2px); }
.rx-qa-ico { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; background: var(--rx-bg); color: var(--rx-ink); transition: background .2s, color .2s; }
.rx-qa:hover .rx-qa-ico { background: var(--rx-red); color: #fff; }
.rx-qa.is-primary .rx-qa-ico { background: var(--rx-red); color: #fff; }
.rx-qa b { font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.rx-qa small { display: block; font-size: 13px; color: var(--rx-muted); margin-top: 3px; font-weight: 500; }

/* about */
.rx-about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.rx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rx-stat { background: var(--rx-bg); border-radius: var(--rx-radius); padding: 28px 24px; }
.rx-stat:nth-child(2) { background: var(--rx-ink); color: #fff; }
.rx-stat:nth-child(3) { background: var(--rx-red); color: #fff; }
.rx-stat strong { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.rx-stat span { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 600; opacity: .85; }
.rx-ticks { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; }
.rx-ticks li { display: flex; gap: 12px; font-size: 16px; color: var(--rx-text); }
.rx-ticks li i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--rx-green-soft); color: var(--rx-green); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 1px; }

/* services */
.rx-sec-soft { background: var(--rx-bg); }
.rx-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rx-svc { position: relative; background: #fff; border: 1px solid var(--rx-line); border-radius: 22px; padding: 30px 28px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; color: var(--rx-text); }
.rx-svc:hover { transform: translateY(-4px); box-shadow: var(--rx-shadow); border-color: transparent; color: var(--rx-text); }
.rx-svc-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--rx-red-soft); color: var(--rx-red); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden; }
.rx-svc-ico img { width: 100%; height: 100%; object-fit: cover; }
.rx-svc-grid.is-4 { grid-template-columns: repeat(4, 1fr); }
.rx-svc-grid.is-4 .rx-svc { padding: 26px 22px; }
.rx-svc-ico.is-img { width: 72px; height: 72px; border-radius: 20px; background: #fff; border: 1px solid var(--rx-line); padding: 10px; }
.rx-svc-ico.is-img img { object-fit: contain; }
.rx-svc p.is-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; flex: 0 0 auto; margin: 0 0 18px; padding: 0; }
.rx-svc .rx-link { margin-top: auto; background: none; border: 0; padding: 0; font-size: 14.5px; }
.rx-svc-modal .modal-body img { width: 84px; height: 84px; object-fit: contain; border: 1px solid var(--rx-line); border-radius: 20px; padding: 12px; margin-bottom: 18px; }
.rx-svc-modal .modal-body p { font-size: 16px; line-height: 1.7; color: var(--rx-muted); }
.rx-svc-modal .modal-title { font-weight: 800; color: var(--rx-ink); }
div.rx-svc:hover { transform: none; box-shadow: none; border-color: var(--rx-line); }
.rx-svc h3 { font-size: 19px; font-weight: 800; color: var(--rx-ink); margin: 22px 0 8px; }
.rx-svc p { font-size: 15px; line-height: 1.6; color: var(--rx-muted); margin: 0 0 20px; flex: 1; }
.rx-svc .rx-link { font-size: 14.5px; }

/* steps */
.rx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: rxstep; }
.rx-step { position: relative; padding: 30px 28px; border-radius: 22px; border: 1px dashed #d8d2c9; }
.rx-step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--rx-ink); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.rx-step h3 { font-size: 18px; font-weight: 800; color: var(--rx-ink); margin: 18px 0 8px; }
.rx-step p { font-size: 15px; color: var(--rx-muted); line-height: 1.6; margin: 0; }

/* notices */
.rx-notice-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.rx-notices { background: #fff; border: 1px solid var(--rx-line); border-radius: 22px; padding: 8px; }
.rx-notice { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 16px; color: var(--rx-text); }
.rx-notice + .rx-notice { border-top: 1px solid var(--rx-line); }
.rx-notice:hover { background: var(--rx-bg); color: var(--rx-text); }
.rx-notice-date { flex: none; width: 58px; height: 62px; border-radius: 14px; background: var(--rx-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.rx-notice-date b { font-size: 22px; font-weight: 800; color: var(--rx-ink); }
.rx-notice-date small { font-size: 11.5px; font-weight: 700; color: var(--rx-red); text-transform: uppercase; margin-top: 4px; letter-spacing: .05em; }
.rx-notice-body { flex: 1; min-width: 0; }
.rx-notice-body h4 { font-size: 16px; font-weight: 700; color: var(--rx-ink); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rx-notice-body p { font-size: 13.5px; color: var(--rx-muted); margin: 4px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-notice > i { color: var(--rx-muted); }
.rx-empty { padding: 40px 20px; text-align: center; color: var(--rx-muted); }
.rx-hours { background: var(--rx-ink); color: #fff; border-radius: 22px; padding: 30px 28px; position: relative; overflow: hidden; }
.rx-hours::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(212, 37, 43, .35); filter: blur(30px); }
.rx-hours h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.rx-hours > p { color: rgba(255, 255, 255, .7); font-size: 14px; margin: 0 0 22px; }
.rx-hours-row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; }
.rx-hours-row b { font-weight: 700; }
.rx-hours-row span { color: rgba(255, 255, 255, .75); }
.rx-hours .rx-market { margin-top: 18px; position: relative; z-index: 1; }

/* apps */
.rx-apps { background: var(--rx-ink); border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; color: #fff; position: relative; overflow: hidden; }
.rx-apps::before { content: ""; position: absolute; left: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 37, 43, .45), transparent 70%); }
.rx-apps .rx-h2 { color: #fff; position: relative; }
.rx-apps .rx-lead { color: rgba(255, 255, 255, .7); position: relative; }
.rx-app-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; }
.rx-app { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; transition: background .2s, border-color .2s; }
.rx-app:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.rx-app i { font-size: 26px; width: 30px; text-align: center; }
.rx-app small { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); font-weight: 600; }
.rx-app b { display: block; font-size: 15px; font-weight: 700; }

/* news */
.rx-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rx-news { background: #fff; border: 1px solid var(--rx-line); border-radius: 22px; overflow: hidden; }
.rx-news-img { aspect-ratio: 16 / 9; background: var(--rx-bg); }
.rx-news-img img { width: 100%; height: 100%; object-fit: cover; }
.rx-news-body { padding: 22px 24px 26px; }
.rx-news-body h3 { font-size: 18px; font-weight: 800; color: var(--rx-ink); margin: 0 0 8px; }
.rx-news-body div { font-size: 15px; color: var(--rx-muted); line-height: 1.6; }

/* CTA band */
.rx-cta { background: linear-gradient(120deg, var(--rx-red) 0%, #b3161d 100%); border-radius: 32px; padding: 52px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #fff; flex-wrap: wrap; }
.rx-cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.rx-cta p { margin: 8px 0 0; color: rgba(255, 255, 255, .85); font-size: 16px; }
.rx-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.rx-footer { background: var(--rx-ink); color: rgba(255, 255, 255, .72); padding-top: 72px; margin-top: 96px; font-size: 15px; }
.rx-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.rx-footer-brand { display: flex; align-items: center; gap: 12px; }
.rx-footer-brand .rx-footer-logo { flex: none; width: 56px; height: 56px; border-radius: 16px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.rx-footer-brand img { height: 40px; }
.rx-footer-brand b { color: #fff; font-size: 18px; font-weight: 800; display: block; }
.rx-footer-brand small { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-weight: 600; }
.rx-footer p { line-height: 1.7; margin: 18px 0 0; }
.rx-footer h5 { color: #fff; font-size: 15px; font-weight: 800; margin: 6px 0 18px; letter-spacing: .02em; }
.rx-flinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.rx-flinks a { color: rgba(255, 255, 255, .72); transition: color .2s; }
.rx-flinks a:hover { color: #fff; }
.rx-fcontact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rx-fcontact li { display: flex; gap: 12px; line-height: 1.55; }
.rx-fcontact i { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.rx-fcontact a { color: rgba(255, 255, 255, .85); }
.rx-fcontact a:hover { color: #fff; }
.rx-social { display: flex; gap: 10px; margin-top: 24px; }
.rx-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.rx-social a:hover { background: var(--rx-red); color: #fff; }
.rx-risk { border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; display: flex; align-items: center; gap: 14px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.rx-risk i { color: #fbbf24; font-size: 18px; }
.rx-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0 26px; font-size: 13.5px; color: rgba(255, 255, 255, .55); flex-wrap: wrap; }
.rx-bottom a { color: rgba(255, 255, 255, .8); }
.rx-bottom a:hover { color: #fff; }

/* inner pages: page hero in the RNI palette */
body.rx .page-hero { position: relative; overflow: hidden; background: var(--rx-ink); padding: 56px 0 50px; }
body.rx .page-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 37, 43, .45), transparent 65%); pointer-events: none; }
body.rx .page-hero > * { position: relative; z-index: 1; }
body.rx .page-hero-title { font-family: var(--rx-font); font-weight: 800; letter-spacing: -.02em; font-size: clamp(26px, 3vw, 36px); }
body.rx .page-hero-icon { border-radius: 14px; background: var(--rx-red); }

/* =====================================================================
   INNER PAGES — shared components in the RNI palette
   ===================================================================== */
body.rx { --bs-primary: #d4252b; --bs-primary-rgb: 212, 37, 43; --bs-link-color: #d4252b; --bs-link-color-rgb: 212, 37, 43; --bs-link-hover-color: #ae1a20; --bs-link-hover-color-rgb: 174, 26, 32; --bs-border-radius: 12px; --bs-border-radius-lg: 16px; }
body.rx :where(input, select, textarea, button, .btn, table, label, .form-control, .form-select) { font-family: inherit; }
body.rx main, body.rx .page-wrapper { background: #fff; }

/* buttons */
body.rx .btn { border-radius: 999px; font-weight: 700; padding: .55rem 1.25rem; }
body.rx .btn-sm { padding: .35rem .9rem; }
body.rx .btn-primary, body.rx .btn-danger { --bs-btn-bg: #d4252b; --bs-btn-border-color: #d4252b; --bs-btn-hover-bg: #ae1a20; --bs-btn-hover-border-color: #ae1a20; --bs-btn-active-bg: #ae1a20; --bs-btn-active-border-color: #ae1a20; --bs-btn-disabled-bg: #d4252b; --bs-btn-disabled-border-color: #d4252b; --bs-btn-focus-shadow-rgb: 212, 37, 43; }
body.rx .btn-dark, body.rx .btn-secondary { --bs-btn-bg: #16263d; --bs-btn-border-color: #16263d; --bs-btn-hover-bg: #0e1a2b; --bs-btn-hover-border-color: #0e1a2b; --bs-btn-active-bg: #0e1a2b; --bs-btn-active-border-color: #0e1a2b; }
body.rx .btn-outline-primary { --bs-btn-color: #d4252b; --bs-btn-border-color: #d4252b; --bs-btn-hover-bg: #d4252b; --bs-btn-hover-border-color: #d4252b; --bs-btn-active-bg: #ae1a20; --bs-btn-active-border-color: #ae1a20; }
body.rx .btn-outline-secondary, body.rx .btn-light { --bs-btn-color: #16263d; --bs-btn-border-color: #e7e3dd; --bs-btn-hover-bg: #f6f4f1; --bs-btn-hover-border-color: #16263d; --bs-btn-hover-color: #16263d; }
body.rx .text-primary { color: #d4252b !important; }
body.rx .bg-primary { background-color: #d4252b !important; }
body.rx .badge.bg-primary, body.rx .badge.bg-info { background-color: #16263d !important; color: #fff !important; }
body.rx .border-primary { border-color: #d4252b !important; }

/* forms */
body.rx .form-control, body.rx .form-select { border-radius: 12px; border-color: #dcd7cf; min-height: 44px; }
body.rx textarea.form-control { min-height: 110px; }
body.rx .form-control:focus, body.rx .form-select:focus { border-color: #d4252b; box-shadow: 0 0 0 .2rem rgba(212, 37, 43, .15); }
body.rx .form-check-input:checked { background-color: #d4252b; border-color: #d4252b; }
body.rx .form-check-input:focus { border-color: #d4252b; box-shadow: 0 0 0 .2rem rgba(212, 37, 43, .15); }
body.rx .input-group-text { border-radius: 12px; border-color: #dcd7cf; background: #f6f4f1; color: #16263d; }
body.rx .form-label, body.rx label { color: #1d2433; }

/* cards, tables, tabs */
body.rx .card { border-radius: 18px; border-color: #e7e3dd; box-shadow: 0 6px 20px -14px rgba(14, 26, 43, .25); }
body.rx .card-header { border-radius: 18px 18px 0 0 !important; }
body.rx .table { --bs-table-hover-bg: #f6f4f1; }
body.rx .table > thead th, body.rx .table thead.table-dark th { background: #16263d; color: #fff; border-color: #16263d; font-weight: 700; }
body.rx .nav-tabs .nav-link.active, body.rx .nav-pills .nav-link.active { color: #fff; background: #d4252b; border-color: #d4252b; }
body.rx .nav-tabs .nav-link, body.rx .nav-pills .nav-link { color: #16263d; font-weight: 600; border-radius: 999px; }
body.rx .nav-tabs { border-bottom: 0; gap: 6px; }
body.rx .accordion-button:not(.collapsed) { color: #d4252b; background: #fdecec; box-shadow: none; }
body.rx .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(212, 37, 43, .15); }
body.rx .accordion-item { border-color: #e7e3dd; }
body.rx .page-link { color: #16263d; border-radius: 10px !important; margin: 0 3px; border-color: #e7e3dd; }
body.rx .page-item.active .page-link { background: #d4252b; border-color: #d4252b; color: #fff; }
body.rx .modal-content { border-radius: 20px; border: 0; }

/* auth pages (login / register / forgot / reset): navy hero + header, red stays for the action */
body.rx .login-hero, body.rx .auth-hero { position: relative; overflow: hidden; background: var(--rx-ink) !important; }
body.rx .login-hero::after, body.rx .auth-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 37, 43, .45), transparent 65%); pointer-events: none; }
body.rx .login-hero > *, body.rx .auth-hero > * { position: relative; z-index: 1; }
body.rx .login-hero h1, body.rx .auth-hero h1 { font-weight: 800; letter-spacing: -.02em; }
body.rx .login-card-header, body.rx .auth-card-header { background: var(--rx-ink-2) !important; }
body.rx .login-section, body.rx .auth-section { background: var(--rx-bg) !important; }

/* management cards */
body.rx .menagement-box, body.rx .management-card { border-radius: 20px !important; border: 1px solid var(--rx-line) !important; box-shadow: var(--rx-shadow) !important; overflow: hidden; transition: transform .25s, box-shadow .25s; }
body.rx .menagement-box:hover, body.rx .management-card:hover { transform: translateY(-4px); box-shadow: var(--rx-shadow-lg) !important; }

/* inner page section backgrounds: warm neutral instead of blue-grey */
body.rx .contact-section, body.rx .fees-section, body.rx .downloads-section, body.rx .notices-section, body.rx .faq-section, body.rx .feedback-section, body.rx .branches-section { background: var(--rx-bg); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1199.98px) {
    .rx-svc-grid.is-4 { grid-template-columns: repeat(3, 1fr); }
    .rx-nav > li > a { padding: 0 10px; font-size: 14.5px; }
    .rx-header .rx-container { gap: 16px; }
    .rx-quick-card { grid-template-columns: repeat(3, 1fr); }
    .rx-footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .rx-footer-grid > :last-child { grid-column: span 2; }
}
@media (max-width: 991.98px) {
    .rx-nav, .rx-actions .rx-hide-md { display: none !important; }
    .rx-burger { display: inline-flex; }
    .rx-actions { margin-left: auto; }
    .rx-header .rx-container { height: 70px; }
    .rx-brand img { height: 42px; }
    .rx-hero { padding: 40px 0 120px; }
    .rx-hero-grid, .rx-about-grid, .rx-notice-grid, .rx-apps { grid-template-columns: 1fr; }
    .rx-hero-grid { gap: 40px; }
    .rx-float-a { left: 12px; top: 16px; }
    .rx-float-b { right: 12px; bottom: 16px; }
    .rx-svc-grid, .rx-svc-grid.is-4, .rx-news-grid { grid-template-columns: 1fr 1fr; }
    .rx-steps { grid-template-columns: 1fr; }
    .rx-sec { padding: 72px 0; }
    .rx-apps { padding: 40px 28px; }
    .rx-cta { padding: 40px 28px; }
}
@media (max-width: 767.98px) {
    .rx-strip-left .rx-hide-sm, .rx-strip .rx-strip-sep { display: none; }
    .rx-quick-card { grid-template-columns: repeat(2, 1fr); padding: 10px; border-radius: 20px; }
    .rx-qa { padding: 16px 14px; gap: 10px; }
    .rx-qa small { display: none; }
    .rx-svc-grid, .rx-svc-grid.is-4, .rx-news-grid, .rx-app-list { grid-template-columns: 1fr; }
    .rx-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .rx-footer-grid > :first-child, .rx-footer-grid > :last-child { grid-column: span 2; }
    .rx-hero-trust { gap: 20px; }
    .rx-hero-trust strong { font-size: 22px; }
    .rx-float { padding: 10px 12px; }
    .rx-float-ico { width: 34px; height: 34px; font-size: 15px; }
}
@media (max-width: 479.98px) {
    .rx-brand-sub { display: none; }
    .rx-brand-name { font-size: 16px; }
    .rx-actions .rx-btn-red { padding: 0 14px; }
    .rx-actions .rx-btn-red .rx-label { display: none; }
    .rx-hero-cta .rx-btn { width: 100%; }
    .rx-stat strong { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .rx *, .rx *::before, .rx *::after { transition: none !important; animation: none !important; }
}
