/* 
   Royal Agency Premium Design System - V10.0
   Style Guide: Apple-level Precision, Stripe-level Clarity, and Modern Glassmorphism.
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&family=Outfit:wght@200;300;400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
    /* --- COLOR PALETTE (MODERN BLUE MINIMAL) --- */
    --bg-primary: #F8FAFC; 
    --bg-secondary: #FFFFFF; 
    --bg-glass: rgba(255, 255, 255, 0.85);

    /* ROYAL MONOLITH UI v10 TOKENS */
    --royal-onyx: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    --apple-glass-border: rgba(255, 255, 255, 0.08);
    --vbulletin-blue-accent: #3b82f6;
    --gold-accent: #ffcc00; 
    
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-ghost: #94A3B8;
    
    --accent-primary: #E11D48; /* Restored Bahraini Red */
    --accent-secondary: #FB7185; 
    --accent-glow: transparent;
    
    --border-glass: #E2E8F0;
    --border-strong: #CBD5E1;
    
    /* --- SHADOW SYSTEM (STRICT & CLEAN) --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 6px rgba(0,0,0,0.05); /* User Specific */
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.03);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.04);
    --shadow-premium: 0 2px 6px rgba(0,0,0,0.05); /* User Specific override for Monoliths */
    
    /* --- ANIMATION & EASING --- */
    --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --easing-premium: cubic-bezier(0.16, 1, 0.3, 1);
    
    /* --- LAYOUT CONSTANTS --- */
    --header-height: 80px;
    --container-width: 1400px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 100px;
    /* --- BUTTON PLASTIC TOKENS --- */
    --btn-bg: #ffffff;
    --btn-text: #0F172A;
    --btn-shadow: rgba(0, 0, 0, 0.1);
    --btn-hover-bg: #23c483; /* Interaction Green */
    --btn-hover-shadow: rgba(35, 196, 131, 0.4);
    --btn-primary-bg: #2563EB; /* Royal Blue */
    --btn-primary-hover: rgba(37, 99, 235, 0.4);
    /* --- VBULLETIN CLASSIC TOKENS --- */
    --vb-header-bg: linear-gradient(to bottom, #7C9BCA, #3E5C92);
    --vb-header-border: #2B4E81;
    --vb-body-bg: #F5F7F9;
    --vb-body-dark: #1E293B;
    --vb-border: #D1D5DB;
    --vb-text-header: #FFFFFF;
    --vb-cta-gradient: linear-gradient(135deg, #3E5C92 0%, #2B4E81 100%);
    --vb-btn-gloss: linear-gradient(to bottom, #FFFFFF 0%, #E2E8F0 50%, #CBD5E1 51%, #E2E8F0 100%);
    
    /* --- BRAND ACCENT DEFAULTS (ROYAL RED) --- */
    --brand-primary:   #E11D48;
    --brand-secondary: #FB7185;
    --brand-dark:      #9F1239; 
    --brand-glow:      transparent;
    --brand-gradient:  linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    
    /* ROYAL MONOLITH UI v10 TOKENS (RESTORED RED) */
    --royal-onyx: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    --apple-glass-border: rgba(255, 255, 255, 0.08);
    --vbulletin-accent: #E11D48;
    --gold-accent: #ffcc00; 
}

/* --- BRAND COLOR SCHEMES --- */
[data-accent="red"] {
    --brand-primary:   #E11D48;
    --accent-primary:  #E11D48;
    --brand-secondary: #FB7185;
    --brand-dark:      #9F1239;
}
[data-accent="navy"] {
    --brand-primary:   #1E3A8A;
    --accent-primary:  #1E3A8A;
    --brand-secondary: #3B82F6;
    --brand-dark:      #172554;
    --brand-glow:      rgba(30, 58, 138, 0.15);
}
[data-accent="green"] {
    --brand-primary:   #059669;
    --accent-primary:  #059669;
    --brand-secondary: #34D399;
    --brand-dark:      #064e3b;
    --brand-glow:      rgba(5, 150, 105, 0.15);
}
[data-accent="blue"] {
    --brand-primary:   #2563EB;
    --accent-primary:  #2563EB;
    --brand-secondary: #60A5FA;
    --brand-dark:      #1e3a8a;
    --brand-glow:      rgba(37, 99, 235, 0.15);
}
[data-accent="purple"] {
    --brand-primary:   #7C3AED;
    --accent-primary:  #7C3AED;
    --brand-secondary: #A78BFA;
    --brand-dark:      #4c1d95;
    --brand-glow:      rgba(124, 58, 237, 0.15);
}

/* --- DARK THEME OVERRIDES --- */
[data-theme="dark"] {
    --bg-primary: #020617; /* Deepest Midnight */
    --bg-secondary: #0F172A;
    --bg-glass: rgba(2, 6, 23, 0.8);
    
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-ghost: #64748B;
    
    --accent-primary: #60A5FA;
    --accent-glow: rgba(96, 165, 250, 0.15);
    
    --border-glass: rgba(248, 250, 252, 0.1);
    --border-strong: rgba(248, 250, 252, 0.15);
    
    /* --- BUTTON DARK OVERRIDES --- */
    --btn-bg: #1e1e1e;
    --btn-text: #ffffff;
    --btn-shadow: rgba(0, 0, 0, 0.5);
    --btn-hover-bg: #2ee59d;
    --btn-primary-bg: #60A5FA;
}

/* 6. تحسين التباين في الوضع الداكن (Security Hardened UI) */
[data-theme="dark"] .vb-block-premium {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}

/* --- BASE STYLES (MESH GRADIENT) --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', 'Cairo', sans-serif;
    line-height: 1.6;
    transition: background-color 0.5s var(--easing-standard), color 0.5s var(--easing-standard);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: default !important; /* Premium Default Indicator */
}

/* Global Interactive Cursor Normalization - Force Pointer on All Actionable Items */
a, 
button, 
[role="button"], 
input[type="submit"], 
input[type="button"], 
label[for], 
.btn, 
.btn-primary, 
.btn-secondary, 
.btn-premium, 
.btn-plastic, 
.btn-royal-primary,
.h-lang-link,
.h-theme-btn,
.h-cta-btn,
.h-user-pill,
.m-tag,
.m-view-btn {
    cursor: pointer !important;
}

/* Typography Selection Polish - Prevent I-beam on regular text */
h1, h2, h3, h4, h5, h6, p, span, label, strong, em, b, i, blockquote {
    cursor: default !important;
}

/* Ensure inputs still have the text cursor */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="tel"], 
input[type="number"], 
input[type="url"], 
input[type="search"], 
textarea {
    cursor: text !important;
}

