/* =====================================================================
   HUNTX 3D Royal: midnight navy & champagne gold skin for DatenOrt (based on WHMCS Nexus)
   Loaded after theme.min.css. Palette tokens live in custom.css.
   ===================================================================== */

:root {
    --rv-ink: #060b14;
    --rv-ink-2: #08111f;
    --rv-violet: #3d6aa8;
    --rv-violet-hi: #8db4e3;
    --rv-violet-lo: #1c3358;
    --rv-gold: #d8b67a;
    --rv-gold-hi: #f1d8ae;
    --rv-gold-lo: #8f723f;
    --rv-text: #e8eef7;
    --rv-text-dim: #9fb0c8;
    --rv-glass: linear-gradient(150deg, rgba(20, 34, 58, 0.86) 0%, rgba(14, 24, 42, 0.9) 60%, rgba(9, 16, 29, 0.93) 100%);
    --rv-glass-flat: rgba(14, 24, 42, 0.82);
    --rv-line: rgba(216, 182, 122, 0.2);
    --rv-line-soft: rgba(130, 165, 215, 0.16);
    --rv-gold-grad: linear-gradient(135deg, #8f723f 0%, #d8b67a 22%, #f6e2bd 48%, #d8b67a 70%, #a8874f 100%);
    --rv-violet-grad: linear-gradient(135deg, #1c3358 0%, #2f5487 55%, #4b78b5 100%);
    --rv-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(216, 182, 122, 0.08) inset;
    --rv-glow-gold: 0 0 0 1px rgba(216, 182, 122, 0.45), 0 10px 40px -8px rgba(216, 182, 122, 0.35);
    --rv-glow-violet: 0 0 0 1px rgba(120, 160, 215, 0.45), 0 10px 40px -8px rgba(64, 108, 170, 0.55);
    --rv-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --rv-font: "Outfit", "Vazirmatn", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --rv-font-display: "Outfit", "Vazirmatn", system-ui, sans-serif;
}

/* ---------- Base ---------- */
html {
    background: var(--rv-ink);
    scrollbar-color: #2d4a75 var(--rv-ink);
}
body.royal-theme,
body {
    background: transparent !important;
    color: var(--rv-text);
    font-family: var(--rv-font);
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(216, 182, 122, 0.85); color: #0b1220; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--rv-ink); }
::-webkit-scrollbar-thumb { background: linear-gradient(#2f4f7f, #142744); border-radius: 10px; border: 2px solid var(--rv-ink); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--rv-gold), #2f4f7f); }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #fff;
    font-family: var(--rv-font);
    font-weight: 600;
    letter-spacing: 0.01em;
}
a { color: var(--rv-gold-hi); transition: color 0.3s var(--rv-ease); }
a:hover { color: #fcedd5; }
.text-muted, small.text-muted { color: var(--rv-text-dim) !important; }
.text-dark, .text-body { color: var(--rv-text) !important; }
hr { border-top-color: var(--rv-line-soft); }
code, pre { color: var(--rv-gold-hi); background: rgba(0, 0, 0, 0.35); border-radius: 6px; }
pre { padding: 1rem; border: 1px solid var(--rv-line-soft); }
.bg-white, .bg-light { background: var(--rv-glass-flat) !important; color: var(--rv-text); }
.border, .border-top, .border-bottom, .border-left, .border-right { border-color: var(--rv-line-soft) !important; }

#main-body, section#main-body {
    background: transparent;
    padding-bottom: 60px;
}
/* The header holds dropdowns, so it sits above page content; modals live at body level. */
header.header { position: relative; z-index: 20; }
.master-breadcrumb, footer.footer, .royal-hero { position: relative; }

/* ---------- Cinematic background scene ---------- */
.royal-scene {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(120% 80% at 50% -10%, #11213d 0%, rgba(16, 32, 62, 0) 60%),
        radial-gradient(90% 70% at 100% 100%, #0c172b 0%, rgba(12, 24, 46, 0) 70%),
        var(--rv-ink);
}
.royal-aurora {
    position: absolute;
    border-radius: 50%;
    opacity: 0.55;
    will-change: transform;
}
.royal-aurora-1 {
    width: 70vmax; height: 70vmax; left: -20vmax; top: -30vmax;
    background: radial-gradient(circle, rgba(64, 108, 170, 0.55) 0%, rgba(64, 108, 170, 0) 62%);
    animation: rv-drift-1 28s ease-in-out infinite alternate;
}
.royal-aurora-2 {
    width: 60vmax; height: 60vmax; right: -22vmax; top: 10vh;
    background: radial-gradient(circle, rgba(216, 182, 122, 0.22) 0%, rgba(216, 182, 122, 0) 60%);
    animation: rv-drift-2 34s ease-in-out infinite alternate;
}
.royal-aurora-3 {
    width: 55vmax; height: 55vmax; left: 20vw; bottom: -35vmax;
    background: radial-gradient(circle, rgba(40, 75, 130, 0.5) 0%, rgba(40, 75, 130, 0) 62%);
    animation: rv-drift-3 40s ease-in-out infinite alternate;
}
.royal-stars {
    position: absolute;
    inset: -50% 0 0 0;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, 0.85), transparent 60%),
        radial-gradient(1px 1px at 32% 72%, rgba(241, 220, 174, 0.8), transparent 60%),
        radial-gradient(1.4px 1.4px at 58% 34%, rgba(255, 255, 255, 0.7), transparent 60%),
        radial-gradient(1px 1px at 76% 62%, rgba(170, 200, 240, 0.85), transparent 60%),
        radial-gradient(1.2px 1.2px at 88% 14%, rgba(241, 220, 174, 0.75), transparent 60%),
        radial-gradient(1px 1px at 44% 90%, rgba(255, 255, 255, 0.6), transparent 60%),
        radial-gradient(1px 1px at 6% 52%, rgba(170, 200, 240, 0.7), transparent 60%);
    background-size: 420px 420px;
    animation: rv-stars 120s linear infinite, rv-twinkle 6s ease-in-out infinite alternate;
    opacity: 0.7;
}
.royal-stars-2 {
    background-size: 260px 260px;
    background-position: 80px 40px;
    opacity: 0.4;
    animation: rv-stars 80s linear infinite, rv-twinkle 4.5s ease-in-out -2s infinite alternate;
}
.royal-grid {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 46vh;
    perspective: 420px;
    perspective-origin: 50% 0%;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
    opacity: 0.45;
}
.royal-grid-plane {
    position: absolute;
    left: -50%; right: -50%; bottom: 0;
    height: 260%;
    transform: rotateX(68deg);
    transform-origin: 50% 100%;
    background-image:
        linear-gradient(to right, rgba(216, 182, 122, 0.35) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(120, 160, 215, 0.4) 1px, transparent 1px);
    background-size: 64px 64px;
    animation: rv-grid 6s linear infinite;
}
.royal-dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.royal-vignette {
    position: absolute; inset: 0;
    background: radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
}

@keyframes rv-drift-1 { to { transform: translate3d(14vw, 10vh, 0) scale(1.15); } }
@keyframes rv-drift-2 { to { transform: translate3d(-12vw, 18vh, 0) scale(0.9); } }
@keyframes rv-drift-3 { to { transform: translate3d(-18vw, -8vh, 0) scale(1.2); } }
@keyframes rv-stars { to { transform: translate3d(0, 420px, 0); } }
@keyframes rv-twinkle { from { opacity: 0.35; } to { opacity: 0.8; } }
@keyframes rv-grid { to { background-position: 0 64px, 0 64px; } }

/* ---------- Header ---------- */
header.header {
    background: linear-gradient(180deg, rgba(8, 14, 26, 0.92), rgba(11, 19, 34, 0.72));
    border-bottom: 1px solid var(--rv-line);
    box-shadow: 0 10px 40px -20px rgba(64, 108, 170, 0.6);
}
/* blur lives on a pseudo element so the header itself never becomes a containing block for fixed children */
header.header::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}
header.header::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--rv-gold) 30%, var(--rv-gold-hi) 50%, var(--rv-gold) 70%, transparent);
    background-size: 200% 100%;
    opacity: 0.8;
    animation: rv-sheen-line 8s linear infinite;
}
@keyframes rv-sheen-line { from { background-position: 200% 0; } to { background-position: -200% 0; } }

header.header .topbar {
    background: linear-gradient(90deg, rgba(18, 32, 56, 0.85), rgba(12, 22, 40, 0.85));
    border-bottom: 1px solid var(--rv-line-soft);
    font-size: 0.85rem;
}
header.header .topbar .btn,
header.header .topbar .active-client .btn,
header.header .topbar .active-client .input-group-text { color: rgba(232, 238, 247, 0.78); }
header.header .topbar .btn:hover { color: var(--rv-gold-hi); }
header.header .topbar .active-client .btn.btn-active-client span { border-bottom-color: rgba(216, 182, 122, 0.6); }

header.header .navbar-brand {
    font-family: var(--rv-font-display);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    background: var(--rv-gold-grad);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rv-gold-shift 7s ease-in-out infinite alternate;
    filter: drop-shadow(0 2px 12px rgba(216, 182, 122, 0.35));
}
header.header .navbar-brand .logo-img { -webkit-text-fill-color: initial; filter: drop-shadow(0 4px 18px rgba(120, 160, 215, 0.45)); }
@keyframes rv-gold-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

header.header .navbar a,
header.header .navbar-light .navbar-nav .nav-link { color: rgba(232, 238, 247, 0.82); }
header.header .main-navbar-wrapper .navbar-nav > li > .nav-link,
header.header #nav > li > a {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    transition: color 0.35s var(--rv-ease);
}
header.header .main-navbar-wrapper .navbar-nav > li > .nav-link::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    border-radius: 2px;
    background: var(--rv-gold-grad);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.45s var(--rv-ease);
    box-shadow: 0 0 12px rgba(216, 182, 122, 0.7);
}
header.header .main-navbar-wrapper .navbar-nav > li > .nav-link:hover,
header.header .main-navbar-wrapper .navbar-nav > li.active > .nav-link,
header.header .main-navbar-wrapper .navbar-nav > li.show > .nav-link { color: var(--rv-gold-hi); }
header.header .main-navbar-wrapper .navbar-nav > li > .nav-link:hover::after,
header.header .main-navbar-wrapper .navbar-nav > li.active > .nav-link::after,
header.header .main-navbar-wrapper .navbar-nav > li.show > .nav-link::after { transform: scaleX(1); }

header.header .toolbar .nav-link {
    border: 1px solid var(--rv-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--rv-gold-hi);
    transition: all 0.35s var(--rv-ease);
}
header.header .toolbar .nav-link:hover {
    color: #fff;
    border-color: rgba(216, 182, 122, 0.6);
    box-shadow: 0 0 22px -4px rgba(216, 182, 122, 0.55);
    transform: translateY(-1px);
}
header.header .toolbar .nav-link .badge {
    background: var(--rv-violet-grad);
    color: #fff;
    box-shadow: 0 0 0 2px var(--rv-ink), 0 0 14px rgba(120, 160, 215, 0.8);
}
header.header .search {
    border: 1px solid var(--rv-line);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    overflow: hidden;
    transition: all 0.35s var(--rv-ease);
}
header.header .search:focus-within {
    border-color: rgba(216, 182, 122, 0.6);
    box-shadow: 0 0 0 4px rgba(216, 182, 122, 0.12);
}
header.header .search .btn, header.header .search .form-control { background: transparent; color: var(--rv-text); }
header.header .search .btn { color: var(--rv-gold); }
header.header .navbar-toggler, header.header .toolbar .btn { color: var(--rv-gold-hi); }

/* Dropdowns */
.dropdown-menu {
    background: rgba(12, 21, 37, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--rv-line);
    border-radius: 14px;
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.9), 0 0 30px -12px rgba(64, 108, 170, 0.6);
    padding: 0.5rem;
    animation: rv-pop 0.35s var(--rv-ease);
}
.dropdown-item {
    color: var(--rv-text);
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    transition: all 0.25s var(--rv-ease);
}
.dropdown-item:hover, .dropdown-item:focus {
    color: #fff;
    background: linear-gradient(90deg, rgba(64, 108, 170, 0.45), rgba(64, 108, 170, 0.1));
    transform: translateX(3px);
}
header.header .dropdown-item.active, header.header .dropdown-item:active,
.dropdown-item.active, .dropdown-item:active { color: #0b1220; background: var(--rv-gold-grad); }
.dropdown-divider { border-top-color: var(--rv-line-soft); }
.dropdown-header { color: var(--rv-gold); }
@keyframes rv-pop { from { opacity: 0; } to { opacity: 1; } } /* opacity only: Popper owns transform */

/* Breadcrumb */
.master-breadcrumb,
.master-breadcrumb .breadcrumb {
    background: transparent;
}
.master-breadcrumb { border-bottom: 1px solid var(--rv-line-soft); background: rgba(8, 14, 26, 0.45); }
.master-breadcrumb .breadcrumb a { color: var(--rv-text-dim); }
.master-breadcrumb .breadcrumb a:hover { color: var(--rv-gold-hi); }
.master-breadcrumb .breadcrumb .breadcrumb-item.active { color: var(--rv-gold-hi); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(216, 182, 122, 0.55); }

/* ---------- Hero (homepage) ---------- */
.royal-hero {
    padding: 70px 0 40px;
    overflow: hidden;
}
.royal-hero-copy { position: relative; z-index: 2; }
.royal-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rv-gold-hi);
    border: 1px solid rgba(216, 182, 122, 0.35);
    border-radius: 999px;
    background: rgba(216, 182, 122, 0.07);
    box-shadow: 0 0 30px -10px rgba(216, 182, 122, 0.6) inset;
}
.royal-hero-title {
    margin: 1.4rem 0 1rem;
    font-family: var(--rv-font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 4.6vw, 3.9rem);
    line-height: 1.12;
    letter-spacing: 0.02em;
    background: linear-gradient(100deg, #fff 0%, #eef3fa 30%, var(--rv-gold-hi) 55%, var(--rv-gold) 70%, #fff 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rv-gold-shift 9s ease-in-out infinite alternate;
    text-shadow: 0 0 40px rgba(120, 160, 215, 0.25);
}
.royal-hero-lead {
    max-width: 560px;
    font-size: 1.15rem;
    color: var(--rv-text-dim);
    margin-bottom: 1.6rem;
}
.royal-hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.royal-hero-art {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.6s var(--rv-ease);
    will-change: transform;
}
.royal-hero-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 60px rgba(64, 108, 170, 0.45)); }
.royal-hero-fade {
    position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
    display: none;
    pointer-events: none;
}

/* SVG 3D illustration motion */
.royal-hero-svg .rh-float { animation: rv-float 6s ease-in-out infinite; transform-box: fill-box; }
.royal-hero-svg .rh-crystal { transform-origin: 250px 93px; animation: rv-crystal-tilt 9s ease-in-out infinite; }
.royal-hero-svg .rh-ring { transform-origin: 250px 93px; animation: rv-ring 7s ease-in-out infinite; }
.royal-hero-svg .rh-stack { animation: rv-float 8s ease-in-out -2s infinite; }
.royal-hero-svg .rh-slab { transition: transform 0.8s var(--rv-ease); }
.royal-hero-art:hover .rh-slab-1 { transform: translateY(-14px); }
.royal-hero-art:hover .rh-slab-2 { transform: translateY(-6px); }
.royal-hero-svg .rh-led { animation: rv-blink 2.4s ease-in-out infinite; }
.royal-hero-svg .rh-led-1 { animation-delay: -0.8s; }
.royal-hero-svg .rh-led-2 { animation-delay: -1.6s; }
.royal-hero-svg .rh-scan { stroke-dasharray: 18 70; animation: rv-scan 3s linear infinite; }
.royal-hero-svg .rh-core { animation: rv-pulse 3.6s ease-in-out infinite; transform-origin: 250px 250px; }
.royal-hero-svg .rh-aura { animation: rv-pulse 7s ease-in-out infinite; transform-origin: 250px 300px; }
.royal-hero-svg .rh-beam { animation: rv-beam 3.6s ease-in-out infinite; }
.royal-hero-svg .rh-orbit-path { stroke-dasharray: 60 420; animation: rv-orbit-dash 6s linear infinite; }
.royal-hero-svg .rh-orbit-back ellipse { animation: rv-orbit-dash 30s linear infinite reverse; }
.royal-hero-svg .rh-orb { animation: rv-float 5s ease-in-out infinite; }
.royal-hero-svg .rh-orb-2 { animation-duration: 6.5s; animation-delay: -1s; }
.royal-hero-svg .rh-orb-3 { animation-duration: 4.4s; animation-delay: -2s; }
.royal-hero-svg .rh-orb-4 { animation-duration: 7s; animation-delay: -3s; }

@keyframes rv-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -14px, 0); } }
@keyframes rv-crystal-tilt { 0%, 100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.04); } }
@keyframes rv-ring { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; } 50% { transform: scale(1.12) rotate(6deg); opacity: 1; } }
@keyframes rv-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes rv-scan { to { stroke-dashoffset: -88; } }
@keyframes rv-pulse { 0%, 100% { opacity: 0.65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes rv-beam { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.9; } }
@keyframes rv-orbit-dash { to { stroke-dashoffset: -480; } }

/* Domain search inside hero */
.royal-hero .home-domain-search { background: transparent; }
body.royal-theme #frmDomainHomepage .input-group-wrapper,
.home-domain-search .input-group-wrapper {
    position: relative;
    padding: 8px;
    margin: 0 0 1rem;
    background: rgba(10, 18, 32, 0.75);
    border: 1px solid rgba(216, 182, 122, 0.35);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px -25px rgba(64, 108, 170, 0.9), 0 0 0 6px rgba(64, 108, 170, 0.08);
    transition: box-shadow 0.45s var(--rv-ease), border-color 0.45s var(--rv-ease);
}
.home-domain-search .input-group-wrapper:focus-within {
    border-color: rgba(241, 220, 174, 0.8);
    box-shadow: 0 20px 70px -20px rgba(216, 182, 122, 0.6), 0 0 0 6px rgba(216, 182, 122, 0.12);
}
.home-domain-search .input-group-wrapper .form-control {
    height: 54px;
    font-size: 1.1rem;
    background: transparent;
    color: #fff;
}
.home-domain-search .input-group-wrapper .btn { height: 54px; padding: 0 1.6rem; font-weight: 600; }
body.royal-theme #frmDomainHomepage #btnTransfer,
body.royal-theme #frmDomainHomepage #btnTransfer2 {
    background: var(--rv-violet-grad);
    border-color: transparent;
    color: #fff;
}
body.royal-theme #frmDomainHomepage .btn-primary:hover,
body.royal-theme #frmDomainHomepage .btn-primary:focus { background: var(--rv-gold-grad); background-size: 200% 100%; background-position: 100% 0; border-color: transparent; color: #0b1220; }
body.royal-theme #frmDomainHomepage #btnTransfer:hover { background: linear-gradient(135deg, #335c96, #7fa6d6); border-color: transparent; }
.home-domain-search .tld-logos { color: var(--rv-text-dim); font-size: 1.15rem; }
.home-domain-search .tld-logos li { display: flex; align-items: center; gap: 0.4rem; padding-right: 22px; }
.home-domain-search .tld-logos img { width: 54px; filter: drop-shadow(0 4px 12px rgba(216, 182, 122, 0.35)); }

