/**
 * Titan AI Engine - Royal Sovereign Edition 👑
 * Version: 2.0 (Dynamic Theme Sync, Inline SVG Masks, Glassmorphism UX)
 * --------------------------------------------------------------------------
 * Note: Zero hardcoded hex colors for primary/accent elements. Everything
 * inherits from the host theme using modern CSS variables and color-mix().
 */

/* ==========================================================================
   1. ROYAL DESIGN TOKENS (Dynamic Color Mapping)
   ========================================================================== */
:root {
    /* 🟢 THEME INHERITANCE ENGINE 
       ابتدا رنگ‌های قالب شما را می‌خواند، در صورت نبود، به سرمه‌ای و طلایی فال‌بک می‌کند */
    --titan-primary: var(--color-primary, var(--wp--preset--color--primary, #1e293b));
    --titan-accent:  var(--color-accent, var(--wp--preset--color--secondary, #d4af37));
    
    /* 💎 DYNAMIC SURFACES & BORDERS (Using CSS color-mix for premium tints) */
    --titan-surface: #ffffff;
    --titan-surface-alt:  color-mix(in srgb, var(--titan-primary) 3%, #ffffff);
    --titan-surface-gold: color-mix(in srgb, var(--titan-accent) 6%, #ffffff);
    --titan-border:       color-mix(in srgb, var(--titan-primary) 12%, transparent);
    --titan-border-light: color-mix(in srgb, var(--titan-primary) 6%, transparent);

    /* 📊 SEMANTIC COLORS (Muted & Elegant) */
    --titan-success: #10b981;
    --titan-success-bg: rgba(16, 185, 129, 0.05);
    --titan-danger: #ef4444;
    --titan-danger-bg: rgba(239, 68, 68, 0.05);
    --titan-info: #0ea5e9;
    --titan-info-bg: rgba(14, 165, 233, 0.05);
    --titan-warning: #f59e0b;

    /* ✍️ TEXT & TYPOGRAPHY */
    --titan-text-main: color-mix(in srgb, var(--titan-primary) 85%, #000);
    --titan-text-muted: color-mix(in srgb, var(--titan-primary) 60%, transparent);

    /* ☁️ PREMIUM SHADOWS & RADIUS */
    --titan-radius-sm: 8px;
    --titan-radius-md: 14px;
    --titan-radius-lg: 20px;
    --titan-shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
    --titan-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --titan-glow:      0 8px 25px color-mix(in srgb, var(--titan-accent) 25%, transparent);
    --titan-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. THE SVG MASK HIJACK (Replacing Dashicons with Luxury SVG)
   ========================================================================== */
/* مخفی کردن فونت آیکون پیش‌فرض وردپرس در محدوده تایتان */
[class*="titan-"] .dashicons::before { display: none !important; content: "" !important; }

/* تبدیل کلاس‌های Dashicons به کانتینرهای Mask برای SVG توکار */
[class*="titan-"] .dashicons {
    display: inline-block !important;
    width: 1.3em !important;
    height: 1.3em !important;
    background-color: currentColor !important;
    mask-size: contain !important;
    mask-repeat: no-repeat !important;
    mask-position: center !important;
    -webkit-mask-size: contain !important;
    -webkit-mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    font-family: inherit !important;
    vertical-align: middle;
}

/* The SVG Library (Lucide Icons Base64 Encoded - Ultra Crisp 1.5px Stroke) */
.dashicons-rocket { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z'/%3E%3Cpath d='m12 15-3-3a22 22 0 0 1 3.82-13 1.5 1.5 0 0 0-2.18 2.18 22 22 0 0 1 13 3.82l-3 3'/%3E%3Cpath d='m9 11 4 4'/%3E%3Cpath d='m13 15 4 4'/%3E%3C/svg%3E"); }
.dashicons-lightbulb { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.9 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E"); }
.dashicons-yes-alt { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.dashicons-dismiss, .dashicons-no { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E"); }
.dashicons-warning { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
.dashicons-book, .dashicons-info { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20'/%3E%3C/svg%3E"); }
.dashicons-edit { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E"); }
.dashicons-star-filled { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor' stroke='none'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E"); }
.dashicons-shield { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.dashicons-target { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E"); }
.dashicons-category { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5z'/%3E%3Cpath d='M2 17l10 5 10-5'/%3E%3Cpath d='M2 12l10 5 10-5'/%3E%3C/svg%3E"); }
.dashicons-admin-links { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E"); }
.dashicons-superhero { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z'/%3E%3Cpath d='M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z'/%3E%3Cpath d='M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4'/%3E%3Cpath d='M17.599 6.5a3 3 0 0 0 .399-1.375'/%3E%3C/svg%3E"); }
.dashicons-arrow-left-alt { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E"); }
.dashicons-admin-site-alt3 { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); }
.dashicons-welcome-learn-more { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10v6M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E"); }
.dashicons-media-text, .dashicons-text-page { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3Cpath d='M10 9H8'/%3E%3C/svg%3E"); }
.dashicons-image-filter { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7'/%3E%3Cpath d='M4 10V3'/%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 8V3'/%3E%3Cpath d='M20 21v-5'/%3E%3Cpath d='M20 12V3'/%3E%3Cpath d='M1 14h6'/%3E%3Cpath d='M9 8h6'/%3E%3Cpath d='M17 16h6'/%3E%3C/svg%3E"); }
.dashicons-chart-pie { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.21 15.89A10 10 0 1 1 8 2.83'/%3E%3Cpath d='M22 12A10 10 0 0 0 12 2v10z'/%3E%3C/svg%3E"); }
.dashicons-leftright { mask-image: url("data:image/svg+xml,..."); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3 4 7l4 4'/%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='m16 21 4-4-4-4'/%3E%3Cpath d='M20 17H4'/%3E%3C/svg%3E"); }
/* Basic Flex Alignments for Icons */
.titan-box-icon, .pc-icon, .titan-info-icon, .titan-res-bullet, .titan-res-icon, .titan-vp-icon {
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}

/* ==========================================================================
   3. KEY TAKEAWAYS & LINKS (WRITER & LINKER)
   ========================================================================== */
.key-takeaways-box {
    background: var(--titan-surface-alt);
    border: 1px solid var(--titan-border);
    border-right: 4px solid var(--titan-accent);
    border-radius: var(--titan-radius-md);
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--titan-shadow-sm);
    transition: var(--titan-transition);
}
.key-takeaways-box:hover { box-shadow: var(--titan-shadow-md); }

.key-takeaways-box .kt-title {
    font-size: 1.3rem; font-weight: 800; color: var(--titan-primary);
    margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
/* --- اصلاح آیکون لامپ در عنوان نکات کلیدی --- */
.key-takeaways-box .kt-title::before {
    content: ""; display: inline-block; width: 1.2em; height: 1.2em;
    background-color: var(--titan-accent);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.9 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.9 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
    mask-size: contain; mask-repeat: no-repeat;
    -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
}

.key-takeaways-box .kt-content ul { margin: 0; padding-right: 20px; list-style-type: none; }
.key-takeaways-box .kt-content li {
    position: relative; color: var(--titan-text-main); margin-bottom: 15px; line-height: 1.8;
}
/* --- اصلاح آیکون تیک در لیست نکات کلیدی --- */
.key-takeaways-box .kt-content li::before {
    content: ""; position: absolute; right: -25px; top: 8px; width: 15px; height: 15px;
    background-color: var(--titan-accent);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    mask-size: contain; mask-repeat: no-repeat;
    -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
}

.titan-internal-link {
    color: var(--titan-primary) !important;
    text-decoration: none !important;
    font-weight: 700;
    border-bottom: 2px solid color-mix(in srgb, var(--titan-accent) 30%, transparent);
    transition: var(--titan-transition);
    padding-bottom: 2px;
}
.titan-internal-link:hover {
    color: var(--titan-accent) !important;
    border-bottom-color: var(--titan-accent) !important;
    background: var(--titan-surface-gold);
}

/* ==========================================================================
   4. SMART UI BOXES & CTAS (UI DESIGNER)
   ========================================================================== */
.titan-ui-box {
    border-radius: var(--titan-radius-md); padding: 25px; margin: 40px 0;
    display: flex; flex-direction: column; gap: 15px;
    border: 1px solid var(--titan-border); transition: var(--titan-transition);
}
.titan-ui-box:hover { box-shadow: var(--titan-shadow-sm); transform: translateY(-2px); }

.titan-ui-box.green { background: var(--titan-success-bg); border-right: 4px solid var(--titan-success); }
.titan-ui-box.blue { background: var(--titan-info-bg); border-right: 4px solid var(--titan-info); }
.titan-ui-box.red { background: var(--titan-danger-bg); border-right: 4px solid var(--titan-danger); }

.titan-box-header { display: flex; align-items: center; gap: 10px; }
.titan-box-icon { font-size: 1.8rem !important; }
.titan-ui-box.green .titan-box-icon { color: var(--titan-success); }
.titan-ui-box.blue .titan-box-icon { color: var(--titan-info); }
.titan-ui-box.red .titan-box-icon { color: var(--titan-danger); }

.titan-box-title { font-size: 1.15rem; color: var(--titan-primary); font-weight: 800; }
.titan-box-content { color: var(--titan-text-main); line-height: 1.8; font-size: 1rem; }

/* CTA Boxes */
.titan-cta-box {
    background: var(--titan-surface-alt); border: 1px solid var(--titan-border);
    border-radius: var(--titan-radius-lg); padding: 30px; margin: 50px 0;
    box-shadow: var(--titan-shadow-md); display: flex; flex-direction: column;
    gap: 20px; align-items: flex-start; transition: var(--titan-transition);
}
.titan-cta-box:hover { box-shadow: var(--titan-glow); border-color: var(--titan-accent); }

.titan-cta-box.green { border-top: 4px solid var(--titan-success); }
.titan-cta-box.blue { border-top: 4px solid var(--titan-accent); }

.titan-cta-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--titan-text-muted); text-transform: uppercase; margin-bottom: 8px; }
.titan-cta-label .dashicons { font-size: 16px !important; width: 16px !important; height: 16px !important; }
.titan-cta-text { font-size: 1.25rem; font-weight: 800; color: var(--titan-primary); margin: 0; line-height: 1.6; }

.titan-cta-btn-wrap .button, .titan-cta-final .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; background: var(--titan-primary) !important;
    color: #fff !important; text-decoration: none !important;
    border-radius: 50px; font-weight: 700; transition: var(--titan-transition);
    border: none; cursor: pointer; font-size: 1rem;
}
.titan-cta-box.blue .button, .titan-cta-final .button { background: var(--titan-accent) !important; color: #fff !important; }
.titan-cta-box.green .button { background: var(--titan-success) !important; }
.titan-cta-box .button:hover, .titan-cta-final .button:hover { transform: translateY(-3px); box-shadow: var(--titan-glow); }

/* Final Footer CTA (Ultimate Contrast) */
.titan-cta-final {
    background: var(--titan-primary) !important; color: #ffffff !important;
    border-radius: var(--titan-radius-lg); padding: 50px 30px;
    text-align: center; margin-top: 60px; position: relative; overflow: hidden;
    box-shadow: var(--titan-shadow-md); border: 1px solid var(--titan-border);
}
.titan-cta-final::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, color-mix(in srgb, var(--titan-accent) 30%, transparent), transparent 70%);
    pointer-events: none;
}

.titan-cta-final h3 {
    color: #ffffff !important; font-size: 1.8rem; margin-bottom: 20px; margin-top: 0;
    display: flex; align-items: center; justify-content: center; gap: 15px; position: relative; z-index: 2;
}
.titan-cta-final h3 .dashicons { color: var(--titan-accent); font-size: 2rem !important; width: 2rem !important; height: 2rem !important; }

.titan-cta-final p {
    font-size: 1.15rem; color: rgba(255,255,255,0.85) !important;
    margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto;
    line-height: 1.8; position: relative; z-index: 2;
}
.titan-cta-final .button { position: relative; z-index: 2; font-size: 1.1rem; padding: 16px 36px; }

@media (min-width: 768px) {
    .titan-cta-box { flex-direction: row; align-items: center; justify-content: space-between; }
    .titan-cta-inner { flex: 1; padding-left: 30px; }
}

/* ==========================================================================
   5. VISUALIZATIONS & CHARTS (ILLUSTRATOR)
   ========================================================================== */
.titan-ai-figure { margin: 50px 0; text-align: center; }
.titan-ai-img { max-width: 100%; height: auto; border-radius: var(--titan-radius-lg); box-shadow: var(--titan-shadow-md); border: 1px solid var(--titan-border-light); }
.titan-ai-caption { font-size: 0.9rem; color: var(--titan-text-muted); margin-top: 15px; font-style: italic; }

.titan-viz-container {
    background: var(--titan-surface); border: 1px solid var(--titan-border);
    border-radius: var(--titan-radius-lg); padding: 30px; margin: 50px 0;
    box-shadow: var(--titan-shadow-sm);
}

.titan-viz-title {
    font-size: 1.3rem; color: var(--titan-primary); margin-bottom: 30px; margin-top: 0;
    text-align: center; padding-bottom: 20px;
    border-bottom: 1px dashed var(--titan-border);
}

/* Comparison Table */
.titan-table-responsive { overflow-x: auto; border-radius: var(--titan-radius-md); border: 1px solid var(--titan-border); background: var(--titan-surface); }
.titan-comparison-table { width: 100%; border-collapse: collapse; text-align: right; }
.titan-comparison-table th, .titan-comparison-table td { padding: 18px; border-bottom: 1px solid var(--titan-border-light); line-height: 1.6; }
.titan-comparison-table th { background: var(--titan-surface-alt); color: var(--titan-primary); font-weight: 800; font-size: 0.95rem; }
.titan-comparison-table tr:last-child td { border-bottom: none; }
.titan-comparison-table td strong { color: var(--titan-primary); }

/* Pros & Cons */
.titan-pros-cons-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.titan-pro-item, .titan-con-item { display: flex; align-items: flex-start; gap: 15px; padding: 20px; border-radius: var(--titan-radius-md); border: 1px solid transparent; }
.titan-pro-item { background: var(--titan-success-bg); border-color: rgba(16, 185, 129, 0.1); }
.titan-con-item { background: var(--titan-danger-bg); border-color: rgba(239, 68, 68, 0.1); }
.pc-icon { font-size: 1.6rem !important; width: 1.6rem !important; height: 1.6rem !important; margin-top: 2px; }
.titan-pro-item .pc-icon { color: var(--titan-success); }
.titan-con-item .pc-icon { color: var(--titan-danger); }
.pc-text { color: var(--titan-text-main); font-size: 1rem; line-height: 1.7; }
.pc-text strong { color: var(--titan-primary); display: block; margin-bottom: 4px; }

/* Infographic Cards */
.titan-infographic-container, .titan-stats-grid, .titan-step-cards-container, .titan-pricing-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.titan-info-card, .titan-stat-card, .titan-step-card, .titan-pricing-card { 
    background: var(--titan-surface-alt); padding: 25px; border-radius: var(--titan-radius-md); 
    border: 1px solid var(--titan-border-light); transition: var(--titan-transition); 
}
.titan-info-card:hover, .titan-stat-card:hover { transform: translateY(-5px); box-shadow: var(--titan-glow); border-color: var(--titan-accent); background: var(--titan-surface); }
.titan-info-icon { font-size: 2.5rem !important; width: 2.5rem !important; height: 2.5rem !important; display: block; margin-bottom: 20px; color: var(--titan-accent); }
.titan-info-title { display: block; font-weight: 800; color: var(--titan-primary); margin-bottom: 10px; font-size: 1.1rem; }
.titan-info-value { color: var(--titan-text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Stats Grid */
.titan-stat-value { font-size: 2.5rem; font-weight: 900; color: var(--titan-primary); margin-bottom: 5px; direction: ltr; text-align: right;}
.titan-stat-label { font-size: 1rem; color: var(--titan-text-muted); font-weight: 600;}
.titan-stat-card { text-align: center; border-bottom: 4px solid var(--titan-accent); }

/* Step Cards */
.titan-sc-number { width: 40px; height: 40px; background: var(--titan-accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; margin-bottom: 20px; }
.titan-sc-title { font-size: 1.15rem; font-weight: 800; color: var(--titan-primary); margin-bottom: 10px; }
.titan-sc-desc { color: var(--titan-text-main); font-size: 0.95rem; line-height: 1.7; }

/* Pie & Donut Charts */
.titan-pie-container, .titan-donut-container { display: grid; grid-template-columns: 1fr; gap: 40px; justify-items: center; }
.titan-pie-wrapper, .titan-donut-wrapper { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.titan-pie-chart { width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(var(--titan-accent) calc(var(--p) * 1%), var(--titan-border) 0); box-shadow: inset 0 0 20px rgba(0,0,0,0.05); }
.titan-donut-chart { width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(var(--titan-success) calc(var(--p) * 1%), var(--titan-border) 0); display: flex; align-items: center; justify-content: center; }
.titan-donut-chart::before { content: ''; width: 90px; height: 90px; background: var(--titan-surface); border-radius: 50%; position: absolute; }
.titan-donut-chart span { position: relative; z-index: 2; font-weight: 800; font-size: 1.4rem; color: var(--titan-primary); }
.titan-pie-label strong, .titan-donut-label strong { font-size: 1.15rem; color: var(--titan-primary); }
.titan-pie-label, .titan-donut-label { font-size: 0.95rem; color: var(--titan-text-muted); }

/* Progress Bars */
.titan-bar-container { display: flex; flex-direction: column; gap: 25px; }
.titan-bar-row { display: flex; flex-direction: column; gap: 10px; }
.titan-bar-info { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; color: var(--titan-primary); }
.titan-bar-track { width: 100%; height: 14px; background: var(--titan-surface-alt); border-radius: 20px; overflow: hidden; }
.titan-bar-fill { height: 100%; background: var(--titan-accent); border-radius: 20px; transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1); }

@media (min-width: 768px) {
    .titan-pros-cons-grid { grid-template-columns: 1fr 1fr; }
    .titan-infographic-container, .titan-step-cards-container, .titan-pricing-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .titan-stats-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .titan-pie-container, .titan-donut-container { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

/* ==========================================================================
   6. CREDIBILITY & MEDICAL BOARD (E-E-A-T)
   ========================================================================== */
#titan-credibility-box { margin: 60px 0; }

.titan-reviewer-box.single {
    display: flex; flex-direction: column; gap: 25px; align-items: center; text-align: center;
    background: var(--titan-surface-alt); border: 1px solid var(--titan-border);
    border-right: 4px solid var(--titan-accent); padding: 25px; border-radius: var(--titan-radius-lg);
    box-shadow: var(--titan-shadow-sm); transition: var(--titan-transition);
}
.titan-reviewer-box.single:hover { box-shadow: var(--titan-glow); }

.titan-rev-avatar img {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid #fff; box-shadow: var(--titan-shadow-md);
}

.titan-rev-info { display: flex; flex-direction: column; gap: 6px; }
.titan-rev-label { font-size: 0.85rem; color: var(--titan-text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.titan-rev-name a { font-size: 1.4rem; font-weight: 800; color: var(--titan-primary); text-decoration: none; transition: var(--titan-transition); }
.titan-rev-name a:hover { color: var(--titan-accent); }
.titan-rev-spec { font-size: 1rem; color: var(--titan-accent); font-weight: 700; }
.titan-rev-meta { font-size: 0.85rem; color: var(--titan-text-muted); margin-top: 10px; display: inline-flex; justify-content: center; gap: 15px; flex-wrap: wrap; border-top: 1px dashed var(--titan-border); padding-top: 10px; }
.titan-rev-reg { color: var(--titan-text-main); }

/* Board Setup */
.titan-reviewer-box.board {
    background: var(--titan-surface); border: 1px solid var(--titan-border);
    border-top: 4px solid var(--titan-primary); border-radius: var(--titan-radius-lg);
    padding: 30px; margin: 40px 0; box-shadow: var(--titan-shadow-md);
}

.titan-board-header {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    color: var(--titan-primary); font-size: 1.3rem; font-weight: 800; margin-bottom: 30px;
    padding-bottom: 15px; border-bottom: 1px solid var(--titan-border-light);
}

.titan-board-grid { display: flex; flex-wrap: wrap; gap: 20px; }

.titan-board-member {
    display: flex; align-items: center; gap: 16px; padding: 12px 20px;
    background: var(--titan-surface-alt); border-radius: 50px; border: 1px solid var(--titan-border);
    text-decoration: none; transition: var(--titan-transition); flex: 1 1 250px;
}
.titan-board-member:hover { box-shadow: var(--titan-glow); transform: translateY(-3px); border-color: var(--titan-accent); background: var(--titan-surface); }

.titan-board-member img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; box-shadow: var(--titan-shadow-sm); }
.titan-board-details { display: flex; flex-direction: column; gap: 4px; line-height: 1.3; }
.titan-board-name { font-weight: 800; color: var(--titan-primary); font-size: 1rem; }
.titan-board-role { font-size: 0.85rem; color: var(--titan-text-muted); }

.titan-board-footer { text-align: center; margin-top: 30px; font-size: 0.9rem; color: var(--titan-text-muted); font-style: italic; }

@media (min-width: 768px) {
    .titan-reviewer-box.single { flex-direction: row; text-align: right; justify-content: flex-start;}
    .titan-rev-meta { justify-content: flex-start; }
}

/* ==========================================================================
   7. ACADEMIC RESOURCES (RESOURCES AGENT)
   ========================================================================== */
#titan-resources-box {
    margin-top: 80px; padding: 40px; background: var(--titan-surface-alt);
    border-top: 4px solid var(--titan-primary); border-radius: 0 0 var(--titan-radius-lg) var(--titan-radius-lg);
}

.titan-res-header { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; color: var(--titan-primary) !important; margin-top: 0; margin-bottom: 15px; }
.titan-res-icon { font-size: 1.8rem !important; width: 1.8rem !important; height: 1.8rem !important; color: var(--titan-primary); }
.titan-res-desc { font-size: 1rem; color: var(--titan-text-muted); margin-bottom: 25px; }

.titan-res-list { list-style: none; padding: 0; margin: 0 0 30px 0; display: flex; flex-direction: column; gap: 15px; }
.titan-res-item { background: var(--titan-surface); padding: 16px 20px; border-radius: var(--titan-radius-md); border: 1px solid var(--titan-border-light); transition: var(--titan-transition); }
.titan-res-item:hover { border-color: var(--titan-accent); box-shadow: var(--titan-shadow-sm); transform: translateX(-5px); /* RTL Hover Effect */ }

.titan-trusted-link { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; text-decoration: none !important; color: var(--titan-text-main) !important; line-height: 1.6; }
.titan-trusted-link:hover strong { color: var(--titan-accent) !important; text-decoration: none; }
.titan-res-bullet { font-size: 1.4rem !important; width: 1.4rem !important; height: 1.4rem !important; color: var(--titan-accent); opacity: 0.8; }
.titan-trusted-link strong { font-weight: 700; transition: var(--titan-transition); font-size: 1.05rem; }
.titan-res-domain { font-size: 0.85rem; color: var(--titan-text-muted); background: var(--titan-surface-alt); padding: 4px 10px; border-radius: 6px; border: 1px solid var(--titan-border-light); }

.titan-res-footer { font-size: 0.95rem; color: var(--titan-success); font-weight: 700; display: flex; align-items: center; gap: 8px; padding-top: 20px; border-top: 1px dashed var(--titan-border); }

/* ==========================================================================
   8. INTERACTIVE UX & ANIMATIONS (GOD-TIER DATA VIZ)
   ========================================================================== */

/* A. Staggered Waterfall Reveal */
.titan-reveal-item { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.titan-reveal-visible { opacity: 1; transform: translateY(0); }

/* B. Smart Table Interactions */
.titan-table-responsive { position: relative; }
.titan-table-hint {
    position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 80%);
    display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding-right: 20px;
    color: var(--titan-accent); font-weight: 800; font-size: 1rem; pointer-events: none; z-index: 10;
    transition: opacity 0.4s ease; animation: titan-pulse-hint 2s infinite;
}
@keyframes titan-pulse-hint { 0% { transform: translateX(0); } 50% { transform: translateX(-15px); } 100% { transform: translateX(0); } }

@media (min-width: 992px) {
    .titan-comparison-table tbody:hover tr { opacity: 0.3; filter: grayscale(80%); transition: all 0.3s ease; }
    .titan-comparison-table tbody tr:hover { opacity: 1; filter: grayscale(0%); background-color: var(--titan-surface-gold); transform: scale(1.02); box-shadow: var(--titan-shadow-md); position: relative; z-index: 2; border-radius: var(--titan-radius-sm); }
}

/* C. Glassmorphism Neural Widget */
.titan-neural-sticky {
    position: fixed; bottom: 30px; left: 30px; width: 340px;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--titan-radius-lg);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 999999; transform: translateY(150%) scale(0.9); opacity: 0; visibility: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); display: flex; flex-direction: column; overflow: hidden;
}
.titan-neural-sticky.active { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }

.titan-sticky-content { display: flex; align-items: center; padding: 20px 25px; gap: 15px; }
.titan-sticky-icon-wrap {
    width: 50px; height: 50px; background: linear-gradient(135deg, var(--titan-primary), var(--titan-accent));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; flex-shrink: 0; box-shadow: var(--titan-glow);
}
.titan-sticky-icon-wrap .dashicons { color: #fff !important; }

.titan-sticky-text { flex-grow: 1; display: flex; flex-direction: column; }
#titanTitle { font-size: 0.85rem; color: var(--titan-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; font-weight: 700; }
#titanDesc { font-size: 1.1rem; color: var(--titan-primary); font-weight: 800; line-height: 1.4; }

.titan-sticky-close { background: transparent; border: none; color: var(--titan-text-muted); cursor: pointer; padding: 5px; transition: color 0.2s; display: flex; }
.titan-sticky-close:hover { color: var(--titan-danger); }

.titan-sticky-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--titan-surface-alt); color: var(--titan-primary) !important;
    text-decoration: none !important; padding: 16px; font-weight: 800; font-size: 1.05rem;
    transition: all 0.3s ease; border-top: 1px solid var(--titan-border);
}
.titan-sticky-btn:hover { background: var(--titan-accent); color: #fff !important; }

/* D. FOMO Progress Bar */
.titan-fomo-bar-track { width: 100%; height: 5px; background: rgba(0, 0, 0, 0.05); }
.titan-fomo-bar-fill { height: 100%; background: linear-gradient(90deg, var(--titan-warning), var(--titan-accent)); width: 100%; transition: width 0.1s linear; }

/* E. Pulse Animation */
.titan-pulse-icon { animation: titan-pulse 2s infinite; }
@keyframes titan-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }

@media (max-width: 600px) {
    .titan-neural-sticky { left: 15px; right: 15px; width: auto; bottom: 20px; }
}