/* Unified Context Chip (Badge) */
.m-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.08); /* Modern Blue Translucent */
    color: #3B82F6;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

/* --- MONOLITH ARCHITECTURE UTILITIES (V21) --- */
.m-box {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

.m-grid-texture {
    background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
    background-size: 32px 32px;
}

.m-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   ROYAL MONOLITH UI v10 - THE DEFINITIVE COMPONENTS
   ========================================================================== */

/* 1. هيكل البلوك الملكي (The Monolith Block) */
.vb-block-premium {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium);
    transition: all 0.5s var(--easing-premium);
}

.vb-block-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: 0.5s;
    z-index: 5;
}

.v10-svg-icon {
    width: 64px;
    height: 64px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.5s var(--easing-premium);
    color: var(--accent-primary);
    display: block;
    margin: 0 auto 16px;
}

.vb-block-premium:hover .v10-svg-icon {
    stroke-width: 2px;
    filter: drop-shadow(0 0 8px var(--brand-glow));
    color: var(--brand-secondary);
}

.vb-block-premium:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--accent-primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* 2. الهيدر بلمسة ميتين2 الفخمة (The Header Section) */
.vb-header-premium {
    background: linear-gradient(145deg, var(--brand-dark) 0%, #0f172a 100%);
    padding: 16px 24px;
    border-bottom: 1px solid var(--apple-glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vb-header-premium span {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 3. تأثير الزجاج المسحوب (Frosted UI Components) */
.apple-frosted-bg {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--apple-glass-border);
}

/* 4. الأزرار البلاستيكية المطورة (Cyber-Plastic Buttons) */
.btn-royal-v10,
.btn-royal-v10-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 750;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    transition: 0.4s var(--easing-premium);
    position: relative;
    overflow: hidden;
    cursor: pointer !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-royal-v10 {
    background: var(--btn-bg);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

.btn-royal-v10:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--brand-glow);
}

.btn-royal-v10-primary {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 12px var(--brand-glow);
}

.btn-royal-v10-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--brand-glow);
}

