/* =====================================================
   INVOICER RX — Page-Specific Styles (Rewritten)
   Pharmacy Track & Trace Compliance App
   ARKAN for Digital Technology
   ===================================================== */

/* ─── CSS VARIABLES ─────────────────────────────────── */

/* Screen-reader only (SEO: visible h1 text for crawlers) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:root {
    --rx-primary: #0a6e5c;
    --rx-primary-dark: #064d3f;
    --rx-primary-light: #0d9b7a;
    --rx-accent: #00b4d8;
    --rx-accent-alt: #ff6f61;
    --rx-gold: #daa520;
    --rx-dark: #0f172a;
    --rx-dark-alt: #1a1a2e;
    --rx-text: #0f172a;
    --rx-muted: #475569;
    --rx-light-bg: #f0fdf4;
    --rx-white: #ffffff;
    --rx-gradient: linear-gradient(135deg, #0a6e5c 0%, #00b4d8 100%);
    --rx-gradient-dark: linear-gradient(135deg, #0f0f1a 0%, #0a2e26 50%, #0d1b2a 100%);
    --rx-shadow: 0 10px 40px rgba(10, 110, 92, 0.15);
    --rx-radius: 16px;
    --rx-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ──────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--rx-white);
    color: var(--rx-text);
    line-height: 1.7;
    overflow-x: hidden;
}

html[dir="rtl"] body {
    font-family: 'Almarai', 'Inter', -apple-system, sans-serif;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ─── UTILITY CLASSES ───────────────────────────────── */
.rx-white { color: #fff !important; }
.rx-muted-light { color: #b8c5d6 !important; }

/* ─── HERO SECTION ──────────────────────────────────── */
.rx-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--rx-gradient-dark);
    overflow: hidden;
    padding: 120px 5% 80px;
}

.rx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(10, 110, 92, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(218, 165, 32, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

#rx-particles,
.rx-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.rx-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.rx-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.rx-hero-text {
    position: relative;
    z-index: 3;
}

.rx-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(10, 110, 92, 0.3), rgba(0, 180, 216, 0.2));
    border: 1px solid rgba(10, 110, 92, 0.5);
    color: #4ade80;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.rx-hero-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
}

/* Logo used as the hero title */
.rx-hero-title-logo {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ── V1: Solid white backdrop pill ── */
.rx-hero-title-logo.v1 {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    padding: 20px 28px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
}

/* ── V2: Frosted glass card ── */
.rx-hero-title-logo.v2 {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 20px 28px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

/* ── V3: Dark semi-transparent card with green border ── */
.rx-hero-title-logo.v3 {
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid rgba(74, 222, 128, 0.5);
    border-radius: 24px;
    padding: 20px 28px;
    box-shadow:
        0 0 30px rgba(10, 110, 92, 0.4),
        inset 0 0 30px rgba(10, 110, 92, 0.1);
    filter: brightness(1.15);
}

/* ── V4: No background, intense multi-color glow around logo edges ── */
.rx-hero-title-logo.v4 {
    filter:
        brightness(1.4)
        contrast(1.2)
        drop-shadow(0 0 6px #fff)
        drop-shadow(0 0 20px rgba(74, 222, 128, 0.9))
        drop-shadow(0 0 50px rgba(0, 180, 216, 0.7))
        drop-shadow(0 0 90px rgba(10, 110, 92, 0.5));
}

/* ── V5: Gradient border card with soft inner glow ── */
.rx-hero-title-logo.v5 {
    background: linear-gradient(135deg, rgba(10, 110, 92, 0.25), rgba(0, 180, 216, 0.15));
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #4ade80, #00b4d8) 1;
    border-radius: 0px; /* border-image doesn't support border-radius */
    padding: 20px 28px;
    box-shadow:
        0 0 40px rgba(74, 222, 128, 0.25),
        0 0 80px rgba(0, 180, 216, 0.15);
    filter: brightness(1.15);
}

.rx-hero-title .rx-brand-green {
    display: inline-block;
    background: linear-gradient(135deg, #4ade80 0%, #0a6e5c 50%, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rx-hero-title .rx-brand-white {
    color: #e0e0e0;
}

.rx-hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: #b8c5d6;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 550px;
}

.rx-hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.rx-hero-platforms {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 10px;
}

.rx-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #b8c5d6;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--rx-transition);
}

.rx-platform-badge:hover {
    background: rgba(10, 110, 92, 0.2);
    border-color: rgba(74, 222, 128, 0.4);
    color: #4ade80;
}

.rx-platform-badge i {
    font-size: 1.1rem;
}

.rx-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rx-phone-mockup {
    position: relative;
    width: 320px;
    max-width: 100%;
    border-radius: 40px;
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(10, 110, 92, 0.3),
        0 0 120px rgba(0, 180, 216, 0.1);
}

.rx-phone-mockup img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 40px;
}

/* Hero logo above title */
/* Hero logo (legacy, kept for reference) */
.rx-hero-logo {
    display: none;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* App logo showcase (replaces phone mockup) */
.rx-app-logo-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.rx-hero-app-img {
    width: 350px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 60px rgba(10, 110, 92, 0.35)) drop-shadow(0 0 120px rgba(0, 180, 216, 0.15));
    animation: floatLogo 4s ease-in-out infinite;
    border-radius: 24px;
}

/* Modal header logo */
.rx-modal-logo {
    display: block;
    width: 80px;
    height: auto;
    margin: 0 auto 16px;
    border-radius: 16px;
}

/* Chat avatar with logo img */
.rx-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ─── URGENCY BAR ───────────────────────────────────── */
.rx-urgency-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(135deg, rgba(255, 111, 97, 0.95), rgba(218, 165, 32, 0.95));
    backdrop-filter: blur(10px);
}

