/*
 * ═══════════════════════════════════════════════════════════════════════
 * MAJAARH NEW THEME - Main Stylesheet
 * Converted from Tailwind CSS (HTML/new1.html) to Vanilla CSS
 * ═══════════════════════════════════════════════════════════════════════
 * Created: 2026-02-06
 */

/* ═══════════════════════════════════════════════════════════════════════
   ROOT VARIABLES
   ═══════════════════════════════════════════════════════════════════════ */
:root,
[data-bs-theme="dark"],
html.dark {
    /* Dark Theme (Default) - Eye Comfort Optimized */
    --mj-bg: #050505;
    --mj-card: #0d0d0d;
    --mj-accent-red: #e31b23;
    --mj-cyan: #00f2ff;
    --mj-green: #00ff88;
    --mj-cyan-rgb: 0, 242, 255;
    --mj-red-rgb: 227, 27, 35;
    --mj-border: rgba(255, 255, 255, 0.05);
    --mj-text: #f8fafc;
    --mj-text-muted: #94a3b8;
    --mj-text-dim: #64748b;
    --mj-font: 'Tajawal', sans-serif;
    --mj-glass: rgba(15, 18, 23, 0.9);

    /* Internal Page Aliases */
    --bg-card: var(--mj-card);
    --border-color: var(--mj-border);
    --text-primary: var(--mj-text);
    --text-secondary: var(--mj-text-muted);
    --brand-red: #e31b23;
    --brand-cyan: var(--mj-cyan);
    --bg-black: var(--mj-bg);
    --card-bg: var(--mj-card);
    --body-bg: var(--mj-bg);

    /* Toggle Button Colors */
    --toggle-bg: rgba(255, 255, 255, 0.05);
    --toggle-border: rgba(255, 255, 255, 0.1);
}

/* Light Theme Overrides */
html.light,
[data-bs-theme="light"] {
    --mj-bg: #ffffff;
    --mj-card: #f8fafc;
    --mj-border: rgba(0, 0, 0, 0.08);
    /* Darker border for visibility */
    --mj-text: #0f172a;
    --mj-text-muted: #475569;
    --mj-text-dim: #64748b;
    --mj-glass: rgba(255, 255, 255, 0.9);

    /* Keep accent colors but maybe adjust brightness if needed */
    --mj-accent-red: #e31b23;
    --mj-cyan: #0891b2;
    --mj-cyan-rgb: 8, 145, 178;
    --mj-red-rgb: 227, 27, 35;
    /* Darker cyan for text readability */

    /* Internal Page Aliases */
    --bg-card: #f8fafc;
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --brand-red: #e31b23;
    --brand-cyan: #0891b2;
    --bg-black: #ffffff;
    --card-bg: #f8fafc;
    --body-bg: #ffffff;

    --toggle-bg: #e2e8f0;
    --toggle-border: #cbd5e1;
}

/* Light Mode Specific Adjustments */
html.light .logo-text .logo-name {
    color: #0f172a;
}

html.light .nav-link:hover {
    color: var(--mj-accent-red);
}

html.light .mj-card,
html.light .glass-panel,
[data-bs-theme="light"] .mj-card,
[data-bs-theme="light"] .glass-panel {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ═══════════════════════════════════════════════════════════════════════
   THEME RECOVERY & SURGICAL OVERRIDES
   Targets elements from unified-design-system.css that use !important
   ═══════════════════════════════════════════════════════════════════════ */

/* 1. Body Recovery */
body {
    background-color: var(--mj-bg) !important;
    color: var(--mj-text) !important;
}

/* 2. Card, Surface & Global Recovery (Kill ALL dark sections) */
.card,
.widget-card,
.widget,
.premium-card,
.stat-card-premium,
.mj-card,
.glass-panel,
.bg-premium-surface,
.bg-mj-card,
.footer-new2,
.hero-premium-carousel,
.ticker-wrap,
.strength-card-new2,
.tool-card-new2,
.pricing-card-new2,
.pricing-card,
.glass-card,
.glass-card-premium {
    background-color: var(--mj-bg) !important;
    background: var(--mj-bg) !important;
    border-color: var(--mj-border) !important;
    color: var(--mj-text) !important;
}

/* Specific Card Handling - Ensure subtle separation */
.card,
.mj-card,
.premium-card,
.pricing-card,
.strength-card-new2,
.tool-card-new2 {
    background-color: var(--mj-card) !important;
}

/* 3. Hero & Header Overrides */
.ticker-wrap {
    display: none !important;
    /* تم إخفاء شريط الأسعار */
}

.glass-header {
    position: fixed !important;
    top: 0 !important;
    /* رفع الهيدر لأعلى الصفحة */
    left: 0 !important;
    width: 100% !important;
    height: 70px !important;
    /* تصغير الارتفاع */
    z-index: 9999 !important;
    background: var(--mj-glass) !important;
    color: var(--mj-text) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--mj-border) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.glass-header.scrolled {
    height: 65px !important;
    /* أصغر عند التمرير */
    top: 0 !important;
    /* البقاء في أعلى الصفحة */
    background: var(--mj-glass) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 2px solid var(--mj-accent-red) !important;
}

html.light .glass-header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
}

