/* ==========================================
   Medx Market — Premium Redesign
   Editorial Auction House — Human-Crafted
   ========================================== */

:root {
    /* Digital vibrance — saturated gold palette */
    --accent: #ffffff;
    --accent-dark: #d4d4d4;
    --accent-light: #f5f5f5;
    --accent-rgb: 255, 255, 255;
    --green-vivid: #00ff94;
    --green-rgb: 0, 255, 148;
    --text-2xs: 0.6875rem;
    --text-caption: 0.75rem;
    --text-body-sm: 0.8125rem;
    --text-body: 0.9375rem;
    --text-title-sm: 1.125rem;
    --text-title: 1.25rem;
    --text-title-lg: 1.375rem;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

@media (min-width: 1024px) {
    html {
        /* ~105% site scale at browser zoom 100% — desktop only */
        zoom: 1.05;
    }
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

#navbar {
    padding-top: env(safe-area-inset-top, 0px);
}

/* كل الـ sections فوق الـ global orbs */
section,
footer,
header {
    position: relative;
    z-index: 5;
    background: transparent;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.022;
}


body {
    opacity: 0;
    animation: bodyFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

@keyframes bodyFadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================
   Animated Background Orbs
   ========================================== */

@keyframes orbFloat1 {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(60px, -80px) scale(1.08);
    }

    66% {
        transform: translate(-40px, 50px) scale(0.95);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

@keyframes orbFloat2 {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    40% {
        transform: translate(-70px, 60px) scale(1.06);
    }

    70% {
        transform: translate(50px, -40px) scale(0.97);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

@keyframes orbFloat3 {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    50% {
        transform: translate(40px, 70px) scale(1.04);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

@keyframes orbFloat4 {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    45% {
        transform: translate(-50px, -60px) scale(1.05);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animated-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

.animated-orb-1 {
    animation: orbFloat1 18s ease-in-out infinite;
}

.animated-orb-2 {
    animation: orbFloat2 24s ease-in-out infinite;
}

.animated-orb-3 {
    animation: orbFloat3 20s ease-in-out infinite;
}

.animated-orb-4 {
    animation: orbFloat4 28s ease-in-out infinite;
}

/* ---------- Global ambient orbs ---------- */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
    will-change: transform;
}

/* ---------- Dot grid ---------- */
.dot-grid {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ---------- Diagonal lines ---------- */
.diagonal-lines {
    background-image: repeating-linear-gradient(-45deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.012) 40px,
            rgba(255, 255, 255, 0.012) 41px);
}

/* ---------- Corner brackets ---------- */
.corner-bracket::before,
.corner-bracket::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(255, 199, 32, 0.25);
    border-style: solid;
}

.corner-bracket::before {
    top: 16px;
    left: 16px;
    border-width: 1px 0 0 1px;
}

.corner-bracket::after {
    bottom: 16px;
    right: 16px;
    border-width: 0 1px 1px 0;
}

/* ---------- Noise ---------- */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.5s ease,
        box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(28px) saturate(1.3);
    -webkit-backdrop-filter: blur(28px) saturate(1.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    box-shadow: 0 1px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- Hero ---------- */
.hero-number {
    font-size: clamp(5rem, 15vw, 13rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    right: -0.05em;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    user-select: none;
}

/* Hero — clean editorial */
.hero-copy {
    position: relative;
}

@media (min-width: 1024px) {
    .hero-copy-pad {
        padding-inline-end: 4rem;
    }
}

.feat-card-layer {
    position: absolute;
}

.feat-card-layer--back {
    top: -1rem;
    inset-inline-end: -1.5rem;
}

.feat-card-layer--mid {
    top: -0.5rem;
    inset-inline-end: -0.75rem;
}

.hero-copy::before {
    display: none;
}

.hero-spotlight {
    position: absolute;
    left: -8%;
    top: 0;
    width: min(420px, 90vw);
    height: min(320px, 55vh);
    background: radial-gradient(ellipse at 40% 45%, rgba(255, 199, 32, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-content>*+* {
    margin-top: 1.125rem;
}

.hero-headline-wrap {
    margin-top: 0.75rem !important;
}

.hero-metrics {
    margin-top: 1.5rem !important;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(142, 142, 168, 0.9);
}

.hero-kicker .live-dot {
    width: 6px;
    height: 6px;
}

.hero-title {
    font-size: clamp(2rem, 4.8vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.hero-sub {
    margin-top: 0.5rem;
    font-size: var(--text-body-sm);
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.04em;
}

.hero-lead {
    max-width: 38ch;
    font-size: var(--text-body-sm);
    line-height: 1.65;
    color: rgba(142, 142, 168, 0.95);
}

.hero-lead strong {
    display: block;
    margin-top: 0.25rem;
    font-weight: 500;
    color: rgba(255, 199, 32, 0.85);
}

.hero-actions {
    margin-top: 0.25rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}

.hero-btn-primary,
.hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    font-size: var(--text-body-sm);
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-btn-primary {
    color: #0a0a0a;
    background: var(--accent);
    box-shadow: 0 4px 24px rgba(255, 199, 32, 0.35);
}

.hero-btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 6px 28px rgba(255, 199, 32, 0.45);
}

.hero-btn-ghost {
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
}

.hero-btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.hero-btn-ghost .fab {
    font-size: var(--text-body-sm);
}

.hero-note {
    margin-top: 0.625rem;
    font-size: var(--text-2xs);
    color: rgba(104, 104, 120, 0.85);
}

.hero-metrics {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 18rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-metrics .stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0 0.75rem;
}

.hero-metrics .stat-item:first-child {
    padding-left: 0;
}

.hero-metrics .stat-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-metrics .stat-value {
    font-variant-numeric: tabular-nums;
    font-size: 1.0625rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    -webkit-text-fill-color: #fff;
}

.hero-metrics .stat-label {
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(104, 104, 120, 0.9);
}

.feat-card-wrap {
    position: relative;
    z-index: 10;
    width: min(100%, 320px);
}

/* Featured card — platform icon tile */
.feat-pl-icon-box {
    --feat-pl-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.7rem;
    border: none;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--feat-pl-color) 16%, #121218) 0%, #0a0a0f 100%);
    box-shadow: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.feat-pl-icon-box__icon {
    font-size: 1.125rem;
    line-height: 1;
    color: var(--feat-pl-color);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.feat-card-main,
#featCard {
    border: 1px solid rgba(255, 199, 32, 0.28) !important;
    box-shadow:
        0 0 0 1px rgba(255, 199, 32, 0.1),
        0 20px 50px rgba(0, 0, 0, 0.55) !important;
}

.feat-card-buy {
    box-shadow: 0 4px 16px rgba(255, 199, 32, 0.22);
}

.feat-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    font-size: var(--text-caption);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feat-trust-pill--green {
    background: rgba(0, 255, 148, 0.1);
    border-color: rgba(0, 255, 148, 0.28);
    color: rgba(0, 255, 148, 0.9);
}

.feat-trust-pill--gold {
    background: rgba(255, 199, 32, 0.08);
    border-color: rgba(255, 199, 32, 0.22);
    color: rgba(255, 199, 32, 0.75);
}

.feat-trust-pill--muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
}

/* ---------- Ticker ---------- */
@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 180s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

/* ---------- FAQ ---------- */
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease;
}

.faq-item.open {
    border-color: rgba(255, 199, 32, 0.18);
}

.faq-item:hover:not(.open) {
    border-color: rgba(255, 255, 255, 0.09);
}

/* ---------- Platform card ---------- */
.platform-card {
    border: 1px solid rgba(255, 199, 32, 0.12);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease,
        border-color 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 199, 32, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 22px 52px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 199, 32, 0.1),
        0 16px 44px -14px rgba(255, 199, 32, 0.14);
}

/* Shimmer sweep on hover */
.platform-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025), transparent);
    pointer-events: none;
    z-index: 20;
}

.platform-card:hover::after {
    animation: cardShimmer 0.75s ease forwards;
}

@keyframes cardShimmer {
    0% {
        left: -55%;
    }

    100% {
        left: 160%;
    }
}

/* Featured platform card — gold emphasis without per-brand rainbow */
.platform-card--featured {
    border-color: rgba(255, 199, 32, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(255, 199, 32, 0.1),
        0 0 52px -10px rgba(255, 199, 32, 0.26);
}

.platform-card--featured:hover {
    border-color: rgba(255, 199, 32, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 24px 56px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 199, 32, 0.16),
        0 20px 50px -12px rgba(255, 199, 32, 0.22);
}

/* Editorial index watermark (platform cards) */
.platform-card-num,
.plat-card-num {
    color: rgba(255, 199, 32, 0.14);
    transition: color 0.45s ease;
}

.platform-card:hover .platform-card-num,
.plat-card:hover .plat-card-num {
    color: rgba(255, 199, 32, 0.3);
}

.platform-card--featured .platform-card-num {
    color: rgba(255, 199, 32, 0.22);
}

.platform-card--featured:hover .platform-card-num {
    color: rgba(255, 199, 32, 0.34);
}

/* Top pill + arrow CTA — warm gold edge only (avoids harsh / white-looking borders) */
.platform-card-top-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 199, 32, 0.42);
    background: rgba(255, 199, 32, 0.11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.platform-card-cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 199, 32, 0.34);
    background: rgba(255, 199, 32, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-card:hover .platform-card-cta-arrow {
    border-color: rgba(255, 199, 32, 0.48);
    background: rgba(255, 199, 32, 0.15);
}

.plat-card-cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 199, 32, 0.34);
    background: rgba(255, 199, 32, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.plat-card:hover .plat-card-cta-arrow {
    border-color: rgba(255, 199, 32, 0.48);
    background: rgba(255, 199, 32, 0.15);
}

/* ---------- Platform page grid cards (platforms.php .plat-card) ---------- */
.plat-card {
    border: 1px solid rgba(255, 199, 32, 0.12);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease,
        border-color 0.35s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.plat-card:hover {
    border-color: rgba(255, 199, 32, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 24px 56px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 199, 32, 0.08),
        0 14px 48px -14px rgba(255, 199, 32, 0.12);
}

/* ---------- Ticker pill cards ---------- */
.ticker-track .flex-shrink-0,
.ticker-track-reverse .flex-shrink-0 {
    white-space: nowrap;
}

/* ---------- Section rule ---------- */
.section-rule {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--accent);
    vertical-align: middle;
    margin-right: 12px;
    opacity: 0.6;
}

/* ---------- Section divider ---------- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 199, 32, 0.12) 25%,
            rgba(255, 199, 32, 0.12) 75%,
            transparent 100%);
}

/* ---------- Editorial number ---------- */
.step-num {
    font-size: var(--text-2xs);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 199, 32, 0.3);
}

/* ---------- Review quote mark ---------- */
.vouch-rating {
    margin-inline-start: 0.25rem;
}

.review-quote {
    position: relative;
    padding-inline-start: 0.75rem;
    border-inline-start: 2px solid rgba(255, 199, 32, 0.35);
}

.review-quote::before {
    content: '\201C';
    position: absolute;
    top: -2px;
    inset-inline-start: 0;
    font-size: 52px;
    font-family: 'Sora', serif;
    color: rgba(255, 199, 32, 0.1);
    line-height: 1;
    pointer-events: none;
}

/* ---------- Trust bar ---------- */
.trust-item {
    position: relative;
    padding: 0 2rem;
}

.trust-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.06);
}

.trust-item:first-child::before {
    display: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(255, 199, 32, 0.28);
    color: #fff;
}

/* ---------- Focus ---------- */
:focus-visible {
    outline: 2px solid rgba(255, 199, 32, 0.45);
    outline-offset: 3px;
}

/* ---------- Anchor offset ---------- */
[id] {
    scroll-margin-top: 88px;
}

/* ---------- Link transitions ---------- */
a {
    transition: color 0.2s ease;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Number input — hide browser spinners ---------- */
.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spinner {
    -moz-appearance: textfield;
}

/* ---------- Horizontal scroll hide ---------- */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ---------- Glow dot (live) ---------- */
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-vivid);
    box-shadow: 0 0 0 0 rgba(0, 255, 148, 0.55);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 148, 0.55);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 255, 148, 0);
    }
}

/* ---------- Hover lift ---------- */
.card-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease,
        box-shadow 0.4s ease;
}