.rx-urgency-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.rx-urgency-content i {
    font-size: 1.2rem;
    animation: urgencyPulse 1.5s infinite;
}

@keyframes urgencyPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.rx-urgency-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--rx-accent-alt);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all var(--rx-transition);
    white-space: nowrap;
}

.rx-urgency-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ─── BUTTONS ───────────────────────────────────────── */
.rx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--rx-transition);
    text-align: center;
    justify-content: center;
    line-height: 1.4;
}

.rx-btn-primary {
    background: var(--rx-gradient);
    color: #fff;
    box-shadow: 0 8px 25px rgba(10, 110, 92, 0.4);
}

.rx-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(10, 110, 92, 0.5);
}

.rx-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.rx-btn-outline:hover {
    border-color: #4ade80;
    color: #4ade80;
    transform: translateY(-3px);
}

.rx-btn-white {
    background: #fff;
    color: var(--rx-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.rx-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.rx-btn-whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.rx-btn-whatsapp:hover {
    transform: translateY(-3px);
    background: #1da855;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.rx-btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.rx-btn-full {
    width: 100%;
}


/* ─── SECTION COMMON ────────────────────────────────── */
.rx-section {
    padding: 100px 5%;
    position: relative;
}

.rx-section-light {
    background: var(--rx-light-bg);
}

.rx-section-dark {
    background: var(--rx-gradient-dark);
    color: #fff;
}

.rx-section-gradient {
    background: var(--rx-gradient);
    color: #fff;
}

.rx-section-soft {
    background: #f8fafc;
}

.rx-section-cta {
    background: var(--rx-gradient-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.rx-section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(10, 110, 92, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(0, 180, 216, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.rx-container {
    max-width: 1200px;
    margin: 0 auto;
}

.rx-container-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.rx-section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Badge used in HTML as .rx-badge */
.rx-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(10, 110, 92, 0.15), rgba(0, 180, 216, 0.1));
    border: 1px solid rgba(10, 110, 92, 0.3);
    color: var(--rx-primary);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.rx-badge-light {
    color: #4ade80;
    background: rgba(10, 110, 92, 0.3);
    border-color: rgba(74, 222, 128, 0.3);
}

.rx-section-header h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--rx-dark);
}

.rx-section-dark .rx-section-header h2,
.rx-section-cta .rx-section-header h2,
.rx-section-gradient .rx-section-header h2,
.rx-section-header h2.rx-white {
    color: #fff;
}

.rx-section-desc {
    font-size: 1.1rem;
    color: var(--rx-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.rx-section-desc.rx-muted-light,
.rx-section-dark .rx-section-desc {
    color: #b8c5d6;
}

/* ─── TIMELINE (Track & Trace Explainer) ────────────── */
.rx-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.rx-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--rx-primary), var(--rx-accent));
    border-radius: 3px;
}

html[dir="rtl"] .rx-timeline::before {
    left: auto;
    right: 28px;
}

.rx-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
}

.rx-timeline-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--rx-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(10, 110, 92, 0.3);
    z-index: 2;
    position: relative;
}

