/*
Theme Name: SmartFin Theme
Theme URI: https://smartfinreports.com
Author: SmartFinReports
Description: Custom WordPress Theme for Smart Financial Reports
Version: 1.0
Text Domain: my-theme
*/

:root {
            --navy: #1e3a5f; --navy-light: #2c5282; --navy-dark: #0f2744;
            --emerald: #047857; --emerald-light: #059669; --emerald-bg: #ecfdf5;
            --gold: #bfa15f; --gold-light: #d4b97a; --gold-bg: #faf7f0;
            --slate: #1e293b; --slate-light: #475569; --slate-muted: #64748b;
            --border: #e2e8f0; --border-light: #f1f5f9; --surface: #ffffff; --bg: #f8fafc;
            --shadow-sm: 0 1px 3px rgba(30,41,59,0.04); --shadow: 0 4px 16px rgba(30,41,59,0.06);
            --shadow-lg: 0 12px 32px rgba(30,41,59,0.08); --shadow-xl: 0 24px 48px rgba(30,41,59,0.1);
            --radius-sm: 10px; --radius: 16px; --radius-lg: 24px;
            --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        }

        /* إعدادات الوضع الداكن */
        [data-theme="dark"] {
            --bg: #0f172a; 
            --surface: #1e293b;
            --navy-dark: #f8fafc; 
            --navy: #94a3b8;
            --slate: #cbd5e1; 
            --slate-light: #94a3b8;
            --border: #334155; 
            --border-light: #1e293b;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
            --shadow: 0 4px 16px rgba(0,0,0,0.4);
            --shadow-lg: 0 12px 32px rgba(0,0,0,0.45);
            --shadow-xl: 0 24px 48px rgba(0,0,0,0.5);
            --emerald-bg: rgba(4, 120, 87, 0.2);
            --gold-bg: rgba(191, 161, 95, 0.15);
        }

        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; scroll-padding-top: 100px; }
        body { 
            font-family: 'Tajawal', sans-serif; 
            background: var(--bg); 
            color: var(--slate); 
            line-height: 1.8; 
            overflow-x: hidden; 
            direction: rtl; 
            text-align: right; 
            -webkit-font-smoothing: antialiased; 
            transition: background-color 0.4s ease, color 0.4s ease; /* انتقال سلس للوضع الداكن */
        }
        [dir="ltr"] body { direction: ltr; text-align: left; }
        ::selection { background: rgba(4,120,87,0.12); color: var(--navy-dark); }
        .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

        .icon-svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; flex-shrink: 0; transition: var(--transition); }
        .icon-sm { width: 16px; height: 16px; } .icon-md { width: 24px; height: 24px; } .icon-lg { width: 32px; height: 32px; } .icon-xl { width: 48px; height: 48px; stroke-width: 1.5; }

        /* Progress Scroll Indicator */
        .scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--emerald), var(--gold)); z-index: 9999; width: 0%; transition: width 0.1s linear; }

        /* Back to Top */
        .back-to-top { position: fixed; bottom: 32px; left: 32px; width: 48px; height: 48px; background: var(--navy); color: white; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(20px); transition: var(--transition); box-shadow: var(--shadow-lg); z-index: 999; }
        .back-to-top.visible { opacity: 1; transform: translateY(0); }
        .back-to-top:hover { background: var(--navy-dark); transform: translateY(-4px); }

        /* Header */
        .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--surface); opacity: 0.96; backdrop-filter: blur(20px) saturate(150%); border-bottom: 1px solid var(--border-light); transition: var(--transition); }
        .site-header.scrolled { box-shadow: var(--shadow-sm); opacity: 0.98; }
        .site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
        .brand { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; font-weight: 900; color: var(--navy); text-decoration: none; }
        .brand-icon { width: 40px; height: 40px; background: var(--navy); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 900; font-size: 1.2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
        .main-nav { display: flex; align-items: center; gap: 32px; list-style: none; }
        .main-nav a, .main-nav button { color: var(--slate-light); text-decoration: none; font-weight: 600; font-size: 0.9rem; position: relative; padding: 6px 0; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
        .main-nav a:hover { color: var(--navy); }
        .main-nav a:not(.nav-cta):not(.lang-switch):not(.theme-toggle)::after { content: ''; position: absolute; bottom: -2px; right: 0; width: 0; height: 2px; background: var(--emerald); border-radius: 2px; transition: var(--transition); }
        .main-nav a:not(.nav-cta):not(.lang-switch):not(.theme-toggle):hover::after { width: 100%; }
        
        .nav-cta { background: var(--navy); color: white !important; padding: 10px 24px; border-radius: 8px; font-weight: 700 !important; font-size: 0.85rem !important; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
        .nav-cta:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
        
        .lang-switch { background: var(--border-light); padding: 6px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; color: var(--navy) !important; border: 1px solid var(--border); transition: var(--transition); }
        .lang-switch:hover { background: var(--navy); color: white !important; border-color: var(--navy); }

        .theme-toggle { background: none; border: none; color: var(--navy) !important; cursor: pointer; display: flex; align-items: center; padding: 6px; border-radius: 6px; transition: var(--transition); }
        .theme-toggle:hover { background: var(--border-light); }
        
        .mobile-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--navy); padding: 8px; }

        /* Hero with Animated Blobs */
        .hero { padding: 150px 0 80px; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
        .hero::before, .hero::after {
            content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
            z-index: 0; animation: float-blob 10s infinite alternate ease-in-out;
        }
        .hero::before {
            top: -10%; left: -10%; width: 500px; height: 500px;
            background: radial-gradient(circle, rgba(4,120,87,0.08) 0%, transparent 70%);
        }
        .hero::after {
            bottom: -10%; right: -5%; width: 600px; height: 600px;
            background: radial-gradient(circle, rgba(30,58,95,0.06) 0%, transparent 70%);
            animation-delay: -5s;
        }
        @keyframes float-blob {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(30px, 50px) scale(1.1); }
        }
        
        .hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
        .hero-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--emerald-bg); border: 1px solid rgba(5, 150, 105, 0.2); padding: 10px 20px; border-radius: 8px; font-size: 0.85rem; font-weight: 800; color: var(--emerald); margin-bottom: 28px; letter-spacing: 0.3px; }
        .hero-badge .dot { width: 8px; height: 8px; background: var(--emerald); border-radius: 50%; animation: pulse-soft 2.5s infinite; }
        @keyframes pulse-soft { 0%,100%{opacity:1} 50%{opacity:0.6} }
        .hero-title { font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 900; line-height: 1.25; margin-bottom: 24px; color: var(--navy-dark); letter-spacing: -0.5px; }
        .hero-title em { font-style: normal; color: var(--emerald); display: block; margin-top: 4px; }
        .hero-subtitle { font-size: 1.25rem; color: var(--slate-light); margin-bottom: 32px; max-width: 520px; line-height: 1.9; font-weight: 600; }
        .hero-value-list { list-style: none; margin-bottom: 36px; }
        .hero-value-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--slate-light); font-weight: 600; font-size: 0.95rem; }
        .hero-value-list li svg { color: var(--emerald); flex-shrink: 0; }
        .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
        .btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border-radius: 10px; font-weight: 800; font-size: 0.95rem; cursor: pointer; border: none; text-decoration: none; transition: var(--transition); position: relative; overflow: hidden; }
        .btn-main { background: var(--navy); color: white; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
        .btn-main:hover { background: var(--navy-dark); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
        .btn-sec { background: var(--surface); color: var(--navy); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
        .btn-sec:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow); }
        .hero-trust { display: flex; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid var(--border-light); }
        .trust-avatars { display: flex; }
        .trust-avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--surface); background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 700; font-size: 0.75rem; margin-left: -10px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
        .trust-avatar:first-child { margin-left: 0; background: var(--emerald); color: white; }
        .trust-avatar:nth-child(2) { background: var(--navy-light); color: white; }
        .trust-avatar:nth-child(3) { background: var(--gold); color: white; }
        .trust-text { font-size: 0.85rem; color: var(--slate-muted); font-weight: 600; }
        .trust-text strong { color: var(--navy); font-weight: 800; }

        .hero-visual { position: relative; height: 480px; display: flex; align-items: center; justify-content: center; }
        .hero-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-xl); transition: transform 0.1s ease; }
        .hero-card.main { position: relative; z-index: 10; width: 340px; }
        .hero-card.float-1 { top: 0; left: -20px; width: 220px; z-index: 5; animation: float-card 6s ease-in-out infinite; }
        .hero-card.float-2 { bottom: 20px; right: -20px; width: 240px; z-index: 5; animation: float-card 6s ease-in-out infinite reverse; }
        @keyframes float-card { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
        .card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
        .card-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 800; font-size: 1rem; }
        .card-title { font-weight: 800; font-size: 1rem; color: var(--navy-dark); }
        .card-sub { font-size: 0.8rem; color: var(--slate-muted); font-weight: 500; margin-top: 2px; }
        .chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 100px; margin-bottom: 16px; }
        .cbar { flex: 1; border-radius: 4px 4px 0 0; transition: var(--transition); opacity: 0.9; }
        .cbar:hover { opacity: 1; }
        .cbar:nth-child(1){height:45%;background:var(--navy)} .cbar:nth-child(2){height:70%;background:var(--navy-light)} .cbar:nth-child(3){height:35%;background:var(--emerald)} .cbar:nth-child(4){height:85%;background:var(--gold)} .cbar:nth-child(5){height:55%;background:var(--navy)}
        .card-footer { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; }
        .sparkline { display: flex; align-items: flex-end; gap: 3px; height: 44px; margin: 14px 0; }
        .spark { flex: 1; border-radius: 3px; background: var(--emerald-light); opacity: 0.5; }
        .spark:nth-child(1){height:35%} .spark:nth-child(2){height:65%} .spark:nth-child(3){height:50%} .spark:nth-child(4){height:80%} .spark:nth-child(5){height:55%} .spark:nth-child(6){height:70%}
        .big-num { font-size: 1.5rem; font-weight: 900; margin-top: 8px; letter-spacing: -0.5px; }
        .num-navy { color: var(--navy); } .num-gold { color: var(--gold); } .num-emerald { color: var(--emerald); }

        /* Stats Bar */
        .stats-bar { background: var(--navy); padding: 40px 0; position: relative; overflow: hidden; }
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; z-index: 1; }
        .stat-item { text-align: center; color: white; }
        .stat-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--gold); }
        .stat-number { font-size: 2.2rem; font-weight: 900; margin-bottom: 4px; color: white; }
        .stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 600; }

        /* Social Proof */
        .social-proof { padding: 60px 0; background: var(--surface); border-bottom: 1px solid var(--border-light); }
        .proof-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
        .proof-item { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border-light); transition: var(--transition); }
        .proof-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border); }
        .proof-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--emerald-bg); display: flex; align-items: center; justify-content: center; color: var(--emerald); flex-shrink: 0; }
        .proof-text { font-size: 0.85rem; font-weight: 700; color: var(--navy-dark); line-height: 1.5; }
        .proof-text span { display: block; font-size: 0.75rem; color: var(--slate-muted); font-weight: 500; }

        /* Sections Common */
        .section { padding: 90px 0; }
        .section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
        .section-label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; background: var(--emerald-bg); color: var(--emerald); border-radius: 8px; font-size: 0.8rem; font-weight: 800; margin-bottom: 20px; letter-spacing: 0.5px; text-transform: uppercase; }
        .section-title { font-size: clamp(1.8rem, 2.5vw, 2.4rem); font-weight: 900; margin-bottom: 16px; color: var(--navy-dark); line-height: 1.3; }
        .section-desc { font-size: 1.05rem; color: var(--slate-light); line-height: 1.8; }

        /* Search Bar */
        .search-bar { max-width: 600px; margin: 0 auto 48px; position: relative; }
        .search-input { width: 100%; padding: 16px 56px 16px 24px; border: 1.5px solid var(--border); border-radius: 12px; font-family: 'Tajawal', sans-serif; font-size: 1rem; color: var(--slate); background: var(--surface); transition: var(--transition); box-shadow: var(--shadow-sm); }
        .search-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
        .search-input::placeholder { color: var(--slate-muted); }
        .search-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: var(--navy); border: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; transition: var(--transition); }
        .search-btn:hover { background: var(--navy-dark); }
        .search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-xl); padding: 16px; display: none; z-index: 100; }
        .search-dropdown.active { display: block; }
        .search-group { margin-bottom: 12px; }
        .search-group:last-child { margin-bottom: 0; }
        .search-group-title { font-size: 0.75rem; font-weight: 800; color: var(--slate-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
        .search-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; cursor: pointer; transition: var(--transition); font-size: 0.9rem; font-weight: 600; color: var(--slate); }
        .search-item:hover { background: var(--bg); color: var(--navy); }
        .search-item svg { color: var(--slate-muted); }

        /* User Types */
        .user-types { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
        .user-type { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 50px; font-size: 0.9rem; font-weight: 700; color: var(--slate-light); cursor: pointer; transition: var(--transition); }
        .user-type:hover, .user-type.active { background: var(--navy); color: white; border-color: var(--navy); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

        /* Tool Tabs (Featured / All) */
        .tool-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; }
        .tool-tab { padding: 10px 24px; border-radius: 8px; font-family: 'Tajawal', sans-serif; font-size: 0.9rem; font-weight: 800; color: var(--slate-muted); background: transparent; border: 1.5px solid transparent; cursor: pointer; transition: var(--transition); }
        .tool-tab:hover { color: var(--navy); }
        .tool-tab.active { background: var(--navy); color: white; border-color: var(--navy); }

        /* Tool Cards */
        .tools-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
        .tool-card-pop { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: box-shadow 0.3s ease, border-color 0.3s ease; position: relative; overflow: hidden; cursor: pointer; text-align: center; }
        .tool-card-pop::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--emerald), var(--gold)); transform: scaleX(0); transition: var(--transition); }
        .tool-card-pop:hover::before { transform: scaleX(1); }
        .tool-card-pop:hover { box-shadow: var(--shadow-xl); border-color: var(--navy); }
        .tool-pop-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px; background: var(--border-light); display: flex; align-items: center; justify-content: center; color: var(--navy); transition: var(--transition); }
        .tool-card-pop:hover .tool-pop-icon { background: var(--navy); color: var(--gold); transform: scale(1.1); }
        .tool-pop-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; color: var(--navy-dark); }
        .tool-pop-desc { font-size: 0.85rem; color: var(--slate-muted); line-height: 1.6; margin-bottom: 20px; }
        .btn-tool-pop { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; background: var(--navy); color: white; border-radius: 8px; font-size: 0.85rem; font-weight: 800; text-decoration: none; transition: var(--transition); border: none; cursor: pointer; }
        .btn-tool-pop:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
        .tool-badge { position: absolute; top: 16px; left: 16px; padding: 4px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 800; z-index: 2; }
        .badge-new { background: var(--emerald-bg); color: var(--emerald); }
        .badge-trending { background: rgba(217, 119, 6, 0.15); color: #d97706; }
        .badge-popular { background: rgba(37, 99, 235, 0.15); color: #2563eb; }

        /* Trending Section */
        .trending-section { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }

        /* Recently Added */
        .recently-section { background: var(--surface); }

        /* How It Works */
        .how-section { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
        .how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
        .how-step { text-align: center; position: relative; z-index: 1; }
        .how-step-num { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; box-shadow: 0 8px 24px rgba(0,0,0,0.2); position: relative; }
        .how-step-num::after { content: ''; position: absolute; top: 50%; left: 100%; width: calc(100% + 40px); height: 2px; background: linear-gradient(90deg, var(--navy), var(--emerald)); transform: translateY(-50%); }
        .how-step:last-child .how-step-num::after { display: none; }
        .how-step-icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 20px; background: var(--surface); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--navy); box-shadow: var(--shadow); }
        .how-step h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy-dark); margin-bottom: 10px; }
        .how-step p { font-size: 0.9rem; color: var(--slate-muted); line-height: 1.7; }
        .how-arrow { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); font-size: 1.5rem; color: var(--emerald); z-index: 2; }

        /* Recommended */
        .recommended-section { background: var(--surface); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }

        /* Categories */
        .cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
        .cat-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; transition: var(--transition); cursor: pointer; text-decoration: none; color: inherit; display: block; }
        .cat-card:hover { border-color: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
        .cat-icon { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: var(--border-light); color: var(--navy); transition: var(--transition); }
        .cat-card:hover .cat-icon { background: var(--navy); color: var(--gold); }
        .cat-title { font-size: 1.05rem; font-weight: 800; color: var(--navy-dark); margin-bottom: 6px; }
        .cat-count { font-size: 0.8rem; color: var(--slate-muted); font-weight: 600; }

        /* Why Us */
        .why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
        .why-card { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: var(--transition); }
        .why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--navy); }
        .why-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--emerald-bg); display: flex; align-items: center; justify-content: center; color: var(--emerald); flex-shrink: 0; }
        .why-body h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy-dark); margin-bottom: 6px; }
        .why-body p { font-size: 0.9rem; color: var(--slate-muted); line-height: 1.7; }

        /* ===== Academy Tabs ===== */
        .academy-section { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }
        .academy-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
        .academy-tab { display: flex; align-items: center; gap: 10px; padding: 14px 28px; background: var(--surface); border: 2px solid var(--border); border-radius: 12px; font-family: 'Tajawal', sans-serif; font-size: 0.95rem; font-weight: 800; color: var(--slate-light); cursor: pointer; transition: var(--transition); position: relative; }
        .academy-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
        .academy-tab.active { border-color: var(--navy); color: var(--navy); background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
        .academy-tab .tab-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 900; color: white; }
        .academy-tab[data-tab="ifrs"] .tab-icon { background: var(--emerald); }
        .academy-tab[data-tab="technical"] .tab-icon { background: #2563eb; }
        .academy-tab[data-tab="cost"] .tab-icon { background: #d97706; }
        .academy-tab.active::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid var(--navy); }

        .academy-panels { position: relative; }
        .academy-panel { display: none; opacity: 0; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
        .academy-panel.active { display: block; opacity: 1; transform: translateY(0); animation: panelIn 0.5s ease forwards; }
        @keyframes panelIn { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

        .academy-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
        .academy-content h2 { font-size: 2rem; font-weight: 900; color: var(--navy-dark); margin-bottom: 20px; line-height: 1.3; }
        .academy-content p { color: var(--slate-light); font-size: 1.05rem; line-height: 1.9; margin-bottom: 24px; }
        .academy-list { list-style: none; margin-bottom: 32px; }
        .academy-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--slate-light); font-weight: 600; font-size: 0.95rem; border-bottom: 1px solid var(--border-light); }
        .academy-list li svg { flex-shrink: 0; }
        .academy-visual { position: relative; height: 400px; display: flex; align-items: center; justify-content: center; }
        .academy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-xl); width: 300px; position: relative; z-index: 10; transition: transform 0.1s ease;}
        .academy-card h4 { font-size: 1.1rem; font-weight: 800; color: var(--navy-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
        .academy-progress { margin-bottom: 16px; }
        .academy-progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; color: var(--slate-light); }
        .academy-progress-bar { height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
        .academy-progress-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
        .academy-float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-lg); width: 200px; animation: float-card 5s ease-in-out infinite; }
        .academy-float-1 { top: 20px; left: -20px; z-index: 5; }
        .academy-float-2 { bottom: 40px; right: -10px; z-index: 5; animation-delay: 2s; }
        .academy-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
        .academy-stat { text-align: center; padding: 16px; background: var(--bg); border-radius: 12px; border: 1px solid var(--border-light); }
        .academy-stat-num { font-size: 1.5rem; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
        .academy-stat-label { font-size: 0.75rem; color: var(--slate-muted); font-weight: 700; }

        /* Panel theme colors */
        .panel-ifrs .academy-list li svg { color: var(--emerald); }
        .panel-ifrs .academy-progress-fill { background: linear-gradient(90deg, var(--navy), var(--emerald)); }
        .panel-ifrs .btn-main { background: var(--navy); }
        .panel-ifrs .btn-main:hover { background: var(--navy-dark); }
        .panel-ifrs .academy-stat-num { color: var(--emerald); }

        .panel-technical .academy-list li svg { color: #2563eb; }
        .panel-technical .academy-progress-fill { background: linear-gradient(90deg, #1e3a5f, #2563eb); }
        .panel-technical .btn-main { background: #2563eb; }
        .panel-technical .btn-main:hover { background: #1d4ed8; }
        .panel-technical .academy-stat-num { color: #2563eb; }

        .panel-cost .academy-list li svg { color: #d97706; }
        .panel-cost .academy-progress-fill { background: linear-gradient(90deg, #92400e, #d97706); }
        .panel-cost .btn-main { background: #d97706; }
        .panel-cost .btn-main:hover { background: #b45309; }
        .panel-cost .academy-stat-num { color: #d97706; }

        /* Resources */
        .resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
        .resource-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: box-shadow 0.3s ease, border-color 0.3s ease; text-decoration: none; color: inherit; display: block; position: relative; overflow: hidden; }
        .resource-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--emerald)); transform: scaleX(0); transition: var(--transition); }
        .resource-card:hover::before { transform: scaleX(1); }
        .resource-card:hover { box-shadow: var(--shadow-xl); border-color: var(--navy); }
        .resource-icon { width: 48px; height: 48px; margin-bottom: 16px; border-radius: 12px; background: var(--border-light); display: flex; align-items: center; justify-content: center; color: var(--navy); transition: var(--transition); }
        .resource-card:hover .resource-icon { background: var(--navy); color: var(--gold); }
        .resource-title { font-size: 1.05rem; font-weight: 800; color: var(--navy-dark); margin-bottom: 8px; }
        .resource-desc { font-size: 0.85rem; color: var(--slate-muted); line-height: 1.6; margin-bottom: 16px; }
        .resource-meta { display: flex; align-items: center; gap: 12px; font-size: 0.75rem; color: var(--slate-muted); font-weight: 600; }
        .resource-meta span { display: flex; align-items: center; gap: 4px; }
        .resource-tag { display: inline-block; padding: 2px 8px; background: var(--emerald-bg); color: var(--emerald); border-radius: 4px; font-size: 0.7rem; font-weight: 800; z-index: 2;}

        /* Articles */
        .articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
        .article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); text-decoration: none; color: inherit; display: block; }
        .article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--navy); }
        .article-img { height: 180px; background: linear-gradient(135deg, var(--navy-light), var(--navy)); display: flex; align-items: center; justify-content: center; color: white; font-size: 2.5rem; position: relative; overflow: hidden; }
        .article-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.3), transparent); }
        .article-body { padding: 24px; }
        .article-tag { display: inline-block; padding: 4px 12px; background: var(--emerald-bg); color: var(--emerald); border-radius: 50px; font-size: 0.75rem; font-weight: 800; margin-bottom: 12px; }
        .article-title { font-size: 1.1rem; font-weight: 800; color: var(--navy-dark); margin-bottom: 10px; line-height: 1.4; }
        .article-excerpt { font-size: 0.9rem; color: var(--slate-muted); line-height: 1.7; margin-bottom: 16px; }
        .article-meta { display: flex; align-items: center; gap: 16px; font-size: 0.8rem; color: var(--slate-muted); font-weight: 600; }
        .article-meta span { display: flex; align-items: center; gap: 6px; }

        /* FAQ */
        .faq-section { background: var(--bg); }
        .faq-list { max-width: 780px; margin: 0 auto; }
        .faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px; transition: var(--transition); cursor: pointer; }
        .faq-item:hover { border-color: var(--navy); box-shadow: var(--shadow); }
        .faq-item h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy-dark); margin-bottom: 10px; line-height: 1.5; display: flex; align-items: center; gap: 12px; }
        .faq-item h3 svg { color: var(--emerald); flex-shrink: 0; }
        .faq-item p { color: var(--slate-light); font-size: 0.95rem; line-height: 1.8; }

        /* Newsletter */
        .newsletter-section { padding: 80px 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); position: relative; overflow: hidden; }
        .newsletter-section::before { content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(191,161,95,0.08) 0%, transparent 70%); pointer-events: none; }
        .newsletter-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
        .newsletter-content h2 { font-size: 2rem; font-weight: 900; color: white; margin-bottom: 16px; }
        .newsletter-content p { color: rgba(255,255,255,0.75); font-size: 1.05rem; line-height: 1.8; margin-bottom: 24px; }
        .newsletter-benefits { list-style: none; margin-bottom: 32px; }
        .newsletter-benefits li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
        .newsletter-benefits li svg { color: var(--gold); flex-shrink: 0; }
        .newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
        .newsletter-input { flex: 1; min-width: 240px; padding: 14px 20px; border: 1.5px solid rgba(255,255,255,0.15); border-radius: 10px; font-family: 'Tajawal', sans-serif; font-size: 0.95rem; color: white; background: rgba(255,255,255,0.06); transition: var(--transition); }
        .newsletter-input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.1); }
        .newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
        .newsletter-btn { padding: 14px 28px; background: var(--gold); color: var(--navy-dark); border: none; border-radius: 10px; font-family: 'Tajawal', sans-serif; font-size: 0.95rem; font-weight: 800; cursor: pointer; transition: var(--transition); }
        .newsletter-btn:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
        .newsletter-visual { display: flex; align-items: center; justify-content: center; }
        .newsletter-visual-inner { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 40px; text-align: center; }
        .newsletter-visual-inner .big-icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 20px; background: rgba(191,161,95,0.15); display: flex; align-items: center; justify-content: center; color: var(--gold); }
        .newsletter-visual-inner h4 { color: white; font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
        .newsletter-visual-inner p { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

        /* CTA */
        .cta { padding: 100px 0; text-align: center; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
        .cta::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(30,58,95,0.04), transparent 70%); pointer-events: none; }
        .cta h2 { font-size: clamp(1.8rem, 2.5vw, 2.6rem); font-weight: 900; margin-bottom: 20px; color: var(--navy-dark); position: relative; z-index: 1; }
        .cta p { font-size: 1.1rem; color: var(--slate-light); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; line-height: 1.8; }
        .cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

        /* Footer */
        .site-footer { background: var(--navy-dark); color: #e2e8f0; padding: 80px 0 32px; }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
        .footer-brand .brand { color: white; margin-bottom: 20px; }
        .footer-brand .brand-icon { background: var(--gold); color: var(--navy-dark); }
        .footer-brand p { color: #94a3b8; font-size: 0.9rem; line-height: 1.9; max-width: 320px; margin-bottom: 24px; }
        .footer-title { font-size: 1rem; font-weight: 800; margin-bottom: 24px; color: #f1f5f9; }
        .footer-links { list-style: none; }
        .footer-links li { margin-bottom: 14px; }
        .footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
        .footer-links a:hover { color: var(--gold); transform: translateX(-4px); }
        .socials { display: flex; gap: 10px; }
        .socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #94a3b8; text-decoration: none; font-size: 0.95rem; transition: var(--transition); }
        .socials a:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); transform: translateY(-3px); }
        .footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; color: #64748b; font-size: 0.85rem; font-weight: 500; flex-wrap: wrap; gap: 12px; }
        .footer-newsletter { margin-top: 24px; }
        .footer-newsletter-title { font-size: 0.85rem; font-weight: 800; color: #f1f5f9; margin-bottom: 12px; }
        .footer-newsletter-form { display: flex; gap: 8px; }
        .footer-newsletter-input { flex: 1; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; background: rgba(255,255,255,0.05); color: white; font-family: 'Tajawal', sans-serif; font-size: 0.85rem; }
        .footer-newsletter-input::placeholder { color: #64748b; }
        .footer-newsletter-input:focus { outline: none; border-color: var(--gold); }
        .footer-newsletter-btn { padding: 10px 16px; background: var(--gold); color: var(--navy-dark); border: none; border-radius: 8px; font-family: 'Tajawal', sans-serif; font-size: 0.8rem; font-weight: 800; cursor: pointer; transition: var(--transition); }
        .footer-newsletter-btn:hover { background: var(--gold-light); }

        /* Animations */
        .reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); }
        .reveal.active { opacity: 1; transform: translateY(0); }
        .stagger-1 { transition-delay: 0.1s; } .stagger-2 { transition-delay: 0.2s; } .stagger-3 { transition-delay: 0.3s; }
        .stagger-4 { transition-delay: 0.4s; } .stagger-5 { transition-delay: 0.5s; } .stagger-6 { transition-delay: 0.6s; }

        /* Counter Animation */
        .counter { font-variant-numeric: tabular-nums; }

        /* Responsive */
        @media (max-width: 1024px) {
            .hero-grid, .academy-grid, .newsletter-grid { grid-template-columns: 1fr; text-align: center; gap: 60px; }
            .hero-subtitle, .hero-value-list, .academy-content p, .newsletter-content p { margin: 0 auto 24px; }
            .hero-actions, .newsletter-form, .newsletter-benefits { justify-content: center; }
            .hero-trust { justify-content: center; }
            .hero-visual, .academy-visual, .newsletter-visual { height: 420px; order: -1; }
            .hero-card.float-1, .hero-card.float-2, .academy-float { display: none; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .proof-grid { grid-template-columns: repeat(2, 1fr); }
            .how-steps { grid-template-columns: 1fr; }
            .how-step-num::after { display: none; }
            .footer-grid { grid-template-columns: 1fr 1fr; }
            .academy-stats { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 768px) {
            .main-nav { display: none; } .mobile-toggle { display: block; }
            .hero-title { font-size: 2rem; } .hero-visual { height: auto; } .hero-card { position: relative; width: 100%; margin-bottom: 16px; } .hero-card.main { margin-bottom: 0; }
            .tools-grid-4, .cat-grid, .why-grid, .articles-grid, .resources-grid { grid-template-columns: 1fr; }
            .stats-grid { grid-template-columns: 1fr 1fr; }
            .proof-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
            .footer-brand .brand { justify-content: center; } .footer-brand p { margin: 0 auto 24px; }
            .socials { justify-content: center; } .footer-bottom { flex-direction: column; text-align: center; }
            .section { padding: 70px 0; } .section-title { font-size: 1.6rem; }
            .cta h2 { font-size: 1.8rem; } .cta-buttons { flex-direction: column; align-items: center; }
            .btn { width: 100%; max-width: 280px; justify-content: center; }
            .academy-visual { height: auto; } .academy-card { width: 100%; }
            .why-card { flex-direction: column; text-align: center; align-items: center; }
            .academy-tabs { gap: 8px; }
            .academy-tab { padding: 10px 16px; font-size: 0.85rem; }
            .academy-tab .tab-icon { width: 28px; height: 28px; }
            .academy-tab.active::after { display: none; }
            .newsletter-form { flex-direction: column; }
            .newsletter-input { min-width: 100%; }
            .tool-tabs { flex-wrap: wrap; }
            .footer-newsletter-form { flex-direction: column; }
        }
        @media (max-width: 480px) {
            .hero-card, .academy-card { padding: 20px; } .user-types { flex-direction: column; align-items: center; }
            .user-type { width: 100%; max-width: 280px; justify-content: center; }
            .academy-tabs { flex-direction: column; align-items: center; }
            .academy-tab { width: 100%; max-width: 280px; justify-content: center; }
            .stats-grid { grid-template-columns: 1fr; }
            .proof-grid { grid-template-columns: 1fr; }
            .academy-stats { grid-template-columns: 1fr 1fr; }
        }
.site-header svg,
.main-nav svg,
.icon-svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.icon-sm {
    width: 16px !important;
    height: 16px !important;
}

/* ===== Logo ===== */
.site-branding{
    display:flex;
    align-items:center;
}

.custom-logo-link{
    display:flex;
    align-items:center;
}

.custom-logo{
    max-width:140px;
    max-height:40px;
    width:auto;
    height:auto;
    display:block;
}
/* ===== SmartFin Header v2 ===== */
.sf-header{
    position:fixed;
    top:32px;
    left:0;
    right:0;
    z-index:9999;
    background:#fff;
    border-bottom:1px solid #e2e8f0;
    box-shadow:0 4px 18px rgba(30,41,59,.06);
}

.sf-header-container{
    max-width:1200px;
    height:78px;
    margin:0 auto;
    padding:0 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.sf-brand{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
}

.sf-brand-icon{
    width:38px;
    height:38px;
    border-radius:12px;
    background:#1E3A5F;
    color:#BFA15F;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:20px;
}

.sf-brand-text{
    color:#1E3A5F;
    font-weight:900;
    font-size:20px;
    white-space:nowrap;
}

.sf-nav{
    flex:1;
    display:flex;
    justify-content:center;
}

.sf-menu{
    list-style:none;
    display:flex;
    align-items:center;
    gap:28px;
    margin:0;
    padding:0;
}

.sf-menu a{
    text-decoration:none;
    color:#475569;
    font-weight:700;
    font-size:15px;
}

.sf-menu a:hover{
    color:#047857;
}

.sf-header-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.sf-search-btn,
.sf-theme-btn,
.sf-lang-btn{
    width:38px;
    height:38px;
    border-radius:12px;
    border:1px solid #e2e8f0;
    background:#f8fafc;
    color:#1E3A5F;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    cursor:pointer;
    font-weight:800;
}

.sf-lang-btn{
    width:auto;
    padding:0 12px;
}

.sf-mobile-toggle{
    display:none;
    width:42px;
    height:42px;
    border-radius:12px;
    border:1px solid #e2e8f0;
    background:#fff;
    color:#1E3A5F;
    font-size:22px;
    cursor:pointer;
}

/* مسافة أعلى الصفحة بسبب الهيدر الثابت */




/* Mobile */
@media(max-width:900px){
    .sf-nav,
    .sf-header-actions{
        display:none;
    }

    .sf-mobile-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .sf-brand-text{
        font-size:17px;
    }
}
/* Fix giant SVG icons */
svg,
.icon-svg,
.site-header svg,
.main-nav svg,
.sf-header svg,
.sf-menu svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    display: inline-block !important;
    fill: none !important;
    flex-shrink: 0 !important;
}

.icon-sm {
    width: 16px !important;
    height: 16px !important;
}