/* 5. إطار الرسم الذهبي (The Gold Draw Border) */
.draw-gold {
    position: relative;
}

.draw-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: all 0.4s;
    pointer-events: none;
    z-index: 10;
}

.draw-gold:hover::after {
    border-color: var(--gold-accent);
    filter: drop-shadow(0 0 5px var(--gold-accent));
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.m-hero-monolith {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 48px;
    padding: 100px 60px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

[data-theme="dark"] .m-hero-monolith {
    background: #0f172a;
    border-color: rgba(255,255,255,0.08);
}

.m-header-monolith {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 32px;
    padding: 18px 60px;
    margin-bottom: 60px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: 0.3s var(--easing-premium);
}

.m-header-monolith .m-section-sub {
    font-size: 0.95rem;
    margin-top: 8px;
    opacity: 0.55;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .m-header-monolith {
        padding: 24px 20px;
        border-radius: 24px;
        margin-bottom: 40px;
    }
    .m-header-monolith .m-display-title {
        font-size: 1.6rem;
    }
    .m-header-monolith .m-section-sub {
        font-size: 0.85rem;
    }
}

.m-header-monolith .m-grid-texture {
    opacity: 0.15;
}

/* ============================================
   VB-SECTION-HEADER :: Premium Block Hierarchy
   Redesigned for clean title/subtitle separation
============================================ */
.vb-section-header {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 60px 40px;
    margin-bottom: 60px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: 0.4s var(--easing-premium);
}

.vb-section-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--brand-gradient);
}

.vb-section-header::after {
    display: none; /* Removed Glow per specification */
}

[data-theme="dark"] .vb-section-header {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.vb-section-header h2 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 950;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.vb-section-header p {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.8;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 850px;
}

.vb-section-header:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    border-color: var(--brand-primary);
}

[data-theme="light"] body {
    background-image: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0;
}

.title-premium {
    font-size: clamp(3.5rem, 10vw, 7rem);
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- GLOBAL LAYOUT (ZERO VOID) --- */
.container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
}

section { position: relative; width: 100%; overflow: hidden; }
.section-v-padding { padding: 120px 0; }
.section-v-padding-lg { padding: 160px 0; }

/* --- HEADER (DYNAMIC PILL) --- */
.main-header {
    position: fixed;
    top: 32px; left: 50%;
    transform: translateX(-50%);
    width: min(var(--container-width), 92%);
    height: auto; 
    z-index: 2000;
    transition: all 0.5s var(--easing-premium);
}

