.elementor-kit-5{--e-global-color-primary:#6366F1;--e-global-color-secondary:#8B5CF6;--e-global-color-accent:#EC4899;--e-global-color-text:#0F172A;--e-global-color-46fe3b7:#1E293B;--e-global-color-6b40ba0:#64748B;--e-global-color-c68bd73:#F6F8FF;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-5 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}
/* Start custom CSS */@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;700&family=Amiri:wght@400;700&family=Reem+Kufi:wght@400;700&family=Cairo:wght@400;700&family=Aref+Ruqaa:wght@400;700&family=Mirza:wght@400;700&family=Vibes&family=Rakkas&family=Gulzar&family=Marhey:wght@400;700&family=JetBrains+Mono:wght@400;700&display=swap');

.afg-wrap {
    --bg:#f6f8ff; --surface:rgba(255,255,255,.55); --surface-strong:rgba(255,255,255,.75);
    --border:rgba(255,255,255,.75); --border-soft:rgba(15,23,42,.06); --border-strong:rgba(99,102,241,.35);
    --text:#0f172a; --text-soft:#1e293b; --label:#64748b; --muted:#94a3b8;
    --accent:#6366f1; --accent-2:#8b5cf6; --accent-3:#ec4899;
    --radius:18px;
    --shadow-glass: 0 1px 0 rgba(255,255,255,.9) inset, 0 -1px 0 rgba(15,23,42,.04) inset, 0 20px 45px -25px rgba(30,41,59,.28);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    color:var(--text); line-height:1.55; position:relative; overflow:hidden;
    padding:60px 32px; border-radius:28px;
    background:
        radial-gradient(500px 500px at 10% 15%, rgba(167,139,250,.45), transparent 65%),
        radial-gradient(500px 500px at 90% 10%, rgba(6,182,212,.45), transparent 65%),
        radial-gradient(450px 450px at 80% 80%, rgba(236,72,153,.35), transparent 65%),
        radial-gradient(400px 400px at 15% 90%, rgba(59,130,246,.35), transparent 65%),
        linear-gradient(180deg, #f5f7ff, #eef1fb);
    box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 30px 80px -40px rgba(30,41,59,.35);
    margin: 0 auto;
    max-width: 1240px;
}
.afg-wrap *,.afg-wrap *::before,.afg-wrap *::after { box-sizing:border-box; }
.afg-wrap::before {
    content:""; position:absolute; inset:0;
    background-image:
        linear-gradient(rgba(15,23,42,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.03) 1px, transparent 1px);
    background-size:44px 44px;
    mask-image: radial-gradient(1000px 600px at 50% 0%, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(1000px 600px at 50% 0%, black 40%, transparent 90%);
    pointer-events:none; z-index:0;
}
.afg-wrap > * { position:relative; z-index:1; }

.afg-wrap h1, .afg-wrap h2, .afg-wrap h3, .afg-wrap p, .afg-wrap ul, .afg-wrap li { margin:0; padding:0; }
.afg-wrap ul { list-style:none; }
.afg-wrap a { color:var(--accent); text-decoration:none; font-weight:600; }
.afg-wrap a:hover { text-decoration:underline; }

.afg-eyebrow {
    display:inline-block; padding:6px 14px;
    background:rgba(99,102,241,.08); color:var(--accent);
    border-radius:999px; font-size:.75rem; font-weight:700;
    letter-spacing:.12em; text-transform:uppercase; margin-bottom:20px;
    border:1px solid rgba(99,102,241,.15);
}
.afg-wrap h1 {
    font-size:clamp(2.2rem, 4vw, 3.4rem); line-height:1.05; letter-spacing:-.02em;
    margin-bottom:24px; font-weight:800;
    background:linear-gradient(90deg,#6366f1 0%,#8b5cf6 50%,#ec4899 100%);
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
}
.afg-wrap h2 {
    font-size:clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing:-.015em;
    margin-bottom:16px; color:var(--text); font-weight:800;
    display:inline-flex; align-items:center; gap:12px;
}
.afg-wrap h2::before {
    content:""; width:10px; height:10px; border-radius:3px;
    background:linear-gradient(135deg,#6366f1,#ec4899);
    box-shadow:0 0 14px rgba(139,92,246,.55);
}
.afg-wrap h3 { font-size:1.2rem; margin-bottom:10px; color:var(--text); font-weight:700; }
.afg-wrap .afg-section { padding:60px 0; }
.afg-wrap .afg-intro-p {
    font-size:1.15rem; color:var(--text-soft); margin-bottom:32px; max-width:55ch;
}
.afg-wrap .afg-section-intro { color:var(--text-soft); font-size:1.05rem; max-width:62ch; margin-bottom:40px; }

.afg-wrap .afg-btn {
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:14px 24px; border-radius:12px; font-family:inherit; font-size:.98rem;
    font-weight:700; cursor:pointer; text-decoration:none; border:1px solid transparent;
    transition:transform .15s ease, box-shadow .2s ease;
}
.afg-wrap .afg-btn-primary {
    background:linear-gradient(135deg,#6366f1,#8b5cf6,#ec4899); color:white;
    box-shadow:0 12px 30px -10px rgba(139,92,246,.55);
}
.afg-wrap .afg-btn-primary:hover {
    background:linear-gradient(135deg,#4f46e5,#7c3aed,#db2777); color:white;
    transform:translateY(-1px); text-decoration:none;
    box-shadow:0 16px 36px -10px rgba(139,92,246,.65);
}
.afg-wrap .afg-btn-secondary {
    background:rgba(255,255,255,.7); color:var(--text); border-color:var(--border-soft);
    backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
    box-shadow:0 1px 0 rgba(255,255,255,.9) inset, 0 4px 12px -6px rgba(15,23,42,.15);
}
.afg-wrap .afg-btn-secondary:hover {
    background:rgba(255,255,255,.9); color:var(--accent); border-color:var(--accent);
    transform:translateY(-1px); text-decoration:none;
}

.afg-wrap .afg-hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.afg-wrap .afg-trust {
    display:flex; gap:20px; flex-wrap:wrap; color:var(--label); font-size:.85rem;
}
.afg-wrap .afg-trust span { display:inline-flex; align-items:center; gap:6px; }
.afg-wrap .afg-trust span::before {
    content:"✓"; width:16px; height:16px; display:inline-flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg,#6366f1,#8b5cf6); color:white; border-radius:50%;
    font-size:.6rem; font-weight:700;
}

.afg-wrap .afg-grid { display:grid; gap:24px; }
.afg-wrap .afg-grid-3 { grid-template-columns:repeat(3,1fr); }
.afg-wrap .afg-grid-4 { grid-template-columns:repeat(4,1fr); }
.afg-wrap .afg-grid-2 { grid-template-columns:repeat(2,1fr); }

.afg-wrap .afg-card {
    padding:26px; background:var(--surface-strong); border:1px solid var(--border);
    border-radius:var(--radius); box-shadow:var(--shadow-glass);
    backdrop-filter:blur(24px) saturate(1.4); -webkit-backdrop-filter:blur(24px) saturate(1.4);
    transition:transform .2s ease, box-shadow .2s ease;
}
.afg-wrap .afg-card:hover {
    transform:translateY(-3px);
    box-shadow:0 1px 0 rgba(255,255,255,.9) inset, 0 24px 50px -20px rgba(99,102,241,.35);
}
.afg-wrap .afg-card p { color:var(--text-soft); font-size:.96rem; }
.afg-wrap .afg-card-icon {
    width:44px; height:44px; border-radius:12px;
    background:linear-gradient(135deg,#6366f1,#8b5cf6); color:white;
    display:inline-flex; align-items:center; justify-content:center;
    font-weight:800; font-size:1.1rem; margin-bottom:16px;
    box-shadow:0 8px 20px -8px rgba(139,92,246,.5);
}
.afg-wrap .afg-card-step {
    background:linear-gradient(135deg,#6366f1,#ec4899);
    font-family:"JetBrains Mono",monospace;
}
.afg-wrap .afg-card-link {
    display:inline-flex; align-items:center; gap:6px; margin-top:14px;
    color:var(--accent); font-weight:700; font-size:.9rem;
}
.afg-wrap .afg-card-link::after { content:"→"; transition:transform .2s ease; }
.afg-wrap .afg-card-link:hover::after { transform:translateX(3px); }

.afg-wrap .afg-font-card {
    padding:24px; background:var(--surface-strong); border:1px solid var(--border);
    border-radius:var(--radius); box-shadow:var(--shadow-glass);
}
.afg-wrap .afg-font-name {
    font-family:"JetBrains Mono",monospace; font-size:.72rem; letter-spacing:.14em;
    color:var(--accent); font-weight:700; text-transform:uppercase; margin-bottom:12px;
}
.afg-wrap .afg-font-preview {
    background:#fff; border:1px solid var(--border-soft); border-radius:10px;
    padding:22px 18px; text-align:center; font-size:2.2rem; line-height:1.6;
    direction:rtl; color:var(--text); margin-bottom:10px;
}
.afg-wrap .afg-font-desc { color:var(--label); font-size:.88rem; }

.afg-wrap .afg-f-naskh { font-family:'Noto Naskh Arabic','Amiri',serif; }
.afg-wrap .afg-f-amiri { font-family:'Amiri',serif; }
.afg-wrap .afg-f-kufi { font-family:'Reem Kufi',sans-serif; }
.afg-wrap .afg-f-cairo { font-family:'Cairo',sans-serif; }
.afg-wrap .afg-f-aref { font-family:'Aref Ruqaa',serif; }
.afg-wrap .afg-f-rakkas { font-family:'Rakkas',cursive; }

.afg-wrap .afg-faq { display:flex; flex-direction:column; gap:12px; }
.afg-wrap .afg-faq details {
    background:var(--surface-strong); border:1px solid var(--border);
    border-radius:14px; padding:4px 20px;
    backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
    box-shadow:var(--shadow-glass);
}
.afg-wrap .afg-faq details[open] { border-color:var(--border-strong); }
.afg-wrap .afg-faq summary {
    padding:18px 0; cursor:pointer; font-weight:700; color:var(--text);
    display:flex; justify-content:space-between; align-items:center;
    list-style:none; font-size:1rem;
}
.afg-wrap .afg-faq summary::-webkit-details-marker { display:none; }
.afg-wrap .afg-faq summary::after {
    content:"+"; font-size:1.4rem; color:var(--accent); font-weight:400;
    transition:transform .2s ease;
}
.afg-wrap .afg-faq details[open] summary::after { transform:rotate(45deg); }
.afg-wrap .afg-faq details p {
    padding:0 0 20px; color:var(--text-soft); font-size:.95rem; margin:0;
}

.afg-wrap .afg-hero-grid {
    display:grid; grid-template-columns:1.1fr 1fr; gap:60px; align-items:center;
    padding:20px 0 40px;
}

/* ADDED — centered hero (tool removed from hero, now its own section) */
.afg-wrap.afg-hero { padding-top:56px; padding-bottom:48px; }
.afg-wrap .afg-hero-inner { max-width:760px; margin:0 auto; text-align:center; }
.afg-wrap .afg-hero-inner .afg-intro-p { max-width:60ch; margin-left:auto; margin-right:auto; }
.afg-wrap .afg-hero-inner .afg-hero-actions { justify-content:center; }
.afg-wrap .afg-hero-inner .afg-trust { justify-content:center; }

/* ADDED — tool section spacing (Shortcode widget sits here) */
.afg-tool-section { max-width:1240px; margin:24px auto; padding:0 12px; scroll-margin-top:90px; }

/* ADDED — licensing / accuracy trust card */
.afg-wrap .afg-licensing p { color:var(--text-soft); font-size:1rem; margin-bottom:14px; max-width:70ch; }
.afg-wrap .afg-licensing p:last-child { margin-bottom:0; }
.afg-wrap .afg-licensing strong { color:var(--text); }

/* ADDED — trust footer strip */
.afg-wrap .afg-trust-strip {
    display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
    align-items:center; color:var(--label); font-size:.85rem;
    padding-top:8px;
}
.afg-wrap .afg-trust-strip .divider { width:5px; height:5px; border-radius:50%; background:var(--muted); }
.afg-wrap .afg-trust-strip strong { color:var(--text-soft); font-weight:700; }

@media (max-width:900px) {
    .afg-wrap { padding:32px 20px; }
    .afg-wrap .afg-hero-grid { grid-template-columns:1fr; gap:32px; }
    .afg-wrap .afg-grid-3, .afg-wrap .afg-grid-4 { grid-template-columns:repeat(2,1fr); }
    .afg-wrap .afg-grid-2 { grid-template-columns:1fr; }
    .afg-wrap .afg-section { padding:40px 0; }
}
@media (max-width:560px) {
    .afg-wrap .afg-grid-3, .afg-wrap .afg-grid-4 { grid-template-columns:1fr; }
    .afg-wrap .afg-hero-actions { flex-direction:column; align-items:stretch; }
}



/* ========== ENGLISH-TO-ARABIC PAGE ADDITIONS ========== */

/* Marhey handwriting font class (fonts already loaded by the homepage @import) */
.afg-wrap .afg-f-marhey { font-family:'Marhey',cursive; }

/* Callouts (amber warning + info) */
.afg-wrap .afg-callout {
  padding:16px 20px; background:rgba(254,243,199,.7); border-left:4px solid #f59e0b;
  border-radius:0 12px 12px 0; color:#92400e; font-size:.92rem; margin:20px 0;
}
.afg-wrap .afg-callout strong { color:#7c2d12; }
.afg-wrap .afg-callout-info {
  background:rgba(99,102,241,.08); border-color:var(--accent); color:var(--text-soft);
}

/* Breadcrumb */
.afg-wrap .afg-breadcrumb { padding:20px 0; color:var(--label); font-size:.85rem; }
.afg-wrap .afg-breadcrumb a { color:var(--text-soft); text-decoration:none; font-weight:400; }
.afg-wrap .afg-breadcrumb a:hover { color:var(--accent); }
.afg-wrap .afg-breadcrumb span { margin:0 8px; color:var(--muted); }

/* ADDED — Transliteration vs Translation comparison table (spec §34) */
.afg-wrap .afg-compare-table {
  width:100%; border-collapse:collapse; margin-top:24px;
  background:var(--surface-strong); border:1px solid var(--border);
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-glass);
}
.afg-wrap .afg-compare-table th,
.afg-wrap .afg-compare-table td {
  text-align:left; padding:14px 16px; border-bottom:1px solid var(--border-soft);
  font-size:.95rem; color:var(--text-soft); vertical-align:top;
}
.afg-wrap .afg-compare-table th { background:rgba(99,102,241,.06); color:var(--text); font-weight:700; }
.afg-wrap .afg-compare-table tr:last-child td { border-bottom:none; }
@media (max-width:560px){
  .afg-wrap .afg-compare-table th, .afg-wrap .afg-compare-table td { padding:10px 12px; font-size:.85rem; }
}

/* ADDED — check-list (used in the Review section) */
.afg-wrap .afg-check-list { margin-top:14px; display:flex; flex-direction:column; gap:10px; }
.afg-wrap .afg-check-list li { position:relative; padding-left:28px; color:var(--text-soft); font-size:.98rem; }
.afg-wrap .afg-check-list li::before {
  content:"✓"; position:absolute; left:0; top:1px; width:18px; height:18px;
  display:inline-flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; border-radius:50%;
  font-size:.62rem; font-weight:700;
}


/* ========== ARABIC FONT STYLES PAGE ADDITIONS ========== */

/* editorial table (choose-a-font matrix, letterforms) */
.afg-wrap .afg-table {
  width:100%; border-collapse:separate; border-spacing:0;
  background:var(--surface-strong); border:1px solid var(--border);
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-glass);
}
.afg-wrap .afg-table th, .afg-wrap .afg-table td {
  padding:14px 18px; text-align:left; border-bottom:1px solid var(--border-soft); font-size:.94rem;
}
.afg-wrap .afg-table th {
  background:rgba(99,102,241,.06); color:var(--accent);
  font-family:"JetBrains Mono",monospace; font-size:.78rem; letter-spacing:.08em;
  text-transform:uppercase; font-weight:700;
}
.afg-wrap .afg-table tr:last-child td { border-bottom:none; }
@media (max-width:560px){ .afg-wrap .afg-table th, .afg-wrap .afg-table td { padding:10px 12px; font-size:.85rem; } }

/* letterform cell */
.afg-wrap .afg-letterform { font-family:'Amiri',serif; font-size:2.6rem; text-align:center; direction:rtl; }



/* ========== ARABIC COPY & PASTE PAGE ADDITIONS ========== */

/* small button (phrase copy buttons) */
.afg-wrap .afg-btn-sm { padding:10px 16px; font-size:.85rem; }

/* auto-fill grid for phrase cards */
.afg-wrap .afg-grid-auto { grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); }

/* big Arabic phrase display */
.afg-wrap .afg-arabic-big { font-family:'Amiri',serif; font-size:1.8rem; text-align:right; direction:rtl; margin-bottom:10px; }

/* ========== ARABIC CALLIGRAPHY GENERATOR PAGE ADDITIONS ========== */

/* Vibes display font (already loaded by the homepage @import) */
.afg-wrap .afg-f-vibes { font-family:'Vibes',cursive; }


/* ========== ARABIC CALLIGRAPHY GUIDE PAGE ADDITIONS ========== */

/* glass panel (hero comparison + create CTA) */
.afg-wrap .afg-glass {
  background:var(--surface-strong); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow-glass); backdrop-filter:blur(24px) saturate(1.4);
  -webkit-backdrop-filter:blur(24px) saturate(1.4); padding:30px;
}

/* WIDE auto-fill grid — renamed to avoid clashing with the copy-paste page's afg-grid-auto (220px) */
.afg-wrap .afg-grid-auto-lg { grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); }

/* Gulzar (Diwani-style) font — Gulzar is already loaded by the homepage @import */
.afg-wrap .afg-f-gulzar { font-family:'Gulzar',serif; }

/* Quick section navigation pills */
.afg-wrap .afg-nav-pills {
  display:flex; gap:10px; overflow-x:auto; padding:6px 2px 12px; margin-bottom:8px;
  -webkit-overflow-scrolling:touch; scrollbar-width:thin;
}
.afg-wrap .afg-nav-pills a {
  flex:0 0 auto; padding:8px 16px; border-radius:999px;
  background:var(--surface-strong); border:1px solid var(--border);
  color:var(--text-soft); font-size:.85rem; font-weight:700; box-shadow:var(--shadow-glass); white-space:nowrap;
}
.afg-wrap .afg-nav-pills a:hover { color:var(--accent); border-color:var(--accent); text-decoration:none; }

/* small copy/generator buttons row on gallery cards */
.afg-wrap .afg-card-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.afg-wrap .afg-btn-sm { padding:8px 14px; font-size:.8rem; }

/* anchor offset so sticky header doesn't cover section tops */
.afg-wrap [id] { scroll-margin-top:90px; }




/* Footer css */
  .afg-footer *{box-sizing:border-box;}
  .afg-footer{--f-muted:#94a3b8; --f-border:rgba(255,255,255,.1); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; background:linear-gradient(180deg,#0f172a,#131b30); color:#e2e8f0; padding:56px 24px 28px;}
  .afg-footer a{color:var(--f-muted); text-decoration:none;}
  .afg-footer a:hover{color:#fff;}
  .afg-footer .afg-footer-inner{max-width:1240px; margin:0 auto; display:grid; grid-template-columns:1.6fr 1fr 1fr 1.2fr; gap:40px;}
  .afg-footer .afg-f-brand{display:flex; align-items:center; gap:10px; font-weight:800; color:#fff; font-size:1.05rem; margin-bottom:14px;}
  .afg-footer .afg-logo-mark{width:34px; height:34px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#6366f1,#8b5cf6,#ec4899); color:#fff; font-weight:800; font-size:1.15rem;}
  .afg-footer .afg-f-tag{color:var(--f-muted); font-size:.92rem; max-width:44ch; line-height:1.7; margin:0;}
  .afg-footer h4{color:#fff; font-size:.76rem; letter-spacing:.12em; text-transform:uppercase; font-family:"JetBrains Mono",ui-monospace,monospace; margin:0 0 16px;}
  .afg-footer ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px;}
  .afg-footer ul a{font-size:.92rem;}
  .afg-footer .afg-footer-bottom{max-width:1240px; margin:40px auto 0; padding-top:22px; border-top:1px solid var(--f-border); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; color:var(--f-muted); font-size:.85rem;}
  @media (max-width:900px){.afg-footer .afg-footer-inner{grid-template-columns:1fr 1fr; gap:32px;}}
  @media (max-width:560px){.afg-footer .afg-footer-inner{grid-template-columns:1fr;}}



/* Header css */

  html{scroll-padding-top:84px;}

  .afg-header *{box-sizing:border-box;}
  .afg-header{
    --h-accent:#6366f1; --h-text:#0f172a; --h-muted:#64748b; --h-border:rgba(15,23,42,.08);
    position:sticky; top:0; z-index:1000;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    border-bottom:1px solid var(--h-border);
  }
  .afg-header::before{
    content:""; position:absolute; inset:0; z-index:-1;
    background:rgba(255,255,255,.82);
    backdrop-filter:saturate(1.4) blur(16px); -webkit-backdrop-filter:saturate(1.4) blur(16px);
  }
  .afg-header a{text-decoration:none; color:inherit;}
  .afg-header .afg-header-inner{max-width:1240px; margin:0 auto; padding:0 24px; height:68px; display:flex; align-items:center; gap:22px;}
  .afg-header .afg-brand{display:flex; align-items:center; gap:10px; font-weight:800; color:var(--h-text); font-size:1.02rem;}
  .afg-header .afg-logo-mark{width:34px; height:34px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#6366f1,#8b5cf6,#ec4899); color:#fff; font-weight:800; font-size:1.15rem; box-shadow:0 6px 16px -6px rgba(139,92,246,.6);}
  .afg-header .afg-brand-text{white-space:nowrap;}
  .afg-header .afg-nav{display:flex; align-items:center; gap:2px; margin:0 0 0 auto; padding:0; list-style:none;}
  .afg-header .afg-nav > li{position:relative;}
  .afg-header .afg-nav > li > a, .afg-header .afg-nav > li > button{display:inline-flex; align-items:center; gap:6px; padding:9px 14px; border-radius:10px; border:0; background:transparent; cursor:pointer; font:inherit; font-size:.94rem; font-weight:600; color:var(--h-text);}
  .afg-header .afg-nav > li > a:hover, .afg-header .afg-nav > li > button:hover{background:rgba(99,102,241,.08); color:var(--h-accent);}
  .afg-header .afg-nav a.active, .afg-header .afg-nav a[aria-current="page"]{color:var(--h-accent); font-weight:700; box-shadow:inset 0 -2px 0 var(--h-accent);}
  .afg-header .afg-nav > li.has-active > button{color:var(--h-accent);}
  .afg-header .afg-caret{font-size:.7rem; transition:transform .2s;}
  .afg-header .afg-nav > li.open .afg-caret{transform:rotate(180deg);}
  .afg-header .afg-dropdown{position:absolute; top:calc(100% + 8px); left:0; min-width:236px; background:#fff; border:1px solid var(--h-border); border-radius:14px; box-shadow:0 20px 45px -20px rgba(30,41,59,.35); padding:8px; list-style:none; margin:0; opacity:0; visibility:hidden; transform:translateY(-6px); transition:opacity .18s, transform .18s, visibility .18s;}
  .afg-header .afg-nav > li:hover > .afg-dropdown, .afg-header .afg-nav > li.open > .afg-dropdown, .afg-header .afg-nav > li:focus-within > .afg-dropdown{opacity:1; visibility:visible; transform:translateY(0);}
  .afg-header .afg-dropdown a{display:block; padding:10px 12px; border-radius:9px; font-size:.92rem; font-weight:600; color:var(--h-text);}
  .afg-header .afg-dropdown a:hover{background:rgba(99,102,241,.08); color:var(--h-accent);}
  .afg-header .afg-dropdown a.active, .afg-header .afg-dropdown a[aria-current="page"]{color:var(--h-accent); background:rgba(99,102,241,.1);}
  .afg-header .afg-header-cta{margin-left:8px; padding:10px 18px; border-radius:11px; font-size:.92rem; font-weight:700; color:#fff; white-space:nowrap; background:linear-gradient(135deg,#6366f1,#8b5cf6,#ec4899); box-shadow:0 12px 26px -12px rgba(139,92,246,.6); transition:transform .15s ease;}
  .afg-header .afg-header-cta:hover{transform:translateY(-1px); color:#fff;}
  .afg-header .afg-burger{display:none; align-items:center; justify-content:center; width:44px; height:44px; border-radius:10px; border:1px solid var(--h-border); background:#fff; cursor:pointer; color:var(--h-text); margin-left:auto;}
  .afg-header .afg-scrim{position:fixed; inset:0; background:rgba(15,23,42,.45); z-index:1100; opacity:0; visibility:hidden; transition:opacity .2s;}
  .afg-header .afg-scrim.open{opacity:1; visibility:visible;}
  .afg-header .afg-drawer{position:fixed; top:0; right:0; height:100dvh; width:min(86vw,340px); z-index:1101; background:#fff; box-shadow:-20px 0 60px -20px rgba(30,41,59,.45); padding:20px; transform:translateX(100%); transition:transform .25s ease; display:flex; flex-direction:column; overflow-y:auto; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;}
  .afg-header .afg-drawer.open{transform:translateX(0);}
  .afg-header .afg-drawer-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; padding-bottom:14px; border-bottom:1px solid var(--h-border);}
  .afg-header .afg-drawer-close{width:44px; height:44px; border-radius:10px; border:1px solid var(--h-border); background:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; color:var(--h-text);}
  .afg-header .afg-m-link{display:flex; align-items:center; min-height:44px; padding:8px 12px; border-radius:10px; font-weight:600; color:var(--h-text);}
  .afg-header .afg-m-link:hover{background:rgba(99,102,241,.08); color:var(--h-accent);}
  .afg-header .afg-m-link.active, .afg-header .afg-m-link[aria-current="page"]{color:var(--h-accent); background:rgba(99,102,241,.1);}
  .afg-header .afg-m-group{font-family:"JetBrains Mono",ui-monospace,monospace; font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--h-muted); padding:14px 12px 4px;}
  @media (max-width:900px){.afg-header .afg-nav{display:none;} .afg-header .afg-desktop-cta{display:none;} .afg-header .afg-burger{display:inline-flex;}}
  @media (min-width:901px){.afg-header .afg-drawer, .afg-header .afg-scrim{display:none;}}/* End custom CSS */