/* ---------- Section headings ---------- */
#main-body h2.text-center {
    position: relative;
    margin-top: 3rem !important;
    margin-bottom: 2.25rem !important;
    font-family: var(--rv-font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
}
#main-body h2.text-center::after {
    content: "";
    display: block;
    width: 90px; height: 3px;
    margin: 14px auto 0;
    border-radius: 3px;
    background: var(--rv-gold-grad);
    box-shadow: 0 0 18px rgba(216, 182, 122, 0.65);
}

/* ---------- Cards / glass panels ---------- */
.card,
.primary-content .card,
.panel,
.well,
.list-group-item,
.tiles .tile,
.client-home-cards .card-header {
    color: var(--rv-text);
}
.card,
.panel,
.well {
    position: relative;
    background: var(--rv-glass);
    border: 1px solid var(--rv-line);
    border-radius: 18px;
    box-shadow: var(--rv-shadow);
    transition: transform 0.6s var(--rv-ease), box-shadow 0.6s var(--rv-ease), border-color 0.6s var(--rv-ease);
}
.card::before {
    /* top highlight line */
    content: "";
    position: absolute; left: 18px; right: 18px; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(241, 220, 174, 0.7), transparent);
    opacity: 0.6;
    pointer-events: none;
}
.card-header, .card-footer {
    background: rgba(255, 255, 255, 0.025);
    border-color: var(--rv-line-soft);
    color: var(--rv-text);
}
.card-header:first-child { border-radius: 18px 18px 0 0; }
.card-footer:last-child { border-radius: 0 0 18px 18px; }
.card-title, .card-header .card-title { color: #fff; }
.client-home-cards .card-header { background: rgba(255, 255, 255, 0.025); }
.client-home-cards small { color: var(--rv-text-dim); }
.client-home-cards .list-group { border-top-color: var(--rv-line-soft) !important; border-bottom-color: var(--rv-line-soft) !important; }
.client-home-cards .list-group .list-group-item { border-bottom-color: var(--rv-line-soft); }

/* Spotlight following the pointer (set by royal.js) */
.royal-spot {
    --mx: 50%; --my: 50%;
}
.royal-spot::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(216, 182, 122, 0.12), transparent 45%);
    opacity: 0;
    transition: opacity 0.5s var(--rv-ease);
    pointer-events: none;
}
.royal-spot:hover::after { opacity: 1; }

/* Homepage product group cards */
.card-columns.home .card {
    overflow: hidden;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
    transform-style: preserve-3d;
}
.card-columns.home .card:hover {
    --ty: -6px;
    border-color: rgba(216, 182, 122, 0.55);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.9), var(--rv-glow-gold);
}
.card-columns.home .card .card-body { position: relative; z-index: 1; }
.pricing-card-title { font-family: var(--rv-font-display); letter-spacing: 0.03em; }

/* Action icon buttons -> 3D glass orbs */
.action-icon-btns a,
body #main-body .action-icon-btns a {
    position: relative;
    padding: 22px 10px 20px;
    color: var(--rv-text);
    background: var(--rv-glass);
    border: 1px solid var(--rv-line) !important;
    border-radius: 20px;
    box-shadow: var(--rv-shadow);
    font-weight: 500;
    overflow: hidden;
    transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
    transition: transform 0.6s var(--rv-ease), box-shadow 0.6s var(--rv-ease), border-color 0.6s var(--rv-ease), color 0.4s;
}
.action-icon-btns a .ico-container {
    position: relative;
    width: 76px; height: 76px;
    margin: 4px auto 14px;
    line-height: 76px;
    font-size: 2rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 32%),
        radial-gradient(circle at 50% 60%, #4b78b5 0%, #1c3358 62%, #0d1830 100%);
    box-shadow:
        inset 0 -10px 18px rgba(0, 0, 0, 0.55),
        inset 0 6px 12px rgba(255, 255, 255, 0.18),
        0 14px 28px -10px rgba(64, 108, 170, 0.85),
        0 0 0 1px rgba(216, 182, 122, 0.45);
    transition: transform 0.6s var(--rv-ease), box-shadow 0.6s var(--rv-ease);
}
.action-icon-btns a .ico-container::after {
    content: "";
    position: absolute; inset: -7px;
    border-radius: 50%;
    border: 1px dashed rgba(216, 182, 122, 0.45);
    animation: rv-spin 18s linear infinite;
}
.action-icon-btns a .ico-container i {
    color: var(--rv-gold-hi);
    text-shadow: 0 2px 10px rgba(216, 182, 122, 0.7);
}
.action-icon-btns a:hover,
body #main-body .action-icon-btns a:hover {
    --ty: -8px;
    color: var(--rv-gold-hi);
    border-color: rgba(216, 182, 122, 0.6) !important;
    box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.9), var(--rv-glow-violet);
}
.action-icon-btns a:hover .ico-container {
    font-size: 2rem;
    transform: translateZ(30px) scale(1.08) rotate(-6deg);
    box-shadow:
        inset 0 -10px 18px rgba(0, 0, 0, 0.55),
        inset 0 6px 12px rgba(255, 255, 255, 0.25),
        0 18px 34px -8px rgba(216, 182, 122, 0.7),
        0 0 0 1px rgba(241, 220, 174, 0.8);
}
.action-icon-btns a[class*="card-accent"] { border-top-width: 1px; }
@keyframes rv-spin { to { transform: rotate(360deg); } }