.main-header.scrolled {
    top: 16px;
    width: min(800px, 94%);
    height: 56px;
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .header-container {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(241, 245, 249, 1);
}

/* Explicit Homepage Section Unification */
.categories-section, .monolith-section, .vb-section, .cta-section {
    background-color: var(--bg-primary) !important;
}

/* --- UNIFIED BADGE / CHIP SYSTEM --- */
.section-label, .m-cat-tag, .spec-count {
    display: inline-block;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 6px 16px;
    border-radius: 6px; /* Consistent block-like structure */
    font-weight: 950;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-bottom: 15px;
}

/* --- BUTTON SYSTEM (NEUMORPHIC / PLASTIC UI 2026) --- */
.btn-premium, .btn-plastic {
    padding: 1.1em 2.5em;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--btn-text);
    background-color: var(--btn-bg);
    border: none;
    border-radius: 50px;
    box-shadow: 0px 8px 15px var(--btn-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.btn-premium:hover, .btn-plastic:hover {
    background-color: var(--btn-hover-bg);
    box-shadow: 0px 15px 20px var(--btn-hover-shadow);
    color: #fff;
    transform: translateY(-5px);
}

.btn-premium:active, .btn-plastic:active {
    transform: translateY(-1px);
    box-shadow: 0px 5px 10px var(--btn-shadow);
}

/* Secondary Hierarchy (Reduced Depth) */
.btn-secondary {
    padding: 1.1em 2.5em;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    box-shadow: 0px 4px 10px var(--btn-shadow);
    transition: all 0.3s var(--easing-standard);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-3px);
    box-shadow: 0px 8px 15px var(--btn-shadow);
}

/* Primary Brand Variation */
.btn-primary, .btn-royal-primary {
    background-color: var(--btn-primary-bg);
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.btn-primary:hover, .btn-royal-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 20px var(--btn-primary-hover);
}

.btn-primary:hover {
    background-color: var(--btn-primary-bg);
    box-shadow: 0px 15px 20px var(--btn-primary-hover);
}


/* --- REVEAL EFFECTS --- */
.reveal-up { opacity: 0; transform: translateY(60px); }
.reveal-blur { opacity: 0; filter: blur(20px); transform: scale(0.98); }

@media (max-width: 768px) {
    .main-header { width: 96%; top: 16px; }
    .title-premium { font-size: 3.2rem; }
    .section-v-padding { padding: 80px 0; }
}


#premium-cursor {
    display: none !important; /* Disabled: Reverted to natural system cursor */
}

#premium-cursor.active {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.2);
    mix-blend-mode: normal;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 60px rgba(37, 99, 235, 0.4);
}

@media (max-width: 1024px) {
    #premium-cursor { display: none; }
}

/* ============================================
   HERO MONOLITH V22.0 ARCHITECTURE
============================================ */
.hero-monolith {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 60px) 0 100px;
    background: var(--bg-primary) !important;
    overflow: hidden;
}

.m-visual-layers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.m-glow {
    display: none !important; /* Neutralized for total purity */
}
.m-glow-1 { width: 800px; height: 800px; background: var(--accent-primary); top: -20%; inset-inline-end: -10%; }
.m-glow-2 { width: 600px; height: 600px; background: var(--accent-secondary); bottom: -10%; inset-inline-start: -5%; }

.m-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#E2E8F0 1px, transparent 1px);
    background-size: 60px 60px;
}

#liquid-canvas {
    display: none !important; /* Removed per specification */
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Content Column */
.hero-content-col {
    max-width: 800px;
    padding-inline-start: 60px; /* Shifts text away from outer edge towards center */
}

.m-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37,99,235,0.06);
    border: 1px solid rgba(37,99,235,0.18);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 28px;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}
[data-theme="dark"] .m-chip {
    background: rgba(37,99,235,0.12);
    border-color: rgba(37,99,235,0.3);
    color: #60A5FA;
}

.m-chip-dot {
    width: 6px; height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 20px;
}

/* Action Center */
.hero-action-center {
    margin-bottom: 40px;
}

.m-search-pill {
    display: flex;
    align-items: center;
    background: #ffffff !important;
    border: 1px solid #E2E8F0;
    padding: 8px 8px 8px 20px;
    border-radius: 20px;
    max-width: 560px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: 0.4s var(--easing-premium);
}

.m-search-pill:focus-within {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 30px 60px -12px rgba(37,99,235,0.2);
}

.m-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.93rem;
    padding: 0 15px;
    font-weight: 500;
}
.m-search-input::placeholder { color: var(--text-ghost); }

.m-search-btn {
    background: #2563EB !important;
    color: #ffffff !important;
    border: none;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}
.m-search-btn:hover {
    background: #1D4ED8 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}

.m-quick-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 0 4px;
    flex-wrap: wrap;
}
.m-tags-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-ghost);
    white-space: nowrap;
    flex-shrink: 0;
}
.m-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-ghost);
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid var(--border-glass);
    background: transparent;
    transition: 0.25s;
}
.m-tag:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(37,99,235,0.05);
}