.card-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* ---------- Hero card float ---------- */
@keyframes heroCardFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    30% {
        transform: translateY(-10px) rotate(0.4deg);
    }

    70% {
        transform: translateY(-6px) rotate(-0.3deg);
    }
}

/* ---------- Hero orbit scene (desktop featured card) ---------- */
.hero-orbit-scene {
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    padding: 3.25rem;
    overflow: visible;
}

.orbit-anchor {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    isolation: isolate;
}

.orbit-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 20;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ---------- Orbit icon (hero — quiet glass, muted gold) ---------- */
.orbit-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-body-sm);
    background: rgba(10, 10, 12, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: opacity 0.3s;
    pointer-events: none;
    border: 1px solid rgba(255, 199, 32, 0.11);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.38);
}

.orbit-icon i {
    color: rgba(255, 199, 32, 0.7);
}

@media (min-width: 1024px) {
    .orbit-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: var(--text-body);
    }
}

/* ---------- Word reveal — hero subtitle ---------- */
@keyframes wordSlideUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* الثلاث كلمات — نفس المدة، stagger نظيف */
.word-reveal[style*="--wi:0"] {
    opacity: 0;
    animation: wordSlideUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.85s;
}

.word-reveal[style*="--wi:1"] {
    opacity: 0;
    animation: wordSlideUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.15s;
}