.hero-overlay {
    background: linear-gradient(135deg,
            rgba(var(--bg-rgb, 255, 255, 255), 0.95) 0%,
            rgba(var(--bg-rgb, 255, 255, 255), 0.8) 40%,
            rgba(var(--bg-rgb, 255, 255, 255), 0.6) 70%,
            rgba(227, 27, 35, 0.1) 100%) !important;
}

html.light .hero-overlay {
    --bg-rgb: 255, 255, 255;
}

html.dark .hero-overlay {
    --bg-rgb: 7, 12, 18;
}

.hero-text-box {
    color: var(--mj-text) !important;
    background: var(--mj-glass) !important;
}

/* 4. Global Typography Stabilization (Neutralizing !important design system overrides) */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.display-1,
.display-2,
.display-3,
.display-4,
p,
li {
    color: var(--mj-text) !important;
}

/* Contextual Overrides for Light Mode */
html.light .text-white,
html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light h5,
html.light h6,
html.light p,
html.light li,
html.light div:not([class*="bg-"]):not([class*="btn"]),
html.light .pricing-price,
html.light .pricing-tier,
html.light .pricing-name,
html.light .pricing-features li,
html.light .hero-title,
html.light .hero-subtitle,
html.light .hero-badge,
html.light span:not([class*="text-mj-"]):not([class*="text-success"]):not([class*="text-danger"]):not(.hero-btn-primary):not(.btn-glow) {
    color: var(--mj-text) !important;
}

/* Re-allow Brand & Status colors to work (Increasing specificity) */
body .text-mj-red,
body .text-danger {
    color: var(--mj-accent-red) !important;
}

body .text-mj-cyan,
body .text-info {
    color: var(--mj-cyan) !important;
}

body .text-mj-green,
body .text-success {
    color: var(--mj-green) !important;
}

body .text-warning {
    color: #FFD700 !important;
}

/* Force White for Legibility on Brand Backgrounds & Dark Mode */
.bg-mj-red .text-white,
.hero-btn-primary,
.btn-glow,
.btn-primary,
.pricing-tier.premium,
.pricing-tier.elite,
.badge.bg-mj-red,
html.dark .text-white,
html.dark .hero-title,
html.dark .hero-subtitle,
html.dark .hero-text-box p {
    color: #ffffff !important;
}

/* Opacity Adjustment for Light Mode (Avoid unreadable faint text) */
html.light .opacity-75,
html.light .opacity-50 {
    opacity: 0.9 !important;
}

html.light .text-muted {
    color: var(--mj-text-muted) !important;
    opacity: 1 !important;
}

/* Button & UI Component Stability */
html.light .btn-outline-light {
    border-color: var(--mj-border) !important;
    color: var(--mj-text) !important;
}

html.light .btn-outline-light:hover {
    background: var(--mj-card) !important;
    border-color: var(--mj-accent-red) !important;
    color: var(--mj-accent-red) !important;
}

/* 5. Stat & Utility Overrides */
.stat-value {
    color: var(--mj-text) !important;
}

.stat-label {
    color: var(--mj-text-muted) !important;
}

.text-muted,
.text-theme-secondary {
    color: var(--mj-text-muted) !important;
}

.text-theme-primary {
    color: var(--mj-text) !important;
}

/* 5. Legacy Pattern Override (From Dashboard Guide) */
.stat-card.bg-light,
.card.bg-light,
.grey-capsule,
div[style*="background-color: #f8f9fa"],
div[style*="background: #f8f9fa"] {
    background: var(--mj-card) !important;
    border: 1px solid var(--mj-border) !important;
    box-shadow: none !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
}