/* Hero Benefits Row */
.hero-benefits {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.hero-benefit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.hero-benefit i {
    font-size: 0.75rem;
    color: var(--accent-primary);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.btn-royal {
    padding: 1.2rem 2.8rem;
    border-radius: 100px;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.4s var(--easing-premium);
}

.btn-royal-primary {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 20px 40px -10px rgba(37,99,235,0.4);
}
.btn-royal-primary:hover { transform: translateY(-3px); box-shadow: 0 25px 50px -12px rgba(37,99,235,0.6); }

.btn-royal-ghost {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.btn-royal-ghost:hover { 
    background: #000000 !important; 
    color: #ffffff !important;
    border-color: #000000;
}

/* Trust Avatars */
.hero-trust {
    display: flex;
    align-items: center;
}
.trust-avatars { display: flex; align-items: center; gap: 15px; }

.avatar-stack { display: flex; padding-inline-start: 10px; }
.avatar-item {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    background: var(--bg-secondary);
    margin-inline-start: -10px;
}
.avatar-item-plus {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800;
    margin-inline-start: -10px;
    border: 2px solid var(--bg-primary);
}
.hero-trust p { font-size: 0.85rem; color: var(--text-ghost); font-weight: 600; }

/* Visual Column */
.m-monolith-host {
    position: relative;
    transform: translateX(-60px); /* Default English: Shift Left (towards center) */
}

html[dir="rtl"] .m-monolith-host {
    transform: translateX(60px); /* Arabic: Shift Right (towards center) */
}

.m-monolith-frame {
    position: relative;
    border-radius: 40px;
    background: var(--bg-glass);
    padding: 2px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(30px);
}

.m-monolith-img {
    width: 100%;
    height: auto;
    border-radius: 38px;
    display: block;
}

.m-monolith-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
}

.m-snippet {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-glass);
    padding: 10px 18px;
    border-radius: 12px;
    color: var(--accent-primary);
    font-family: 'Inter', monospace;
    font-size: 0.75rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    pointer-events: none;
    transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

[data-theme="dark"] .m-snippet {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255,255,255,0.1);
    color: #60A5FA;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.m-snippet-1 { top: 15%; inset-inline-end: 10px; }
.m-snippet-2 { bottom: 20%; inset-inline-start: 10px; }
[data-theme="dark"] .m-snippet-2 { color: #10B981; }

/* RTL Adjustments */
html[dir="rtl"] .btn-royal i { transform: scaleX(-1); }

@media (max-width: 1100px) {
    .hero-split-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .hero-content-col { max-width: 100%; }
    .hero-description { margin: 0 auto 20px; max-width: 520px; }
    .m-search-pill { margin: 0 auto; }
    .m-quick-tags { justify-content: center; }
    .hero-benefits { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual-col { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .hero-benefits { gap: 14px; }
    .hero-benefit { font-size: 0.75rem; }
    .m-tag { display: none; }
    .m-tags-label { display: none; }
}
/* ============================================
   SPECIALTY CARDS — Drawing Border Animation
   Direct Implementation from User Specification
============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    justify-items: center;
}

.card {
    width: 320px;
    background: rgba(15, 25, 35, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.draw-border::before,
.draw-border::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 2px solid transparent;
    box-sizing: border-box;
    border-radius: 24px;
}

.draw-border::before {
    top: 0;
    left: 0;
}

.draw-border::after {
    bottom: 0;
    right: 0;
}

.draw-border:hover::before {
    width: 100%;
    height: 100%;
    border-top-color: #ffcc00;
    border-right-color: #ffcc00;
    transition: width 0.25s ease-out, height 0.25s ease-out 0.25s;
}

.draw-border:hover::after {
    width: 100%;
    height: 100%;
    border-bottom-color: #ffcc00;
    border-left-color: #ffcc00;
    transition: width 0.25s ease-out 0.5s, height 0.25s ease-out 0.75s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 50px rgba(0, 0, 0, 0.4);
}

/* --- CARD CONTENT --- */
.spec-body {
    position: relative;
    z-index: 3;
}

.spec-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 204, 0, 0.1);
    color: #ffcc00;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: transform 0.4s var(--easing-premium);
}

.card:hover .spec-icon {
    transform: scale(1.1) rotate(5deg);
    background: #ffcc00;
    color: #0f1923;
}

.spec-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Outfit', 'Cairo', sans-serif;
}

.spec-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- RESPONSIVE GRID --- */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .categories-grid { grid-template-columns: 1fr; }
}

/* ============================================
   BENTO & GLASS DESIGN SYSTEM (v2026)
   Unified Design Tokens for Royal CMS
============================================ */
:root {
    --bg-glass: rgba(15, 25, 35, 0.65);
    --accent-glow: hsla(217, 91%, 60%, 0.15);
    --border-glass: rgba(255, 255, 255, 0.1);
    --radius-bento: 24px;
}

.glass-morphism {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-bento);
}