.word-reveal[style*="--wi:2"] {
    opacity: 0;
    animation: wordSlideUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.45s;
}

/* ---------- Fade-in reveal ---------- */
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ---------- i18n / RTL ---------- */
html[dir="rtl"] body.site-rtl {
    font-family: 'Noto Sans Arabic', 'Sora', 'DM Sans', system-ui, sans-serif;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .hero-content,
html[dir="rtl"] .hero-headline-wrap {
    overflow: visible;
}

html[dir="rtl"] .hero-copy {
    width: 100%;
    max-width: 100%;
}

html[dir="rtl"] .hero-content {
    max-width: 38rem;
}

html[dir="rtl"] .hero-title {
    text-align: start;
    letter-spacing: 0;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
}

html[dir="rtl"] .hero-orbit-scene {
    margin-inline: auto;
    padding: 3.5rem 2.5rem;
}

html[dir="rtl"] .orbit-anchor {
    direction: ltr;
}

html[dir="rtl"] .hero-lead,
html[dir="rtl"] .hero-kicker {
    text-align: start;
}

html[dir="rtl"] .hero-spotlight {
    left: auto;
    right: -8%;
}

html[dir="rtl"] .hero-actions,
html[dir="rtl"] .hero-btns,
html[dir="rtl"] .lang-switcher-item,
html[dir="rtl"] .faq-toggle,
html[dir="rtl"] .feat-card-main {
    text-align: start;
}

html[dir="rtl"] .feat-trust-pill {
    flex-direction: row-reverse;
}

.icon-dir {
    transition: transform 0.2s ease;
}

html[dir="rtl"] .icon-dir.fa-arrow-right,
html[dir="rtl"] i.fa-arrow-right.icon-dir {
    transform: scaleX(-1);
}

html[dir="rtl"] .group:hover .icon-dir.fa-arrow-right,
html[dir="rtl"] .group:hover i.fa-arrow-right.icon-dir {
    transform: scaleX(-1) translateX(-2px);
}

html[dir="rtl"] .review-quote {
    text-align: start;
}

html[dir="rtl"] .vouch-card {
    text-align: start;
}

html[dir="rtl"] .faq-answer>div {
    margin-left: 0;
    margin-right: 3.75rem;
    border-left: none;
    border-right: 1px solid rgba(255, 199, 32, 0.2);
}

html[dir="rtl"] .platform-card-cta-arrow i.fa-arrow-right,
html[dir="rtl"] .plat-card-cta-arrow i.fa-arrow-right {
    transform: scaleX(-1);
}

.lang-switcher-menu {
    max-height: min(70vh, 320px);
    overflow-y: auto;
}

.lang-flag-icon {
    display: inline-block;
    width: 1.25rem;
    height: 0.9375rem;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
    background-size: cover;
    background-position: center;
    vertical-align: middle;
}

.lang-switcher-item--active,
.lang-footer-link--active {
    color: var(--accent);
}

.lang-footer-link--active .lang-flag-icon {
    box-shadow: 0 0 0 1px rgba(255, 199, 32, 0.45), 0 0 10px rgba(255, 199, 32, 0.2);
}

.lang-switcher-menu .lang-switcher-item--active {
    background: rgba(255, 199, 32, 0.08);
}

.ui-ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

.platform-card-text {
    unicode-bidi: plaintext;
    text-align: start;
}

html[dir="rtl"] .platform-card .platform-card-cta-arrow {
    transform: scaleX(-1);
}

html[dir="rtl"] .platform-card:hover .platform-card-cta-arrow {
    transform: scaleX(-1) translateX(-2px);
}

/* ---------- Marketplace (dashboard + product) RTL ---------- */
.market-search-wrap .market-search-icon {
    left: 0.75rem;
}

.market-search-input {
    padding-inline-start: 2rem;
    padding-inline-end: 0.75rem;
    text-align: start;
}

html[dir="rtl"] .market-search-wrap .market-search-icon {
    left: auto;
    right: 0.75rem;
}

html[dir="rtl"] #filterSidebar .accordion-body {
    margin-left: 0;
    margin-right: 0.75rem;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-right: 0.75rem;
}

