/* ==========================================================================
   FASTONLINESERVICES.IN - Redesign Layer (redesign.css)
   Loaded after style.css + theme.css on every page. Presentation only:
   no markup contracts or form field names depend on this file.
   Selectors are prefixed with `html body` where they must beat the
   !important rules in theme.css or inline <style> blocks in views.
   ========================================================================== */

:root {
  --rd-ink: #0a1128;
  --rd-ink-2: #1e293b;
  --rd-muted: #5b6477;
  --rd-faint: #94a3b8;
  --rd-line: #e5e8f0;
  --rd-bg: #f5f7fb;
  --rd-card: #ffffff;

  --rd-blue: #2957ff;
  --rd-blue-600: #1f47e0;
  --rd-blue-50: #eef2ff;
  --rd-violet: #7048e8;
  --rd-saffron: #f59e0b;
  --rd-saffron-50: #fff7e6;
  --rd-green: #0ea371;
  --rd-green-50: #e9f9f2;
  --rd-rose: #e11d48;

  --rd-grad: linear-gradient(135deg, #2957ff 0%, #5b4bff 55%, #7c3aed 100%);
  --rd-grad-warm: linear-gradient(135deg, #ff9a3c 0%, #f5b700 100%);
  --rd-navy-grad: linear-gradient(160deg, #0b1435 0%, #111d4d 55%, #1b1f5e 100%);

  --rd-radius: 14px;
  --rd-radius-lg: 22px;
  --rd-shadow-sm: 0 1px 2px rgba(10, 17, 40, .04), 0 2px 8px rgba(10, 17, 40, .04);
  --rd-shadow: 0 2px 4px rgba(10, 17, 40, .03), 0 12px 32px -8px rgba(10, 17, 40, .10);
  --rd-shadow-lg: 0 30px 60px -20px rgba(22, 36, 110, .28);
  --rd-glow: 0 10px 30px -8px rgba(41, 87, 255, .45);

  --rd-ease: cubic-bezier(.22, 1, .36, 1);
  --rd-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* --------------------------------------------------------------------------
   Canvas
   -------------------------------------------------------------------------- */
html body {
  background:
    radial-gradient(1200px 500px at 85% -120px, rgba(91, 75, 255, .07), transparent 60%),
    radial-gradient(900px 420px at -10% -80px, rgba(41, 87, 255, .07), transparent 60%),
    var(--rd-bg) !important;
  color: var(--rd-ink-2) !important;
}

html body a { transition: color .2s var(--rd-ease); }

html body h1, html body h2, html body h3 { letter-spacing: -0.03em; }

/* Gradient text helper */
.rd-grad-text {
  background: var(--rd-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
html body .site-header {
  background: rgba(255, 255, 255, .78) !important;
  backdrop-filter: saturate(180%) blur(18px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(18px) !important;
  border-bottom: 1px solid rgba(229, 232, 240, .7) !important;
  box-shadow: none !important;
  transition: box-shadow .3s var(--rd-ease), background .3s var(--rd-ease) !important;
}
html body .site-header.rd-scrolled {
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 8px 30px -12px rgba(10, 17, 40, .18) !important;
}

html body .brand-icon-shield {
  background: var(--rd-grad) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: var(--rd-glow) !important;
  border-radius: 12px !important;
  transition: transform .5s var(--rd-spring) !important;
}
html body .brand-logo:hover .brand-icon-shield { transform: rotate(-8deg) scale(1.06); }
html body .brand-title { color: var(--rd-ink) !important; font-weight: 800 !important; letter-spacing: -0.02em !important; }

html body .desktop-nav .nav-link,
html body .nav-menu .nav-link {
  position: relative;
  color: var(--rd-muted) !important;
  font-weight: 600 !important;
  background: transparent !important;
}
html body .desktop-nav .nav-link::after,
html body .nav-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--rd-grad);
  transform: translateX(-50%);
  transition: width .3s var(--rd-ease);
}
html body .desktop-nav .nav-link:hover,
html body .desktop-nav .nav-link.active,
html body .nav-menu .nav-link:hover { color: var(--rd-ink) !important; }
html body .desktop-nav .nav-link:hover::after,
html body .desktop-nav .nav-link.active::after,
html body .nav-menu .nav-link:hover::after { width: 18px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
html body .btn {
  border-radius: 12px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  transition: transform .25s var(--rd-ease), box-shadow .25s var(--rd-ease), background .25s var(--rd-ease), color .2s, border-color .2s !important;
}
html body .btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--rd-grad) !important;
  background-size: 160% 160% !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 6px 18px -6px rgba(41, 87, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}
html body .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--rd-ease);
  pointer-events: none;
}
html body .btn-primary:hover {
  transform: translateY(-2px) !important;
  background-position: 100% 50% !important;
  box-shadow: 0 14px 28px -10px rgba(41, 87, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}
html body .btn-primary:hover::after { transform: translateX(120%); }
html body .btn-primary:active { transform: translateY(0) scale(.98) !important; }

html body .btn-outline {
  background: #fff !important;
  color: var(--rd-ink) !important;
  border: 1.5px solid var(--rd-line) !important;
  box-shadow: var(--rd-shadow-sm) !important;
}
html body .btn-outline:hover {
  border-color: rgba(41, 87, 255, .45) !important;
  color: var(--rd-blue) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px -12px rgba(41, 87, 255, .45) !important;
}

html body .btn[disabled],
html body .btn.btn-unavailable {
  background: #eef0f5 !important;
  color: var(--rd-faint) !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: not-allowed;
}
html body .btn[disabled]::after { display: none; }

/* --------------------------------------------------------------------------
   Page shells, headers, cards
   -------------------------------------------------------------------------- */
html body .page-container,
html body main.container {
  animation: rdPageIn .6s var(--rd-ease) both;
}
@keyframes rdPageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

html body .page-header-box { text-align: center; margin-bottom: 2rem; }
html body .page-header-box h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem) !important;
  font-weight: 800 !important;
}
html body .page-header-box p { color: var(--rd-muted) !important; }

html body .form-card,
html body .stats-card {
  background: var(--rd-card) !important;
  border: 1px solid var(--rd-line) !important;
  border-radius: var(--rd-radius-lg) !important;
  box-shadow: var(--rd-shadow) !important;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
html body .form-label {
  color: var(--rd-ink-2) !important;
  font-weight: 700 !important;
  font-size: .8125rem !important;
  letter-spacing: .01em;
}
html body .form-control,
html body .form-input,
html body .form-control-custom,
html body select.form-control,
html body textarea.form-control {
  border: 1.5px solid var(--rd-line) !important;
  border-radius: 12px !important;
  background: #fbfcfe !important;
  color: var(--rd-ink) !important;
  font-size: .9375rem !important;
  transition: border-color .2s var(--rd-ease), box-shadow .2s var(--rd-ease), background .2s !important;
}
html body input.form-control,
html body input.form-control-custom,
html body select.form-control { min-height: 48px; }
html body .form-control:hover,
html body .form-control-custom:hover { border-color: #cfd5e3 !important; }
html body .form-control:focus,
html body .form-input:focus,
html body .form-control-custom:focus {
  outline: none !important;
  background: #fff !important;
  border-color: var(--rd-blue) !important;
  box-shadow: 0 0 0 4px rgba(41, 87, 255, .12) !important;
}
html body .form-control::placeholder { color: #a3adbf !important; }

html body .alert {
  border-radius: 14px !important;
  border-width: 1px !important;
  animation: rdPageIn .45s var(--rd-ease) both;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
html body .site-footer {
  position: relative;
  background: var(--rd-navy-grad) !important;
  color: #aab3cf !important;
  border-top: 0 !important;
  margin-top: 4rem;
  overflow: hidden;
}
html body .site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #2957ff, #7c3aed, #f59e0b, #2957ff);
  background-size: 300% 100%;
  animation: rdFlow 12s linear infinite;
}
html body .site-footer::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -260px;
  background: radial-gradient(circle, rgba(91, 75, 255, .28), transparent 65%);
  pointer-events: none;
}
@keyframes rdFlow { to { background-position: 300% 0; } }

html body .site-footer h4,
html body .site-footer h5 { color: #fff !important; }
html body .site-footer p,
html body .site-footer .footer-brand div { color: #aab3cf !important; }
html body .site-footer .footer-links a { color: #c3cae0 !important; }
html body .site-footer .footer-links a:hover { color: #fff !important; padding-left: 4px; }
html body .footer-disclaimer-card {
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  color: #aab3cf !important;
  border-radius: 16px !important;
}
html body .footer-disclaimer-card strong { color: #fff !important; }
html body .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08) !important;
  color: #8390b3 !important;
}

/* --------------------------------------------------------------------------
   Scroll reveal utility (activated by redesign.js)
   -------------------------------------------------------------------------- */
.rd-js .rd-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--rd-ease), transform .7s var(--rd-ease);
  transition-delay: var(--rd-delay, 0ms);
}
.rd-js .rd-reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   REGISTER PAGE
   ========================================================================== */
html body .rd-auth-wrap {
  width: calc(100% - 2rem);
  max-width: 1120px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--rd-line);
  box-shadow: var(--rd-shadow-lg);
  overflow: hidden;
  animation: rdPageIn .7s var(--rd-ease) both;
  padding: 0;
}

/* Left: story panel */
.rd-auth-aside {
  position: relative;
  padding: 2.75rem 2.5rem;
  background: var(--rd-navy-grad);
  color: #c9d1ea;
  overflow: hidden;
  isolation: isolate;
}
.rd-auth-aside .rd-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .55;
  z-index: -1;
  animation: rdFloat 14s ease-in-out infinite;
}
.rd-auth-aside .rd-orb-a { width: 320px; height: 320px; background: #2957ff; top: -120px; right: -110px; }
.rd-auth-aside .rd-orb-b { width: 260px; height: 260px; background: #7c3aed; bottom: -90px; left: -90px; animation-delay: -5s; }
.rd-auth-aside .rd-orb-c { width: 140px; height: 140px; background: #f59e0b; bottom: 30%; right: -40px; opacity: .3; animation-delay: -9s; }
@keyframes rdFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -22px) scale(1.06); }
  66% { transform: translate(-16px, 14px) scale(.96); }
}
.rd-auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.rd-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #e3e8ff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rd-auth-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
  animation: rdPulse 2s infinite;
}
@keyframes rdPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
html body .rd-auth-aside h2 {
  color: #fff !important;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem) !important;
  line-height: 1.12;
  margin: 1.1rem 0 .75rem;
  font-weight: 800 !important;
}
.rd-auth-aside h2 .serif-accent { color: #ffd27a !important; }
.rd-auth-aside > p { color: #aeb8d8; font-size: .95rem; line-height: 1.6; margin: 0 0 1.75rem; }

.rd-journey { list-style: none; margin: 0 0 1.75rem; padding: 0; position: relative; }
.rd-journey::before {
  content: "";
  position: absolute;
  left: 17px; top: 18px; bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .06));
}
.rd-journey li {
  position: relative;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .55rem 0;
  opacity: 0;
  animation: rdSlideIn .6s var(--rd-ease) forwards;
  animation-delay: calc(var(--i) * 120ms + 250ms);
}
@keyframes rdSlideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.rd-journey .num {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .875rem;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  position: relative;
  z-index: 1;
}
.rd-journey li.is-current .num { background: var(--rd-grad); border-color: transparent; box-shadow: var(--rd-glow); }
.rd-journey strong { display: block; color: #fff; font-size: .95rem; }
.rd-journey span { font-size: .8125rem; color: #9ea9cc; }

.rd-perks { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.5rem; }
.rd-perk {
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem .8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #dfe5fb;
  font-size: .8125rem;
  font-weight: 600;
}
.rd-perk svg { flex-shrink: 0; color: #7dd3fc; }
.rd-auth-note { font-size: .75rem; color: #8a95ba; line-height: 1.5; display: flex; gap: .5rem; }
.rd-auth-note svg { flex-shrink: 0; margin-top: 1px; }

/* Right: form panel */
.rd-auth-main { padding: 2.5rem 2.75rem; }
.rd-auth-head h1 {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  margin: 0 0 .35rem !important;
}
.rd-auth-head p { color: var(--rd-muted); margin: 0 0 1.5rem; font-size: .9375rem; }

.rd-stepper {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.5rem;
  padding: .5rem;
  border-radius: 14px;
  background: var(--rd-bg);
  border: 1px solid var(--rd-line);
}
.rd-stepper .st {
  flex: 1;
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .6rem;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--rd-faint);
  white-space: nowrap;
}
.rd-stepper .st b {
  width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: .72rem;
  background: #e7eaf2; color: var(--rd-muted);
}
.rd-stepper .st.is-on { background: #fff; color: var(--rd-ink); box-shadow: var(--rd-shadow-sm); }
.rd-stepper .st.is-on b { background: var(--rd-grad); color: #fff; }

.rd-fee-note {
  display: flex; gap: .75rem; align-items: center;
  padding: .85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8ea, #fff3dc);
  border: 1px solid #fde3a7;
  color: #7a4b00;
  font-size: .85rem;
  margin-bottom: 1.5rem;
}
.rd-fee-note.is-free { background: var(--rd-green-50); border-color: #b7ebd5; color: #0b6b4b; }
.rd-fee-note .amt {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.05rem;
  padding: .4rem .7rem;
  border-radius: 10px;
  background: #fff;
  color: #b45309;
  box-shadow: var(--rd-shadow-sm);
}

.rd-fieldset { border: 0; margin: 0 0 1.25rem; padding: 0; }
.rd-legend {
  display: flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--rd-blue);
  margin-bottom: .85rem;
  padding: 0;
}
.rd-legend::after { content: ""; flex: 1; height: 1px; background: var(--rd-line); }

.rd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

html body .rd-auth-main .form-group { margin-bottom: 1rem; }

.rd-input-icon { position: relative; }
.rd-input-icon > svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #a3adbf; pointer-events: none;
  transition: color .2s;
}
html body .rd-input-icon > .form-control { padding-left: 2.6rem !important; }
.rd-input-icon:focus-within > svg { color: var(--rd-blue); }

.rd-prefix { position: relative; }
.rd-prefix > span {
  position: absolute; left: 1px; top: 1px; bottom: 1px;
  display: flex; align-items: center;
  padding: 0 .75rem;
  font-weight: 700; font-size: .875rem;
  color: var(--rd-muted);
  border-right: 1.5px solid var(--rd-line);
  border-radius: 11px 0 0 11px;
  background: #f1f4f9;
}
html body .rd-prefix > .form-control { padding-left: 4rem !important; }

.rd-pw { position: relative; }
html body .rd-pw .form-control { padding-right: 2.9rem !important; }
.rd-pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  border: 0; border-radius: 9px;
  background: transparent; color: var(--rd-faint);
  display: grid; place-items: center;
  cursor: pointer;
}
.rd-pw-toggle:hover { background: var(--rd-bg); color: var(--rd-ink); }

.rd-meter { display: flex; gap: 4px; margin-top: .5rem; }
.rd-meter i {
  flex: 1; height: 4px; border-radius: 4px;
  background: #e7eaf2;
  transition: background .3s var(--rd-ease);
}
.rd-meter[data-score="1"] i:nth-child(-n+1) { background: #ef4444; }
.rd-meter[data-score="2"] i:nth-child(-n+2) { background: #f59e0b; }
.rd-meter[data-score="3"] i:nth-child(-n+3) { background: #22c55e; }
.rd-meter[data-score="4"] i:nth-child(-n+4) { background: #0ea371; }
.rd-hint { font-size: .75rem; color: var(--rd-faint); margin-top: .35rem; min-height: 1em; }
.rd-hint.ok { color: var(--rd-green); }
.rd-hint.bad { color: var(--rd-rose); }

.rd-check {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--rd-line);
  background: #fbfcfe;
  font-size: .85rem;
  color: var(--rd-muted);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.rd-check:hover { border-color: #cfd5e3; }
.rd-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--rd-blue); flex-shrink: 0; }
.rd-check:has(input:checked) { border-color: rgba(41, 87, 255, .4); background: var(--rd-blue-50); }
.rd-check a { font-weight: 700; color: var(--rd-blue); }

html body .rd-submit {
  width: 100%;
  margin-top: 1.25rem;
  min-height: 54px;
  font-size: 1rem !important;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
}
html body .rd-submit svg { transition: transform .3s var(--rd-ease); }
html body .rd-submit:hover svg { transform: translateX(4px); }

.rd-auth-foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: .875rem;
  color: var(--rd-muted);
}
.rd-auth-foot a { font-weight: 700; color: var(--rd-blue); }
.rd-secure-row {
  display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap;
  margin-top: 1rem;
  font-size: .72rem; font-weight: 600; color: var(--rd-faint);
}
.rd-secure-row span { display: inline-flex; align-items: center; gap: .35rem; }

/* Upload box used by the local preview register form */
html body .rd-auth-main .compact-upload-box {
  border: 1.5px dashed #cdd5e5 !important;
  border-radius: 14px !important;
  background: #fbfcfe !important;
}

@media (max-width: 900px) {
  html body .rd-auth-wrap { grid-template-columns: 1fr; margin-top: 1rem; border-radius: 22px; }
  .rd-auth-aside { padding: 1.75rem 1.5rem; }
  .rd-auth-aside .rd-perks, .rd-auth-aside .rd-auth-note { display: none; }
  .rd-journey { display: flex; gap: .5rem; margin: 0; }
  .rd-journey::before { display: none; }
  .rd-journey li { flex: 1; flex-direction: column; gap: .4rem; padding: 0; }
  .rd-journey .num { flex: none; width: 36px; }
  .rd-journey span { display: none; }
  .rd-journey strong { font-size: .78rem; }
  .rd-auth-aside > p { margin-bottom: 1.1rem; }
  .rd-auth-main { padding: 1.75rem 1.25rem; }
}
@media (max-width: 560px) {
  .rd-grid-2 { grid-template-columns: 1fr; }
  .rd-stepper .st span { display: none; }
  .rd-stepper .st { justify-content: center; }
}

/* ==========================================================================
   SERVICES PANEL
   ========================================================================== */
html body .services-page-container { padding-top: 1.75rem !important; }

.rd-svc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}
.rd-svc-intro {
  position: relative;
  padding: 2rem 2rem 1.75rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--rd-line);
  box-shadow: var(--rd-shadow);
  overflow: hidden;
  isolation: isolate;
}
.rd-svc-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 380px; height: 380px;
  right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(91, 75, 255, .16), transparent 65%);
}
.rd-svc-intro .rd-hello {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8125rem; font-weight: 700;
  color: var(--rd-blue);
  background: var(--rd-blue-50);
  padding: .35rem .75rem;
  border-radius: 999px;
}
.rd-svc-intro .rd-hello .wave { display: inline-block; transform-origin: 70% 70%; animation: rdWave 2.4s ease-in-out 1s 2; }
@keyframes rdWave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}
html body .rd-svc-intro h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem) !important;
  font-weight: 800 !important;
  margin: .85rem 0 .5rem !important;
  line-height: 1.12;
}
.rd-svc-intro p { color: var(--rd-muted); margin: 0; max-width: 46ch; }
.rd-svc-quick { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.rd-svc-quick a {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8125rem; font-weight: 700;
  padding: .45rem .8rem;
  border-radius: 10px;
  background: var(--rd-bg);
  border: 1px solid var(--rd-line);
  color: var(--rd-ink-2);
  text-decoration: none;
}
.rd-svc-quick a:hover { border-color: rgba(41, 87, 255, .4); color: var(--rd-blue); }

/* Wallet card, restyled as a payment card */
html body .services-wallet-card.rd-wallet {
  position: relative;
  margin: 0 !important;
  padding: 1.6rem 1.6rem !important;
  border-radius: 24px !important;
  background: var(--rd-navy-grad) !important;
  border: 0 !important;
  color: #fff;
  box-shadow: var(--rd-shadow-lg) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  gap: 1.25rem !important;
  overflow: hidden;
  isolation: isolate;
}
html body .services-wallet-card.rd-wallet::before {
  content: "";
  position: absolute; z-index: -1;
  width: 260px; height: 260px;
  right: -80px; top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .7), transparent 65%);
  animation: rdFloat 12s ease-in-out infinite;
}
html body .services-wallet-card.rd-wallet::after {
  content: "";
  position: absolute; z-index: -1;
  width: 200px; height: 200px;
  left: -70px; bottom: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 87, 255, .7), transparent 65%);
  animation: rdFloat 15s ease-in-out -4s infinite;
}
html body .rd-wallet .services-wallet-title { color: #aeb8d8 !important; letter-spacing: .12em; font-size: .7rem !important; font-weight: 800; }
html body .rd-wallet .services-wallet-available,
html body .rd-wallet .services-wallet-zero { color: #c9d1ea !important; font-size: .75rem !important; }
html body .rd-wallet .services-wallet-label-row { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
html body .rd-wallet .services-wallet-amount-wrap { color: #fff !important; margin-top: .6rem; display: flex; align-items: baseline; gap: .2rem; }
html body .rd-wallet .services-wallet-currency { color: #ffd27a !important; font-size: 1.4rem !important; font-weight: 700; }
html body .rd-wallet .services-wallet-num { color: #fff !important; font-size: 2.4rem !important; font-weight: 800 !important; letter-spacing: -0.03em; }
html body .rd-wallet .services-wallet-right { display: flex !important; flex-direction: row !important; gap: .6rem !important; width: 100%; }
html body .rd-wallet .services-wallet-right .btn { flex: 1; justify-content: center; }
html body .rd-wallet .services-wallet-trans-btn {
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  color: #fff !important;
  box-shadow: none !important;
}
html body .rd-wallet .services-wallet-trans-btn:hover { background: rgba(255, 255, 255, .16) !important; }
html body .rd-wallet .services-wallet-btn { background: #fff !important; color: var(--rd-ink) !important; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5) !important; }
html body .rd-wallet .services-wallet-btn::after { display: none; }
.rd-wallet-chip {
  position: absolute; right: 1.5rem; top: 1.5rem;
  width: 42px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, #ffe29a, #f5b700);
  opacity: .9;
}
.rd-wallet-chip::before, .rd-wallet-chip::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: 1px; background: rgba(120, 80, 0, .35);
}
.rd-wallet-chip::before { top: 10px; }
.rd-wallet-chip::after { bottom: 10px; }

/* Toolbar: search + category chips */
.rd-svc-toolbar {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .6rem;
  margin: 0 0 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--rd-line);
  box-shadow: var(--rd-shadow-sm);
}
.rd-svc-search { position: relative; flex: 0 0 300px; }
.rd-svc-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--rd-faint); pointer-events: none; }
.rd-svc-search input {
  width: 100%;
  height: 44px;
  padding: 0 1rem 0 2.6rem;
  border-radius: 12px;
  border: 1.5px solid var(--rd-line);
  background: #fbfcfe;
  font: inherit;
  font-size: .9rem;
  color: var(--rd-ink);
  transition: border-color .2s, box-shadow .2s;
}
.rd-svc-search input:focus { outline: none; border-color: var(--rd-blue); box-shadow: 0 0 0 4px rgba(41, 87, 255, .12); background: #fff; }
.rd-svc-search kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font: 700 .7rem/1 inherit; color: var(--rd-faint);
  border: 1px solid var(--rd-line); border-radius: 6px; padding: .2rem .4rem; background: #fff;
}
.rd-chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.rd-chips::-webkit-scrollbar { display: none; }
.rd-chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: .4rem;
  height: 38px;
  padding: 0 .9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--rd-muted);
  font: inherit; font-size: .8125rem; font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.rd-chip:hover { background: var(--rd-bg); color: var(--rd-ink); }
.rd-chip.is-on { background: var(--rd-ink); color: #fff; }
.rd-chip .c {
  font-size: .68rem;
  padding: .1rem .4rem;
  border-radius: 6px;
  background: rgba(10, 17, 40, .07);
}
.rd-chip.is-on .c { background: rgba(255, 255, 255, .18); }

/* Service cards */
html body .services-page-container .services-grid {
  gap: 18px !important;
  margin-bottom: 2.5rem !important;
}
html body .services-page-container .service-card {
  --cat: var(--rd-blue);
  --cat-soft: var(--rd-blue-50);
  position: relative;
  padding: 1.4rem !important;
  border-radius: 20px !important;
  background: #fff !important;
  border: 1px solid var(--rd-line) !important;
  box-shadow: var(--rd-shadow-sm) !important;
  transition: transform .35s var(--rd-ease), box-shadow .35s var(--rd-ease), border-color .35s !important;
  overflow: hidden;
  isolation: isolate;
}
html body .services-page-container .service-card::before {
  content: "";
  position: absolute; z-index: -1;
  inset: 0 0 auto 0; height: 110px;
  background: linear-gradient(180deg, var(--cat-soft), transparent);
  opacity: .8;
  transition: opacity .35s;
}
html body .services-page-container .service-card::after {
  content: "";
  position: absolute;
  top: 0; left: 1.4rem; right: 1.4rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--cat);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--rd-ease);
}
html body .services-page-container .service-card:hover {
  transform: translateY(-5px) !important;
  border-color: color-mix(in srgb, var(--cat) 35%, var(--rd-line)) !important;
  box-shadow: 0 22px 40px -18px color-mix(in srgb, var(--cat) 45%, transparent) !important;
}
html body .services-page-container .service-card:hover::after { transform: scaleX(1); }
html body .services-page-container .service-icon-box {
  width: 48px !important; height: 48px !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--cat) !important;
  border: 1px solid color-mix(in srgb, var(--cat) 22%, transparent) !important;
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--cat) 60%, transparent) !important;
  transition: transform .45s var(--rd-spring) !important;
}
html body .services-page-container .service-card:hover .service-icon-box { transform: rotate(-6deg) scale(1.08); }
html body .services-page-container .service-title {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  color: var(--rd-ink) !important;
  margin-top: 1rem !important;
  line-height: 1.3 !important;
}
html body .services-page-container .service-desc { color: var(--rd-muted) !important; font-size: .85rem !important; line-height: 1.55 !important; }
html body .services-page-container .service-chip {
  background: var(--rd-bg) !important;
  border: 1px solid var(--rd-line) !important;
  color: var(--rd-muted) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
html body .services-page-container .service-fee-box {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  padding: .85rem 0 .9rem !important;
  margin-top: auto !important;
  border-top: 1px dashed var(--rd-line) !important;
  background: transparent !important;
}
html body .services-page-container .fee-label { color: var(--rd-faint) !important; font-size: .7rem !important; letter-spacing: .08em; text-transform: uppercase; font-weight: 800 !important; }
html body .services-page-container .fee-amount { color: var(--rd-ink) !important; font-size: 1.35rem !important; font-weight: 800 !important; letter-spacing: -0.02em; }
html body .services-page-container .service-apply-btn,
html body .services-page-container .service-card .btn-primary { width: 100% !important; justify-content: center !important; min-height: 44px; }

/* Category colour themes (data-cat set by redesign.js) */
html body .service-card[data-cat="vehicle"]  { --cat: #2957ff; --cat-soft: #eef2ff; }
html body .service-card[data-cat="identity"] { --cat: #7048e8; --cat-soft: #f3efff; }
html body .service-card[data-cat="licence"]  { --cat: #0891b2; --cat-soft: #e8f8fc; }
html body .service-card[data-cat="citizen"]  { --cat: #0ea371; --cat-soft: #e9f9f2; }
html body .service-card[data-cat="business"] { --cat: #d97706; --cat-soft: #fff5e6; }

html body .service-card.rd-hide { display: none !important; }

.rd-svc-empty {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 20px;
  border: 1.5px dashed var(--rd-line);
  color: var(--rd-muted);
  margin-bottom: 2rem;
}
.rd-svc-empty.is-on { display: block; animation: rdPageIn .4s var(--rd-ease) both; }
.rd-svc-empty strong { display: block; color: var(--rd-ink); font-size: 1.05rem; margin-bottom: .25rem; }

html body .services-page-container .how-it-works-section,
html body .services-page-container .support-banner {
  border-radius: 24px !important;
  border: 1px solid var(--rd-line) !important;
  box-shadow: var(--rd-shadow-sm) !important;
}
html body .services-page-container .support-banner {
  background: var(--rd-navy-grad) !important;
  color: #fff !important;
}
html body .services-page-container .support-banner h3 { color: #fff !important; }
html body .services-page-container .support-banner p { color: #aeb8d8 !important; }
html body .services-page-container .support-btn { background: #fff !important; color: var(--rd-ink) !important; }

@media (max-width: 900px) {
  .rd-svc-hero { grid-template-columns: 1fr; }
  .rd-svc-toolbar { flex-direction: column; align-items: stretch; top: 64px; }
  .rd-svc-search { flex: none; }
}
@media (max-width: 560px) {
  .rd-svc-intro { padding: 1.5rem 1.25rem; }
  .rd-svc-search kbd { display: none; }
}

/* --------------------------------------------------------------------------
   Reduced motion: keep everything visible and still
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rd-js .rd-reveal { opacity: 1; transform: none; }
  .rd-journey li { opacity: 1; }
}

/* Keep anchored sections clear of the sticky header */
html body section[id], html body [id="notifications"] { scroll-margin-top: 84px; }

/* Header spacing: keep brand, nav and account actions from touching */
@media (min-width: 768px) {
  html body .site-header .nav-container { gap: 1.25rem !important; }
  html body .site-header .nav-container > nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
}
@media (min-width: 768px) and (max-width: 1180px) {
  html body .profile-name-desktop,
  html body .wallet-label-desktop,
  html body .user-status-dot { display: none !important; }
  html body .desktop-nav .nav-link,
  html body .nav-menu .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; font-size: .875rem !important; }
}
html body .nav-menu .nav-link { white-space: nowrap; }
html body .header-actions { flex-shrink: 0; }

/* Dashboard hero sits on a dark gradient; theme.css forces headings dark, so restore white here */
html body .citizen-hero-card h1,
html body .citizen-hero-card .citizen-hero-name { color: #fff !important; }

/* Dashboard wallet bar: theme.css's generic .card rule turned it white while its text stayed white. */
html body .card.dashboard-wallet-bar {
  position: relative;
  overflow: hidden;
  background: var(--rd-navy-grad) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 22px !important;
  box-shadow: var(--rd-shadow-lg) !important;
}
html body .card.dashboard-wallet-bar::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  right: -60px; top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .55), transparent 65%);
  pointer-events: none;
}
html body .card.dashboard-wallet-bar > * { position: relative; }

/* ==========================================================================
   FORGOT PASSWORD
   ========================================================================== */
html body .rd-auth-wrap.rd-auth-narrow { max-width: 980px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.rd-done { text-align: center; padding: 2rem 0 1rem; animation: rdPageIn .6s var(--rd-ease) both; }
.rd-done-icon {
  width: 72px; height: 72px; margin: 0 auto 1.25rem;
  border-radius: 22px;
  display: grid; place-items: center;
  background: var(--rd-green-50); color: var(--rd-green);
  box-shadow: 0 0 0 10px rgba(14, 163, 113, .08);
  animation: rdPop .6s var(--rd-spring) both .15s;
}
@keyframes rdPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
html body .rd-done h1 { font-size: 1.6rem !important; font-weight: 800 !important; margin: 0 0 .5rem !important; }
.rd-done p { color: var(--rd-muted); max-width: 42ch; margin: 0 auto 1.5rem; line-height: 1.6; }
.rd-done-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) {
  html body .rd-auth-wrap.rd-auth-narrow { grid-template-columns: 1fr; }
}

/* Logo-only brand mark in the site header and mobile menu */
html body .rd-brand-mark {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  border-radius: 14px;
}
html body .rd-brand-mark img {
  display: block;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 8px 16px rgba(41, 87, 255, .35));
  transition: transform .5s var(--rd-spring);
}
html body .rd-brand-mark:hover img { transform: rotate(-6deg) scale(1.06); }
html body .rd-brand-mark:focus-visible { outline: 3px solid rgba(41, 87, 255, .4); outline-offset: 3px; }
html body .mobile-drawer-header .rd-brand-mark img { width: 40px; height: 40px; }
@media (max-width: 767px) {
  html body .rd-brand-mark img { width: 40px; height: 40px; }
}

/* style.css makes every <input> full-width and 44px tall on phones, which
   blew checkboxes and radios up into large empty boxes. Keep them control-sized. */
html body input[type="checkbox"],
html body input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 0 !important;
  max-width: none !important;
  flex: 0 0 18px !important;
  margin-top: 2px;
  padding: 0 !important;
}
.rd-check span { flex: 1 1 auto; min-width: 0; line-height: 1.5; }