.bento-grid {
    display: grid;
    gap: 24px;
}

/* Drawing Border Standardized */
.draw-border {
    position: relative;
    overflow: hidden;
}

.draw-border::before,
.draw-border::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 2px solid transparent;
    box-sizing: border-box;
    border-radius: var(--radius-bento);
    z-index: 2;
    pointer-events: none;
}

.draw-border::before {
    top: 0;
    left: 0;
}

.draw-border::after {
    bottom: 0;
    right: 0;
}

.draw-border:hover::before {
    width: 100%;
    height: 100%;
    border-top-color: #ffcc00;
    border-right-color: #ffcc00;
    transition: width 0.25s ease-out, height 0.25s ease-out 0.25s;
}

.draw-border:hover::after {
    width: 100%;
    height: 100%;
    border-bottom-color: #ffcc00;
    border-left-color: #ffcc00;
    transition: border-bottom-color 0s ease-out 0.5s, width 0.25s ease-out 0.5s, height 0.25s ease-out 0.75s;
}

/* Slider UI Premium */
.p-nav-btn-premium {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: 0.3s var(--easing-standard);
    z-index: 10;
}
.p-nav-btn-premium:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.swiper-controls-premium {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
}

/* ============================================
   VBULLETIN LEGACY - TRUST MONOLITH V1.0
============================================ */
.vb-section {
    position: relative;
    padding: 100px 0;
    background: var(--bg-primary);
}

.vb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.vb-block {
    background: var(--vb-body-bg);
    border: 1px solid var(--vb-border);
    border-radius: 8px; /* Sharper classic look */
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    min-width: 0; /* Crucial for grid item overflow handling */
    width: 100%;
}

[data-theme="dark"] .vb-block {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: 0.4s var(--easing-premium);
}

.vb-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    border-color: var(--accent-primary);
}

.vb-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-glass);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    color: var(--text-primary);
}

.vb-content {
    padding: 24px;
    color: var(--text-secondary);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vb-icon-badge {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 1px solid var(--vb-border);
    border-radius: 4px; /* Square with slight roundness */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-primary);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden; /* For images */
    flex-shrink: 0;
}

.vb-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

[data-theme="dark"] .vb-icon-badge {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.vb-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

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

/* vBulletin CTA Specifics */
.vb-cta-block {
    background: var(--bg-glass);
    border: 1px solid var(--vb-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-top: 40px;
}

.vb-cta-header {
    background: var(--brand-gradient);
    padding: 30px;
    text-align: center;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.vb-cta-header .section-label {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.vb-cta-title {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 950;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    letter-spacing: -1px;
}

.vb-cta-body {
    padding: 40px;
    background: var(--vb-body-bg);
    text-align: center;
}

[data-theme="dark"] .vb-cta-body {
    background: var(--vb-body-dark);
}

.vb-cta-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.vb-btn-glossy {
    background: var(--vb-btn-gloss);
    border: 1px solid var(--vb-border);
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #334155;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vb-btn-glossy:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.vb-btn-glossy-primary {
    background: var(--brand-gradient);
    color: #fff;
    border-color: var(--brand-dark);
}

.vb-cta-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.vb-feature-tag {
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--vb-border);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .vb-feature-tag {
    background: rgba(255,255,255,0.05);
}