body {
    font-family: var(--mj-font);
    background-color: var(--mj-bg) !important;
    color: var(--mj-text) !important;
    line-height: 1.6;
    padding-top: 0 !important;
    overflow-x: hidden !important;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Premium Cyber Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.dark ::-webkit-scrollbar-track,
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff2e2e, #a01729);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff4c4c;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   TAILWIND COMPATIBILITY LAYER (UTILITIES SHIM)
   Enables 100% visual match with HTML/New5.html design
   ═══════════════════════════════════════════════════════════════════════ */

/* Layout & Flexbox */
.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.items-center {
    align-items: center !important;
}

.justify-center {
    justify-content: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.flex-grow {
    flex-grow: 1 !important;
}

.shrink-0 {
    flex-shrink: 0 !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.overflow-y-auto {
    overflow-y: auto !important;
}

.space-y-2>*+* {
    margin-top: 0.5rem !important;
}

.space-y-10>*+* {
    margin-top: 2.5rem !important;
}

.relative {
    position: relative !important;
}

.absolute {
    position: absolute !important;
}

.z-50 {
    z-index: 50 !important;
}

.z-\[60\] {
    z-index: 60 !important;
}

/* Escaped bracket */
.hidden {
    display: none !important;
}

@media (min-width: 1280px) {
    .xl\:flex {
        display: flex !important;
    }
}

/* Sizing */
.w-full {
    width: 100% !important;
}

.h-full {
    height: 100% !important;
}

.h-screen {
    height: 100vh !important;
}

.w-64 {
    width: 16rem !important;
}

/* 256px */
.w-12 {
    width: 3rem !important;
}

.h-12 {
    height: 3rem !important;
}

.h-28 {
    height: 7rem !important;
}

.w-14 {
    width: 3.5rem !important;
}

.h-14 {
    height: 3.5rem !important;
}

.w-10 {
    width: 2.5rem !important;
}

.h-10 {
    height: 2.5rem !important;
}

.w-px {
    width: 1px !important;
}

.h-8 {
    height: 2rem !important;
}

.w-2\.5 {
    width: 0.625rem !important;
}

.h-2\.5 {
    height: 0.625rem !important;
}

/* Spacing */
.p-4 {
    padding: 1rem !important;
}

.p-6 {
    padding: 1.5rem !important;
}

.p-8 {
    padding: 2rem !important;
}

.p-10 {
    padding: 2.5rem !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-5 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

.px-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.px-10 {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
}

.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.py-3\.5 {
    padding-top: 0.875rem !important;
    padding-bottom: 0.875rem !important;
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-8 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.pb-10 {
    padding-bottom: 2.5rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-4 {
    margin-top: 1rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.mb-10 {
    margin-bottom: 2.5rem !important;
}

.mr-auto {
    margin-right: auto !important;
}

/* RTL Aware? Check direction */
.gap-3 {
    gap: 0.75rem !important;
}

.gap-4 {
    gap: 1rem !important;
}

.gap-6 {
    gap: 1.5rem !important;
}

.gap-8 {
    gap: 2rem !important;
}

.gap-10 {
    gap: 2.5rem !important;
}

/* Colors & Backgrounds */
.bg-white {
    background-color: #ffffff !important;
}

.bg-mj-bg-light {
    background-color: var(--mj-bg-light, #f8fafc) !important;
}

.bg-mj-card-dark {
    background-color: var(--mj-card) !important;
}

.bg-mj-accent-red {
    background-color: var(--mj-accent-red) !important;
}

.bg-mj-green {
    background-color: var(--mj-green) !important;
}

.bg-mj-border\/10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-mj-border\/50 {
    background-color: rgba(255, 255, 255, 0.5) !important;
}

.bg-mj-accent-red\/10 {
    background-color: rgba(255, 46, 46, 0.1) !important;
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.bg-white\/80 {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

.dark\:bg-mj-bg-dark {
    background-color: var(--mj-bg, #07090c) !important;
}

.dark\:bg-mj-bg-dark\/60 {
    background-color: var(--mj-glass) !important;
}

.bg-transparent {
    background-color: transparent !important;
}

/* Gradients */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important;
}

.from-mj-accent-red {
    --tw-gradient-from: var(--mj-accent-red);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 46, 46, 0));
}

.to-red-900 {
    --tw-gradient-to: #7f1d1d;
}

/* Text & Typography */
.text-white {
    color: #ffffff !important;
}

.text-mj-accent-red {
    color: var(--mj-accent-red) !important;
}

.text-mj-green {
    color: var(--mj-green) !important;
}

.text-dimmed {
    color: var(--mj-text-muted) !important;
}

.text-readable {
    color: var(--mj-text) !important;
}

.text-xs {
    font-size: 0.75rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-base {
    font-size: 1rem !important;
}

.text-lg {
    font-size: 1.125rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
}

.text-2xl {
    font-size: 1.5rem !important;
}

.text-3xl {
    font-size: 1.875rem !important;
}

.text-\[9px\] {
    font-size: 9px !important;
}

.text-\[10px\] {
    font-size: 10px !important;
}

.text-\[11px\] {
    font-size: 11px !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-extrabold {
    font-weight: 800 !important;
}

.font-black {
    font-weight: 900 !important;
}

.italic {
    font-style: italic !important;
}

.uppercase {
    text-transform: uppercase !important;
}

.tracking-tight {
    letter-spacing: -0.025em !important;
}

.tracking-tighter {
    letter-spacing: -0.05em !important;
}

.tracking-widest {
    letter-spacing: 0.1em !important;
}

.tracking-\[0\.2em\] {
    letter-spacing: 0.2em !important;
}

.leading-none {
    line-height: 1 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-40 {
    opacity: 0.4 !important;
}

.opacity-90 {
    opacity: 0.9 !important;
}

/* Borders & Radius */
.border {
    border-width: 1px !important;
}

.border-l {
    border-left-width: 1px !important;
}

.border-t {
    border-top-width: 1px !important;
}

.border-b {
    border-bottom-width: 1px !important;
}

.border-mj-border {
    border-color: var(--mj-border) !important;
}

.border-mj-border\/50 {
    border-color: rgba(255, 255, 255, 0.05) !important;
    /* Adjusted opacity */
}

.border-mj-border\/20 {
    border-color: rgba(255, 255, 255, 0.02) !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

.rounded-2xl {
    border-radius: 1rem !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

.rounded-\[2\.5rem\] {
    border-radius: 2.5rem !important;
}

.rounded-\[3rem\] {
    border-radius: 3rem !important;
}

/* Effects */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.backdrop-blur-2xl {
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
}

.transition-all {
    transition-property: all !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

.transition-transform {
    transition-property: transform !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

.hover\:scale-105:hover {
    transform: scale(1.05) !important;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   END UTILITY SHIM

/* Glass Panel Effect */
.glass-panel {
    background: rgba(12, 15, 22, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    border-radius: 2.5rem;
    /* Large rounded corners */
    transition: all 0.3s ease;
}

html.light .glass-panel {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Hover Effect for Cards */
.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 46, 46, 0.3);
    /* Red Accent */
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.col-span-2 {
    grid-column: span 2;
}

/* Text Gradients */
.gradient-text {
    background: linear-gradient(90deg, #ff2e2e, #ff8c8c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Stat Values */
.stat-value {
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 2rem;
    color: var(--mj-text);
}

/* Widget Wrapper to force consistent height */
.widget-card-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════════════
   BOOTSTRAP COMPATIBILITY LAYER (GRID & UTILS)
   Fixes layout issues for original widgets relying on Bootstrap classes
   ═══════════════════════════════════════════════════════════════════════ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.g-3,
.gy-3 {
    --bs-gutter-y: 1rem;
}

.g-3,
.gx-3 {
    --bs-gutter-x: 1rem;
}

.g-4,
.gy-4 {
    --bs-gutter-y: 1.5rem;
}

.g-4,
.gx-4 {
    --bs-gutter-x: 1.5rem;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

.col-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
}

.col-3 {
    flex: 0 0 auto;
    width: 25%;
}

@media (min-width: 768px) {
    .col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }

    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-md-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .d-md-block {
        display: block !important;
    }

    .d-md-flex {
        display: flex !important;
    }

    .d-md-none {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .col-lg-12 {
        flex: 0 0 auto;
        width: 100%;
    }

    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-flex {
        display: flex !important;
    }

    .d-lg-none {
        display: none !important;
    }
}

/* Utilities Shim */
.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.me-2 {
    margin-left: 0.5rem !important;
}

/* RTL Fix */
.ms-2 {
    margin-right: 0.5rem !important;
}

/* RTL Fix */
.me-auto {
    margin-left: auto !important;
}

.ms-auto {
    margin-right: auto !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.text-center {
    text-align: center !important;
}

.text-end {
    text-align: left !important;
}

/* RTL Fix */
.text-start {
    text-align: right !important;
}

/* RTL Fix */

/* Bootstrap Components Shim */
.card {
    background: var(--mj-card);
    border: 1px solid var(--mj-border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--mj-border);
    padding: 1rem 1.5rem;
    font-weight: 700;
}

.card-body {
    padding: 1.5rem;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--mj-text);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--mj-border);
    vertical-align: middle;
}

.table th {
    font-weight: 700;
    color: var(--mj-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.bg-success {
    background-color: var(--mj-green) !important;
    color: #000;
}

.bg-danger {
    background-color: var(--mj-accent-red) !important;
}

.bg-warning {
    background-color: #f59e0b !important;
    color: #000;
}

.bg-info {
    background-color: var(--mj-cyan) !important;
    color: #000;
}

.bg-secondary {
    background-color: #64748b !important;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
}

.alert-info {
    color: var(--mj-cyan);
    background-color: rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════ */
.text-red {
    color: var(--mj-accent-red) !important;
}

.text-cyan {
    color: var(--mj-cyan) !important;
}

.text-green {
    color: var(--mj-green) !important;
}

.text-muted {
    color: var(--mj-text-muted) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   TICKER
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes ticker-scroll {
    0% {
        transform: translateX(100%);
    }

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

.ticker-wrap {
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-move {
    display: inline-block;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-move span {
    font-weight: 700;
    font-size: 10px;
    margin-left: 3rem;
}

.ticker-move .up {
    color: var(--mj-green);
}

.ticker-move .down {
    color: var(--mj-accent-red);
}

.ticker-move .cyan {
    color: var(--mj-cyan);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════ */
/* Base styles consolidated at top */

.header-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--mj-accent-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(3deg);
    transition: transform 0.3s;
    color: #fff;
    font-size: 1.25rem;
}

.logo:hover .logo-icon {
    transform: rotate(12deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1;
}

.logo-subtitle {
    font-size: 8px;
    letter-spacing: 4px;
    color: var(--mj-cyan);
    opacity: 0.7;
}

/* Navigation */
.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.9;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--mj-accent-red);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--mj-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

/* Header Buttons */
.btn-outline {
    border: 2px solid var(--mj-border);
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s;
    display: none;
    background: transparent;
    color: var(--mj-text) !important;
    cursor: pointer;
    text-decoration: none;
}

@media (min-width: 640px) {
    .btn-outline {
        display: inline-block;
    }
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--mj-accent-red);
    color: var(--mj-accent-red) !important;
}

.btn-primary {
    background: var(--mj-accent-red) !important;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 0 20px rgba(255, 46, 46, 0.2);
    transition: all 0.3s;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #c41e3a !important;
    color: #fff !important;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--mj-text);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    padding: 6rem 1.5rem 8rem;
    overflow: hidden;
}

.hero-bg-red {
    position: absolute;
    top: 5rem;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 46, 46, 0.05);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
}

.hero-bg-cyan {
    position: absolute;
    bottom: 2.5rem;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(0, 242, 255, 0.05);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--mj-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.badge-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--mj-green);
    text-transform: uppercase;
}

/* Hero Title */
.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title .text-red {
    font-style: italic;
}

.hero-desc {
    color: var(--mj-text-muted);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

.btn-primary-lg {
    background: var(--mj-accent-red) !important;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.125rem;
    box-shadow: 0 0 20px rgba(255, 46, 46, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary-lg:hover {
    transform: scale(1.05);
    background: #c41e3a !important;
    color: #fff !important;
}

.hero-users {
    display: flex;
    align-items: center;
    padding-right: 1rem;
    border-right: 1px solid var(--mj-border);
}

.user-avatars {
    display: flex;
    margin-left: -12px;
}

.user-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--mj-bg);
    margin-right: -12px;
}

.users-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--mj-text-muted);
    margin-right: 1.25rem;
}

/* Terminal Card */
.terminal-wrapper {
    position: relative;
}

.terminal-card {
    background: var(--mj-card);
    border: 1px solid var(--mj-border);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.5s;
}

.terminal-card:hover {
    border-color: rgba(0, 242, 255, 0.3);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dots .dot.red {
    background: rgba(255, 46, 46, 0.4);
}

.terminal-dots .dot.cyan {
    background: rgba(0, 242, 255, 0.4);
}

.terminal-dots .dot.green {
    background: rgba(0, 255, 136, 0.4);
}

.terminal-title {
    font-size: 10px;
    font-family: monospace;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Strength Box */
.strength-box {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.strength-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.strength-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--mj-cyan);
    margin-bottom: 0.25rem;
}

.strength-pair {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: monospace;
}

.strength-value {
    font-size: 14px;
    font-weight: 700;
}

.strength-value.up {
    color: var(--mj-green);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
}

.progress-fill {
    height: 100%;
    background: var(--mj-green);
    border-radius: 9999px;
    box-shadow: 0 0 15px var(--mj-green);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 10px;
    font-weight: 700;
    opacity: 0.4;
    text-transform: uppercase;
}

/* Trades Grid */
.trades-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.trade-card {
    background: var(--mj-glass);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--mj-border);
}

.trade-label {
    font-size: 10px;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
    font-style: italic;
}

.trade-pair {
    font-weight: 900;
}

.trade-pair.up {
    color: var(--mj-green);
}

.trade-pair.cyan {
    color: var(--mj-cyan);
}

.trade-price {
    font-size: 12px;
    font-family: monospace;
}

.terminal-frame {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 46, 46, 0.2);
    border-radius: 2rem;
    z-index: -1;
    transition: all 0.5s;
}

.terminal-wrapper:hover .terminal-frame {
    top: 0;
    right: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   STRENGTH SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.strength-section {
    padding: 6rem 0;
    background: rgba(15, 18, 23, 0.3);
    border-top: 1px solid var(--mj-border);
    border-bottom: 1px solid var(--mj-border);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-desc {
    color: var(--mj-text-dim);
    max-width: 600px;
    margin: 0 auto;
    font-size: 14px;
}

.currency-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .currency-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .currency-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.currency-card {
    background: var(--mj-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--mj-border);
    text-align: center;
    transition: all 0.3s;
}

.currency-card:hover {
    transform: translateY(-10px);
    border-color: var(--mj-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.currency-card.dim {
    opacity: 0.5;
}

.currency-card.more-dim {
    opacity: 0.3;
}

.currency-name {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: monospace;
    margin-bottom: 0.5rem;
}

.currency-value {
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 1rem;
}

.currency-value.up {
    color: var(--mj-green);
}

.currency-value.down {
    color: var(--mj-accent-red);
}

.currency-value.neutral {
    color: var(--mj-text-dim);
}

.currency-bars {
    width: 100%;
    height: 96px;
    background: var(--mj-bg);
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    padding: 4px;
    gap: 4px;
}

.currency-bars .bar {
    flex: 1;
    background: var(--mj-green);
    border-radius: 2px;
}

.currency-bars .bar.up {
    box-shadow: 0 0 10px var(--mj-green);
}

.currency-bars .bar.down {
    background: var(--mj-accent-red);
    box-shadow: 0 0 10px var(--mj-accent-red);
}

.currency-bars .bar.neutral {
    background: #374151;
}

/* ═══════════════════════════════════════════════════════════════════════
   TOOLS SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.tools-section {
    padding: 6rem 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.tools-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    order: 2;
}

@media (min-width: 1024px) {
    .tools-cards {
        order: 1;
    }
}

.tool-card {
    background: var(--mj-card);
    border: 1px solid var(--mj-border);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--mj-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.tool-card.accent-red {
    border-color: rgba(255, 46, 46, 0.2);
}

.tool-card.mt-lg {
    margin-top: 3rem;
}

.tool-card i {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.icon-cyan {
    color: var(--mj-cyan);
}

.icon-red {
    color: var(--mj-accent-red);
}

.icon-green {
    color: var(--mj-green);
}

.tool-card h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 12px;
    color: var(--mj-text-dim);
    line-height: 1.6;
    font-style: italic;
}

.tools-content {
    order: 1;
}

@media (min-width: 1024px) {
    .tools-content {
        order: 2;
    }
}

.tools-desc {
    color: var(--mj-text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.tools-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.tools-features li {
    padding: 0.75rem 0;
    font-size: 14px;
    font-weight: 700;
    opacity: 0.8;
}

.tools-features i {
    color: var(--mj-cyan);
    margin-left: 0.75rem;
}

.btn-white {
    background: #fff;
    color: var(--mj-bg);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 900;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s;
}

.btn-white:hover {
    background: var(--mj-cyan);
}

/* ═══════════════════════════════════════════════════════════════════════
   RESULTS SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.results-section {
    padding: 6rem 1.5rem;
    background: var(--mj-accent-red);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23000' fill-opacity='1' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

.results-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--mj-bg);
    letter-spacing: -2px;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .results-title {
        font-size: 3.5rem;
    }
}

.results-desc {
    color: rgba(7, 9, 12, 0.8);
    font-weight: 700;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background: rgba(7, 9, 12, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(7, 9, 12, 0.2);
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--mj-bg);
}

.stat-label {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.6;
    font-style: italic;
    color: var(--mj-bg);
}

/* ═══════════════════════════════════════════════════════════════════════
   PRICING SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.pricing-section {
    padding: 8rem 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.toggle-label {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.4;
    font-style: italic;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mj-card);
    border: 1px solid var(--mj-border);
    border-radius: 9999px;
    transition: 0.3s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    right: 2px;
    bottom: 1px;
    background: var(--mj-accent-red);
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(-24px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 5rem;
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: var(--mj-card);
    border: 1px solid var(--mj-border);
    padding: 2.5rem;
    border-radius: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--mj-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--mj-accent-red);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .pricing-card.featured {
        transform: scale(1.05);
        z-index: 20;
    }

    .pricing-card.featured:hover {
        transform: scale(1.08);
    }
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--mj-accent-red);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    padding: 8px 32px;
    transform: rotate(-45deg) translate(-30px, 10px);
    text-transform: uppercase;
}

.pricing-tier {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--mj-text-dim);
}

.pricing-tier.pro {
    color: var(--mj-accent-red);
}

.pricing-tier.elite {
    color: var(--mj-cyan);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 2rem;
}

.pricing-price {
    font-size: 3.75rem;
    font-weight: 900;
    font-family: monospace;
    margin-bottom: 2.5rem;
}

.pricing-price.accent {
    color: var(--mj-accent-red);
    font-style: italic;
}

.pricing-price span {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.3;
}

.pricing-features {
    list-style: none;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    font-size: 14px;
    font-style: italic;
    opacity: 0.7;
}

.pricing-features li.disabled {
    opacity: 0.3;
    text-decoration: line-through;
}

.pricing-features i {
    margin-left: 0.5rem;
    color: var(--mj-cyan);
}

.pricing-features .fa-xmark {
    opacity: 0.5;
    color: var(--mj-text);
}

.btn-pricing-outline {
    width: 100%;
    margin-top: 3rem;
    padding: 1.25rem;
    border: 1px solid var(--mj-border);
    border-radius: 1rem;
    font-weight: 900;
    font-style: italic;
    background: transparent;
    color: var(--mj-text);
    transition: all 0.3s;
    text-align: center;
    display: block;
}

.btn-pricing-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-pricing-primary {
    width: 100%;
    margin-top: 3rem;
    padding: 1.25rem;
    background: var(--mj-accent-red);
    border-radius: 1rem;
    font-weight: 900;
    font-size: 1rem;
    font-style: italic;
    box-shadow: 0 0 20px rgba(255, 46, 46, 0.2);
    color: #fff;
    text-align: center;
    display: block;
    transition: all 0.3s;
}

.btn-pricing-primary:hover {
    transform: scale(1.02);
}

.btn-pricing-cyan {
    width: 100%;
    margin-top: 3rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 1rem;
    font-weight: 900;
    font-style: italic;
    background: transparent;
    color: var(--mj-cyan);
    transition: all 0.3s;
    text-align: center;
    display: block;
}

.btn-pricing-cyan:hover {
    background: rgba(0, 242, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.main-footer {
    background: var(--mj-bg);
    padding-top: 8rem;
    padding-bottom: 3rem;
    border-top: 1px solid var(--mj-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 2fr;
        gap: 5rem;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--mj-accent-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-style: italic;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.footer-desc {
    font-size: 11px;
    color: var(--mj-text-dim);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    font-size: 1.25rem;
}

.footer-social a {
    opacity: 0.4;
    transition: all 0.3s;
}

.footer-social a:hover {
    opacity: 1;
    color: var(--mj-accent-red);
}

.footer-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 2rem;
}

.footer-title.cyan {
    color: var(--mj-cyan);
}

.footer-title.red {
    color: var(--mj-accent-red);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    padding: 0.75rem 0;
}

.footer-links a {
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    opacity: 0.4;
    transition: all 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-newsletter {
    background: var(--mj-card);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--mj-border);
}

.footer-newsletter-title {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 1rem;
}

.footer-newsletter-desc {
    font-size: 10px;
    color: var(--mj-text-dim);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    width: 100%;
    background: var(--mj-bg);
    border: 1px solid var(--mj-border);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    color: #fff;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--mj-cyan);
}

.newsletter-form button {
    width: 100%;
    background: var(--mj-accent-red);
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    font-style: italic;
    cursor: pointer;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: 9px;
    font-family: monospace;
    opacity: 0.2;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 2rem;
    filter: grayscale(1);
    opacity: 0.2;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════════════════════════════════ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--mj-card);
    z-index: 200;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mj-border);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--mj-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.mobile-nav a {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--mj-cyan);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mj-border);
}

.mobile-menu-actions .btn-outline,
.mobile-menu-actions .btn-primary {
    display: block;
    text-align: center;
    width: 100%;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Glass Header Styles Appended - Cleaned up redundant positional rules */
.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    /* More breath on sides */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    /* Fill the 85px header height */
}

.header-right,
.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* Increased gap for better breathing space */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--mj-text);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--mj-cyan);
    letter-spacing: 2px;
}

.nav-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        gap: 1.5rem;
        margin-right: 2rem;
    }
}

.nav-link {
    color: var(--mj-text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--mj-accent-red);
}

.btn-outline {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--mj-border);
    border-radius: 8px;
    color: var(--mj-text) !important;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--mj-card);
    border-color: var(--mj-accent-red);
    color: var(--mj-accent-red) !important;
}

.btn-primary {
    padding: 0.625rem 1.25rem;
    background: var(--mj-accent-red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 46, 46, 0.3);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 46, 46, 0.5);
    background: #c41e3a !important;
    color: #fff !important;
}

/* Glowing Button Styles */
.btn-primary-glow {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--brand-red), #ff4d4d) !important;
    color: white !important;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(227, 27, 35, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary-glow:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 30px rgba(227, 27, 35, 0.4);
    color: white !important;
}

.btn-outline-glow {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: transparent !important;
    color: var(--mj-text) !important;
    border: 2px solid var(--mj-border);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-glow:hover {
    background: rgba(227, 27, 35, 0.1) !important;
    border-color: var(--mj-accent-red);
    color: var(--mj-accent-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 27, 35, 0.2);
}

/* Light Mode Button Fixes */
html.light .btn-outline,
[data-bs-theme="light"] .btn-outline {
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #0f172a !important;
}

html.light .btn-outline:hover,
[data-bs-theme="light"] .btn-outline:hover {
    background: rgba(227, 27, 35, 0.05) !important;
    border-color: #e31b23 !important;
    color: #e31b23 !important;
}

html.light .btn-outline-glow,
[data-bs-theme="light"] .btn-outline-glow {
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #0f172a !important;
}

html.light .btn-outline-glow:hover,
[data-bs-theme="light"] .btn-outline-glow:hover {
    background: rgba(227, 27, 35, 0.05) !important;
    border-color: #e31b23 !important;
    color: #e31b23 !important;
}

.mobile-menu-toggle {
    display: block;
    background: transparent;
    border: none;
    color: var(--mj-text);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   LIGHT MODE TEXT CONTRAST FIXES
   ═══════════════════════════════════════════════════════════════════════ */

/* تحسين وضوح النصوص في الوضع الفاتح */
html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light h5,
html.light h6,
[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] h5,
[data-bs-theme="light"] h6 {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html.light p,
html.light span,
html.light div,
[data-bs-theme="light"] p,
[data-bs-theme="light"] span,
[data-bs-theme="light"] div {
    color: #1e293b;
}

html.light .text-secondary,
html.light .text-muted,
[data-bs-theme="light"] .text-secondary,
[data-bs-theme="light"] .text-muted {
    color: #475569 !important;
}

/* تحسين وضوح الكروت في الوضع الفاتح */
html.light .card,
html.light .button-card,
[data-bs-theme="light"] .card,
[data-bs-theme="light"] .button-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

html.light .card h3,
html.light .button-card h3,
[data-bs-theme="light"] .card h3,
[data-bs-theme="light"] .button-card h3 {
    color: #0f172a !important;
}

html.light .card p,
html.light .button-card p,
[data-bs-theme="light"] .card p,
[data-bs-theme="light"] .button-card p {
    color: #475569 !important;
}

/* تحسين الخلفيات في الوضع الفاتح */
html.light body,
[data-bs-theme="light"] body {
    background-color: #f8fafc !important;
}

html.light .container,
[data-bs-theme="light"] .container {
    color: #0f172a;
}