.rx-timeline-content {
    flex: 1;
    background: var(--rx-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--rx-radius);
    padding: 24px;
    transition: all var(--rx-transition);
}

.rx-timeline-content:hover {
    box-shadow: var(--rx-shadow);
    border-color: var(--rx-primary);
}

.rx-timeline-content h3 {
    font-size: 1.1rem;
    color: var(--rx-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.rx-timeline-content p {
    color: var(--rx-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.rx-timeline-deadline .rx-timeline-icon {
    background: linear-gradient(135deg, var(--rx-accent-alt), var(--rx-gold));
}

.rx-timeline-deadline .rx-timeline-content {
    border-color: var(--rx-accent-alt);
    background: #fff5f5;
}

.rx-timeline-deadline .rx-timeline-content h3 {
    color: var(--rx-accent-alt);
}

/* ─── FEATURES GRID ─────────────────────────────────── */
.rx-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.rx-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--rx-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--rx-transition);
}

.rx-feature-card:hover {
    background: rgba(10, 110, 92, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-4px);
}

.rx-feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #0a6e5c, #00b4d8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.rx-feature-card h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.rx-feature-card p {
    color: #8b949e;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ─── HOW IT WORKS (Steps) ──────────────────────────── */
.rx-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.rx-steps::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: linear-gradient(90deg, var(--rx-primary), var(--rx-accent));
    opacity: 0.3;
    z-index: 0;
}

.rx-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.rx-step-number {
    width: 70px;
    height: 70px;
    background: var(--rx-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(10, 110, 92, 0.3);
}

.rx-step-icon {
    width: 44px;
    height: 44px;
    background: var(--rx-light-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.1rem;
    color: var(--rx-primary);
}

.rx-step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--rx-dark);
    font-weight: 700;
}

.rx-step p {
    color: var(--rx-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ─── STATS GRID ────────────────────────────────────── */
.rx-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.rx-stat {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--rx-radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--rx-transition);
}

.rx-stat:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

.rx-stat-number {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.8rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.rx-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* ─── PRICING SECTION ───────────────────────────────── */
.rx-pricing-card {
    max-width: 550px;
    margin: 0 auto;
    background: var(--rx-white);
    border-radius: 24px;
    border: 2px solid rgba(10, 110, 92, 0.2);
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 110, 92, 0.1);
    transition: all var(--rx-transition);
}

.rx-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(10, 110, 92, 0.15);
    border-color: var(--rx-primary);
}

.rx-pricing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(10, 110, 92, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.rx-pricing-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, var(--rx-accent-alt), var(--rx-gold));
    color: #fff;
    padding: 6px 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

html[dir="rtl"] .rx-pricing-ribbon {
    right: auto;
    left: -35px;
    transform: rotate(-45deg);
}

.rx-pricing-header {
    margin-bottom: 24px;
}

.rx-pricing-header h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.8rem;
    color: var(--rx-primary);
    margin-bottom: 6px;
}

.rx-pricing-header p {
    color: var(--rx-muted);
    font-size: 0.95rem;
}

.rx-pricing-price {
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rx-price-amount {
    font-family: 'Archivo Black', sans-serif;
    font-size: 4rem;
    color: var(--rx-primary);
    line-height: 1;
}

.rx-price-currency {
    font-size: 1.3rem;
    color: var(--rx-muted);
    font-weight: 600;
}

.rx-price-period {
    font-size: 1.1rem;
    color: var(--rx-muted);
}

.rx-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: start;
}