@media (max-width: 1023px) {
    html[dir="rtl"] #filterSidebar {
        left: auto;
        right: 0;
        transform: translateX(100%);
        border-right: none;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }

    html[dir="rtl"] #filterSidebar.drawer-open {
        box-shadow: -24px 0 80px rgba(0, 0, 0, 0.7);
    }
}

html[dir="rtl"] #navFilterBtn {
    right: auto !important;
    left: 16px !important;
}

html[dir="rtl"] #pagination .fa-chevron-left,
html[dir="rtl"] #pagination .fa-chevron-right {
    transform: scaleX(-1);
}

html[dir="rtl"] .pp-crumb .sep.fa-angle-right {
    transform: scaleX(-1);
}

html[dir="rtl"] .showcase-id {
    left: auto;
    right: 24px;
}

html[dir="rtl"] .showcase-status {
    right: auto;
    left: 24px;
}

html[dir="rtl"] .toggle-knob {
    left: auto;
    right: 3px;
}

html[dir="rtl"] .toggle-switch input:checked~.toggle-track .toggle-knob {
    transform: translateX(-20px);
}

html[dir="rtl"] .back-link:hover .icon-dir {
    transform: translateX(3px);
}

html[dir="rtl"] .icon-gap-end {
    margin-right: 0;
    margin-left: 0.375rem;
}

.icon-gap-end {
    margin-right: 0.375rem;
}

html[dir="rtl"] .pp-wrap,
html[dir="rtl"] .pp-crumb,
html[dir="rtl"] .details,
html[dir="rtl"] .showcase,
html[dir="rtl"] #filterSidebar {
    text-align: start;
}

html[dir="rtl"] .pay-panel,
html[dir="rtl"] .pay-form,
html[dir="rtl"] .pp-swap {
    text-align: start;
}

html[dir="rtl"] .pp-checkout__head {
    flex-direction: row-reverse;
}

/* Digital vibrance — punchier brand icons & accents sitewide */
.platform-card .fa-brands,
.platform-card .fas,
.orbit-icon i,
#orbitWrap i,
.feat-pl-icon-box__icon,
.hero-orbit-scene .fa-brands,
.vouch-stars .fa-star.text-accent,
#lc-toggle,
.scroll-top-btn,
.pay-method-btn i,
.dashboard-table .fa-brands,
.sold-ticker .fa-brands {
    filter: saturate(1.4) brightness(1.08);
}