/* Client area tiles */
.tiles { border-radius: 18px; overflow: hidden; }
.tiles .tile {
    background: rgba(255, 255, 255, 0.025);
    border-right: 1px solid var(--rv-line-soft);
    transition: background 0.5s var(--rv-ease), transform 0.5s var(--rv-ease);
}
.tiles .tile .stat {
    font-family: var(--rv-font-display);
    font-weight: 700;
    background: var(--rv-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tiles .tile .title { color: var(--rv-text-dim); letter-spacing: 0.12em; }
.tiles .tile i { color: rgba(120, 160, 215, 0.35); }
.tiles .tile:hover { background: linear-gradient(160deg, rgba(64, 108, 170, 0.25), rgba(255, 255, 255, 0.02)); }
.tiles .tile:hover i { color: rgba(216, 182, 122, 0.75); text-shadow: 0 0 30px rgba(216, 182, 122, 0.6); }
@media (max-width: 1199.98px) {
    .tiles div:nth-child(1) > .tile, .tiles div:nth-child(2) > .tile { border-bottom-color: var(--rv-line-soft); }
}

/* ---------- Sidebar & list groups ---------- */
.list-group-item {
    background: transparent;
    border-color: var(--rv-line-soft);
    transition: background 0.35s var(--rv-ease), color 0.35s, padding 0.35s var(--rv-ease);
}
.list-group-item-action { color: var(--rv-text-dim); }
.list-group-item-action:hover, .list-group-item-action:focus {
    color: #fff;
    background: linear-gradient(90deg, rgba(64, 108, 170, 0.32), rgba(64, 108, 170, 0));
}
.list-group-item.active,
.sidebar .list-group-item.active,
body .sidebar .list-group-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(64, 108, 170, 0.75), rgba(35, 62, 105, 0.35));
    border-color: var(--rv-line-soft);
    box-shadow: inset 3px 0 0 var(--rv-gold);
}
.list-group-item.disabled { color: rgba(160, 176, 200, 0.45); background: transparent; }
.sidebar .card-header { background: rgba(64, 108, 170, 0.12); }
.sidebar .card-title { font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; }
.sidebar .card-title i { color: var(--rv-gold); }
.sidebar .badge, .list-group-item .badge { background: rgba(216, 182, 122, 0.18); color: var(--rv-gold-hi); border: 1px solid rgba(216, 182, 122, 0.35); }
.card-minimise { color: var(--rv-text-dim); }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: transform 0.35s var(--rv-ease), box-shadow 0.35s var(--rv-ease), background-position 0.6s var(--rv-ease), color 0.3s, border-color 0.3s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary,
body #main-body .btn-primary,
body.royal-theme #frmDomainHomepage .btn-primary {
    color: #110f0b;
    background: var(--rv-gold-grad);
    background-size: 200% 100%;
    background-position: 0% 0;
    border: 1px solid rgba(241, 220, 174, 0.6);
    box-shadow: 0 10px 30px -12px rgba(216, 182, 122, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    font-weight: 600;
    overflow: hidden;
}
.btn-primary:hover, .btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    color: #0b1220;
    background: var(--rv-gold-grad);
    background-size: 200% 100%;
    background-position: 100% 0;
    border-color: rgba(250, 236, 205, 0.9);
    box-shadow: 0 16px 40px -12px rgba(216, 182, 122, 0.95), 0 0 0 4px rgba(216, 182, 122, 0.15);
    transform: translateY(-2px);
}
.btn-primary::after,
.btn-success::after {
    content: "";
    position: absolute; top: 0; bottom: 0; left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.8s var(--rv-ease);
    pointer-events: none;
}
.btn-primary:hover::after, .btn-success:hover::after { left: 130%; }
.btn-success {
    color: #fff;
    background: var(--rv-violet-grad);
    border: 1px solid rgba(150, 185, 230, 0.6);
    box-shadow: 0 10px 30px -12px rgba(64, 108, 170, 0.9);
    overflow: hidden;
}
.btn-success:hover, .btn-success:focus,
.btn-success:not(:disabled):not(.disabled):active {
    color: #fff;
    background: linear-gradient(135deg, #335c96, #7fa6d6);
    border-color: rgba(190, 210, 240, 0.8);
    box-shadow: 0 16px 40px -12px rgba(64, 108, 170, 1), 0 0 0 4px rgba(64, 108, 170, 0.2);
    transform: translateY(-2px);
}
.btn-default, .btn-secondary, .btn-light, .btn-outline-secondary {
    color: var(--rv-text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--rv-line-soft);
}
.btn-default:hover, .btn-secondary:hover, .btn-light:hover, .btn-outline-secondary:hover,
.btn-default:focus, .btn-secondary:focus {
    color: #fff;
    background: rgba(64, 108, 170, 0.28);
    border-color: rgba(120, 160, 215, 0.6);
}
.btn-outline-primary,
body #main-body .btn-outline-primary {
    color: var(--rv-gold-hi);
    background: rgba(216, 182, 122, 0.05);
    border: 1px solid rgba(216, 182, 122, 0.55);
}
.btn-outline-primary:hover,
body #main-body .btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled):active {
    color: #0b1220;
    background: var(--rv-gold-grad);
    border-color: transparent;
    box-shadow: 0 12px 30px -12px rgba(216, 182, 122, 0.9);
    transform: translateY(-2px);
}
.btn-outline-light { color: var(--rv-text); border-color: var(--rv-line); }
.btn-outline-light:hover { color: #0b1220; background: var(--rv-gold-grad); border-color: transparent; }
.btn-info { background: linear-gradient(135deg, #3f6aa6, #6f9bd1); border-color: transparent; color: #fff; }
.btn-warning { background: linear-gradient(135deg, #b8872f, #f5a924); border-color: transparent; color: #110f0b; }
.btn-danger { background: linear-gradient(135deg, #9f1239, #ff4d6d); border-color: transparent; color: #fff; }
.btn-link { color: var(--rv-gold-hi); }
.btn-link:hover { color: #fff; }
.btn:focus, .btn.focus { box-shadow: 0 0 0 4px rgba(216, 182, 122, 0.22); }
.btn-lg { padding: 0.8rem 1.8rem; border-radius: 14px; }

/* ---------- Forms ---------- */
.form-control,
.custom-select,
select.form-control,
textarea.form-control,
.input-group-text {
    color: var(--rv-text);
    background-color: rgba(6, 12, 22, 0.6);
    border: 1px solid var(--rv-line-soft);
    border-radius: 12px;
    transition: border-color 0.35s var(--rv-ease), box-shadow 0.35s var(--rv-ease), background-color 0.35s;
}
.form-control::placeholder { color: rgba(160, 176, 200, 0.55); }
.form-control:focus,
.custom-select:focus {
    color: #fff;
    background-color: rgba(12, 21, 37, 0.85);
    border-color: rgba(216, 182, 122, 0.7);
    box-shadow: 0 0 0 4px rgba(216, 182, 122, 0.14), 0 0 24px -6px rgba(216, 182, 122, 0.5);
}
.form-control:disabled, .form-control[readonly] { background-color: rgba(255, 255, 255, 0.04); color: var(--rv-text-dim); }
.input-group-text { color: var(--rv-gold); background-color: rgba(64, 108, 170, 0.12); }
.custom-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3E%3Cpath fill='%23d4af37' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 8px 10px;
}
select.form-control option, .custom-select option { background: #0e192b; color: var(--rv-text); }
.input-group .btn-reveal-pw:hover, .input-group .btn-reveal-pw:active { background-color: rgba(64, 108, 170, 0.3); color: var(--rv-gold-hi); }
label, .form-control-label, .col-form-label { color: var(--rv-text-dim); }
.custom-control-label::before { background: rgba(6, 12, 22, 0.6); border-color: var(--rv-line); }
.custom-control-input:checked ~ .custom-control-label::before { background: var(--rv-gold-grad); border-color: var(--rv-gold); }
.form-check-input, input[type="checkbox"], input[type="radio"] { accent-color: var(--rv-gold); }
.form-text, .help-block { color: var(--rv-text-dim); }
.input-group-merge .input-group-prepend .input-group-text { border-right: 0; }

/* ---------- Tables ---------- */
.table { color: var(--rv-text); }
.table th, .table td, .table thead th { border-color: var(--rv-line-soft); }
.table thead th {
    color: var(--rv-gold-hi);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    background: rgba(64, 108, 170, 0.12);
    border-bottom: 1px solid var(--rv-line);
}
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(255, 255, 255, 0.025); }
.table-hover tbody tr, .table-list tbody tr { transition: background 0.3s var(--rv-ease); }
.table-hover tbody tr:hover, .table-list tbody tr:hover { color: #fff; background: rgba(64, 108, 170, 0.18); }
.table-bordered, .table-bordered th, .table-bordered td { border-color: var(--rv-line-soft); }
.table-container, .dataTables_wrapper { color: var(--rv-text); }
table.table-list { background: transparent !important; }
table.table-list thead th, table.table-list thead td { background: rgba(64, 108, 170, 0.12) !important; color: var(--rv-gold-hi) !important; border-color: var(--rv-line-soft) !important; }
table.table-list tbody td { background: transparent !important; border-color: var(--rv-line-soft) !important; color: var(--rv-text); }
table.table-list tbody tr:hover td { background: rgba(64, 108, 170, 0.18) !important; }
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { color: var(--rv-text-dim); }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { background: rgba(6, 12, 22, 0.6); color: var(--rv-text); border: 1px solid var(--rv-line-soft); border-radius: 10px; }

/* ---------- Pagination / tabs / nav ---------- */
.page-link {
    color: var(--rv-text);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--rv-line-soft);
}
.page-link:hover { color: #fff; background: rgba(64, 108, 170, 0.3); border-color: rgba(120, 160, 215, 0.5); }
.page-item.active .page-link { color: #0b1220; background: var(--rv-gold-grad); border-color: transparent; box-shadow: 0 0 18px -4px rgba(216, 182, 122, 0.8); }
.page-item.disabled .page-link { color: rgba(160, 176, 200, 0.4); background: transparent; border-color: var(--rv-line-soft); }
.nav-tabs { border-bottom-color: var(--rv-line-soft); }
.nav-tabs .nav-link { color: var(--rv-text-dim); border: 0; border-bottom: 2px solid transparent; transition: all 0.35s var(--rv-ease); }
.nav-tabs .nav-link:hover { color: #fff; border-color: transparent; border-bottom-color: rgba(120, 160, 215, 0.6); }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
    color: var(--rv-gold-hi);
    background: linear-gradient(180deg, transparent, rgba(216, 182, 122, 0.08));
    border-color: transparent;
    border-bottom-color: var(--rv-gold);
}
.nav-pills .nav-link { color: var(--rv-text-dim); border-radius: 10px; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { color: #0b1220; background: var(--rv-gold-grad); }
.tab-content { color: var(--rv-text); }

/* ---------- Alerts / badges / progress ---------- */
.alert {
    border-radius: 14px;
    border: 1px solid transparent;
    color: var(--rv-text);
}
.alert-info { background: rgba(96, 140, 200, 0.14); border-color: rgba(96, 140, 200, 0.4); color: #d3e0f2; }
.alert-success { background: rgba(47, 210, 122, 0.12); border-color: rgba(47, 210, 122, 0.4); color: #b9f5d4; }
.alert-warning { background: rgba(216, 182, 122, 0.12); border-color: rgba(216, 182, 122, 0.45); color: #f1d8ae; }
.alert-danger { background: rgba(255, 77, 109, 0.12); border-color: rgba(255, 77, 109, 0.45); color: #ffc2cd; }
.alert-secondary, .alert-light, .alert-dark { background: rgba(255, 255, 255, 0.05); border-color: var(--rv-line-soft); color: var(--rv-text); }
.alert a, .alert .alert-link { color: inherit; text-decoration: underline; }
.badge-primary { background: var(--rv-gold-grad); color: #0b1220; }
.badge-dark, .badge-secondary { background: rgba(255, 255, 255, 0.1); color: var(--rv-text); }
.badge-info { background: rgba(96, 140, 200, 0.85); }
.label, .status { border-radius: 999px; }
.progress { background: rgba(255, 255, 255, 0.06); border-radius: 999px; }
.progress-bar { background: var(--rv-violet-grad); }
.progress-bar.bg-success { background: linear-gradient(90deg, #8f723f, #d8b67a, #f1d8ae) !important; }

/* ---------- Modals / popovers / tooltips ---------- */
.modal-backdrop.show { opacity: 0.75; background: #04080f; }
.modal-content {
    color: var(--rv-text);
    background: linear-gradient(160deg, #13213a 0%, #0a1424 100%);
    border: 1px solid var(--rv-line);
    border-radius: 20px;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95), 0 0 60px -20px rgba(64, 108, 170, 0.7);
    overflow: hidden;
}
.modal .modal-header, .modal-header { background: rgba(64, 108, 170, 0.12); border-bottom-color: var(--rv-line-soft); }
.modal-footer { border-top-color: var(--rv-line-soft); }
.modal-title { color: #fff; }
.close { color: #fff; text-shadow: none; opacity: 0.7; }
.close:hover { color: var(--rv-gold-hi); opacity: 1; }
.modal.fade .modal-dialog { transform: translateY(30px) scale(0.97); transition: transform 0.5s var(--rv-ease); }
.modal.show .modal-dialog { transform: none; }
.modal-localisation .modal-content { background: linear-gradient(160deg, #13213a, #070e1b); }
.modal-localisation .modal-body { background: radial-gradient(circle at 50% 0%, rgba(64, 108, 170, 0.35), transparent 70%); }
.modal-localisation .item-selector .item { color: var(--rv-text); border-color: var(--rv-line-soft); border-radius: 10px; padding: 6px; transition: all 0.3s var(--rv-ease); }
.modal-localisation .item-selector .item:hover { color: #fff; background: rgba(64, 108, 170, 0.35); border-color: rgba(120, 160, 215, 0.6); }
.modal-localisation .item-selector .item.active { color: #0b1220; background: var(--rv-gold-grad); border-color: transparent; }
.popover { background: #101c31; border: 1px solid var(--rv-line); border-radius: 14px; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.9); }
.popover-body { color: var(--rv-text); }
.popover-header { background: rgba(64, 108, 170, 0.18); color: #fff; border-bottom-color: var(--rv-line-soft); }
.bs-popover-bottom > .arrow::after, .bs-popover-auto[x-placement^="bottom"] > .arrow::after { border-bottom-color: #101c31; }
.bs-popover-top > .arrow::after, .bs-popover-auto[x-placement^="top"] > .arrow::after { border-top-color: #101c31; }
.client-alerts li a { color: var(--rv-text); }
.client-alerts li a:hover { background: rgba(64, 108, 170, 0.2); }
.tooltip-inner { background: var(--rv-gold-grad); color: #0b1220; font-weight: 600; border-radius: 8px; }
.tooltip .arrow::before { border-top-color: var(--rv-gold) !important; border-bottom-color: var(--rv-gold) !important; }

/* ---------- Auth pages (login / register / reset) ---------- */
.login-form .card,
.card.mw-540,
.card.mw-750 {
    overflow: hidden;
    border: 1px solid rgba(216, 182, 122, 0.3);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95), 0 0 80px -30px rgba(64, 108, 170, 0.9);
}
.login-form .card::after,
.card.mw-540::after {
    /* rotating gold rim */
    content: "";
    position: absolute; inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--rv-angle, 0deg), transparent 0deg, rgba(241, 220, 174, 0.9) 40deg, transparent 90deg, transparent 180deg, rgba(120, 160, 215, 0.9) 220deg, transparent 270deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: rv-rim 6s linear infinite;
    pointer-events: none;
}
@property --rv-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rv-rim { to { --rv-angle: 360deg; } }
.login-form .h3, .card.mw-540 .h3 {
    font-family: var(--rv-font-display);
    font-weight: 700;
    background: linear-gradient(100deg, #fff, var(--rv-gold-hi));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-form .card-footer a { color: var(--rv-gold-hi); }
.providerLinkingFeedback, .social-signin-btns { color: var(--rv-text); }

/* ---------- Knowledgebase / announcements / tickets ---------- */
.kb-search .form-control, .announcement-single, .kb-article-content { color: var(--rv-text); }
.ticket-reply, .ticket-reply .posted-by { color: var(--rv-text); }
.ticket-reply.staff, .ticket-reply .staff { border-left: 3px solid var(--rv-gold); }
.markdown-content, .message { color: var(--rv-text); }
blockquote { border-left: 3px solid var(--rv-gold); padding-left: 1rem; color: var(--rv-text-dim); }
.editor-toolbar, .CodeMirror, .editor-preview { background: rgba(6, 12, 22, 0.7) !important; color: var(--rv-text) !important; border-color: var(--rv-line-soft) !important; }
.editor-toolbar a { color: var(--rv-text) !important; }
.editor-toolbar a:hover, .editor-toolbar a.active { background: rgba(64, 108, 170, 0.35) !important; border-color: transparent !important; }
.CodeMirror-cursor { border-left-color: var(--rv-gold) !important; }

/* ---------- Shopping cart (standard_cart order form) ---------- */
#order-standard_cart { color: var(--rv-text); }
#order-standard_cart .header-lined h1,
#order-standard_cart .header-lined h2,
#order-standard_cart .sub-heading span,
#order-standard_cart .font-size-36 { color: #fff; }
#order-standard_cart .sub-heading { border-top-color: var(--rv-line-soft); }
#order-standard_cart .sub-heading span { background: var(--rv-ink); color: var(--rv-gold-hi); }
#order-standard_cart .products .product,
#order-standard_cart .view-cart-items,
#order-standard_cart .view-cart-items .item,
#order-standard_cart .summary-container,
#order-standard_cart .product-info,
#order-standard_cart .domain-checker-container,
#order-standard_cart .field-container,
#order-standard_cart .addon-products .panel-addon,
#order-standard_cart .account-select-container div.account,
#order-standard_cart .promo-banner,
#order-standard_cart .domain-selection-options .option,
#order-standard_cart .domain-pricing,
#order-standard_cart .spotlight-tlds .spotlight-tld,
#order-standard_cart .suggested-domains,
#order-standard_cart .domain-checker-result-headline,
#order-standard_cart .order-summary {
    color: var(--rv-text);
    background: var(--rv-glass) !important;
    border-color: var(--rv-line) !important;
}
#order-standard_cart .products .product { border-radius: 18px; overflow: hidden; transition: transform 0.6s var(--rv-ease), box-shadow 0.6s var(--rv-ease); }
#order-standard_cart .products .product:hover { transform: translateY(-6px); box-shadow: var(--rv-glow-gold); }
#order-standard_cart .products .product header,
#order-standard_cart .view-cart-items-header,
#order-standard_cart .order-summary h2,
#order-standard_cart .summary-container h2 {
    color: #fff;
    background: linear-gradient(90deg, rgba(64, 108, 170, 0.6), rgba(22, 40, 70, 0.4)) !important;
    border-color: var(--rv-line-soft) !important;
}
#order-standard_cart .products .product div.product-pricing span.price,
#order-standard_cart .order-summary .total-due-today .amt,
#order-standard_cart .amt { color: var(--rv-gold-hi); }
#order-standard_cart .products .product div.product-desc,
#order-standard_cart .summary-totals,
#order-standard_cart .order-summary .product-name { color: var(--rv-text); }
#order-standard_cart .addon-products .panel-addon-selected,
#order-standard_cart .account-select-container div.account.active,
#order-standard_cart .domain-selection-options .option-selected { border-color: var(--rv-gold) !important; box-shadow: var(--rv-glow-gold); }
#order-standard_cart .view-cart-items .item:nth-child(even) { background: rgba(255, 255, 255, 0.025) !important; }
#order-standard_cart .btn-checkout, #order-standard_cart .btn-order-now { font-weight: 700; }
.order-summary, .summary-container { color: var(--rv-text); }

/* Store / MarketConnect pages rely on light backgrounds; tame them */
.landing-page, .landing-page .content-block, .store-order-container { color: var(--rv-text); }

/* ---------- Footer ---------- */
footer.footer {
    margin-top: 40px;
    padding: 50px 0 26px;
    color: var(--rv-text-dim);
    background: linear-gradient(180deg, rgba(8, 14, 26, 0.5) 0%, #04080f 70%);
    border-top: 1px solid var(--rv-line);
}
footer.footer::before {
    content: "";
    position: absolute; left: 10%; right: 10%; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--rv-gold-hi), transparent);
    box-shadow: 0 0 22px 2px rgba(216, 182, 122, 0.6);
}
footer.footer .nav-link { color: var(--rv-text-dim); transition: color 0.3s var(--rv-ease); }
footer.footer .nav-link:hover { color: var(--rv-gold-hi); }
footer.footer .copyright { color: rgba(160, 176, 200, 0.65); letter-spacing: 0.05em; }
footer.footer .btn { border-color: var(--rv-line); color: var(--rv-text); }
.social-accounts a, footer.footer .btn-icon { color: var(--rv-gold-hi); }

/* ---------- Misc ---------- */
#fullpage-overlay { background: rgba(6, 11, 20, 0.85); }
#fullpage-overlay .msg { color: var(--rv-gold-hi); }
.btn-return-to-admin { background: var(--rv-gold-grad) !important; color: #0b1220 !important; }
.primary-bg-color { background: transparent; }
.text-primary { color: var(--rv-gold-hi) !important; }
.text-info { color: #a9c4ea !important; }
.bg-primary { background: var(--rv-violet-grad) !important; }
.border-primary { border-color: var(--rv-gold) !important; }
.jumbotron { background: var(--rv-glass); color: var(--rv-text); border-radius: 20px; }
.empty-state, .no-data { color: var(--rv-text-dim); }
img.tld-logo, .tld-logos img { image-rendering: auto; }
.bootstrap-switch { border-color: var(--rv-line) !important; background: rgba(6, 12, 22, 0.6); }
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success { background: var(--rv-gold-grad); color: #0b1220; }
.bootstrap-switch .bootstrap-switch-label { background: #16253e; color: var(--rv-text); }
.iti__country-list { background: #0f1a2d; border-color: var(--rv-line); color: var(--rv-text); }
.iti__country.iti__highlight { background: rgba(64, 108, 170, 0.35); }

/* ---------- Scroll reveal (enabled by royal.js) ---------- */
html.royal-js .rv-reveal {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(0.985);
    filter: blur(6px);
    transition: opacity 1s var(--rv-ease), transform 1s var(--rv-ease), filter 1s var(--rv-ease);
    transition-delay: var(--rv-delay, 0ms);
}
html.royal-js .rv-reveal.rv-in {
    opacity: 1;
    transform: none;
    filter: none;
}
/* tilt elements carry their own transform; reveal them with opacity only */
html.royal-js .card-columns.home .card.rv-reveal,
html.royal-js .action-icon-btns a.rv-reveal { transform: perspective(900px) translateY(34px); }
html.royal-js .r3d-stat.rv-reveal { transform: perspective(800px) translateY(34px); }
html.royal-js .r3d-stat.rv-reveal.rv-in { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); }
html.royal-js #order-standard_cart .products .product.rv-reveal.rv-in,
html.royal-js .card-columns.home .card.rv-reveal.rv-in,
html.royal-js .action-icon-btns a.rv-reveal.rv-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); }

/* Hero entrance */
.royal-hero-art { animation: rv-zoom-in 1.6s var(--rv-ease) 0.2s both; }
@keyframes rv-rise { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rv-zoom-in { from { opacity: 0; transform: perspective(1000px) scale(0.86) rotateY(-14deg); } to { opacity: 1; } }

/* Page content entrance on every page */
/* fill-mode backwards: no transform/filter remains afterwards, so fixed-position modals inside content are unaffected */
.primary-content, .sidebar { animation: rv-rise 0.9s var(--rv-ease) backwards; }
.sidebar { animation-delay: 0.08s; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .royal-hero { padding: 40px 0 10px; text-align: center; }
    .royal-hero-lead { margin-left: auto; margin-right: auto; }
    .royal-hero-actions { justify-content: center; }
    .royal-hero-art { max-width: 360px; margin-top: 20px; }
    .home-domain-search .tld-logos { display: flex; flex-wrap: wrap; justify-content: center; }
    .royal-grid { height: 30vh; }
}
@media (max-width: 575.98px) {
    .royal-hero-title { font-size: 2rem; }
    .action-icon-btns a .ico-container { width: 62px; height: 62px; line-height: 62px; font-size: 1.6rem; }
    .royal-aurora { opacity: 0.4; }
}
@media (hover: none) {
    .card-columns.home .card, .action-icon-btns a, .royal-hero-art { --rx: 0deg; --ry: 0deg; }
}

/* ---------- Reduced motion: keep the look, drop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .royal-dust { display: none; }
    html.royal-js .rv-reveal { opacity: 1; transform: none; filter: none; }
}

/* ---------- Print: plain and legible ---------- */
@media print {
    .royal-scene, .royal-hero-art { display: none !important; }
    body, .card { background: #fff !important; color: #000 !important; box-shadow: none !important; }
}


/* =====================================================================
   DatenOrt logo
   ===================================================================== */
header.header .navbar-brand.royal-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: none;
    -webkit-text-fill-color: initial;
    animation: none;
    filter: none;
}
header.header .royal-logo {
    display: block;
    height: 46px;
    width: auto;
    max-width: none;
    filter: drop-shadow(0 6px 18px rgba(64, 108, 170, 0.55));
    animation: rv-logo-breathe 6s ease-in-out infinite;
    transition: transform 0.6s var(--rv-ease);
}
header.header .royal-brand:hover .royal-logo { transform: translateY(-1px) scale(1.03); }
@keyframes rv-logo-breathe { 0%, 100% { filter: drop-shadow(0 6px 18px rgba(64, 108, 170, 0.55)); } 50% { filter: drop-shadow(0 6px 22px rgba(216, 182, 122, 0.5)); } }
@media (max-width: 575.98px) { header.header .royal-logo { height: 38px; } }

/* =====================================================================
   Video hero (homepage): looping globe film with cross-faded seam
   ===================================================================== */
.royal-hero--video {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(92vh, 880px);
    padding: 90px 0 80px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.royal-hero-bg {
    position: absolute; inset: 0;
    z-index: -1;
    overflow: hidden;
    background: transparent url("https://d2ol7oe51mr4n9.cloudfront.net/user_38xzZboKViGWJOttwIXH07lWA1P/82e7eb75-c65f-490a-99b5-f3d1cad54200.webp") 50% 40% / cover no-repeat;
}
.royal-hero-bg .bg-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    display: block;
    background-color: transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.9s linear;
}
.royal-hero-bg .bg-video.is-active { opacity: 1; }
.royal-hero-shade {
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 55% at 50% 48%, rgba(6, 11, 20, 0.55) 0%, rgba(6, 11, 20, 0.15) 70%, transparent 100%),
        linear-gradient(180deg, rgba(6, 11, 20, 0.65) 0%, rgba(6, 11, 20, 0) 22%, rgba(6, 11, 20, 0) 70%, var(--rv-ink) 100%),
        linear-gradient(90deg, rgba(22, 40, 70, 0.25), transparent 30%, transparent 70%, rgba(22, 40, 70, 0.25));
}
.royal-hero--video .royal-hero-copy { max-width: 1100px; }
.royal-eyebrow img { display: block; width: 18px; height: 18px; }
.royal-hero--video .royal-hero-title {
    margin: 1.5rem 0 1.1rem;
    font-size: clamp(2.1rem, 4.6vw, 3.8rem);
    line-height: 1.04;
    background: none;
    -webkit-text-fill-color: initial;
    color: #fff;
    animation: none;
    text-shadow: none;
}
.royal-hero--video .ln, .royal-hero--video .ln-i { display: block; }
.royal-hero--video .ln-i {
    background: linear-gradient(180deg, #ffffff 0%, #dfe8f4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 30px rgba(64, 108, 170, 0.55));
}
.royal-hero--video .ln-i.ln-gold {
    background: var(--rv-gold-grad);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rv-gold-shift 7s ease-in-out infinite alternate;
    filter: drop-shadow(0 6px 30px rgba(216, 182, 122, 0.4));
}
.royal-hero--video .royal-hero-lead {
    max-width: 620px;
    margin: 0 auto 1.8rem;
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #edf2f9;
}
.royal-hero--video #frmDomainHomepage { max-width: 720px; margin: 0 auto; text-align: left; }
.royal-hero--video .home-domain-search .tld-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; margin-top: 0.4rem; }
.royal-hero--video .royal-hero-actions { justify-content: center; margin-top: 1.6rem; gap: 0.6rem; }
.royal-hero-actions .btn { display: inline-flex; align-items: center; gap: 0.6rem; border-radius: 999px; font-size: 1rem; padding: 0.75rem 1.6rem; }
.royal-hero-actions .arw { width: 13px; height: 11px; flex: 0 0 auto; display: block; transition: transform 0.35s var(--rv-ease); }
.royal-hero-actions .btn:hover .arw { transform: translateX(3px); }
.btn-ghost {
    color: #dde6f2;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover, .btn-ghost:focus {
    color: #fff;
    background: rgba(22, 40, 70, 0.55);
    border-color: rgba(216, 182, 122, 0.55);
}
a:focus-visible, button:focus-visible { outline: 2px solid #a9c4ea; outline-offset: 3px; }

/* Login: 3D illustration beside the form */
.royal-auth-art { max-width: 470px; }

/* =====================================================================
   Entrance sequence. Armed by an inline script in head.tpl, removed when done.
   A masked line rise, B lift + focus, C settle, D quiet lift.
   ===================================================================== */
:root {
    --e-reveal: cubic-bezier(.16, 1, .3, 1);
    --e-soft: cubic-bezier(.25, .8, .3, 1);
}
html.anim .royal-hero--video .ln { overflow: hidden; padding-top: .26em; margin-top: -.26em; padding-bottom: .08em; margin-bottom: -.08em; }
html.anim .royal-hero--video .ln-i { transform: translateY(110%); }
html.anim .royal-brand, html.anim #nav > li, html.anim header .toolbar .nav-item,
html.anim .royal-eyebrow, html.anim .royal-hero-lead, html.anim .rv-hero-form, html.anim .rv-cta { opacity: 0; }
html.anim .royal-hero--video .ln-i, html.anim .royal-brand, html.anim #nav > li,
html.anim .royal-hero-lead, html.anim .rv-hero-form, html.anim .rv-cta { will-change: transform, opacity; }

@keyframes lineRise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes subIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes subInFlat { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pillIn { from { opacity: 0; transform: translateY(8px) scale(.972); } to { opacity: 1; transform: none; } }
@keyframes liftIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

html.anim.go .royal-hero--video .ln-i { animation: lineRise 1.05s var(--e-reveal) both, rv-gold-shift 7s ease-in-out infinite alternate; }
html.anim.go .royal-hero--video .ln:nth-child(1) .ln-i { animation-delay: .12s, 0s; }
html.anim.go .royal-hero--video .ln:nth-child(2) .ln-i { animation: lineRise 1.05s var(--e-reveal) .22s both; }
html.anim.go .royal-eyebrow { animation: liftIn .55s var(--e-soft) .04s both; }
html.anim.go .royal-brand { animation: liftIn .62s var(--e-soft) .46s both; }
html.anim.go #nav > li { animation: liftIn .55s var(--e-soft) both; }
html.anim.go #nav > li:nth-child(1) { animation-delay: .540s; }
html.anim.go #nav > li:nth-child(2) { animation-delay: .585s; }
html.anim.go #nav > li:nth-child(3) { animation-delay: .630s; }
html.anim.go #nav > li:nth-child(4) { animation-delay: .675s; }
html.anim.go #nav > li:nth-child(5) { animation-delay: .720s; }
html.anim.go #nav > li:nth-child(n+6) { animation-delay: .765s; }
html.anim.go header .toolbar .nav-item { animation: pillIn .55s var(--e-soft) .68s both; }
html.anim.go .royal-hero-lead { animation: subIn .85s var(--e-reveal) .58s both; }
html.anim.go .rv-hero-form { animation: subIn .85s var(--e-reveal) .72s both; }
html.anim.go .rv-cta { animation: pillIn .70s var(--e-reveal) .90s both; }
html.anim.go .rv-cta-last { animation-delay: .97s; }

@media (max-width: 991.98px) {
    .royal-hero--video { min-height: 78vh; padding: 60px 0 50px; }
}
@media (max-width: 552px) {
    html.anim.go .royal-hero-lead, html.anim.go .rv-hero-form { animation-name: subInFlat; }
    html.anim.go .royal-hero--video .ln-i { animation-duration: .92s; }
    .royal-hero--video .royal-hero-title { font-size: min(64px, calc((100vw - 44px) / 7.2)); }
    .royal-hero--video .royal-hero-lead { font-size: 1.02rem; }
    .royal-hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    html.anim .royal-hero--video .ln { overflow: visible; padding-top: 0; margin-top: 0; }
    html.anim .royal-hero--video .ln-i { transform: none; }
    html.anim .royal-brand, html.anim #nav > li, html.anim header .toolbar .nav-item,
    html.anim .royal-eyebrow, html.anim .royal-hero-lead, html.anim .rv-hero-form, html.anim .rv-cta { opacity: 1; }
}


/* =====================================================================
   HUNTX 3D ROYAL: app shell (sidebar + top bar), dashboard, extras
   Palette taken from the DatenOrt Swiss Cloud reference:
   midnight navy surfaces, champagne gold accents, steel-blue light.
   ===================================================================== */
:root {
    --x-ink: #060b14;
    --x-base: #0a1322;
    --x-panel: #0e192b;
    --x-panel-2: #122038;
    --x-line: rgba(150, 180, 220, 0.13);
    --x-line-strong: rgba(150, 180, 220, 0.22);
    --x-text: #eef2f8;
    --x-text-dim: #9aabc4;
    --x-gold: #d8b67a;
    --x-gold-hi: #f1d8ae;
    --x-gold-lo: #9b7c46;
    --x-steel: #6f9bd1;
    --x-sidebar-w: 250px;
    --x-top-h: 78px;
    --x-radius: 18px;
    --x-card: linear-gradient(160deg, rgba(20, 34, 58, 0.92) 0%, rgba(12, 21, 37, 0.94) 100%);
    --x-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --rv-text: var(--x-text);
    --rv-text-dim: var(--x-text-dim);
    --rv-glass: var(--x-card);
    --rv-line: rgba(216, 182, 122, 0.16);
    --rv-line-soft: var(--x-line);
}

body.r3d { font-weight: 400; }
body.r3d h1, body.r3d h2, body.r3d h3, body.r3d .h3 { font-weight: 400; letter-spacing: 0.005em; }
.r3d-gold-text {
    background: linear-gradient(100deg, #f6e2bd 0%, #d8b67a 45%, #b89455 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.r3d-kicker {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--x-text-dim);
}
.r3d-pill { border-radius: 999px !important; display: inline-flex; align-items: center; gap: 0.7rem; }
.r3d-pill .arw, .btn .arw { width: 14px; height: 12px; transition: transform 0.35s var(--rv-ease); }
.r3d-pill:hover .arw { transform: translateX(3px); }

/* Calmer backdrop than the violet edition */
.royal-scene { background: radial-gradient(120% 80% at 70% -10%, #13233f 0%, rgba(19, 35, 63, 0) 60%), var(--x-ink); }
.royal-grid { opacity: 0.18; }
.royal-aurora { opacity: 0.35; }

/* ---------- Shell ---------- */
.r3d-shell { position: relative; min-height: 100vh; }
.r3d-main {
    position: relative;
    margin-left: var(--x-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.r3d-main > #main-body { flex: 1 0 auto; }
.r3d-container { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 28px; }

/* ---------- Sidebar ---------- */
.r3d-sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 1030;
    width: var(--x-sidebar-w);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0b1527 0%, #08111f 60%, #070d18 100%);
    border-right: 1px solid var(--x-line);
    box-shadow: 20px 0 60px -40px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}
.r3d-brand { display: block; padding: 26px 22px 10px; text-align: center; }
.r3d-brand img { width: 190px; height: auto; transition: transform 0.6s var(--rv-ease), filter 0.6s var(--rv-ease); }
.r3d-brand:hover img { transform: translateY(-2px); filter: drop-shadow(0 6px 18px rgba(216, 182, 122, 0.35)); }
.r3d-nav-wrap {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 14px 12px;
    scrollbar-width: thin;
}
.r3d-nav { list-style: none; margin: 0; padding: 0; }
.r3d-nav-secondary { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--x-line); }
.r3d-nav-item { margin: 2px 0; }
.r3d-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 11px 14px;
    color: #c9d4e4;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.35s var(--rv-ease), color 0.35s, border-color 0.35s;
}
.r3d-nav-link:hover, .r3d-nav-link:focus { color: #fff; text-decoration: none; background: rgba(120, 160, 215, 0.08); }
.r3d-nav-ico { width: 22px; font-size: 1.15rem; text-align: center; color: #b8c6da; transition: color 0.35s, transform 0.45s var(--rv-ease); }
.r3d-nav-link:hover .r3d-nav-ico { color: var(--x-gold-hi); transform: scale(1.08); }
.r3d-nav-label { flex: 1 1 auto; min-width: 0; }
.r3d-nav-caret { font-size: 0.9rem; opacity: 0.6; transition: transform 0.45s var(--rv-ease); }
.r3d-nav-item.is-open > .r3d-nav-link .r3d-nav-caret { transform: rotate(180deg); }
.r3d-nav-item.is-active > .r3d-nav-link,
.r3d-nav-item.is-open > .r3d-nav-link {
    color: #fff;
    background: linear-gradient(90deg, rgba(40, 66, 106, 0.85), rgba(22, 38, 64, 0.55));
    border-color: rgba(150, 180, 220, 0.14);
    box-shadow: inset 3px 0 0 var(--x-gold), 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
.r3d-nav-item.is-active > .r3d-nav-link .r3d-nav-ico,
.r3d-nav-item.is-open > .r3d-nav-link .r3d-nav-ico { color: var(--x-gold-hi); }
.r3d-nav .badge { background: rgba(216, 182, 122, 0.18); color: var(--x-gold-hi); border-radius: 999px; font-weight: 500; }
.r3d-sub {
    list-style: none;
    margin: 0;
    padding: 0 0 0 50px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s var(--rv-ease), opacity 0.4s var(--rv-ease), padding 0.4s var(--rv-ease);
}
.r3d-nav-item.is-open > .r3d-sub { max-height: 640px; opacity: 1; padding-top: 4px; padding-bottom: 6px; }
.r3d-sub-link {
    position: relative;
    display: block;
    padding: 7px 10px;
    color: var(--x-text-dim);
    font-size: 0.88rem;
    border-radius: 8px;
    transition: color 0.3s, background 0.3s, transform 0.35s var(--rv-ease);
}
.r3d-sub-link::before {
    content: "";
    position: absolute; left: -16px; top: 50%;
    width: 5px; height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: rgba(150, 180, 220, 0.35);
    transition: background 0.3s, box-shadow 0.3s;
}
.r3d-sub-link:hover { color: #fff; text-decoration: none; transform: translateX(3px); }
.r3d-sub-link:hover::before, .r3d-sub-link.active::before, .r3d-sub-link.is-active::before { background: var(--x-gold); box-shadow: 0 0 10px var(--x-gold); }
.r3d-sub-link.active, .r3d-sub-link.is-active { color: var(--x-gold-hi); }
.r3d-sub-divider { height: 1px; margin: 6px 10px; background: var(--x-line); }

.r3d-side-scene { position: relative; flex: 0 0 auto; height: 300px; margin-top: auto; pointer-events: none; }
.r3d-side-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; opacity: 0.9;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%); mask-image: linear-gradient(to bottom, transparent 0%, #000 40%); }
.r3d-side-tagline {
    position: absolute; left: 24px; bottom: 26px;
    margin: 0;
    font-size: 0.66rem;
    line-height: 2;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #c9d4e4;
}
.r3d-side-tagline span { display: block; width: 30px; height: 1px; margin: 10px 0; background: var(--x-gold); }

/* ---------- Top bar ---------- */
header.header.r3d-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 22px;
    height: var(--x-top-h);
    padding: 0 28px;
    background: rgba(7, 13, 24, 0.94);
    border-bottom: 1px solid var(--x-line);
    box-shadow: none;
}
header.header.r3d-topbar::after { opacity: 0.35; }
.r3d-area-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: #dbe3ef;
    white-space: nowrap;
    padding-right: 22px;
    border-right: 1px solid var(--x-line);
}
.r3d-top-logo { display: none; }
.r3d-top-logo img { height: 40px; width: auto; }
.r3d-search { position: relative; flex: 0 1 300px; }
.r3d-search .fa-search { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--x-text-dim); pointer-events: none; }
.r3d-search .form-control {
    height: 42px;
    padding-left: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--x-line);
}
.r3d-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.r3d-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    padding: 0;
    color: #cfd9e8;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 1.15rem;
}
.r3d-icon-btn:hover, .r3d-icon-btn:focus { color: var(--x-gold-hi); background: rgba(255, 255, 255, 0.04); border-color: var(--x-line); }
.r3d-badge {
    position: absolute; top: 3px; right: 1px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    font-size: 10px; line-height: 18px;
    color: #110f0b;
    background: var(--rv-gold-grad);
    border-radius: 999px;
}
.r3d-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #f1ba5b; box-shadow: 0 0 0 2px var(--x-base), 0 0 10px #f1ba5b; animation: rv-pulse 2.4s ease-in-out infinite; }
.r3d-when-light { display: none; }
[data-theme="light"] .r3d-when-light { display: inline; }
[data-theme="light"] .r3d-when-dark { display: none; }
.r3d-divider { width: 1px; height: 30px; margin: 0 8px; background: var(--x-line); }
.r3d-user-btn { display: flex; align-items: center; gap: 12px; padding: 4px 8px 4px 4px; color: var(--x-text); background: transparent; border: 0; border-radius: 999px; }
.r3d-user-btn:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.r3d-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #110f0b;
    background: var(--rv-gold-grad);
    box-shadow: 0 0 0 2px var(--x-base), 0 0 0 3px rgba(216, 182, 122, 0.55), 0 10px 24px -10px rgba(216, 182, 122, 0.8);
}
.r3d-user-meta { flex-direction: column; align-items: flex-start; line-height: 1.25; text-align: left; }
.r3d-user-name { font-size: 0.95rem; font-weight: 500; }
.r3d-user-id { font-size: 0.8rem; color: var(--x-text-dim); }
.r3d-user .dropdown-menu { min-width: 240px; margin-top: 10px; }
.r3d-user .dropdown-item i { margin-right: 8px; color: var(--x-gold); }
.r3d-top-btn { height: 40px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px !important; font-size: 0.9rem; }
.r3d-burger { display: none; }

/* Breadcrumb under the top bar */
.r3d-main .master-breadcrumb { background: transparent; border-bottom: 0; }
.r3d-main .master-breadcrumb .breadcrumb { padding: 16px 0 0; font-size: 0.82rem; letter-spacing: 0.04em; }

/* Main body spacing */
.r3d-main #main-body { padding-top: 18px; }

/* Cards everywhere get the reference look */
body.r3d .card, body.r3d .panel, body.r3d .well {
    background: var(--x-card);
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius);
    box-shadow: var(--x-shadow);
}
body.r3d .card::before { background: linear-gradient(90deg, transparent, rgba(241, 220, 174, 0.35), transparent); opacity: 0.5; }
body.r3d .card-header { background: transparent; border-bottom-color: var(--x-line); }
body.r3d .card-title { font-weight: 400; }
body.r3d .sidebar .card-header { background: rgba(120, 160, 215, 0.05); }

/* Buttons: champagne pill primary, glass ghost */
body.r3d .btn-primary {
    color: #110f0b;
    background: linear-gradient(135deg, #f3deb8 0%, #dcbb83 45%, #b8965a 100%);
    background-size: 200% 100%;
    border: 1px solid rgba(246, 228, 189, 0.6);
    box-shadow: 0 12px 30px -14px rgba(216, 182, 122, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
body.r3d .btn-success { background: linear-gradient(135deg, #24406a, #3d6aa8); border-color: rgba(150, 185, 230, 0.4); }
body.r3d .btn-ghost { color: #dfe6f1; background: rgba(6, 11, 20, 0.55); border: 1px solid var(--x-line-strong); }
body.r3d .btn-ghost:hover { color: #fff; background: rgba(20, 34, 58, 0.8); border-color: rgba(216, 182, 122, 0.5); }

/* Tables like the "Active services" panel */
body.r3d .table thead th,
body.r3d table.table-list thead th {
    background: rgba(120, 160, 215, 0.05) !important;
    color: var(--x-text-dim) !important;
    font-weight: 500;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    border-bottom: 1px solid var(--x-line) !important;
}
body.r3d .label.status, body.r3d .label-success {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    color: #6ee7a8;
    background: rgba(47, 210, 122, 0.1);
    border: 1px solid rgba(47, 210, 122, 0.3);
    border-radius: 999px;
    font-weight: 500;
}
body.r3d .label.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ---------- Dashboard: welcome hero ---------- */
.r3d-welcome {
    position: relative;
    min-height: 390px;
    margin-bottom: 18px;
    padding: 46px 46px;
    border: 1px solid var(--x-line-strong);
    border-radius: 22px;
    overflow: hidden;
    background: #081120;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95);
    isolation: isolate;
}
.r3d-welcome-art {
    position: absolute; inset: 0;
    z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 75% 50%;
    transform: scale(1.03);
    transition: transform 1.2s var(--rv-ease);
}
.r3d-welcome:hover .r3d-welcome-art { transform: scale(1.05) translateX(-6px); }
.r3d-welcome::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(6, 11, 20, 0.95) 0%, rgba(6, 11, 20, 0.75) 32%, rgba(6, 11, 20, 0.1) 62%, transparent 100%);
}
.r3d-welcome-copy { position: relative; max-width: 520px; }
.r3d-welcome-title {
    margin: 22px 0 18px;
    font-size: clamp(2.4rem, 4.4vw, 4.1rem);
    font-weight: 300 !important;
    line-height: 1.04;
    letter-spacing: -0.02em !important;
    color: #fff;
}
.r3d-welcome-title span { display: block; }
.r3d-welcome-lead { max-width: 380px; margin-bottom: 26px; font-size: 1.06rem; line-height: 1.55; color: #d5deea; font-weight: 300; }
.r3d-welcome-tag {
    position: absolute; top: 34px; right: 40px;
    margin: 0;
    font-size: 0.68rem;
    line-height: 2.1;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: #c9d4e4;
}
.r3d-welcome-tag span { display: block; width: 32px; height: 1px; margin-top: 12px; background: var(--x-gold); }

/* ---------- Dashboard: stat tiles with 3D icons ---------- */
.r3d-stats { margin-bottom: 4px; }
.r3d-stats > div { margin-bottom: 18px; }
.r3d-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
    min-height: 138px;
    padding: 18px 22px;
    color: var(--x-text);
    background: var(--x-card);
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius);
    box-shadow: var(--x-shadow);
    overflow: hidden;
    transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
    transition: transform 0.6s var(--rv-ease), border-color 0.5s, box-shadow 0.6s var(--rv-ease);
}
.r3d-stat:hover { --ty: -4px; color: #fff; text-decoration: none; border-color: rgba(216, 182, 122, 0.45); box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(216, 182, 122, 0.2); }
.r3d-stat-ico { width: 92px; height: 92px; flex: 0 0 auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)); transition: transform 0.7s var(--rv-ease); }
.r3d-stat:hover .r3d-stat-ico { transform: translateY(-4px) scale(1.06) rotate(-3deg); }
.r3d-stat-body { display: flex; flex-direction: column; min-width: 0; }
.r3d-stat-label { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--x-text-dim); }
.r3d-stat-num { margin: 4px 0 2px; font-size: 2.4rem; font-weight: 300; line-height: 1.1; color: #fff; }
.r3d-stat-sub { font-size: 0.85rem; color: #b9c6d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.r3d-stat-go {
    position: absolute; top: 22px; right: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--x-line-strong);
    color: #cfd9e8;
    font-size: 0.8rem;
    transition: all 0.45s var(--rv-ease);
}
.r3d-stat:hover .r3d-stat-go { color: #110f0b; background: var(--rv-gold-grad); border-color: transparent; transform: translateX(3px); }

/* ---------- Dashboard: panels + help card ---------- */
.r3d-dash-row .client-home-cards .card { margin-bottom: 18px; }
.client-home-cards .card-header { padding: 18px 22px; }
.client-home-cards .card-title { font-size: 1.15rem; }
.client-home-cards .card-header .btn { border-radius: 999px; background: transparent !important; border: 1px solid var(--x-line-strong) !important; color: var(--x-text) !important; }
.client-home-cards .card-header .btn:hover { border-color: rgba(216, 182, 122, 0.6) !important; color: var(--x-gold-hi) !important; }
.client-home-cards .list-group { max-height: 260px; border-color: var(--x-line) !important; }
.client-home-cards .list-group .list-group-item { padding: 12px 22px; border-bottom-color: var(--x-line); }
.client-home-cards .card-footer:empty { display: none; }
.r3d-help {
    position: relative;
    padding: 26px 22px 0;
    background: var(--x-card);
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius);
    box-shadow: var(--x-shadow);
    overflow: hidden;
}
.r3d-help-ico { position: absolute; top: 6px; right: 12px; width: 104px; height: 104px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.6)); }
.r3d-help-title { margin: 0 0 6px; font-size: 1.35rem; color: #fff; }
.r3d-help-lead { margin: 0 0 22px; color: var(--x-text-dim); font-size: 0.9rem; max-width: 60%; }
.r3d-help-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    padding: 14px 16px;
    color: var(--x-text);
    background: rgba(6, 11, 20, 0.55);
    border: 1px solid var(--x-line);
    border-radius: 14px;
    transition: border-color 0.4s, transform 0.45s var(--rv-ease), background 0.4s;
}
.r3d-help-link > i:first-child {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: 0 0 auto;
    border-radius: 12px;
    border: 1px solid var(--x-line-strong);
    color: #dbe3ef;
    font-size: 1.05rem;
}
.r3d-help-link span { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.35; }
.r3d-help-link strong { font-weight: 500; }
.r3d-help-link small { color: var(--x-text-dim); }
.r3d-help-caret { color: var(--x-text-dim); transition: transform 0.4s var(--rv-ease), color 0.3s; }
.r3d-help-link:hover { color: #fff; text-decoration: none; border-color: rgba(216, 182, 122, 0.5); background: rgba(20, 34, 58, 0.85); transform: translateX(3px); }
.r3d-help-link:hover .r3d-help-caret { color: var(--x-gold-hi); transform: translateX(3px); }
.r3d-help-strip { display: block; width: calc(100% + 44px); margin: 6px -22px 0; height: 110px; object-fit: cover; object-position: 50% 100%; }

/* ---------- Homepage video hero inside the shell ---------- */
.r3d-main .royal-hero--video {
    min-height: min(76vh, 720px);
    margin: 18px 28px 0;
    padding: 70px 0 60px;
    border: 1px solid var(--x-line-strong);
    border-radius: 24px;
}
/* the reference film is violet: shift it into the navy palette */
.royal-hero-bg .bg-video { filter: hue-rotate(-62deg) saturate(0.7) brightness(0.92); }
/* fallback art first, then the (re-tinted) poster, then the film on top */
.r3d-main .royal-hero--video .royal-hero-bg::before {
    content: "";
    position: absolute; inset: 0;
    background: url("https://d2ol7oe51mr4n9.cloudfront.net/user_38xzZboKViGWJOttwIXH07lWA1P/82e7eb75-c65f-490a-99b5-f3d1cad54200.webp") 50% 40% / cover no-repeat;
    filter: hue-rotate(-62deg) saturate(0.7) brightness(0.92);
}
.royal-hero-shade {
    background:
        radial-gradient(60% 55% at 50% 48%, rgba(6, 11, 20, 0.6) 0%, rgba(6, 11, 20, 0.2) 70%, transparent 100%),
        linear-gradient(180deg, rgba(6, 11, 20, 0.55) 0%, transparent 25%, transparent 70%, rgba(6, 11, 20, 0.9) 100%);
}
.royal-hero--video .royal-hero-title { font-weight: 300 !important; letter-spacing: -0.02em; }
.royal-hero--video .ln-i { background: linear-gradient(180deg, #ffffff, #dfe8f4); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 6px 30px rgba(64, 108, 170, 0.5)); }
.royal-eyebrow { letter-spacing: 0.32em; }

/* ---------- Network status: live globe ---------- */
.r3d-netstat {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 20px;
    min-height: 300px;
    margin-bottom: 18px;
    padding: 34px 38px;
    background: radial-gradient(70% 90% at 80% 50%, rgba(40, 75, 130, 0.45), transparent 70%), var(--x-card);
    border: 1px solid var(--x-line-strong);
    border-radius: 22px;
    overflow: hidden;
}
.r3d-netstat-title { margin: 14px 0 22px; font-size: 2.3rem; font-weight: 300 !important; color: #fff; }
.r3d-netstat-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.r3d-pill-stat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--x-line-strong); background: rgba(6, 11, 20, 0.5); font-size: 0.88rem; color: #dbe3ef; }
.r3d-pill-stat i { color: var(--x-gold); }
.r3d-pill-stat.is-ok i { color: #6ee7a8; }
.r3d-pill-stat.is-warn i { color: #f0a64a; }
.r3d-netstat-globe { position: relative; display: flex; align-items: center; justify-content: center; }
.r3d-globe { width: min(100%, 340px); aspect-ratio: 1 / 1; height: auto; display: block; }

/* ---------- Pricing: 3D product cards (order form + homepage groups) ---------- */
#order-standard_cart .products .product,
.card-columns.home .card {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
    transform-style: preserve-3d;
    transition: transform 0.6s var(--rv-ease), box-shadow 0.6s var(--rv-ease), border-color 0.5s;
}
#order-standard_cart .products .product { position: relative; overflow: hidden; }
#order-standard_cart .products .product::after {
    content: "";
    position: absolute; inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--rv-angle, 0deg), transparent 0deg, rgba(241, 220, 174, 0.9) 50deg, transparent 110deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity 0.5s;
    animation: rv-rim 5s linear infinite;
    pointer-events: none;
}
#order-standard_cart .products .product:hover { --ty: -8px; }
#order-standard_cart .products .product:hover::after { opacity: 1; }
#order-standard_cart .products .product div.product-pricing span.price { font-size: 2.1rem; font-weight: 300; background: var(--rv-gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
#order-standard_cart .products .product .btn-order-now { border-radius: 999px; }

/* Card anatomy: set here with extra weight because the order form stylesheet loads after the theme */
body #order-standard_cart .products .product { margin-bottom: 28px; border: 1px solid var(--x-line-strong) !important; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
body #order-standard_cart .products .product::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 140px; pointer-events: none;
    background: radial-gradient(70% 100% at 50% 0%, rgba(216, 182, 122, 0.16), transparent 70%);
}
body #order-standard_cart .products .product header {
    display: block; padding: 26px 28px 8px; margin: 0; border: 0 !important; background: none !important;
    font-family: var(--rv-font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: 0.01em; color: #fff;
}
body #order-standard_cart .products .product header::after { content: ""; display: block; width: 38px; height: 2px; margin-top: 14px; background: var(--x-gold); box-shadow: 0 0 12px rgba(216, 182, 122, 0.7); }
body #order-standard_cart .products .product div.product-desc { float: none; width: auto; padding: 14px 28px 6px; font-size: 0.95rem; color: #b9c6d8; }
body #order-standard_cart .products .product div.product-desc ul { list-style: none; padding: 0; margin: 0; }
body #order-standard_cart .products .product div.product-desc li { position: relative; padding: 7px 0 7px 26px; border-bottom: 1px solid rgba(130, 165, 215, 0.1); }
body #order-standard_cart .products .product div.product-desc li::before {
    content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 6px;
    border-left: 2px solid var(--x-gold); border-bottom: 2px solid var(--x-gold); transform: rotate(-45deg);
}
body #order-standard_cart .products .product div.product-desc .feature-value { color: #fff; font-weight: 500; }
body #order-standard_cart .products .product footer {
    float: none; width: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 18px 28px 26px; margin-top: 10px; text-align: left; font-size: 0.85rem; color: var(--x-text-dim);
}
body #order-standard_cart .products .product div.product-pricing { margin: 0; line-height: 1.2; }
body #order-standard_cart .products .product div.product-pricing span.price { display: inline-block; margin-bottom: 2px; letter-spacing: -0.01em; }
body #order-standard_cart .products .product footer .btn { border-radius: 999px; padding: 0.55rem 1.2rem; font-weight: 600; color: #141008; background: var(--rv-gold-grad); border: 0; box-shadow: 0 10px 26px -10px rgba(216, 182, 122, 0.7); }
body #order-standard_cart .products .product footer .btn:hover { filter: brightness(1.08); }
body #order-standard_cart .products .product.featured, body #order-standard_cart .products .product:has(.featured) { border-color: rgba(216, 182, 122, 0.55) !important; }
[dir="rtl"] body #order-standard_cart .products .product div.product-desc li { padding: 7px 26px 7px 0; }
[dir="rtl"] body #order-standard_cart .products .product div.product-desc li::before { left: auto; right: 2px; }
[dir="rtl"] body #order-standard_cart .products .product footer { text-align: right; }
[data-theme="light"] body #order-standard_cart .products .product header { color: #14223a; }
[data-theme="light"] body #order-standard_cart .products .product div.product-desc { color: #4a5a72; }
[data-theme="light"] body #order-standard_cart .products .product div.product-desc .feature-value { color: #14223a; }

/* ---------- Footer inside the shell ---------- */
.r3d-main footer.footer { margin-top: 30px; background: transparent; border-top: 1px solid var(--x-line); }
.r3d-main footer.footer::before { opacity: 0.4; }

/* ---------- Responsive shell ---------- */
@media (max-width: 1199.98px) {
    :root { --x-sidebar-w: 0px; }
    .r3d-sidebar { width: 280px; transform: translateX(-100%); transition: transform 0.55s var(--rv-ease); }
    body.r3d-nav-open .r3d-sidebar { transform: none; }
    .r3d-backdrop { position: fixed; inset: 0; z-index: 1025; background: rgba(4, 8, 15, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
    body.r3d-nav-open .r3d-backdrop { opacity: 1; visibility: visible; }
    .r3d-burger { display: inline-flex; }
    .r3d-top-logo { display: block; }
    .r3d-area-label { display: none; }
}
@media (max-width: 991.98px) {
    .r3d-search { display: none; }
    .r3d-welcome { padding: 34px 26px; min-height: 340px; }
    .r3d-welcome::before { background: linear-gradient(180deg, rgba(6, 11, 20, 0.35) 0%, rgba(6, 11, 20, 0.92) 70%); }
    .r3d-welcome-art { object-position: 70% 0%; }
    .r3d-welcome-copy { padding-top: 120px; }
    .r3d-welcome-tag { display: none; }
    .r3d-netstat { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    header.header.r3d-topbar { padding: 0 14px; gap: 10px; }
    .r3d-container { padding: 0 14px; }
    .r3d-top-logo img { height: 34px; }
    .r3d-main .royal-hero--video { margin: 12px 14px 0; }
    .r3d-stat { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; padding: 16px; }
    .r3d-stat-ico { width: 64px; height: 64px; }
    .r3d-stat-num { font-size: 1.9rem; }
    .r3d-stat-go { top: 14px; right: 12px; }
    .r3d-help-lead { max-width: 100%; }
}

/* =====================================================================
   LIGHT MODE ("Swiss day"): ivory surfaces, navy ink, same gold.
   The sidebar stays midnight for contrast.
   ===================================================================== */
html[data-theme="light"] {
    --x-ink: #f0eeea;
    --x-base: #f5f3f0;
    --x-panel: #ffffff;
    --x-line: rgba(20, 40, 70, 0.1);
    --x-line-strong: rgba(20, 40, 70, 0.16);
    --x-text: #14223a;
    --x-text-dim: #5b6b82;
    --x-card: linear-gradient(160deg, #ffffff 0%, #faf8f6 100%);
    --x-shadow: 0 20px 50px -30px rgba(20, 40, 70, 0.35);
    --rv-text: #14223a;
    --rv-text-dim: #5b6b82;
    --rv-glass: #ffffff;
    --rv-line-soft: rgba(20, 40, 70, 0.1);
    --text: #14223a;
    --text-muted: #6b7a90;
    --text-lifted: #5b6b82;
    --bg: #ffffff;
    color-scheme: light;
}
html[data-theme="light"] { background: #f0eeea; }
[data-theme="light"] body { color: #14223a; }
[data-theme="light"] .royal-scene { background: radial-gradient(120% 80% at 70% -10%, #ffffff 0%, #f0eeea 60%); }
[data-theme="light"] .royal-scene > *:not(.royal-vignette) { display: none; }
[data-theme="light"] .royal-vignette { display: none; }
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3, [data-theme="light"] h4, [data-theme="light"] h5,
[data-theme="light"] .h1, [data-theme="light"] .h3, [data-theme="light"] .card-title, [data-theme="light"] .modal-title { color: #14223a; }
[data-theme="light"] a { color: #8a6d3a; }
[data-theme="light"] a:hover { color: #14223a; }
[data-theme="light"] .text-muted { color: #6b7a90 !important; }
[data-theme="light"] header.header.r3d-topbar { background: rgba(250, 248, 243, 0.96); }
[data-theme="light"] .r3d-area-label, [data-theme="light"] .r3d-user-btn, [data-theme="light"] .r3d-icon-btn { color: #14223a; }
[data-theme="light"] .r3d-top-logo img { filter: brightness(0.25) sepia(0.3); }
[data-theme="light"] .card, [data-theme="light"] .panel, [data-theme="light"] .well,
[data-theme="light"] .r3d-stat, [data-theme="light"] .r3d-help, [data-theme="light"] .list-group-item,
[data-theme="light"] .action-icon-btns a, [data-theme="light"] .tiles .tile,
[data-theme="light"] #order-standard_cart .products .product, [data-theme="light"] #order-standard_cart .view-cart-items,
[data-theme="light"] #order-standard_cart .summary-container, [data-theme="light"] #order-standard_cart .order-summary {
    color: #14223a;
    background: #ffffff !important;
    border-color: rgba(20, 40, 70, 0.1) !important;
}
[data-theme="light"] .card-header, [data-theme="light"] .card-footer, [data-theme="light"] .sidebar .card-header { background: #faf8f6; color: #14223a; }
[data-theme="light"] .r3d-stat-num, [data-theme="light"] .r3d-help-title { color: #14223a; }
[data-theme="light"] .r3d-stat-sub { color: #5b6b82; }
[data-theme="light"] .r3d-help-link { background: #f5f3f0; color: #14223a; }
[data-theme="light"] .r3d-help-link > i:first-child { color: #14223a; }
[data-theme="light"] .r3d-help-link:hover { background: #fff; }
[data-theme="light"] .r3d-stat-go { color: #14223a; }
[data-theme="light"] .form-control, [data-theme="light"] .custom-select, [data-theme="light"] .input-group-text {
    color: #14223a; background-color: #ffffff; border-color: rgba(20, 40, 70, 0.16);
}
[data-theme="light"] .form-control:focus { color: #14223a; background-color: #fff; }
[data-theme="light"] .form-control::placeholder { color: #8b97a8; }
[data-theme="light"] label, [data-theme="light"] .form-control-label { color: #44546b; }
[data-theme="light"] .table, [data-theme="light"] table.table-list tbody td { color: #14223a; }
[data-theme="light"] .table th, [data-theme="light"] .table td { border-color: rgba(20, 40, 70, 0.08) !important; }
[data-theme="light"] .table thead th, [data-theme="light"] table.table-list thead th { background: #f5f3f0 !important; color: #5b6b82 !important; }
[data-theme="light"] .table-hover tbody tr:hover, [data-theme="light"] table.table-list tbody tr:hover td { background: #f4f1eb !important; color: #14223a; }
[data-theme="light"] .list-group-item-action { color: #44546b; }
[data-theme="light"] .list-group-item-action:hover { color: #14223a; background: #f4f1eb; }
[data-theme="light"] .list-group-item.active, [data-theme="light"] .sidebar .list-group-item.active { color: #14223a; background: #ece7dd; }
[data-theme="light"] .btn-default, [data-theme="light"] .btn-secondary, [data-theme="light"] .btn-light { color: #14223a; background: #fff; border-color: rgba(20, 40, 70, 0.16); }
[data-theme="light"] .btn-ghost { color: #14223a; background: rgba(255, 255, 255, 0.7); border-color: rgba(20, 40, 70, 0.16); }
[data-theme="light"] .dropdown-menu, [data-theme="light"] .popover, [data-theme="light"] .modal-content { background: #fff; border-color: rgba(20, 40, 70, 0.12); color: #14223a; }
[data-theme="light"] .dropdown-item { color: #14223a; }
[data-theme="light"] .dropdown-item:hover { color: #14223a; background: #f4f1eb; }
[data-theme="light"] .popover-body, [data-theme="light"] .client-alerts li a { color: #14223a; }
[data-theme="light"] .master-breadcrumb .breadcrumb a { color: #5b6b82; }
[data-theme="light"] .master-breadcrumb .breadcrumb .breadcrumb-item.active { color: #8a6d3a; }
[data-theme="light"] #main-body h2.text-center { color: #14223a; }
[data-theme="light"] .action-icon-btns a { color: #14223a; }
[data-theme="light"] footer.footer { background: transparent; color: #5b6b82; }
[data-theme="light"] footer.footer .nav-link { color: #44546b; }
[data-theme="light"] .alert-warning { color: #79591f; background: #fbf0dc; }
[data-theme="light"] .alert-info { color: #24406a; background: #e8eef8; }
[data-theme="light"] .alert-success { color: #1f6b44; background: #e5f6ec; }
[data-theme="light"] .alert-danger { color: #8f1d33; background: #fbe6ea; }
[data-theme="light"] .r3d-netstat { background: radial-gradient(70% 90% at 80% 50%, rgba(64, 108, 170, 0.12), transparent 70%), #fff; }
[data-theme="light"] .r3d-netstat-title { color: #14223a; }
[data-theme="light"] .r3d-pill-stat { background: #f5f3f0; color: #14223a; }
[data-theme="light"] .tiles .tile .title { color: #5b6b82; }
/* the dashboard hero and video hero stay cinematic (night scene) in both modes */

/* =====================================================================
   RTL (Persian, Arabic, Hebrew): mirrors the shell and Bootstrap helpers
   ===================================================================== */
[dir="rtl"] body { font-family: "Vazirmatn", "Outfit", system-ui, sans-serif; text-align: right; }
[dir="rtl"] .r3d-sidebar { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--x-line); }
[dir="rtl"] .r3d-main { margin-left: 0; margin-right: var(--x-sidebar-w); }
[dir="rtl"] .r3d-nav-link, [dir="rtl"] .r3d-user-meta { text-align: right; }
[dir="rtl"] .r3d-nav-item.is-active > .r3d-nav-link, [dir="rtl"] .r3d-nav-item.is-open > .r3d-nav-link { box-shadow: inset -3px 0 0 var(--x-gold), 0 10px 30px -18px rgba(0, 0, 0, 0.9); }
[dir="rtl"] .r3d-sub { padding: 0 50px 0 0; }
[dir="rtl"] .r3d-sub-link::before { left: auto; right: -16px; }
[dir="rtl"] .r3d-sub-link:hover, [dir="rtl"] .r3d-help-link:hover { transform: translateX(-3px); }
[dir="rtl"] .r3d-area-label { padding-right: 0; padding-left: 22px; border-right: 0; border-left: 1px solid var(--x-line); }
[dir="rtl"] .r3d-search .fa-search { left: auto; right: 16px; }
[dir="rtl"] .r3d-search .form-control { padding-left: 12px; padding-right: 44px; }
[dir="rtl"] .r3d-top-actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .r3d-badge { right: auto; left: 1px; }
[dir="rtl"] .r3d-welcome::before { background: linear-gradient(270deg, rgba(6, 11, 20, 0.95) 0%, rgba(6, 11, 20, 0.75) 32%, rgba(6, 11, 20, 0.1) 62%, transparent 100%); }
[dir="rtl"] .r3d-welcome-art { transform: scale(1.03) scaleX(-1); }
[dir="rtl"] .r3d-welcome-tag { right: auto; left: 40px; text-align: left; }
[dir="rtl"] .r3d-stat-go { right: auto; left: 18px; }
[dir="rtl"] .r3d-stat-go i, [dir="rtl"] .r3d-help-caret, [dir="rtl"] .arw { transform: scaleX(-1); }
[dir="rtl"] .r3d-help-ico { right: auto; left: 12px; }
[dir="rtl"] .r3d-side-tagline { left: auto; right: 24px; }
[dir="rtl"] .r3d-kicker, [dir="rtl"] .r3d-stat-label, [dir="rtl"] .r3d-area-label { letter-spacing: 0.04em; }
[dir="rtl"] .float-right { float: left !important; }
[dir="rtl"] .float-left { float: right !important; }
[dir="rtl"] .text-right { text-align: left !important; }
[dir="rtl"] .text-left { text-align: right !important; }
[dir="rtl"] .ml-auto { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .mr-auto { margin-right: 0 !important; margin-left: auto !important; }
[dir="rtl"] .dropdown-menu-right { right: auto; left: 0; }
[dir="rtl"] .input-group > .form-control:not(:last-child) { border-radius: 0 12px 12px 0; }
[dir="rtl"] .input-group > .input-group-append > .btn { border-radius: 12px 0 0 12px; }
[dir="rtl"] .list-group-item.active, [dir="rtl"] .sidebar .list-group-item.active { box-shadow: inset -3px 0 0 var(--rv-gold); }
[dir="rtl"] .breadcrumb-item + .breadcrumb-item { padding-left: 0; padding-right: 0.5rem; }
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before { padding-right: 0; padding-left: 0.5rem; }
[dir="rtl"] .modal-header .close { margin: -1rem auto -1rem -1rem; }
@media (max-width: 1199.98px) {
    [dir="rtl"] .r3d-sidebar { transform: translateX(100%); }
    [dir="rtl"] body.r3d-nav-open .r3d-sidebar { transform: none; }
}

/* Day / night switch: a short colour cross-fade only while the theme flips. */
html.r3d-theme-anim, html.r3d-theme-anim body, html.r3d-theme-anim .card, html.r3d-theme-anim .r3d-topbar,
html.r3d-theme-anim .r3d-stat, html.r3d-theme-anim .r3d-help, html.r3d-theme-anim footer {
    transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease !important;
}
@media (prefers-reduced-motion: reduce) {
    html.r3d-theme-anim * { transition: none !important; }
}

/* Light mode: the hero and sidebar stay dark, so their text keeps the dark-mode colours */
[data-theme="light"] .r3d-welcome-title > span:not(.r3d-gold-text) { color: #fff; -webkit-text-fill-color: #fff; }
[data-theme="light"] .r3d-sidebar .r3d-nav-link { color: #c9d4e4; }
[data-theme="light"] .r3d-sidebar .r3d-sub-link { color: #aebcd0; }
[data-theme="light"] .r3d-sidebar .r3d-nav-item.is-active > .r3d-nav-link,
[data-theme="light"] .r3d-sidebar .r3d-nav-item.is-open > .r3d-nav-link,
[data-theme="light"] .r3d-sidebar .r3d-sub-link.active,
[data-theme="light"] .r3d-sidebar .r3d-sub-link.is-active { color: #f1d8ae; }
/* Mixed-direction copy (Latin text in an RTL page) keeps its own punctuation order */
[dir="rtl"] .r3d-welcome-title > span, [dir="rtl"] .r3d-welcome-lead, [dir="rtl"] .r3d-stat-sub,
[dir="rtl"] .r3d-help-lead, [dir="rtl"] .r3d-help-link small, [dir="rtl"] .r3d-side-tagline { unicode-bidi: plaintext; text-align: right; }
[data-theme="light"] body.r3d .r3d-topbar .btn-ghost { color: #14223a; background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(20, 40, 70, 0.18); }
[data-theme="light"] body.r3d .r3d-topbar .btn-ghost:hover { color: #14223a; background: #fff; border-color: rgba(216, 182, 122, 0.7); }
.r3d-nav-link:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.r3d-nav-link:focus-visible { outline: 2px solid var(--x-gold); outline-offset: 2px; }
/* Short screens: give the menu the room, shrink or drop the scenery */
@media (max-height: 900px) { .r3d-side-scene { height: 190px; } }
@media (max-height: 720px) { .r3d-side-scene { display: none; } }

/* ---------- Order form / registration fields (the order form stylesheet paints them white) ---------- */
body.r3d #order-standard_cart .form-control,
body.r3d #order-standard_cart .field,
body.r3d #order-standard_cart select,
body.r3d #order-standard_cart textarea,
body.r3d .prepend-icon .field,
body.r3d #registration .form-control,
body.r3d #frmCheckout .form-control {
    color: var(--rv-text) !important;
    background-color: rgba(6, 12, 22, 0.6) !important;
    border: 1px solid var(--rv-line-soft) !important;
}
body.r3d #order-standard_cart .form-control::placeholder,
body.r3d #order-standard_cart .field::placeholder,
body.r3d .prepend-icon .field::placeholder,
body.r3d #registration .form-control::placeholder { color: rgba(160, 176, 200, 0.6) !important; opacity: 1; }
body.r3d #order-standard_cart .form-control:focus,
body.r3d #order-standard_cart .field:focus,
body.r3d .prepend-icon .field:focus {
    color: #fff !important;
    background-color: rgba(12, 21, 37, 0.85) !important;
    border-color: rgba(216, 182, 122, 0.7) !important;
}
body.r3d #order-standard_cart select option, body.r3d select.form-control option { color: var(--rv-text); background: #0b1424; }
body.r3d .prepend-icon .field-icon, body.r3d .prepend-icon .field-icon i { color: var(--rv-gold) !important; }
/* Browser autofill (the pale blue e-mail field) */
body.r3d input:-webkit-autofill,
body.r3d input:-webkit-autofill:hover,
body.r3d input:-webkit-autofill:focus,
body.r3d textarea:-webkit-autofill,
body.r3d select:-webkit-autofill {
    -webkit-text-fill-color: var(--rv-text);
    caret-color: var(--rv-text);
    -webkit-box-shadow: 0 0 0 1000px #0b1424 inset !important;
    box-shadow: 0 0 0 1000px #0b1424 inset !important;
    transition: background-color 9999s ease-out 0s;
}

/* ---------- Phone number country picker (intl-tel-input, old and new class names) ---------- */
body.r3d .intl-tel-input .country-list,
body.r3d .iti__country-list,
body.r3d .iti-container .country-list {
    color: var(--rv-text);
    background: #0b1424 !important;
    border: 1px solid var(--x-line-strong, rgba(150, 180, 220, 0.22)) !important;
    border-radius: 12px;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
    scrollbar-color: #2d4a75 #0b1424;
}
body.r3d .intl-tel-input .country-list .country,
body.r3d .iti__country { color: var(--rv-text); }
body.r3d .intl-tel-input .country-list .country-name,
body.r3d .iti__country-name { color: var(--rv-text) !important; }
body.r3d .intl-tel-input .country-list .dial-code,
body.r3d .iti__dial-code { color: var(--rv-gold) !important; }
body.r3d .intl-tel-input .country-list .country.highlight,
body.r3d .intl-tel-input .country-list .country:hover,
body.r3d .iti__country.iti__highlight,
body.r3d .iti__country:hover { background: rgba(216, 182, 122, 0.14) !important; }
body.r3d .intl-tel-input .country-list .divider,
body.r3d .iti__divider { border-bottom-color: rgba(150, 180, 220, 0.18) !important; }
body.r3d .intl-tel-input .selected-flag,
body.r3d .iti__selected-flag { background: rgba(64, 108, 170, 0.14) !important; border-radius: 12px 0 0 12px; }
body.r3d .intl-tel-input .selected-flag .iti-arrow { border-top-color: var(--rv-gold); }
body.r3d .intl-tel-input .selected-flag .iti-arrow.up { border-bottom-color: var(--rv-gold); }
body.r3d .iti__arrow { border-top-color: var(--rv-gold); }
body.r3d .iti__search-input { color: var(--rv-text); background: #08111f; border-bottom: 1px solid rgba(150, 180, 220, 0.18); }
[dir="rtl"] body.r3d .intl-tel-input .selected-flag { border-radius: 0 12px 12px 0; }

/* Light mode keeps these readable on ivory */
[data-theme="light"] body.r3d #order-standard_cart .form-control,
[data-theme="light"] body.r3d #order-standard_cart .field,
[data-theme="light"] body.r3d .prepend-icon .field,
[data-theme="light"] body.r3d #registration .form-control { color: #14223a !important; background-color: #fff !important; border-color: rgba(20, 40, 70, 0.18) !important; }
[data-theme="light"] body.r3d #order-standard_cart .form-control::placeholder,
[data-theme="light"] body.r3d .prepend-icon .field::placeholder { color: #7a879b !important; }
[data-theme="light"] body.r3d input:-webkit-autofill { -webkit-text-fill-color: #14223a; -webkit-box-shadow: 0 0 0 1000px #fff inset !important; box-shadow: 0 0 0 1000px #fff inset !important; }
[data-theme="light"] body.r3d .intl-tel-input .country-list,
[data-theme="light"] body.r3d .iti__country-list { background: #fff !important; }
[data-theme="light"] body.r3d .intl-tel-input .country-list .country-name,
[data-theme="light"] body.r3d .iti__country-name { color: #14223a !important; }
[data-theme="light"] body.r3d .intl-tel-input .country-list .dial-code,
[data-theme="light"] body.r3d .iti__dial-code { color: #8a6d3a !important; }

/* =====================================================================
   HUNTX 3D Royal v2: photo scene, animated light orbits, homepage,
   footer and sign-in built from the DatenOrt design boards
   ===================================================================== */

/* Day/night button: only one of the two icons at a time */
.r3d-icon-btn .r3d-when-light { display: none !important; }
[data-theme="light"] .r3d-icon-btn .r3d-when-light { display: inline-block !important; }
[data-theme="light"] .r3d-icon-btn .r3d-when-dark { display: none !important; }

/* ---------- Scene: photo + SVG light layer share the same crop (cover / xMaxYMid slice) ---------- */
.r3d-scene { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #060b14; }
.r3d-scene picture { display: contents; }
.r3d-scene-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: 100% 50%;
    display: block;
}
.r3d-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.r3d-fx-path { stroke: #ffe2a8; stroke-width: 4.2; stroke-dasharray: 110 890; stroke-dashoffset: 1000; opacity: 0; animation: r3dStreak 7s linear infinite; }
.r3d-fx-p2 { animation-duration: 5.5s; animation-delay: -1.8s; }
.r3d-fx-p3 { animation-duration: 6.5s; animation-delay: -3.1s; }
.r3d-fx-p4 { animation-duration: 4.6s; animation-delay: -0.7s; stroke-dasharray: 50 950; }
.r3d-fx-p5 { animation-duration: 4.2s; animation-delay: -2.6s; stroke-dasharray: 60 940; }
.r3d-fx-late { animation-delay: -3.5s; }
.r3d-fx-p3.r3d-fx-late { animation-delay: -6.2s; }
@keyframes r3dStreak {
    0% { stroke-dashoffset: 1000; opacity: 0; }
    8% { opacity: 1; }
    88% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}
.r3d-fx-node { transform-box: fill-box; transform-origin: center; animation: r3dNode 3.4s ease-in-out infinite; }
.r3d-fx-node:nth-child(2n) { animation-duration: 4.1s; animation-delay: -1.3s; }
.r3d-fx-node:nth-child(3n) { animation-duration: 2.8s; animation-delay: -2.2s; }
@keyframes r3dNode { 0%, 100% { transform: scale(0.7); opacity: 0.45; } 50% { transform: scale(1.25); opacity: 1; } }
.r3d-fx-globe { transform-box: fill-box; transform-origin: center; animation: r3dGlobe 5s ease-in-out infinite; }
@keyframes r3dGlobe { 0%, 100% { opacity: 0.35; transform: scale(0.96); } 50% { opacity: 0.85; transform: scale(1.04); } }
.r3d-fx-sweep-bar { animation: r3dSweep 8s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes r3dSweep { 0% { transform: translateX(-160px); } 55%, 100% { transform: translateX(640px); } }
@media (prefers-reduced-motion: reduce) {
    .r3d-fx-path, .r3d-fx-sweep { display: none; }
    .r3d-fx-node, .r3d-fx-globe { animation: none; opacity: 0.7; }
}

/* Dashboard welcome uses the scene */
.r3d-welcome .r3d-scene { transition: transform 1.2s var(--rv-ease); }
.r3d-welcome .r3d-scene-img { transform: scale(1.02); transition: transform 1.4s var(--rv-ease); }
.r3d-welcome:hover .r3d-scene-img { transform: scale(1.05); }

/* ---------- Homepage hero ---------- */
.r3d-home-hero {
    position: relative;
    isolation: isolate;
    display: flex; align-items: center;
    min-height: min(78vh, 680px);
    margin: 18px 28px 0;
    padding: 70px 56px;
    border: 1px solid var(--x-line-strong);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.95);
}
.r3d-home-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 11, 20, 0.92) 0%, rgba(6, 11, 20, 0.72) 30%, rgba(6, 11, 20, 0.12) 58%, transparent 75%),
        linear-gradient(180deg, transparent 60%, rgba(6, 11, 20, 0.65) 100%);
}
.r3d-home-hero-copy { position: relative; max-width: 560px; }
.r3d-home-title { margin: 20px 0 18px; font-size: clamp(2.5rem, 5vw, 4.4rem); font-weight: 300 !important; line-height: 1.03; letter-spacing: -0.025em !important; color: #fff; }
.r3d-home-title span { display: block; }
.r3d-home-lead { max-width: 440px; margin: 0 0 30px; font-size: 1.08rem; line-height: 1.6; color: #d7e0ec; }
.r3d-home-actions { display: flex; flex-wrap: wrap; gap: 14px; }
html.anim .r3d-home-hero-copy > * { opacity: 0; transform: translateY(18px); }
html.anim.go .r3d-home-hero-copy > * { animation: r3dRise 0.9s var(--rv-ease) both; }
html.anim.go .r3d-home-hero-copy > :nth-child(2) { animation-delay: 0.12s; }
html.anim.go .r3d-home-hero-copy > :nth-child(3) { animation-delay: 0.24s; }
html.anim.go .r3d-home-hero-copy > :nth-child(4) { animation-delay: 0.36s; }
@keyframes r3dRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Domain bar ---------- */
.r3d-domain-bar {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: minmax(220px, 0.9fr) 2fr auto; align-items: center; gap: 22px 30px;
    margin: -46px 56px 0;
    padding: 24px 30px;
    background: linear-gradient(160deg, rgba(16, 28, 48, 0.97), rgba(9, 16, 29, 0.97));
    border: 1px solid var(--x-line-strong);
    border-radius: 18px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.r3d-domain-bar h2 { margin: 0 0 4px; font-size: 1.35rem; color: #fff; }
.r3d-domain-bar p { margin: 0; font-size: 0.9rem; color: var(--x-text-dim); }
.r3d-domain-form { margin: 0; }
.r3d-domain-form .home-domain-search { padding: 0; background: none; border: 0; }
.r3d-domain-form .input-group { position: relative; align-items: center; flex-wrap: nowrap; padding: 5px; border: 1px solid var(--x-line-strong); border-radius: 999px; background: rgba(4, 9, 17, 0.7); }
.r3d-domain-form .input-group:focus-within { border-color: rgba(216, 182, 122, 0.7); box-shadow: 0 0 0 4px rgba(216, 182, 122, 0.12); }
.r3d-domain-ico { padding: 0 6px 0 14px; color: var(--x-text-dim); }
body.r3d .r3d-domain-form .form-control { height: 44px; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #fff; }
.r3d-domain-form .input-group-append { gap: 6px; }
.r3d-domain-form .input-group-append .btn { border-radius: 999px !important; padding: 0.55rem 1.4rem; }
.r3d-domain-mobile-btns { margin-top: 10px; }
.r3d-tld-pills { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.r3d-tld-pills li { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 7px 12px; border: 1px solid var(--x-line-strong); border-radius: 12px; line-height: 1.2; }
.r3d-tld-pills strong { font-weight: 500; color: #fff; }
.r3d-tld-pills small { font-size: 0.7rem; color: var(--x-gold); }

/* ---------- Sections ---------- */
.r3d-section { margin: 54px 0 0; }
.r3d-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 22px; }
.r3d-section-title { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300 !important; letter-spacing: -0.02em !important; color: #fff; }
.r3d-section-text { max-width: 420px; margin: 0; color: var(--x-text-dim); }
.r3d-card-title { margin: 0 0 8px; font-size: 1.45rem; font-weight: 400; color: #fff; }

/* Product groups */
.r3d-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.r3d-svc {
    position: relative; display: flex; align-items: center; gap: 18px;
    min-height: 118px; padding: 18px 22px;
    color: var(--x-text); text-decoration: none !important;
    background: var(--x-card); border: 1px solid var(--x-line-strong); border-radius: 16px;
    box-shadow: var(--x-shadow);
    transition: transform 0.5s var(--rv-ease), border-color 0.4s, box-shadow 0.5s;
}
.r3d-svc:hover { color: #fff; transform: translateY(-4px); border-color: rgba(216, 182, 122, 0.5); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95), 0 0 40px -18px rgba(216, 182, 122, 0.55); }
.r3d-svc-ico {
    flex: 0 0 auto; width: 76px; height: 76px; border-radius: 14px;
    background: rgba(4, 9, 17, 0.55) url("../img/r3d/ico-server.webp") center / 84% no-repeat;
    box-shadow: inset 0 0 0 1px rgba(150, 180, 220, 0.12);
    transition: transform 0.6s var(--rv-ease);
}
.r3d-svc:hover .r3d-svc-ico { transform: translateY(-3px) scale(1.05); }
.r3d-svc[data-group*="wordpress"] .r3d-svc-ico { background-image: url("../img/r3d/ico-wordpress.webp"); }
.r3d-svc[data-group*="vps"] .r3d-svc-ico, .r3d-svc[data-group*="cloud"] .r3d-svc-ico { background-image: url("../img/r3d/ico-cloud.webp"); }
.r3d-svc[data-group*="dedicated"] .r3d-svc-ico, .r3d-svc[data-group*="server"] .r3d-svc-ico, .r3d-svc[data-group*="root"] .r3d-svc-ico { background-image: url("../img/r3d/ico-dedicated.webp"); }
.r3d-svc[data-group*="reseller"] .r3d-svc-ico { background-image: url("../img/r3d/ico-reseller.webp"); }
.r3d-svc[data-group*="ssl"] .r3d-svc-ico, .r3d-svc[data-group*="secur"] .r3d-svc-ico, .r3d-svc[data-group*="sicher"] .r3d-svc-ico { background-image: url("../img/r3d/ico-shield.webp"); }
.r3d-svc[data-group*="mail"] .r3d-svc-ico, .r3d-svc[data-group*="support"] .r3d-svc-ico { background-image: url("../img/r3d/ico-chat.webp"); }
.r3d-svc[data-group*="domain"] .r3d-svc-ico, .r3d-svc[data-group="transfer"] .r3d-svc-ico { background-image: url("../img/r3d/ico-globe.webp"); }
.r3d-svc[data-group*="licen"] .r3d-svc-ico, .r3d-svc[data-group*="lizen"] .r3d-svc-ico { background-image: url("../img/r3d/ico-document.webp"); }
.r3d-svc-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.r3d-svc-name { font-size: 1.12rem; font-weight: 500; color: #fff; }
.r3d-svc-text { font-size: 0.88rem; line-height: 1.45; color: var(--x-text-dim); }
.r3d-svc-go { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--x-line-strong); color: var(--x-gold-hi); transition: all 0.35s var(--rv-ease); }
.r3d-svc:hover .r3d-svc-go { background: var(--x-gold); border-color: var(--x-gold); color: #141008; }

/* Plans */
.r3d-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.r3d-plan {
    position: relative; display: flex; flex-direction: column;
    padding: 26px 28px 24px;
    background: var(--x-card); border: 1px solid var(--x-line-strong); border-radius: 18px; box-shadow: var(--x-shadow);
    transition: transform 0.5s var(--rv-ease), box-shadow 0.5s;
}
.r3d-plan:hover { transform: translateY(-5px); }
.r3d-plan.is-featured { border-color: rgba(216, 182, 122, 0.7); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95), 0 0 50px -20px rgba(216, 182, 122, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.r3d-plan-badge { position: absolute; top: 22px; right: 22px; padding: 4px 10px; border-radius: 999px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #141008; background: var(--rv-gold-grad); }
.r3d-plan-ico { width: 88px; height: 88px; margin: -6px 0 6px -8px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.6)); }
.r3d-plan-name { margin: 0 0 6px; font-size: 1.45rem; color: #fff; }
.r3d-plan-text { min-height: 2.9em; margin: 0 0 16px; font-size: 0.92rem; color: var(--x-text-dim); }
.r3d-plan-list { flex: 1 1 auto; margin: 0 0 22px; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--x-line); }
.r3d-plan-list li { position: relative; padding: 6px 0 6px 28px; font-size: 0.9rem; color: #d3dcea; }
.r3d-plan-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--x-gold); }
.r3d-plan-list li::after { content: ""; position: absolute; left: 6px; top: 12px; width: 6px; height: 4px; border-left: 1.5px solid var(--x-gold-hi); border-bottom: 1.5px solid var(--x-gold-hi); transform: rotate(-45deg); }
.r3d-plan .btn { justify-content: center; }

/* Swiss band */
.r3d-swiss {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: 1.1fr 0.9fr 1.3fr; align-items: center; gap: 24px;
    margin-top: 56px; padding: 40px 40px;
    border: 1px solid var(--x-line-strong); border-radius: 22px;
}
.r3d-swiss-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.r3d-swiss::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 11, 20, 0.9) 0%, rgba(6, 11, 20, 0.55) 45%, rgba(6, 11, 20, 0.85) 100%); }
.r3d-swiss-copy .r3d-section-title span { display: block; }
.r3d-swiss-copy p { max-width: 380px; margin: 14px 0 0; color: #c9d4e4; }
.r3d-swiss-globe { position: relative; width: min(100%, 250px); aspect-ratio: 1; margin: 0 auto; }
.r3d-swiss-globe img { position: absolute; inset: 9%; width: 82%; height: 82%; animation: r3dBob 7s ease-in-out infinite; }
.r3d-swiss-orbit { position: absolute; inset: -6%; width: 112%; height: 112%; fill: none; stroke: rgba(241, 216, 174, 0.75); stroke-width: 1.3; stroke-dasharray: 3 9; animation: r3dDash 12s linear infinite; filter: drop-shadow(0 0 4px rgba(216, 182, 122, 0.8)); }
.r3d-swiss-orbit-2 { stroke: rgba(160, 196, 255, 0.5); }
@keyframes r3dDash { to { stroke-dashoffset: -240; } }
@keyframes r3dBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.r3d-swiss-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.r3d-swiss-feats li { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 16px; background: rgba(8, 15, 27, 0.72); border: 1px solid var(--x-line-strong); border-radius: 14px; }
.r3d-swiss-feats i { grid-row: 1 / span 2; align-self: center; font-size: 1.6rem; color: var(--x-gold); text-align: center; }
.r3d-swiss-feats strong { font-weight: 500; color: #fff; }
.r3d-swiss-feats span { font-size: 0.82rem; color: var(--x-text-dim); }

/* Migration + FAQ */
.r3d-duo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 18px; }
.r3d-move, .r3d-faq { position: relative; padding: 30px; background: var(--x-card); border: 1px solid var(--x-line-strong); border-radius: 18px; box-shadow: var(--x-shadow); }
.r3d-move { display: flex; align-items: center; gap: 20px; overflow: hidden; }
.r3d-move-copy { flex: 1 1 auto; }
.r3d-move-copy p { max-width: 380px; color: var(--x-text-dim); }
.r3d-move-ico { flex: 0 0 auto; width: 190px; height: 190px; margin: -14px -6px -14px 0; animation: r3dBob 6s ease-in-out infinite; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.7)); }
.r3d-faq-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.r3d-faq-head p { margin: 0; font-size: 0.88rem; color: var(--x-text-dim); }
.r3d-faq-all { flex: 0 0 auto; font-size: 0.85rem; }
.r3d-faq-item { border: 1px solid var(--x-line); border-radius: 10px; margin-top: 8px; background: rgba(4, 9, 17, 0.35); }
.r3d-faq-item summary { position: relative; padding: 10px 40px 10px 14px; font-size: 0.92rem; color: #dfe6f0; cursor: pointer; list-style: none; }
.r3d-faq-item summary::-webkit-details-marker { display: none; }
.r3d-faq-item summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--x-gold); border-bottom: 1.5px solid var(--x-gold); transform: rotate(45deg); transition: transform 0.3s; }
.r3d-faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.r3d-faq-item[open] { border-color: rgba(216, 182, 122, 0.4); }
.r3d-faq-item p { margin: 0; padding: 0 14px 12px; font-size: 0.88rem; color: var(--x-text-dim); }

/* Help tiles */
.r3d-help-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.r3d-help-tile { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--x-text); text-decoration: none !important; background: var(--x-card); border: 1px solid var(--x-line-strong); border-radius: 14px; transition: transform 0.4s var(--rv-ease), border-color 0.4s; }
.r3d-help-tile:hover { transform: translateY(-3px); border-color: rgba(216, 182, 122, 0.5); color: #fff; }
.r3d-help-tile img { width: 52px; height: 52px; flex: 0 0 auto; }
.r3d-help-tile span { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.35; }
.r3d-help-tile strong { font-weight: 500; }
.r3d-help-tile small { color: var(--x-text-dim); }
.r3d-help-tile > i { color: var(--x-gold); }

/* CTA band */
.r3d-cta { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 18px; padding: 44px 48px; border: 1px solid var(--x-line-strong); border-radius: 22px; }
.r3d-cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; }
.r3d-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 11, 20, 0.35), rgba(6, 11, 20, 0.85)); }
.r3d-cta-copy p { margin: 8px 0 0; color: #c9d4e4; }

/* ---------- Footer ---------- */
.r3d-footer { padding: 50px 0 22px !important; }
.r3d-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 30px; align-items: start; }
.r3d-footer-brand img { width: 170px; height: auto; }
.r3d-footer-brand p { margin: 14px 0 12px; font-size: 0.85rem; line-height: 1.6; color: var(--x-text-dim); }
.r3d-footer-social { margin: 0; padding: 0; }
.r3d-footer-col { display: flex; flex-direction: column; gap: 8px; }
.r3d-footer-col h3 { margin: 0 0 6px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.r3d-footer-col a { font-size: 0.9rem; color: var(--x-text-dim); }
.r3d-footer-col a:hover { color: var(--x-gold-hi); text-decoration: none; }
.r3d-footer-scene { position: relative; height: 150px; border-radius: 14px; overflow: hidden; border: 1px solid var(--x-line); }
.r3d-footer-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; opacity: 0.9; }
.r3d-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--x-line); font-size: 0.82rem; }
.r3d-footer-made { display: inline-flex; align-items: center; gap: 8px; color: var(--x-text-dim); }
.r3d-swiss-flag { position: relative; display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: #d52b1e; }
.r3d-swiss-flag::before, .r3d-swiss-flag::after { content: ""; position: absolute; background: #fff; }
.r3d-swiss-flag::before { left: 6px; top: 3px; width: 2px; height: 8px; }
.r3d-swiss-flag::after { left: 3px; top: 6px; width: 8px; height: 2px; }

/* ---------- Sign in ---------- */
.r3d-auth { min-height: 560px; }
.r3d-auth-art { position: relative; isolation: isolate; height: 100%; min-height: 560px; border: 1px solid var(--x-line-strong); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95); }
.r3d-auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 11, 20, 0.88) 0%, rgba(6, 11, 20, 0.35) 45%, rgba(6, 11, 20, 0.2) 70%, rgba(6, 11, 20, 0.75) 100%); }
.r3d-auth-copy { position: relative; padding: 34px 36px; }
.r3d-auth-copy img { width: 150px; height: auto; margin-bottom: 26px; }
.r3d-auth-copy h2 { margin: 0 0 12px; font-size: 2rem; font-weight: 300; line-height: 1.15; color: #fff; }
.r3d-auth-copy p { max-width: 330px; color: #c9d4e4; }
.r3d-auth-form { display: flex; flex-direction: column; justify-content: center; }

/* ---------- Light mode for the new parts ---------- */
[data-theme="light"] .r3d-section-title, [data-theme="light"] .r3d-card-title,
[data-theme="light"] .r3d-svc-name, [data-theme="light"] .r3d-plan-name, [data-theme="light"] .r3d-footer-col h3 { color: #14223a; }
[data-theme="light"] .r3d-svc:hover { color: #14223a; }
[data-theme="light"] .r3d-svc-ico { background-color: #0b1424; }
[data-theme="light"] .r3d-plan-ico { background: #0b1424; border-radius: 18px; padding: 6px; margin-left: 0; }
[data-theme="light"] .r3d-plan-list li { color: #34445c; }
[data-theme="light"] .r3d-plan-list li::after { border-color: #8a6d3a; }
[data-theme="light"] .r3d-faq-item { background: #faf8f5; }
[data-theme="light"] .r3d-faq-item summary { color: #14223a; }
[data-theme="light"] .r3d-help-tile:hover { color: #14223a; }
[data-theme="light"] .r3d-help-tile img, [data-theme="light"] .r3d-move-ico { background: #0b1424; border-radius: 14px; }
[data-theme="light"] .r3d-move-ico { border-radius: 50%; padding: 18px; width: 170px; height: 170px; margin: 0; }
/* the photo panels stay dark in both modes */
[data-theme="light"] .r3d-swiss .r3d-section-title, [data-theme="light"] .r3d-cta .r3d-section-title > span:not(.r3d-gold-text) { color: #fff; }
[data-theme="light"] .r3d-domain-bar { background: #fff; }
[data-theme="light"] .r3d-domain-bar h2 { color: #14223a; }
[data-theme="light"] .r3d-domain-form .input-group { background: #f6f3ee; }
[data-theme="light"] body.r3d .r3d-domain-form .form-control { color: #14223a; }
[data-theme="light"] .r3d-tld-pills strong { color: #14223a; }
[data-theme="light"] .r3d-tld-pills small { color: #8a6d3a; }

/* ---------- RTL ---------- */
[dir="rtl"] .r3d-home-hero::before { background: linear-gradient(270deg, rgba(6, 11, 20, 0.92) 0%, rgba(6, 11, 20, 0.72) 30%, rgba(6, 11, 20, 0.12) 58%, transparent 75%), linear-gradient(180deg, transparent 60%, rgba(6, 11, 20, 0.65) 100%); }
[dir="rtl"] .r3d-svc-go i, [dir="rtl"] .r3d-help-tile > i, [dir="rtl"] .r3d-plan .btn i, [dir="rtl"] .r3d-move .btn i, [dir="rtl"] .r3d-cta .btn i, [dir="rtl"] .r3d-faq-all i { transform: scaleX(-1); }
[dir="rtl"] .r3d-plan-badge { right: auto; left: 22px; }
[dir="rtl"] .r3d-plan-list li { padding: 6px 28px 6px 0; }
[dir="rtl"] .r3d-plan-list li::before { left: auto; right: 0; }
[dir="rtl"] .r3d-plan-list li::after { left: auto; right: 6px; }
[dir="rtl"] .r3d-faq-item summary { padding: 10px 14px 10px 40px; }
[dir="rtl"] .r3d-faq-item summary::after { right: auto; left: 16px; }
[dir="rtl"] .r3d-domain-ico { padding: 0 14px 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1599.98px) {
    .r3d-domain-bar { grid-template-columns: 1fr 2fr; }
    .r3d-tld-pills { grid-column: 1 / -1; }
}
@media (max-width: 1399.98px) {
    .r3d-swiss { grid-template-columns: 1fr 1fr; }
    .r3d-swiss-feats { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
    .r3d-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .r3d-footer-scene { display: none; }
}
@media (max-width: 1199.98px) {
    .r3d-plan-grid { grid-template-columns: 1fr 1fr; }
    .r3d-duo { grid-template-columns: 1fr; }
    .r3d-help-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991.98px) {
    .r3d-home-hero { margin: 14px 14px 0; padding: 60px 30px 90px; min-height: 560px; }
    .r3d-domain-bar { grid-template-columns: 1fr; margin: -50px 22px 0; padding: 22px; }
    .r3d-swiss-feats { grid-template-columns: 1fr 1fr; }
    .r3d-footer-grid { grid-template-columns: 1fr 1fr; }
    .r3d-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .r3d-home-hero { align-items: flex-end; min-height: 620px; padding: 40px 22px 90px; }
    .r3d-home-hero::before { background: linear-gradient(180deg, rgba(6, 11, 20, 0.15) 0%, rgba(6, 11, 20, 0.55) 40%, rgba(6, 11, 20, 0.95) 75%); }
    [dir="rtl"] .r3d-home-hero::before { background: linear-gradient(180deg, rgba(6, 11, 20, 0.15) 0%, rgba(6, 11, 20, 0.55) 40%, rgba(6, 11, 20, 0.95) 75%); }
    .r3d-plan-grid, .r3d-help-row { grid-template-columns: 1fr; }
    .r3d-svc-grid { grid-template-columns: 1fr; }
    .r3d-swiss { grid-template-columns: 1fr; padding: 28px 22px; }
    .r3d-swiss-globe { width: 190px; }
    .r3d-move { flex-direction: column-reverse; align-items: flex-start; }
    .r3d-move-ico { width: 140px; height: 140px; margin: 0; }
    .r3d-cta { padding: 32px 24px; }
    .r3d-tld-pills { flex-wrap: wrap; }
    .r3d-auth { min-height: 0; }
}
@media (max-width: 575.98px) {
    .r3d-domain-bar { margin: -50px 10px 0; }
    .r3d-swiss-feats { grid-template-columns: 1fr; }
    .r3d-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .r3d-swiss-globe img, .r3d-swiss-orbit, .r3d-move-ico { animation: none; }
    html.anim .r3d-home-hero-copy > * { opacity: 1; transform: none; }
}


/* =====================================================================
   Audit fixes
   ===================================================================== */
/* Status pills keep their meaning: one colour per WHMCS status */
body.r3d .label.status-pending, body.r3d .label.status-unpaid, body.r3d .label.status-payment-pending, body.r3d .label.status-draft, body.r3d .label.status-delivered, body.r3d .label.status-accepted {
    color: #f0c27a; background: rgba(240, 166, 74, 0.1); border-color: rgba(240, 166, 74, 0.35);
}
body.r3d .label.status-suspended, body.r3d .label.status-overdue, body.r3d .label.status-fraud, body.r3d .label.status-dead, body.r3d .label.status-expired, body.r3d .label.status-redemption, body.r3d .label.status-grace, body.r3d .label.status-lost {
    color: #ff8fa3; background: rgba(255, 77, 109, 0.1); border-color: rgba(255, 77, 109, 0.35);
}
body.r3d .label.status-cancelled, body.r3d .label.status-terminated, body.r3d .label.status-closed, body.r3d .label.status-refunded, body.r3d .label.status-collections, body.r3d .label.status-transferred-away, body.r3d .label.status-inactive {
    color: #a9b6c9; background: rgba(160, 176, 200, 0.08); border-color: rgba(160, 176, 200, 0.28);
}
body.r3d .label.status-open, body.r3d .label.status-answered, body.r3d .label.status-customer-reply, body.r3d .label.status-in-progress, body.r3d .label.status-on-hold, body.r3d .label.status-pending-transfer, body.r3d .label.status-pending-registration {
    color: #9cc4ff; background: rgba(111, 155, 209, 0.12); border-color: rgba(111, 155, 209, 0.38);
}

/* Notification popover (stock rules use grey on white) */
body.r3d .popover-user-notifications ul li a { color: var(--rv-text); border-color: var(--x-line) !important; }
body.r3d .popover-user-notifications ul li a:hover { background: rgba(64, 108, 170, 0.2); color: #fff; }
body.r3d .popover-user-notifications ul li.none { color: var(--x-text-dim); }
html[data-theme="light"] body.r3d .popover-user-notifications ul li a { color: #14223a; }
html[data-theme="light"] body.r3d .popover-user-notifications ul li a:hover { background: #f4eee3; color: #14223a; }

/* Tooltip / popover arrows for every side */
.tooltip.bs-tooltip-left .arrow::before, .tooltip.bs-tooltip-right .arrow::before { border-left-color: var(--rv-gold) !important; border-right-color: var(--rv-gold) !important; }
.popover.bs-popover-left .arrow::after { border-left-color: #101c31; }
.popover.bs-popover-right .arrow::after { border-right-color: #101c31; }
html[data-theme="light"] .popover .arrow::after { border-top-color: #fff; border-bottom-color: #fff; }
html[data-theme="light"] .popover.bs-popover-left .arrow::after { border-left-color: #fff; }
html[data-theme="light"] .popover.bs-popover-right .arrow::after { border-right-color: #fff; }

/* Mobile: knowledgebase search button replaces the hidden field */
.r3d-search-mobile { display: none !important; }
@media (max-width: 991.98px) { .r3d-search-mobile { display: inline-flex !important; } }
@media (max-width: 575.98px) { .r3d-top-actions .btn[data-target="#modalChooseLanguage"] { display: none; } }

/* Off-canvas sidebar is out of the tab order while closed */
@media (max-width: 1199.98px) {
    .r3d-sidebar { visibility: hidden; transition: transform 0.45s var(--rv-ease), visibility 0s linear 0.45s; }
    body.r3d-nav-open .r3d-sidebar { visibility: visible; transition: transform 0.45s var(--rv-ease), visibility 0s; }
    body.r3d-nav-open { overflow: hidden; }
}

/* Stock purple accents into the palette */
body.r3d .card-accent-magenta, body.r3d .card-accent-pink { border-top-color: var(--x-gold) !important; }
body.r3d .bg-color-pink, body.r3d .bg-color-magenta { background-color: #3d6aa8 !important; }

/* RTL leftovers */
[dir="rtl"] .custom-select { background-position: left 0.75rem center; padding-right: 0.75rem; padding-left: 2rem; }
[dir="rtl"] .r3d-dot { right: auto; left: 10px; }
[dir="rtl"] .r3d-user .dropdown-item i { margin-right: 0; margin-left: 8px; }

/* ---------- Light mode readability pass ---------- */
html[data-theme="light"] .bg-white, html[data-theme="light"] .bg-light { background: #ffffff !important; color: #14223a; }
html[data-theme="light"] body.r3d select option, html[data-theme="light"] body.r3d #order-standard_cart select option { color: #14223a; background: #fff; }
html[data-theme="light"] .modal .close, html[data-theme="light"] .close.text-light { color: #14223a !important; }
html[data-theme="light"] body.r3d .h1, html[data-theme="light"] body.r3d .h2, html[data-theme="light"] body.r3d .h3, html[data-theme="light"] body.r3d .h4, html[data-theme="light"] body.r3d .h5, html[data-theme="light"] body.r3d .h6 { color: #14223a; }
html[data-theme="light"] body.r3d #order-standard_cart .header-lined h1, html[data-theme="light"] body.r3d #order-standard_cart .font-size-36, html[data-theme="light"] body.r3d #order-standard_cart .sub-heading span { color: #14223a; }
html[data-theme="light"] body.r3d #order-standard_cart .sub-heading span { background: #f5f3f0; }
html[data-theme="light"] .editor-toolbar, html[data-theme="light"] .CodeMirror, html[data-theme="light"] .editor-preview { background: #fff !important; color: #14223a !important; border-color: rgba(20, 40, 70, 0.16) !important; }
html[data-theme="light"] .editor-toolbar a { color: #14223a !important; }
html[data-theme="light"] .bootstrap-switch .bootstrap-switch-label { background: #f0ece5; color: #14223a; }
html[data-theme="light"] .dataTables_wrapper .dataTables_filter input, html[data-theme="light"] .dataTables_wrapper .dataTables_length select { background: #fff; color: #14223a; border-color: rgba(20, 40, 70, 0.16); }
html[data-theme="light"] body.r3d #order-standard_cart select, html[data-theme="light"] body.r3d #order-standard_cart textarea, html[data-theme="light"] body.r3d #frmCheckout .form-control { color: #14223a !important; background-color: #fff !important; border-color: rgba(20, 40, 70, 0.18) !important; }
html[data-theme="light"] .text-primary, html[data-theme="light"] .btn-link, html[data-theme="light"] .btn-outline-primary, html[data-theme="light"] .nav-tabs .nav-link.active, html[data-theme="light"] .sidebar .badge { color: #8a6d3a !important; }
html[data-theme="light"] .btn-outline-primary { border-color: rgba(138, 109, 58, 0.55); }
html[data-theme="light"] .btn-outline-primary:hover { color: #141008 !important; }
html[data-theme="light"] .nav-tabs .nav-link:hover, html[data-theme="light"] .page-link:hover, html[data-theme="light"] .btn-default:hover, html[data-theme="light"] .btn-secondary:hover, html[data-theme="light"] .btn-light:hover { color: #14223a; }
html[data-theme="light"] .page-link { color: #34445c; background: #fff; }
html[data-theme="light"] .r3d-welcome .r3d-kicker, html[data-theme="light"] .r3d-home-hero .r3d-kicker { color: #c9d4e4; }
html[data-theme="light"] .popover { background: #fff; }
html[data-theme="light"] #modalChooseLanguage .item:hover, html[data-theme="light"] .modal-localisation .item:hover { color: #14223a; }

html[data-theme="light"] .r3d-home-title > span:not(.r3d-gold-text), html[data-theme="light"] .r3d-auth-copy h2 { color: #fff; }
html[data-theme="light"] .r3d-home-hero .btn-ghost { color: #fff; background: rgba(6, 11, 20, 0.55); border-color: rgba(255, 255, 255, 0.25); }
.r3d-domain-form .input-group-wrapper { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }

/* =====================================================================
   v2.1: order form (standard_cart) and domain pages readable in both
   themes. Every white Bootstrap/standard_cart surface follows the tokens.
   ===================================================================== */
:root {
    --x-surface: rgba(14, 25, 43, 0.92);
    --x-surface-2: rgba(20, 34, 58, 0.9);
    --x-field: #0a1322;
    --x-field-text: #eef2f8;
    --x-field-ph: #7d8ea8;
}
html[data-theme="light"] {
    --x-surface: #ffffff;
    --x-surface-2: #f6f4f1;
    --x-field: #ffffff;
    --x-field-text: #14223a;
    --x-field-ph: #8a97aa;
}

/* Fields, selects and textareas everywhere in the cart and client area */
#order-standard_cart .form-control, #order-standard_cart .field, #order-standard_cart select, #order-standard_cart textarea,
#order-standard_cart .custom-select, .cart-sidebar select, .sidebar-collapsed select, .sidebar-collapsed .form-control,
.domain-checker-container .form-control, .domain-checker-container textarea, .main-content textarea, .primary-content textarea {
    background-color: var(--x-field) !important;
    color: var(--x-field-text) !important;
    border: 1px solid var(--x-line-strong) !important;
    -webkit-text-fill-color: var(--x-field-text);
}
#order-standard_cart .form-control::placeholder, #order-standard_cart textarea::placeholder, .domain-checker-container .form-control::placeholder { color: var(--x-field-ph) !important; -webkit-text-fill-color: var(--x-field-ph); opacity: 1; }
#order-standard_cart select option, .sidebar-collapsed select option { background: var(--x-field); color: var(--x-field-text); }
#order-standard_cart .form-control[disabled], #order-standard_cart .form-control[readonly], #order-standard_cart .field[disabled] { opacity: 0.7; }
#order-standard_cart .form-control:focus, #order-standard_cart textarea:focus { border-color: rgba(216, 182, 122, 0.6) !important; box-shadow: 0 0 0 3px rgba(216, 182, 122, 0.18) !important; }

/* Domain checker hero */
.domain-checker-container { background: var(--x-card) !important; border: 1px solid var(--x-line); border-radius: var(--x-radius); overflow: hidden; }
.domain-checker-container .input-group-box { background: var(--x-surface-2) !important; border: 1px solid var(--x-line-strong); border-radius: 16px; box-shadow: var(--x-shadow); }
.domain-checker-container .input-group-box .form-control, .domain-checker-container .input-group-box textarea { border: 0 !important; }
.domain-checker-container label, .domain-checker-container .input-group-box, .domain-checker-advanced .btn-group > .btn, .domain-checker-container .multiselect.dropdown-toggle { color: var(--x-text) !important; }
.domain-checker-container .multiselect.dropdown-toggle, .domain-checker-advanced .btn-group > .btn { background: transparent !important; border-color: transparent !important; }
.domain-checker-container .dropdown-menu, .multiselect-container { background: var(--x-panel-2, #122038) !important; border: 1px solid var(--x-line-strong) !important; }
html[data-theme="light"] .domain-checker-container .dropdown-menu, html[data-theme="light"] .multiselect-container { background: #fff !important; }
.multiselect-container > li > a, .multiselect-container label, .multiselect-container .dropdown-item, .multiselect-container .multiselect-option { color: var(--x-text) !important; background: transparent !important; }
.multiselect-container > li > a:hover, .multiselect-container .dropdown-item:hover { background: rgba(216, 182, 122, 0.12) !important; }
.multiselect-container .multiselect-search, .multiselect-container input[type="text"] { background: var(--x-field) !important; color: var(--x-field-text) !important; border-color: var(--x-line-strong) !important; }
#order-standard_cart .domain-checker-advanced input[type="checkbox"] { background: var(--x-field); accent-color: #d8b67a; }
.domain-checker-bg { background-image: url("../img/r3d/ico-globe.webp") !important; background-position: right 4% center !important; background-size: auto 92% !important; }

/* Search results, spotlight, suggestions */
.spotlight-tlds { background: transparent !important; }
.spotlight-tld { background: var(--x-surface) !important; color: var(--x-text) !important; border: 1px solid var(--x-line) !important; border-radius: 14px; }
.spotlight-tld .unavailable, .spotlight-tld .invalid { background: var(--x-surface-2) !important; color: var(--x-text-dim) !important; border-color: var(--x-line) !important; }
.suggested-domains, .suggested-domains .card, .suggested-domains .panel { background: var(--x-surface) !important; border: 1px solid var(--x-line) !important; border-radius: 14px; overflow: hidden; }
.suggested-domains .card-header, .suggested-domains .panel-heading { background: var(--x-surface-2) !important; color: var(--x-text) !important; border-color: var(--x-line) !important; }
.suggested-domains .domain-lookup-suggestions-message, .suggested-domains .domain-lookup-suggestions-loader, .suggested-domains .card-body { background: transparent !important; color: var(--x-text-dim) !important; }
.suggested-domains .list-group-item, .domain-suggestion { background: transparent !important; color: var(--x-text) !important; border-color: var(--x-line) !important; }
.suggested-domains .card-footer, .suggested-domains .panel-footer { background: var(--x-surface-2) !important; color: var(--x-text-dim) !important; border-color: var(--x-line) !important; }
.domain-checker-result-headline, .primary-domain-header { color: var(--x-text) !important; }

/* Browse extensions by category (TLD pricing table) */
.domain-pricing, .domain-pricing .tld-filters { color: var(--x-text); }
.domain-pricing .tld-pricing-header, .domain-pricing .tld-pricing-header div, .domain-pricing .tld-pricing-header .row,
.domain-pricing .tld-pricing-header [class*="col-"], .domain-pricing .tld-pricing-header div:nth-child(odd) {
    background: var(--x-surface-2) !important;
    color: var(--x-text) !important;
    border-color: var(--x-line) !important;
}
.domain-pricing .tld-pricing-header { border-radius: 12px 12px 0 0; overflow: hidden; }
.domain-pricing .tld-row, .domain-pricing .tld-row [class*="col-"] { background: var(--x-surface) !important; color: var(--x-text) !important; border-color: var(--x-line) !important; }
.domain-pricing .tld-row:nth-child(even), .domain-pricing .tld-row:nth-child(even) [class*="col-"] { background: var(--x-surface-2) !important; }
.domain-pricing .tld-row.highlighted, .domain-pricing .tld-row.highlighted [class*="col-"] { background: rgba(216, 182, 122, 0.1) !important; }
.domain-pricing .tld-filters .badge, .domain-pricing .tld-filters a { color: var(--x-text) !important; }
.domain-pricing .tld-filters .badge-default, .domain-pricing .tld-filters .badge-secondary { background: var(--x-surface-2) !important; border: 1px solid var(--x-line); }
.domain-pricing .tld-filters .badge-success, .domain-pricing .tld-filters .badge.active { background: var(--rv-gold-grad) !important; color: #14110b !important; }
.domain-pricing .bg-white, .domain-pricing .card { background: var(--x-surface) !important; }

/* Promo boxes under the domain search */
.domain-promo-box { background: var(--x-card) !important; color: var(--x-text) !important; border: 1px solid var(--x-line) !important; border-radius: var(--x-radius) !important; box-shadow: var(--x-shadow); }
.domain-promo-box h3, .domain-promo-box h4, .domain-promo-box p { color: var(--x-text) !important; }
.domain-promo-box .text-warning, .domain-promo-box p.font-bold { color: var(--x-gold-hi) !important; }
html[data-theme="light"] .domain-promo-box .text-warning, html[data-theme="light"] .domain-promo-box p.font-bold { color: #8a6d3a !important; }
.domain-promo-box small, .domain-promo-box .small { color: var(--x-text-dim) !important; }
.domain-promo-box i, .domain-promo-box .fa, .domain-promo-box .fas, .domain-promo-box .far, .domain-promo-box .fal { color: var(--x-gold) !important; }

/* Products, addons, configure, view cart, checkout */
#order-standard_cart .products .product, #order-standard_cart .view-cart-items .item, #order-standard_cart .view-cart-promotion-code,
#order-standard_cart .mc-promo, .product-recommendations .product-recommendation, #order-standard_cart .account-select-container div.account.active {
    background: var(--x-surface) !important; color: var(--x-text) !important; border-color: var(--x-line) !important;
}
#order-standard_cart .products .product header, #order-standard_cart .panel-addon .panel-price, #order-standard_cart .domain-selection-options .option,
#order-standard_cart .product-info, #order-standard_cart .summary-container, #order-standard_cart .apply-credit-container, #order-standard_cart .cc-input-container,
#order-standard_cart .view-cart-items .item:nth-child(even), #order-standard_cart .view-cart-tabs .tab-content, #order-standard_cart .view-cart-gateway-checkout,
#order-standard_cart .mc-promo .body, .product-recommendations .product-recommendation .body, #order-standard_cart .default-captcha,
#order-standard_cart .account-select-container div.account, #order-standard_cart .transfer-not-eligible,
.domain-renewals, .service-renewals, .addon-renewals .service-renewal, div.domainresults div:not(.btn-group) {
    background: var(--x-surface-2) !important; color: var(--x-text) !important; border-color: var(--x-line) !important;
}
.domain-renewals .domain-renewal:nth-child(even), .service-renewals .service-renewal:nth-child(even), .addon-renewals .service-renewal:nth-child(even) { background: var(--x-surface) !important; }
#order-standard_cart .domain-selection-options .option-selected { background: rgba(216, 182, 122, 0.1) !important; border-color: rgba(216, 182, 122, 0.4) !important; }
#order-standard_cart .transfer-eligible { background: rgba(70, 170, 110, 0.14) !important; color: var(--x-text) !important; }
#order-standard_cart .view-cart-tabs .nav-tabs a { color: var(--x-text-dim) !important; }
#order-standard_cart .view-cart-tabs .nav-tabs a[aria-selected="true"], #order-standard_cart .view-cart-tabs .nav-tabs a[aria-expanded="true"] { background: var(--x-surface-2) !important; color: var(--x-text) !important; border-color: var(--x-line) !important; }
#order-standard_cart h1, #order-standard_cart h2, #order-standard_cart h3, #order-standard_cart h4, #order-standard_cart h5, #order-standard_cart label,
#order-standard_cart .product-name, #order-standard_cart .item-title, #order-standard_cart .sub-heading span, #order-standard_cart .header-lined h1 { color: var(--x-text) !important; }
#order-standard_cart p, #order-standard_cart .item-group, #order-standard_cart .text-muted, #order-standard_cart small, #order-standard_cart .help-block, #order-standard_cart .form-text { color: var(--x-text-dim); }
#order-standard_cart .sub-heading { border-color: var(--x-line) !important; }
#order-standard_cart .sub-heading span { background: var(--x-base) !important; }
#order-standard_cart .order-summary, #order-standard_cart .order-summary h2 { color: var(--x-text) !important; }
#order-standard_cart .order-summary h2 { background: var(--x-surface-2) !important; }
#order-standard_cart .secure-warning { color: var(--x-text-dim) !important; }
#order-standard_cart .list-group-item, #order-standard_cart .card, #order-standard_cart .panel { background: var(--x-surface); color: var(--x-text); border-color: var(--x-line); }
#order-standard_cart .card-header, #order-standard_cart .panel-heading, #order-standard_cart .card-footer { background: var(--x-surface-2); color: var(--x-text); border-color: var(--x-line); }
#order-standard_cart .table, #order-standard_cart .table td, #order-standard_cart .table th { color: var(--x-text); border-color: var(--x-line); }

/* "Actions" / categories selector shown when the cart sidebar collapses */
.sidebar-collapsed, .cart-sidebar .sidebar-collapsed { background: transparent !important; }
.sidebar-collapsed .panel, .sidebar-collapsed .card { background: var(--x-surface) !important; border-color: var(--x-line) !important; }

/* Generic white helpers that leak into dark pages */
html:not([data-theme="light"]) .bg-white, html:not([data-theme="light"]) .bg-light { background-color: var(--x-surface) !important; color: var(--x-text); }
html:not([data-theme="light"]) .text-dark, html:not([data-theme="light"]) .text-body { color: var(--x-text) !important; }
html:not([data-theme="light"]) .list-group-item { background-color: var(--x-surface); color: var(--x-text); border-color: var(--x-line); }
html:not([data-theme="light"]) .table { color: var(--x-text); }
html:not([data-theme="light"]) .table td, html:not([data-theme="light"]) .table th { border-color: var(--x-line); }
html:not([data-theme="light"]) .table-striped tbody tr:nth-of-type(odd) { background-color: rgba(255, 255, 255, 0.025); }
html:not([data-theme="light"]) .dataTables_wrapper .dataTables_info, html:not([data-theme="light"]) .dataTables_wrapper label { color: var(--x-text-dim); }
html:not([data-theme="light"]) .dataTables_wrapper .form-control, html:not([data-theme="light"]) .dataTables_wrapper select { background: var(--x-field); color: var(--x-field-text); border-color: var(--x-line-strong); }

/* Light mode: never white text on the now-white cards */
html[data-theme="light"] #order-standard_cart .products .product header, html[data-theme="light"] #order-standard_cart .products .product header span { color: #14223a !important; }
html[data-theme="light"] .domain-checker-container .input-group-box .btn-primary { color: #14110b !important; }

/* =====================================================================
   v2.1: footer. Stop the page scrolling sideways under the fixed
   sidebar (the photo scene was wider than the column) and tidy it.
   ===================================================================== */
.r3d-main { min-width: 0; overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
.r3d-scene picture, .r3d-scene img { max-width: 100%; }
.r3d-footer .r3d-container { padding-left: 40px; padding-right: 40px; }
.r3d-footer-grid { grid-template-columns: minmax(200px, 1.3fr) repeat(3, minmax(140px, 1fr)) minmax(220px, 1.2fr); gap: 36px; }
.r3d-footer-brand img { width: 180px; margin-left: -4px; }
.r3d-footer-brand p { color: #b9c6d8; }
.r3d-footer-col h3 { color: var(--x-gold-hi); }
.r3d-footer-col a { color: #c3cedd; }
.r3d-footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.r3d-footer-bottom .copyright { justify-self: start; color: #aebbd0 !important; letter-spacing: 0.02em; }
.r3d-footer-bottom .copyright strong { color: var(--x-gold-hi); font-weight: 500; }
.r3d-footer-bottom > .btn { justify-self: center; }
.r3d-footer-made { justify-self: end; color: #aebbd0; }
html[data-theme="light"] .r3d-footer-brand p, html[data-theme="light"] .r3d-footer-col a, html[data-theme="light"] .r3d-footer-bottom .copyright, html[data-theme="light"] .r3d-footer-made { color: #44546b !important; }
html[data-theme="light"] .r3d-footer-col h3, html[data-theme="light"] .r3d-footer-bottom .copyright strong { color: #8a6d3a; }
[dir="rtl"] .r3d-footer-brand img { margin-left: 0; margin-right: -4px; }
@media (max-width: 1399.98px) { .r3d-footer-grid { grid-template-columns: minmax(200px, 1.3fr) repeat(3, minmax(130px, 1fr)); } .r3d-footer-scene { display: none; } }
@media (max-width: 991.98px) { .r3d-footer-grid { grid-template-columns: 1fr 1fr; } .r3d-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .r3d-footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) {
    .r3d-footer .r3d-container { padding-left: 18px; padding-right: 18px; }
    .r3d-footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; }
    .r3d-footer-bottom .copyright, .r3d-footer-made { justify-self: center; }
}

/* v2.1: remaining cart surfaces found by the contrast audit */
#order-standard_cart .card-header, #order-standard_cart .panel-heading, #order-standard_cart .card-footer, #order-standard_cart .panel-footer { background: var(--x-surface-2) !important; color: var(--x-text) !important; border-color: var(--x-line) !important; }
#order-standard_cart .card-title, #order-standard_cart .panel-title { color: var(--x-text) !important; }
#order-standard_cart .view-cart-empty { background: var(--x-surface) !important; color: var(--x-text-dim) !important; border: 1px solid var(--x-line); border-radius: 14px; }
#order-standard_cart .btn-link, #order-standard_cart .btn-continue-shopping { color: var(--x-gold-hi) !important; }
html[data-theme="light"] #order-standard_cart .btn-link, html[data-theme="light"] #order-standard_cart .btn-continue-shopping { color: #8a6d3a !important; }
html[data-theme="light"] #order-standard_cart .amt, html[data-theme="light"] #order-standard_cart .order-summary .total-due-today .amt { color: #8a6d3a !important; }
#order-standard_cart .alert-warning, #order-standard_cart .alert-info { color: var(--x-text) !important; }
@media (max-width: 767.98px) { .domain-checker-bg { background-size: auto 60% !important; background-position: right -30px top 10px !important; } }

/* v2.1: client-area surfaces found by the page-by-page contrast audit */
.alert:has(form) { background: var(--x-surface) !important; border-color: var(--x-line) !important; color: var(--x-text); }
tr.masspay-total td { background: var(--x-surface-2) !important; color: var(--x-text) !important; border-color: var(--x-line) !important; }
.md-editor .md-footer, .md-footer { background: var(--x-surface-2) !important; border-color: var(--x-line) !important; color: var(--x-text-dim) !important; }
.md-footer .small-font, .md-footer .markdown-save, .markdown-editor-status { color: var(--x-text-dim) !important; }
html[data-theme="light"] .page-item.disabled .page-link { color: #6b7a90; border-color: rgba(20, 40, 70, 0.12); }
html[data-theme="light"] .page-link { color: #44546b; }
html[data-theme="light"] code, html[data-theme="light"] pre { background: #f3efe8; color: #6b5428; }
html[data-theme="light"] .markdown-content strong, html[data-theme="light"] .markdown-content em, html[data-theme="light"] .primary-content strong { color: inherit; }
html[data-theme="light"] .r3d-auth-form a.small, html[data-theme="light"] .primary-content a.font-weight-bold { color: #8a6d3a; }
html[data-theme="light"] .r3d-footer-brand img { filter: brightness(0.25) sepia(0.3); }
.r3d-footer-bottom .copyright { grid-column: 1; }
.r3d-footer-bottom > .btn { grid-column: 2; }
.r3d-footer-made { grid-column: 3; }
@media (max-width: 767.98px) { .r3d-footer-bottom .copyright, .r3d-footer-bottom > .btn, .r3d-footer-made { grid-column: 1; } }
/* v2.1: phone top bar fits 360px screens */
@media (max-width: 575.98px) {
    .r3d-topbar { gap: 8px; padding-left: 10px; padding-right: 10px; }
    .r3d-burger { flex: 0 0 auto; min-width: 38px; }
    .r3d-top-logo { flex: 0 1 auto; min-width: 0; }
    .r3d-top-logo img { width: 112px; height: auto; }
    .r3d-top-actions { gap: 5px; margin-left: auto; flex: 0 0 auto; }
    .r3d-top-actions .r3d-icon-btn { width: 36px; height: 36px; min-width: 36px; padding: 0; }
    .r3d-top-actions .r3d-top-btn { padding: 0 12px; height: 36px; font-size: 0.82rem; }
    .r3d-user-btn { padding: 0; }
}
@media (max-width: 374.98px) { .r3d-top-actions .r3d-search-mobile { display: none; } }
[dir="rtl"] .r3d-top-actions { margin-left: 0; margin-right: auto; }