.rx-pricing-features li {
    padding: 12px 0;
    color: var(--rx-text);
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rx-pricing-features li:last-child {
    border-bottom: none;
}

.rx-pricing-features li i {
    color: var(--rx-primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ─── SCREENSHOTS ───────────────────────────────────── */
.rx-screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.rx-screenshot-card {
    text-align: center;
    transition: all var(--rx-transition);
}

.rx-screenshot-card:hover {
    transform: translateY(-8px);
}

.rx-screenshot-card img {
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: auto;
    transition: all var(--rx-transition);
}

.rx-screenshot-card:hover img {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.rx-screenshot-card p {
    margin-top: 16px;
    font-size: 0.95rem;
    color: #b8c5d6;
    font-weight: 500;
}

/* ─── ABOUT ARKAN ───────────────────────────────────── */
.rx-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.rx-about-text {
    order: 1;
}

.rx-about-text h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--rx-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.rx-about-text p {
    color: var(--rx-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.rx-about-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.rx-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--rx-light-bg);
    border: 1px solid rgba(10, 110, 92, 0.15);
    border-radius: 30px;
    color: var(--rx-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--rx-transition);
}

.rx-contact-item:hover {
    background: var(--rx-primary);
    color: #fff;
    border-color: var(--rx-primary);
    transform: translateY(-2px);
}

.rx-about-visual {
    order: 2;
}

.rx-about-visual img {
    border-radius: var(--rx-radius);
    box-shadow: var(--rx-shadow);
    width: 100%;
    height: auto;
}

/* ─── CTA SECTION ───────────────────────────────────── */
.rx-cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.rx-cta-content h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.rx-cta-desc {
    color: #b8c5d6;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.rx-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.rx-cta-price {
    color: #4ade80;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ─── FAQ SECTION ────────────────────────────────────── */
.rx-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.rx-faq-item {
    background: var(--rx-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--rx-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--rx-transition);
}

.rx-faq-item:hover {
    border-color: var(--rx-primary);
}

.rx-faq-q {
    width: 100%;
    background: none;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--rx-dark);
    gap: 15px;
    text-align: start;
    font-family: inherit;
    border: none;
}

.rx-faq-q i {
    color: var(--rx-primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.rx-faq-item.open .rx-faq-q i {
    transform: rotate(180deg);
}

.rx-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 25px;
    color: var(--rx-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.rx-faq-item.open .rx-faq-a {
    max-height: 500px;
    padding: 0 25px 20px;
}

/* ─── MODAL OVERLAY & FORM ──────────────────────────── */
.rx-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.rx-modal-overlay.active {
    display: flex;
}

.rx-modal {
    background: var(--rx-white);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 32px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
}

.rx-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--rx-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

html[dir="rtl"] .rx-modal-close {
    right: auto;
    left: 20px;
}

.rx-modal-close:hover {
    color: var(--rx-accent-alt);
}

.rx-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.rx-modal-header h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    color: var(--rx-primary);
    margin-bottom: 8px;
}

.rx-modal-header p {
    color: var(--rx-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.rx-form-group {
    margin-bottom: 18px;
}

.rx-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--rx-dark);
}

.rx-form-group label i {
    color: var(--rx-primary);
    margin-inline-end: 6px;
}

.rx-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    background: #f8fafc;
}

.rx-form-group input:focus {
    border-color: var(--rx-primary);
    background: #fff;
}

.rx-form-result {
    text-align: center;
    margin-bottom: 16px;
    font-size: 0.9rem;
    min-height: 24px;
}

/* ─── CHAT WIDGET ───────────────────────────────────── */
.rx-chat-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--rx-gradient);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(10, 110, 92, 0.4);
    z-index: 8000;
    transition: all 0.3s;
}

html[dir="rtl"] .rx-chat-fab {
    right: auto;
    left: 30px;
}

.rx-chat-fab:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 35px rgba(10, 110, 92, 0.55);
}

.rx-chat-window {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-height: 500px;
    background: var(--rx-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 8001;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

html[dir="rtl"] .rx-chat-window {
    right: auto;
    left: 30px;
}

.rx-chat-window.active {
    display: flex;
}

.rx-chat-header {
    background: var(--rx-gradient-dark);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rx-chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--rx-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rx-chat-header strong {
    display: block;
    font-size: 0.9rem;
}

.rx-chat-header span {
    font-size: 0.75rem;
    color: #4ade80;
}

.rx-chat-close-btn {
    margin-inline-start: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.rx-chat-close-btn:hover {
    opacity: 1;
}

.rx-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    max-height: 300px;
    background: #f8fafc;
}

.rx-chat-msg {
    max-width: 85%;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    word-break: break-word;
    /* Bidi: direction set inline by JS per message */
    unicode-bidi: plaintext;
}

.rx-chat-msg p {
    unicode-bidi: plaintext;
    margin: 0 0 8px;
}

.rx-chat-msg p:last-child {
    margin-bottom: 0;
}

.rx-chat-msg.bot {
    align-self: flex-start;
    background: var(--rx-white);
    color: var(--rx-dark);
    border: 1px solid #e2e8f0;
    border-end-start-radius: 4px;
}

.rx-chat-msg.user {
    align-self: flex-end;
    background: var(--rx-gradient);
    color: #fff;
    border-end-end-radius: 4px;
}

.rx-typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.rx-typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--rx-primary);
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}

.rx-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.rx-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

.rx-chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    background: #fff;
}

.rx-chat-input-area input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.rx-chat-input-area input:focus {
    border-color: var(--rx-primary);
}

.rx-chat-input-area button {
    width: 42px;
    height: 42px;
    background: var(--rx-gradient);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.rx-chat-input-area button:hover {
    transform: scale(1.1);
}

.rx-chat-input-area button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rx-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.rx-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE — TABLET (max 968px) ───────────────── */
@media (max-width: 968px) {
    .rx-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .rx-hero-subtitle {
        margin-inline: auto;
    }

    .rx-hero-cta {
        justify-content: center;
    }

    .rx-hero-platforms {
        justify-content: center;
    }

    .rx-hero-visual {
        order: -1;
    }

    .rx-phone-mockup {
        width: 260px;
    }

    .rx-hero-app-img {
        width: 280px;
    }

    .rx-hero-title-logo {
        width: 220px;
    }

    .rx-hero-logo {
        display: none;
    }

    .rx-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .rx-steps::before {
        display: none;
    }

    .rx-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .rx-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .rx-about-text {
        order: 2;
    }

    .rx-about-visual {
        order: 1;
    }

    .rx-about-contact {
        justify-content: center;
    }

    .rx-screenshots {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* ─── RESPONSIVE — MOBILE (max 768px) ───────────────── */
@media (max-width: 768px) {
    .rx-hero {
        padding: 100px 5% 80px;
        min-height: auto;
    }

    .rx-section {
        padding: 60px 5%;
    }

    .rx-section-header {
        margin-bottom: 40px;
    }

    .rx-features-grid {
        grid-template-columns: 1fr;
    }

    .rx-feature-card {
        padding: 20px;
    }

    .rx-steps {
        grid-template-columns: 1fr 1fr;
    }

    .rx-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rx-screenshots {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .rx-pricing-card {
        padding: 30px 20px;
    }

    .rx-price-amount {
        font-size: 3rem;
    }

    .rx-urgency-content {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 10px;
    }

    /* Modal */
    .rx-modal {
        padding: 28px 20px;
        max-width: 100%;
        border-radius: 16px;
    }

    /* Chat */
    .rx-chat-window {
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
        bottom: 100px;
        max-height: 70vh;
    }

    html[dir="rtl"] .rx-chat-window {
        right: 10px;
        left: 10px;
    }

    .rx-chat-fab {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }

    html[dir="rtl"] .rx-chat-fab {
        right: auto;
        left: 20px;
    }

    .rx-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .rx-cta-buttons .rx-btn {
        width: 100%;
        max-width: 340px;
    }

    .rx-timeline-item {
        gap: 16px;
    }

    .rx-timeline-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1rem;
    }

    .rx-timeline::before {
        left: 22px;
    }

    html[dir="rtl"] .rx-timeline::before {
        left: auto;
        right: 22px;
    }

    .rx-timeline-content {
        padding: 18px;
    }
}

/* ─── RESPONSIVE — SMALL MOBILE (max 480px) ─────────── */
@media (max-width: 480px) {
    .rx-hero {
        padding: 90px 4% 70px;
    }

    .rx-hero-title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .rx-hero-title-logo {
        width: 180px;
        margin-inline: auto;
    }

    .rx-phone-mockup {
        width: 220px;
    }

    .rx-hero-app-img {
        width: 220px;
    }

    .rx-hero-logo {
        display: none;
    }

    .rx-hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .rx-hero-platforms {
        flex-direction: column;
        gap: 10px;
    }

    .rx-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .rx-btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .rx-steps {
        grid-template-columns: 1fr;
    }

    .rx-stats-grid {
        grid-template-columns: 1fr;
    }

    .rx-stat-number {
        font-size: 2.2rem;
    }

    .rx-step-number {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }

    .rx-faq-q {
        padding: 16px 18px;
        font-size: 0.9rem;
    }

    .rx-faq-a {
        padding: 0 18px;
        font-size: 0.88rem;
    }

    .rx-faq-item.open .rx-faq-a {
        padding: 0 18px 16px;
    }

    .rx-section-header h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .rx-section-desc {
        font-size: 0.95rem;
    }

    .rx-about-text h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .rx-pricing-header h3 {
        font-size: 1.4rem;
    }
}
