:root{
  --afn-bg:#fcf9ff;
  --afn-white:#ffffff;

  --afn-text:#0f172a;
  --afn-text-soft:#475569;
  --afn-subtle:#64748b;

  --afn-slate-950:#020617;
  --afn-slate-900:#0f172a;
  --afn-slate-800:#1e293b;
  --afn-slate-600:#475569;
  --afn-slate-500:#64748b;
  --afn-slate-400:#94a3b8;

  --afn-border:#eddcf8;

  --afn-fuchsia:#c026d3;
  --afn-fuchsia-strong:#a21caf;
  --afn-fuchsia-50:#fdf4ff;

  --afn-violet:#8b5cf6;
  --afn-violet-soft:#f5f3ff;
  --afn-pink:#ec4899;

  --afn-green:#059669;
  --afn-red:#f43f5e;

  --afn-shadow:0 20px 60px -35px rgba(15,23,42,.18);
  --afn-shadow-soft:0 16px 34px -28px rgba(15,23,42,.16);
  --afn-shadow-magenta:0 24px 80px -36px rgba(217,70,239,.35);

  --afn-radius:24px;
  --afn-radius-lg:32px;
  --afn-container:1520px;
}

/* =========================================================
   RESET / BASE
========================================================= */

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  color:var(--afn-text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.6;
  background:
    radial-gradient(circle at top right, rgba(217,70,239,.08), transparent 22%),
    radial-gradient(circle at 10% 20%, rgba(139,92,246,.08), transparent 18%),
    var(--afn-bg);
}

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

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

button,
input,
textarea,
select{
  font:inherit;
}

.afn-container{
  width:min(var(--afn-container), calc(100% - 32px));
  margin:0 auto;
}

.site-content{
  min-height:50vh;
}

.screen-reader-text{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.screen-reader-text:focus,
.afn-skip-link:focus{
  clip:auto !important;
  width:auto;
  height:auto;
  margin:0;
  overflow:visible;
  white-space:normal;
}

.afn-skip-link{
  position:absolute;
  left:16px;
  top:12px;
  z-index:999;
  padding:10px 14px;
  border-radius:12px;
  background:#fff;
  color:var(--afn-text);
  box-shadow:var(--afn-shadow);
  transform:translateY(-140%);
}

.afn-skip-link:focus{
  transform:translateY(0);
}

/* =========================================================
   GENERIC UI
========================================================= */

.afn-home-kicker,
.afn-footer-kicker,
.afn-utility-kicker,
.afn-micro-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-weight:800;
}

.afn-home-kicker{
  padding:8px 14px;
  background:rgba(255,255,255,.85);
  border:1px solid var(--afn-border);
  color:var(--afn-fuchsia-strong);
  font-size:.74rem;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.afn-home-kicker-light{
  background:rgba(255,255,255,.15);
  color:#fff;
  border:1px solid rgba(255,255,255,.2);
}

.afn-footer-kicker{
  padding:8px 14px;
  background:#fff;
  border:1px solid var(--afn-border);
  color:var(--afn-fuchsia-strong);
  font-size:.72rem;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.afn-utility-kicker{
  padding:7px 10px;
  background:linear-gradient(135deg,var(--afn-fuchsia),var(--afn-violet));
  color:#fff;
  font-size:.7rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.afn-micro-label{
  padding:7px 11px;
  background:var(--afn-violet-soft);
  color:#6d28d9;
  font-size:.72rem;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.afn-btn,
.afn-header-pill,
.afn-toolbar-pill,
.afn-utility-link,
.afn-utility-pill,
.afn-topic-chip,
.afn-menu-premium > li > a,
.afn-footer-topbar-btn{
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background .22s ease,
    color .22s ease,
    border-color .22s ease;
}

.afn-btn:hover,
.afn-header-pill:hover,
.afn-toolbar-pill:hover,
.afn-utility-link:hover,
.afn-utility-pill:hover,
.afn-topic-chip:hover,
.afn-footer-topbar-btn:hover{
  transform:translateY(-2px);
}

.afn-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 20px;
  border-radius:18px;
  font-size:.92rem;
  font-weight:800;
}

.afn-btn-primary{
  background:linear-gradient(135deg,var(--afn-fuchsia) 0%,var(--afn-pink) 100%);
  color:#fff;
  box-shadow:0 20px 40px -20px rgba(192,38,211,.45);
}

.afn-btn-secondary{
  background:rgba(255,255,255,.8);
  border:1px solid var(--afn-border);
  color:var(--afn-text);
  box-shadow:var(--afn-shadow);
}

.afn-inline-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  color:var(--afn-fuchsia-strong);
}

.afn-inline-link:hover{
  color:var(--afn-fuchsia);
}

.afn-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px 10px;
  align-items:center;
}

.afn-meta-row-hero{
  margin-bottom:6px;
}

.afn-meta-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.74);
  border:1px solid var(--afn-border);
  color:var(--afn-text-soft);
  font-size:.8rem;
  font-weight:700;
  box-shadow:0 10px 24px -22px rgba(15,23,42,.25);
}

.afn-meta-chip-soft{
  background:var(--afn-violet-soft);
  color:#6d28d9;
}

.afn-meta-chip-brand{
  background:linear-gradient(135deg,var(--afn-fuchsia) 0%,var(--afn-pink) 100%);
  color:#fff;
  border-color:transparent;
}

.afn-topic-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.85);
  border:1px solid var(--afn-border);
  color:var(--afn-text);
  font-size:.88rem;
  font-weight:800;
  box-shadow:0 12px 26px -24px rgba(15,23,42,.16);
}

.afn-topic-chip:hover{
  background:linear-gradient(135deg,var(--afn-fuchsia) 0%,var(--afn-pink) 100%);
  color:#fff;
  border-color:transparent;
}

.afn-topic-chip-tag{
  background:linear-gradient(135deg,#fff 0%,#faf5ff 100%);
}

.afn-topic-chip-tag:hover{
  background:linear-gradient(135deg,var(--afn-fuchsia) 0%,var(--afn-pink) 100%);
  color:#fff;
  border-color:transparent;
}

.afn-section-header h2,
.afn-section-header-inline h2{
  margin:10px 0 0;
  line-height:1.08;
  letter-spacing:-.04em;
}

.afn-section-header h2{
  font-size:clamp(1.7rem,3vw,2.6rem);
}

.afn-section-header-inline{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.afn-section-header-inline h2{
  font-size:1.9rem;
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */

.afn-site-header{
  position:sticky;
  top:0;
  z-index:90;
  background:transparent;
  border-bottom:0;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.afn-site-header.is-scrolled{
  box-shadow:0 18px 40px -32px rgba(15,23,42,.35);
  background:rgba(255,255,255,.9);
}

.afn-header-shell{
  position:sticky;
  top:0;
  z-index:90;
  padding:10px 0 0;
  background:linear-gradient(180deg,rgba(252,249,255,.92),rgba(252,249,255,.78));
  backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(217,70,239,.08);
}

.afn-header-utility{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
  padding:0 4px;
}

.afn-header-utility-left,
.afn-header-utility-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.afn-utility-link,
.afn-utility-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border:1px solid rgba(217,70,239,.12);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:var(--afn-text);
  font-size:.82rem;
  font-weight:700;
  box-shadow:0 12px 28px -24px rgba(15,23,42,.22);
}

.afn-utility-pill-soft{
  background:linear-gradient(135deg,#fbf5ff,#f5f3ff);
}

.afn-header-inner{
  position:relative;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:24px;
  align-items:center;
  min-height:86px;
  padding:18px 0 20px;
}

.afn-branding{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.afn-logo-badge{
  width:44px;
  height:44px;
  border-radius:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--afn-fuchsia) 0%,var(--afn-pink) 100%);
  color:#fff;
  font-weight:900;
  box-shadow:0 18px 40px -24px rgba(192,38,211,.45);
}

.afn-logo-badge-small{
  width:38px;
  height:38px;
  border-radius:14px;
  font-size:.95rem;
}

.afn-brand-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.afn-site-title{
  font-size:1.1rem;
  font-weight:900;
  letter-spacing:-.03em;
}

.afn-site-tagline{
  margin:0;
  color:var(--afn-text-soft);
  font-size:.82rem;
}

.afn-header-right{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:14px;
}

.afn-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
}

.afn-header-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:16px;
  border:1px solid rgba(217,70,239,.1);
  font-size:.84rem;
  font-weight:800;
  box-shadow:0 12px 24px -22px rgba(15,23,42,.18);
}

.afn-header-pill-soft{
  background:rgba(255,255,255,.76);
  color:var(--afn-text);
}

.afn-header-pill-primary{
  background:linear-gradient(135deg,#c026d3,#8b5cf6);
  color:#fff;
  border-color:transparent;
}

.afn-search-form{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 8px 6px 12px;
  border:1px solid var(--afn-border);
  border-radius:999px;
  background:rgba(255,255,255,.76);
  box-shadow:0 10px 28px -24px rgba(15,23,42,.2);
}

.afn-search-field{
  width:110px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--afn-text);
  font-size:.9rem;
  font-weight:600;
}

.afn-search-submit{
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,var(--afn-fuchsia) 0%,var(--afn-pink) 100%);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.afn-primary-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  position:relative;
}

.afn-menu-premium,
.afn-menu-premium .sub-menu{
  list-style:none;
  margin:0;
  padding:0;
}

.afn-menu-premium{
  display:flex;
  align-items:center;
  gap:8px;
}

.afn-menu-premium > li{
  position:relative;
}

.afn-menu-premium > li > a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:12px 16px;
  border-radius:16px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(217,70,239,.1);
  color:var(--afn-text);
  font-size:.92rem;
  font-weight:800;
  box-shadow:0 14px 30px -24px rgba(15,23,42,.18);
}

.afn-menu-premium > li > a:hover{
  box-shadow:0 20px 40px -28px rgba(192,38,211,.35);
}

.afn-menu-premium > li.current-menu-item > a,
.afn-menu-premium > li.current-menu-ancestor > a,
.afn-menu-premium > li.current_page_item > a{
  background:linear-gradient(135deg,#fdf4ff,#f5f3ff);
  border-color:rgba(192,38,211,.16);
  color:#7c2d92;
}

.afn-menu-premium > li.menu-item-has-children > a:after{
  content:"▾";
  font-size:.72rem;
  opacity:.6;
  color:#9f5cff;
}

.afn-menu-premium .sub-menu{
  position:absolute;
  left:0;
  top:calc(100% + 12px);
  min-width:320px;
  padding:14px;
  border-radius:24px;
  background:rgba(255,255,255,.985);
  border:1px solid rgba(217,70,239,.1);
  box-shadow:0 28px 60px -28px rgba(15,23,42,.24);
  backdrop-filter:blur(20px);
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index:90;
}

.afn-menu-premium .sub-menu li:last-child:nth-child(odd){
  grid-column:1 / -1;
}

.afn-menu-premium .sub-menu a{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  min-height:74px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(135deg,#fff,#fbf5ff);
  border:1px solid rgba(217,70,239,.08);
  color:var(--afn-text);
  font-weight:700;
  line-height:1.45;
  box-shadow:0 10px 24px -20px rgba(15,23,42,.16);
}

.afn-menu-premium .sub-menu a:hover,
.afn-menu-premium .sub-menu .current-menu-item > a,
.afn-menu-premium .sub-menu .current_page_item > a{
  color:var(--afn-fuchsia-strong);
  background:var(--afn-violet-soft);
}

.afn-menu-premium > li:hover > .sub-menu,
.afn-menu-premium > li:focus-within > .sub-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.afn-menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:auto;
  height:48px;
  padding:0 14px 0 12px;
  border:1px solid var(--afn-border);
  border-radius:16px;
  background:rgba(255,255,255,.78);
  box-shadow:0 12px 28px -24px rgba(15,23,42,.25);
  cursor:pointer;
}

.afn-menu-toggle-label{
  color:var(--afn-text);
  font-size:.84rem;
  font-weight:800;
}

.afn-menu-toggle-box{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.afn-menu-toggle-bar{
  display:block;
  width:18px;
  height:2px;
  background:var(--afn-text);
  border-radius:999px;
  transition:transform .2s ease, opacity .2s ease;
}

.afn-menu-toggle.is-open .afn-menu-toggle-bar:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}

.afn-menu-toggle.is-open .afn-menu-toggle-bar:nth-child(2){
  opacity:0;
}

.afn-menu-toggle.is-open .afn-menu-toggle-bar:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

.afn-nav-utility-card{
  display:none;
  min-width:260px;
}

.afn-nav-utility-card h3{
  margin:8px 0;
  font-size:1.05rem;
}

.afn-nav-utility-card p{
  margin:0 0 12px;
  color:var(--afn-subtle);
  font-size:.92rem;
  line-height:1.65;
}

.afn-nav-utility-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.afn-nav-utility-grid a{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.82);
  color:var(--afn-text);
  font-size:.82rem;
  font-weight:800;
}

/* =========================================================
   TEMPLATE LAYOUT
========================================================= */

.afn-default-template{
  padding:40px 0 60px;
}

.afn-content-wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:24px;
  align-items:start;
}

.afn-content-wrap-full{
  grid-template-columns:minmax(0,1fr);
}

.afn-content-wrap-premium{
  padding-top:18px;
  padding-bottom:68px;
  gap:36px;
}

.afn-main-column{
  min-width:0;
  width:100%;
}

.afn-main-column > section:first-child{
  margin-top:0;
}

.afn-sidebar{
  position:sticky;
  top:118px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.afn-sidebar-premium{
  gap:20px;
}

.afn-sidebar-premium .afn-widget,
.afn-sidebar-intro,
.afn-sidebar-intro-premium,
.afn-sidebar-intro-article{
  border-radius:28px;
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(248,243,255,.92));
  border:1px solid rgba(217,70,239,.08);
  box-shadow:0 18px 40px -30px rgba(15,23,42,.14);
}

.afn-sidebar-intro,
.afn-sidebar-intro-premium,
.afn-sidebar-intro-article{
  padding:22px;
}

.afn-sidebar-premium .afn-widget{
  padding:22px;
}

.afn-sidebar-premium .afn-widget + .afn-widget{
  margin-top:20px;
}

.afn-sidebar-premium .afn-widget ul{
  list-style:none;
  padding-left:0;
  margin:0;
}

.afn-sidebar-premium .afn-widget li + li{
  margin-top:10px;
}

.afn-sidebar-premium .afn-widget a{
  display:block;
  padding:10px 12px;
  border-radius:16px;
  background:linear-gradient(90deg,#fff,#fbf5ff);
  border:1px solid var(--afn-border);
  font-weight:700;
}

.afn-sidebar-premium .afn-widget a:hover{
  color:var(--afn-fuchsia-strong);
}

/* =========================================================
   CARDS / WIDGETS / GENERIC SURFACES
========================================================= */

.afn-archive-card,
.afn-single-card,
.afn-widget,
.afn-soft-card,
.afn-panel,
.afn-comments{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.9);
  border-radius:var(--afn-radius);
  box-shadow:var(--afn-shadow);
}

.afn-soft-card,
.afn-archive-card-premium,
.afn-related-card-premium,
.afn-home-strip-card,
.afn-home-quick-card,
.afn-tool-card,
.afn-dashboard-card,
.afn-platform-card,
.afn-feature-card,
.afn-editorial-mini{
  transition:transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}

.afn-soft-card:hover,
.afn-archive-card-premium:hover,
.afn-related-card-premium:hover,
.afn-home-strip-card:hover,
.afn-home-quick-card:hover,
.afn-tool-card:hover,
.afn-dashboard-card:hover,
.afn-platform-card:hover,
.afn-feature-card:hover,
.afn-editorial-mini:hover{
  transform:translateY(-3px);
}

.afn-panel{
  padding:24px;
}

.afn-panel h2{
  margin:0 0 14px;
  font-size:1.3rem;
}

.afn-focus-list{
  margin:0;
  padding-left:18px;
  color:var(--afn-text-soft);
}

.afn-focus-list li + li{
  margin-top:10px;
}

.afn-focus-list-numbered{
  list-style:none;
  padding:0;
  counter-reset:item;
}

.afn-focus-list-numbered li{
  position:relative;
  padding-left:36px;
}

.afn-focus-list-numbered li:before{
  counter-increment:item;
  content:counter(item, decimal-leading-zero);
  position:absolute;
  left:0;
  top:0;
  width:24px;
  height:24px;
  border-radius:999px;
  background:var(--afn-fuchsia-50);
  color:var(--afn-fuchsia-strong);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.72rem;
  font-weight:900;
}

.afn-panel-focus{
  padding:20px;
}

.afn-panel-tabs,
.afn-band-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.afn-panel-tabs{
  margin-bottom:14px;
}

.afn-panel-tabs span,
.afn-band-tabs span{
  display:inline-flex;
  padding:9px 13px;
  border-radius:999px;
  background:var(--afn-violet-soft);
  color:var(--afn-text-soft);
  font-size:.76rem;
  font-weight:800;
}

.afn-panel-tabs .is-active,
.afn-band-tabs .is-active{
  background:linear-gradient(135deg,var(--afn-fuchsia) 0%,var(--afn-pink) 100%);
  color:#fff;
}

.afn-panel-gradient{
  background:linear-gradient(135deg,var(--afn-fuchsia) 0%,var(--afn-pink) 45%,var(--afn-violet) 100%);
  color:#fff;
}

.afn-panel-gradient h3{
  margin:16px 0 0;
  font-size:1.5rem;
  line-height:1.1;
  letter-spacing:-.03em;
}

.afn-gradient-pill-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}

.afn-gradient-pill-grid span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  border-radius:18px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  font-size:.82rem;
  font-weight:800;
  text-align:center;
}

.afn-card-grid{
  display:grid;
  gap:20px;
}

.afn-card-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.afn-card-grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.afn-card-grid-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.afn-comments{
  margin-top:28px;
  padding:24px;
}

.afn-comments h2{
  margin-top:0;
}

.afn-comment-list{
  padding-left:20px;
}

.afn-pagination{
  margin-top:28px;
}

/* =========================================================
   HOME / STARTSEITE
========================================================= */

.afn-home-app-shell{
  padding:28px 0 64px;
}

.afn-home-app-topbar{
  width:min(var(--afn-container), calc(100% - 32px));
  margin:0 auto 18px;
  display:flex;
  gap:12px;
  overflow:auto;
  padding-bottom:4px;
}

.afn-market-pill{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:linear-gradient(90deg,#fff 0%,#fbf5ff 100%);
  border:1px solid var(--afn-border);
  box-shadow:0 10px 28px -24px rgba(15,23,42,.22);
  font-size:.88rem;
  font-weight:700;
}

.afn-market-pill span{
  color:var(--afn-text-soft);
}

.afn-market-pill .is-up{
  color:var(--afn-green);
}

.afn-market-pill .is-down{
  color:var(--afn-red);
}

.afn-home-hero{
  width:min(var(--afn-container), calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.6fr) 360px;
  gap:24px;
  align-items:start;
}

.afn-home-hero-main{
  position:relative;
  overflow:hidden;
  padding:42px 42px 34px;
  border-radius:40px;
  background:linear-gradient(135deg,#fff 0%,#fff8ff 45%,#f4efff 100%);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:var(--afn-shadow-magenta);
}

.afn-home-hero-main:before,
.afn-home-hero-main:after{
  content:"";
  position:absolute;
  border-radius:999px;
  filter:blur(72px);
  pointer-events:none;
}

.afn-home-hero-main:before{
  right:-80px;
  top:-70px;
  width:240px;
  height:240px;
  background:rgba(217,70,239,.18);
}

.afn-home-hero-main:after{
  left:35%;
  bottom:-90px;
  width:260px;
  height:260px;
  background:rgba(139,92,246,.14);
}

.afn-home-hero-main h1{
  margin:18px 0 0;
  font-size:clamp(2.4rem,5vw,5.4rem);
  line-height:1.02;
  letter-spacing:-.06em;
}

.afn-home-hero-main p{
  margin:20px 0 0;
  max-width:760px;
  color:var(--afn-text-soft);
  font-size:1.08rem;
}

.afn-home-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:28px;
}

.afn-home-hero-side{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.afn-home-quick-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:28px;
}

.afn-home-quick-card{
  padding:18px;
  border-radius:24px;
  background:rgba(255,255,255,.68);
  border:1px solid rgba(255,255,255,.86);
  box-shadow:0 18px 42px -30px rgba(15,23,42,.18);
  backdrop-filter:blur(16px);
}

.afn-home-quick-card h3{
  margin:0 0 8px;
  font-size:1rem;
}

.afn-home-quick-card p{
  margin:0;
  color:var(--afn-text-soft);
  font-size:.92rem;
}

.afn-home-band{
  width:min(var(--afn-container), calc(100% - 32px));
  margin:28px auto 0;
  padding:28px;
  border-radius:36px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.86);
  box-shadow:var(--afn-shadow);
  backdrop-filter:blur(16px);
}

.afn-home-band-trust{
  background:linear-gradient(180deg,rgba(255,255,255,.78) 0%,rgba(248,245,255,.88) 100%);
}

.afn-trust-card{
  position:relative;
}

.afn-trust-card:before{
  content:"";
  display:block;
  width:46px;
  height:46px;
  border-radius:16px;
  margin-bottom:14px;
  background:linear-gradient(135deg,var(--afn-fuchsia-50) 0%,var(--afn-violet-soft) 100%);
}

.afn-home-strip{
  padding:14px 0 8px;
}

.afn-home-strip-grid{
  width:min(var(--afn-container), calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:1.4fr repeat(3,minmax(0,1fr));
  gap:18px;
}

.afn-home-strip-grid-archive{
  width:100%;
  grid-template-columns:1.45fr repeat(2,minmax(0,1fr));
}

.afn-home-strip-card{
  padding:22px;
  border-radius:28px;
  min-height:100%;
}

.afn-home-strip-card.is-highlight{
  background:linear-gradient(135deg,#fff 0%,#fff8ff 45%,#f4efff 100%);
  box-shadow:var(--afn-shadow-magenta);
}

.afn-home-strip-card h3{
  margin:10px 0 8px;
  font-size:1.18rem;
  line-height:1.12;
  letter-spacing:-.03em;
}

.afn-home-strip-card p{
  margin:0;
  color:var(--afn-text-soft);
}

.afn-editorial-grid{
  display:grid;
  grid-template-columns:1.3fr .9fr;
  gap:20px;
}

.afn-editorial-lead{
  padding:30px;
  border-radius:32px;
  background:linear-gradient(135deg,#fff 0%,#fff8ff 42%,#f4efff 100%);
}

.afn-editorial-lead h3{
  margin:16px 0 12px;
  font-size:clamp(1.6rem,2.4vw,2.5rem);
  line-height:1.05;
  letter-spacing:-.04em;
}

.afn-editorial-lead p{
  margin:0 0 16px;
  max-width:55ch;
  color:var(--afn-text-soft);
}

.afn-editorial-side{
  display:grid;
  gap:18px;
}

.afn-editorial-mini{
  padding:22px;
  border-radius:28px;
}

.afn-editorial-mini h3{
  margin:0 0 8px;
  font-size:1.08rem;
  line-height:1.12;
}

.afn-editorial-mini p{
  margin:0;
  color:var(--afn-text-soft);
}

.afn-feature-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}

.afn-feature-card{
  display:grid;
  grid-template-columns:170px 1fr;
  gap:20px;
  padding:22px;
  border-radius:28px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:var(--afn-shadow);
}

.afn-feature-visual{
  min-height:160px;
  border-radius:22px;
  background:linear-gradient(135deg,#fdf4ff 0%,#fce7f3 55%,#ffffff 100%);
}

.afn-feature-visual-alt{
  background:linear-gradient(135deg,#f5f3ff 0%,#ffffff 45%,#fdf4ff 100%);
}

.afn-feature-tag{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background:var(--afn-fuchsia-50);
  color:var(--afn-fuchsia-strong);
  font-size:.75rem;
  font-weight:800;
}

.afn-feature-card h3{
  margin:14px 0 10px;
  font-size:1.35rem;
  line-height:1.12;
  letter-spacing:-.03em;
}

.afn-feature-card p{
  margin:0;
  color:var(--afn-text-soft);
}

.afn-tool-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.afn-tool-grid-archive{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.afn-tool-card{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:100%;
  padding:24px;
  border-radius:30px;
}

.afn-tool-card h3{
  margin:0;
  font-size:1.18rem;
  line-height:1.1;
  letter-spacing:-.03em;
}

.afn-tool-card p{
  margin:0;
  color:var(--afn-text-soft);
}

.afn-topic-chip-grid{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.afn-topic-chip-grid-archive{
  margin-top:24px;
}

.afn-home-closing-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:28px;
  padding:34px;
  border-radius:36px;
  background:linear-gradient(135deg,#fff 0%,#fff8ff 44%,#f5f0ff 100%);
  border:1px solid rgba(255,255,255,.88);
  box-shadow:var(--afn-shadow-magenta);
}

.afn-home-closing-card h2{
  margin:14px 0 10px;
  max-width:14ch;
  font-size:clamp(1.9rem,3vw,3.2rem);
  line-height:1.04;
  letter-spacing:-.05em;
}

.afn-home-closing-card p{
  margin:0;
  max-width:60ch;
  color:var(--afn-text-soft);
}

.afn-home-actions-closing{
  margin-top:0;
  justify-content:flex-end;
  min-width:260px;
}

.afn-dashboard-grid{
  display:grid;
  grid-template-columns:1.25fr repeat(3,minmax(0,1fr));
  gap:18px;
}

.afn-dashboard-grid-archive{
  grid-template-columns:1.4fr repeat(2,minmax(0,1fr));
  margin-top:0;
}

.afn-dashboard-card,
.afn-platform-card{
  position:relative;
  overflow:hidden;
}

.afn-dashboard-card:before,
.afn-platform-card:before{
  content:"";
  position:absolute;
  inset:auto -20% -35% auto;
  width:180px;
  height:180px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(217,70,239,.16),transparent 70%);
  pointer-events:none;
}

.afn-dashboard-card.is-primary{
  background:linear-gradient(135deg,#fff,#fff7ff 40%,#f5f3ff);
  box-shadow:0 26px 70px -38px rgba(192,38,211,.35);
}

.afn-dashboard-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.afn-dashboard-links a{
  display:inline-flex;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(217,70,239,.12);
  color:var(--afn-text);
  font-size:.8rem;
  font-weight:800;
}

.afn-platform-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

/* =========================================================
   HERO / BREADCRUMBS / PREMIUM CONTENT TEMPLATES
========================================================= */

.afn-template-hero{
  padding:22px 0 18px;
}

.afn-template-hero-archive-extended{
  padding-bottom:10px;
}

.afn-template-hero-card{
  position:relative;
  overflow:hidden;
  padding:32px 34px;
  border-radius:40px;
  border:1px solid rgba(255,255,255,.88);
  background:linear-gradient(135deg,#fff 0%,#fff8ff 42%,#f4efff 100%);
  box-shadow:var(--afn-shadow-magenta);
}

.afn-template-hero-card-archive{
  padding-bottom:26px;
}

.afn-template-title{
  margin:16px 0 0;
  font-size:clamp(2.2rem,4.8vw,4.4rem);
  line-height:1.02;
  letter-spacing:-.06em;
}

.afn-template-title-article{
  max-width:980px;
}

.afn-template-lead{
  margin:18px 0 0;
  max-width:960px;
  color:var(--afn-text-soft);
  font-size:1.08rem;
}

.afn-template-lead-compact{
  max-width:760px;
  font-size:1rem;
}

.afn-breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:0 0 18px;
  color:var(--afn-text-soft);
  font-size:.88rem;
  font-weight:600;
}

.afn-breadcrumbs a{
  color:var(--afn-text-soft);
}

.afn-breadcrumbs a:hover{
  color:var(--afn-fuchsia-strong);
}

.afn-template-hero-card .afn-breadcrumbs{
  margin-bottom:18px;
}

.afn-template-utility-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:24px;
}

.afn-template-utility-card{
  padding:18px 18px 16px;
  border-radius:22px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(217,70,239,.1);
  box-shadow:var(--afn-shadow-soft);
}

.afn-template-utility-card strong{
  display:block;
  margin-top:8px;
  font-size:1rem;
  line-height:1.25;
  letter-spacing:-.02em;
}

.afn-template-utility-card p{
  margin:6px 0 0;
  color:var(--afn-text-soft);
  font-size:.92rem;
  line-height:1.65;
}

.afn-reader-toolbar{
  position:sticky;
  top:110px;
  z-index:8;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 18px;
}

.afn-toolbar-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(217,70,239,.12);
  background:rgba(255,255,255,.84);
  color:var(--afn-text);
  font-size:.84rem;
  font-weight:800;
  box-shadow:0 14px 30px -26px rgba(15,23,42,.18);
}

.afn-toolbar-pill-soft{
  background:linear-gradient(135deg,#fbf5ff,#f5f3ff);
}

.afn-key-points-box{
  margin:0 0 30px;
  padding:24px 24px 22px;
  border-radius:28px;
  background:linear-gradient(135deg,#fff8ff,#f6f2ff);
  border:1px solid rgba(217,70,239,.12);
  box-shadow:0 20px 40px -30px rgba(139,92,246,.22);
}

.afn-key-points-title{
  margin:12px 0 12px;
  font-size:1.45rem;
  line-height:1.12;
  letter-spacing:-.03em;
}

.afn-key-points-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.afn-key-points-list li{
  position:relative;
  padding-left:22px;
  color:var(--afn-text-soft);
  font-weight:600;
}

.afn-key-points-list li:before{
  content:"";
  position:absolute;
  left:0;
  top:.62em;
  width:10px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--afn-fuchsia),var(--afn-violet));
  box-shadow:0 0 0 6px rgba(217,70,239,.08);
}

.afn-archive-card{
  overflow:hidden;
  margin-bottom:24px;
}

.afn-archive-card-premium{
  display:flex;
  flex-direction:column;
  height:100%;
  overflow:hidden;
  border-radius:32px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(217,70,239,.08);
  box-shadow:0 22px 60px -34px rgba(15,23,42,.16);
}

.afn-archive-card-premium.is-featured{
  grid-column:span 2;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  align-items:stretch;
}

.afn-archive-thumb,
.afn-archive-thumb-premium,
.afn-related-thumb{
  display:block;
  overflow:hidden;
  background:linear-gradient(135deg,#fdf4ff,#f5f3ff);
}

.afn-archive-thumb-premium img,
.afn-related-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}

.afn-archive-card-premium:hover .afn-archive-thumb-premium img,
.afn-related-card-premium:hover .afn-related-thumb img{
  transform:scale(1.03);
}

.afn-archive-content{
  padding:22px;
}

.afn-archive-content-premium{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:26px;
}

.afn-entry-title{
  margin:8px 0 12px;
  font-size:1.8rem;
  line-height:1.12;
  letter-spacing:-.03em;
}

.afn-entry-title a:hover{
  color:var(--afn-fuchsia-strong);
}

.afn-entry-title-premium{
  margin:0;
  font-size:clamp(1.4rem,2vw,2rem);
}

.afn-entry-excerpt{
  color:var(--afn-text-soft);
}

.afn-entry-excerpt-premium{
  font-size:.98rem;
  color:var(--afn-text-soft);
}

.afn-archive-footer-row{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.afn-post-meta{
  margin:0;
  color:var(--afn-text-soft);
  font-size:.9rem;
}

.afn-single-card{
  padding:28px;
}

.afn-page-card-premium,
.afn-single-card-premium{
  padding:0;
  overflow:hidden;
  border-radius:32px;
  background:rgba(255,255,255,.94);
}

.afn-single-title{
  margin:10px 0 0;
  font-size:clamp(2rem,4vw,3.4rem);
  line-height:1.05;
  letter-spacing:-.05em;
}

.afn-single-thumbnail{
  margin:24px 0;
  border-radius:20px;
  overflow:hidden;
}

.afn-single-thumbnail-premium{
  margin:28px 28px 0;
  border-radius:28px;
  overflow:hidden;
}

.afn-single-thumbnail-hero{
  margin-top:26px;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 20px 50px -30px rgba(15,23,42,.22);
}

.afn-single-thumbnail-premium img,
.afn-single-thumbnail-hero img{
  width:100%;
  object-fit:cover;
}

.afn-single-content{
  font-size:1.02rem;
}

.afn-single-content-premium{
  padding:38px 46px 46px;
}

.afn-single-content > *:first-child{
  margin-top:0;
}

.afn-prose-surface{
  max-width:none;
  font-size:1.08rem;
  line-height:1.95;
}

.afn-prose-surface > *{
  max-width:100%;
}

.afn-prose-surface > * + *{
  margin-top:1.15em;
}

.afn-prose-surface h2,
.afn-prose-surface h3,
.afn-prose-surface h4,
.afn-prose-surface h5{
  max-width:24ch;
  line-height:1.15;
  letter-spacing:-.03em;
}

.afn-prose-surface h2{
  margin-top:2.2em;
  margin-bottom:.55em;
  font-size:clamp(1.7rem,2.4vw,2.35rem);
}

.afn-prose-surface h3{
  margin-top:1.8em;
  margin-bottom:.55em;
  font-size:clamp(1.35rem,2vw,1.8rem);
}

.afn-prose-surface ul,
.afn-prose-surface ol{
  padding-left:1.25rem;
}

.afn-prose-surface blockquote{
  margin:1.8rem 0;
  padding:18px 20px;
  border-left:4px solid var(--afn-fuchsia);
  border-radius:18px;
  background:linear-gradient(135deg,#fff8ff,#f8f5ff);
  color:var(--afn-text);
}

.afn-prose-surface img{
  width:100%;
  border-radius:22px;
}

.afn-related-posts{
  margin-top:32px;
}

.afn-related-posts h2{
  margin:0 0 18px;
  font-size:1.6rem;
}

.afn-related-posts-premium{
  margin-top:38px;
}

.afn-related-card h3{
  margin:0 0 10px;
  font-size:1.05rem;
}

.afn-related-card h3 a:hover{
  color:var(--afn-fuchsia-strong);
}

.afn-related-card-premium{
  padding:0;
  overflow:hidden;
  border-radius:28px;
}

.afn-related-body{
  padding:18px 18px 20px;
}

.afn-pagination-premium .nav-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.afn-pagination-premium .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  padding:12px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--afn-border);
  box-shadow:0 10px 28px -24px rgba(15,23,42,.25);
  font-weight:700;
}

.afn-pagination-premium .page-numbers.current,
.afn-pagination-premium .page-numbers:hover{
  background:linear-gradient(135deg,var(--afn-fuchsia),var(--afn-pink));
  color:#fff;
  border-color:transparent;
}

.afn-empty-state-premium{
  padding:36px;
  border-radius:32px;
}

/* =========================================================
   FORMS
========================================================= */

.comment-form input:not([type="submit"]),
.comment-form textarea,
.search-form input[type="search"]{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--afn-border);
  background:#fff;
}

.comment-form input[type="submit"],
.search-form input[type="submit"]{
  padding:12px 18px;
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg,var(--afn-fuchsia) 0%,var(--afn-pink) 100%);
  color:#fff;
  font-weight:700;
}

/* =========================================================
   CATEGORY PAGE PREMIUM
========================================================= */

.afn-category-page-premium .afn-template-hero-card-category{
  max-width:100%;
  padding:36px 36px 30px;
  border-radius:38px;
  background:
    radial-gradient(circle at top right, rgba(217,70,239,.14), transparent 28%),
    radial-gradient(circle at 20% 100%, rgba(139,92,246,.12), transparent 24%),
    linear-gradient(135deg,#fff 0%,#fff8ff 42%,#f4efff 100%);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:var(--afn-shadow-magenta);
}

.afn-category-page-premium .afn-template-lead{
  max-width:920px;
}

.afn-category-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.afn-category-subcats-section,
.afn-category-posts-section,
.afn-category-topcats-section,
.afn-category-tags-section{
  margin-top:34px;
}

.afn-subcategory-grid,
.afn-topcategory-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}

.afn-subcategory-card,
.afn-topcategory-card{
  position:relative;
  overflow:hidden;
  padding:24px;
  border-radius:28px;
  background:linear-gradient(135deg,rgba(255,255,255,.94) 0%,rgba(248,243,255,.92) 100%);
  border:1px solid rgba(217,70,239,.1);
  box-shadow:0 20px 46px -34px rgba(15,23,42,.16);
}

.afn-subcategory-card:hover,
.afn-topcategory-card:hover{
  transform:translateY(-4px);
  box-shadow:0 26px 60px -34px rgba(139,92,246,.30);
}

.afn-subcategory-card:before,
.afn-topcategory-card:before{
  content:"";
  position:absolute;
  inset:auto -42px -42px auto;
  width:120px;
  height:120px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(217,70,239,.12),rgba(217,70,239,0));
  pointer-events:none;
}

.afn-subcategory-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.afn-subcategory-title,
.afn-topcategory-title{
  margin:0 0 10px;
  font-size:1.32rem;
  line-height:1.12;
  letter-spacing:-.03em;
}

.afn-subcategory-title a,
.afn-topcategory-title a{
  color:var(--afn-slate-950);
}

.afn-subcategory-title a:hover,
.afn-topcategory-title a:hover{
  color:var(--afn-fuchsia-strong);
}

.afn-subcategory-excerpt,
.afn-topcategory-excerpt{
  margin:0 0 14px;
  color:var(--afn-slate-600);
  line-height:1.75;
  font-size:.96rem;
}

.afn-tag-cloud-premium{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.afn-category-posts-section .afn-card-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.afn-category-posts-section .afn-archive-card-premium{
  border-radius:30px;
}

.afn-category-posts-section .afn-archive-card-premium.is-featured{
  grid-column:span 2;
  display:grid;
  grid-template-columns:1.15fr 1fr;
  align-items:stretch;
  min-height:100%;
}

.afn-category-posts-section .afn-archive-card-premium.is-featured .afn-archive-content-premium{
  padding:30px;
}

.afn-category-posts-section .afn-archive-card-premium.is-featured .afn-entry-title-premium{
  font-size:clamp(1.8rem,2.8vw,2.5rem);
  line-height:1.05;
}

.afn-category-posts-section .afn-sidebar-archive-premium{
  gap:20px;
}

/* =========================================================
   FOOTER REWORK – INVESTING STYLE
========================================================= */

.afn-site-footer,
.afn-site-footer-investing{
  margin-top:64px;
  background:linear-gradient(180deg,#24112d 0%,#1b0f24 45%,#120a18 100%);
  border-top:1px solid rgba(255,255,255,.06);
  color:#f8f5ff;
  padding:0 0 24px;
}

.afn-site-footer:not(.afn-site-footer-investing){
  color:#f8f5ff;
}

.afn-footer-shell{
  position:relative;
  overflow:hidden;
}

.afn-footer-shell:before{
  content:"";
  position:absolute;
  inset:-120px auto auto -120px;
  width:320px;
  height:320px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(192,38,211,.18), rgba(192,38,211,0) 68%);
  pointer-events:none;
}

.afn-footer-shell:after{
  content:"";
  position:absolute;
  inset:auto -140px -120px auto;
  width:360px;
  height:360px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(139,92,246,.16), rgba(139,92,246,0) 70%);
  pointer-events:none;
}

.afn-footer-topbar{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  padding:34px 0 28px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.afn-footer-topbar-copy{
  max-width:840px;
}

.afn-footer-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
  color:#f7d7ff;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.afn-footer-topbar-copy h2{
  margin:14px 0 10px;
  color:#fff;
  font-size:clamp(1.9rem,3vw,3rem);
  line-height:1.02;
  letter-spacing:-.04em;
}

.afn-footer-topbar-copy p{
  margin:0;
  color:rgba(248,245,255,.74);
  font-size:1rem;
  line-height:1.8;
}

.afn-footer-topbar-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.afn-footer-topbar-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:16px;
  font-size:.9rem;
  font-weight:800;
}

.afn-footer-topbar-btn-primary{
  background:linear-gradient(135deg,var(--afn-fuchsia) 0%,var(--afn-pink) 100%);
  color:#fff;
  box-shadow:0 20px 40px -22px rgba(192,38,211,.4);
}

.afn-footer-topbar-btn-secondary{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
  color:#fff;
}

.afn-footer-grid-investing{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.25fr repeat(4,minmax(0,1fr));
  gap:28px;
  padding:30px 0 20px;
}

.afn-footer-brand-block{
  padding:22px;
  border-radius:26px;
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 20px 50px -36px rgba(0,0,0,.35);
}

.afn-footer-brand-row{
  display:flex;
  align-items:flex-start;
  gap:14px;
}

.afn-footer-brand-title{
  display:block;
  color:#fff;
  font-size:1rem;
  line-height:1.1;
}

.afn-footer-brand-text{
  margin:6px 0 0;
  color:rgba(248,245,255,.72);
  font-size:.94rem;
  line-height:1.7;
}

.afn-footer-brand-pills{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:16px;
}

.afn-footer-brand-pills span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
  color:#f7d7ff;
  font-size:.78rem;
  font-weight:800;
}

.afn-footer-link-column h3{
  margin:0 0 14px;
  color:#fff;
  font-size:1rem;
  line-height:1.15;
  letter-spacing:-.02em;
}

.afn-footer-links-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}

.afn-footer-links-list li{
  margin:0;
}

.afn-footer-links-list a{
  color:rgba(248,245,255,.72);
  font-size:.94rem;
  line-height:1.6;
  transition:color .22s ease, transform .22s ease;
}

.afn-footer-links-list a:hover{
  color:#fff;
}

.afn-footer-bottom-investing{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  padding:20px 0 0;
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(248,245,255,.64);
  font-size:.9rem;
}

.afn-footer-bottom-investing p{
  margin:0;
}

.afn-footer-bottom-right{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.afn-footer-bottom-right a{
  color:rgba(248,245,255,.72);
  transition:color .22s ease;
}

.afn-footer-bottom-right a:hover{
  color:#fff;
}

/* =========================================================
   MOTION
========================================================= */

.afn-home-hero-main,
.afn-home-hero-side .afn-panel,
.afn-template-hero-card,
.afn-footer-topbar,
.afn-footer-brand-block{
  animation:afnFadeUp .7s ease both;
}

.afn-home-hero-side .afn-panel:nth-child(2){
  animation-delay:.08s;
}

@keyframes afnFadeUp{
  from{
    opacity:0;
    transform:translateY(12px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@media (prefers-reduced-motion:reduce){
  .afn-site-header,
  .afn-home-hero-main,
  .afn-home-hero-side .afn-panel,
  .afn-template-hero-card,
  .afn-footer-topbar,
  .afn-footer-brand-block,
  .afn-home-strip-card,
  .afn-topic-chip,
  .afn-btn,
  .afn-inline-link,
  .afn-dashboard-card,
  .afn-platform-card,
  .afn-archive-card-premium,
  .afn-related-card-premium{
    animation:none !important;
    transition:none !important;
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width:768px){
  .afn-menu-premium > li.menu-item-has-children:nth-last-child(-n+2) > .sub-menu{
    left:auto;
    right:0;
  }
}

@media (max-width:1200px){
  .afn-content-wrap{
    grid-template-columns:minmax(0,1fr) 270px;
    gap:20px;
  }

  .afn-single-content-premium{
    padding:34px 36px 40px;
  }

  .afn-menu-premium .sub-menu{
    min-width:280px;
  }
}

@media (max-width:1199px){
  .afn-home-hero{
    grid-template-columns:1fr;
  }

  .afn-card-grid-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .afn-card-grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .afn-header-right{
    grid-template-columns:minmax(0,1fr) auto;
  }

  .afn-header-actions{
    display:none;
  }

  .afn-home-quick-grid,
  .afn-feature-grid,
  .afn-home-strip-grid{
    grid-template-columns:1fr 1fr;
  }

  .afn-home-strip-grid-archive{
    grid-template-columns:1fr;
  }

  .afn-dashboard-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .afn-platform-grid,
  .afn-tool-grid,
  .afn-tool-grid-archive,
  .afn-editorial-grid{
    grid-template-columns:1fr;
  }

  .afn-subcategory-grid,
  .afn-topcategory-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .afn-archive-card-premium.is-featured,
  .afn-category-posts-section .afn-archive-card-premium.is-featured{
    grid-column:auto;
    grid-template-columns:1fr;
  }

  .afn-footer-grid-investing{
    grid-template-columns:1fr 1fr 1fr;
  }

  .afn-footer-brand-block{
    grid-column:1 / -1;
  }
}

@media (max-width:1024px){
  .afn-search-form{
    display:none;
  }
}

@media (max-width:991px){
  .afn-template-utility-row{
    grid-template-columns:1fr;
  }

  .afn-content-wrap{
    grid-template-columns:1fr;
  }

  .afn-content-wrap-premium{
    gap:28px;
  }

  .afn-sidebar{
    position:static;
  }

  .afn-reader-toolbar{
    top:86px;
  }
}

@media (max-width:767px){
  .afn-header-utility{
    display:none;
  }

  .afn-header-inner{
    grid-template-columns:1fr auto;
    gap:14px;
    min-height:auto;
    padding:14px 0 16px;
    align-items:center;
  }

  .afn-branding{
    width:auto;
    flex:1;
  }

  .afn-header-right{
    grid-template-columns:auto;
    justify-content:end;
    width:auto;
  }

  .afn-header-actions{
    display:none;
  }

  .afn-menu-toggle{
    display:inline-flex;
    margin-left:auto;
  }

  .afn-primary-nav{
    position:absolute;
    left:0;
    right:0;
    top:calc(100% + 8px);
    display:none;
    justify-content:stretch;
    z-index:80;
  }

  .afn-primary-nav.is-open{
    display:block;
  }

  .afn-menu-premium{
    display:block;
    padding:14px;
    border-radius:26px;
    background:rgba(255,255,255,.98);
    border:1px solid rgba(217,70,239,.12);
    box-shadow:0 28px 60px -28px rgba(15,23,42,.24);
  }

  .afn-menu-premium > li + li{
    margin-top:10px;
  }

  .afn-menu-premium > li > a{
    display:flex;
    width:100%;
    justify-content:space-between;
    border-radius:18px;
  }

  .afn-menu-premium .sub-menu{
    position:static;
    min-width:0;
    margin-top:10px;
    padding:0;
    border:0;
    background:transparent;
    box-shadow:none;
    display:none;
    opacity:1;
    visibility:visible;
    transform:none;
    grid-template-columns:1fr;
  }

  .afn-menu-premium .menu-item-has-children.is-open > .sub-menu{
    display:grid;
  }

  .afn-menu-premium .sub-menu a{
    min-height:0;
    padding:12px 14px;
    background:rgba(245,243,255,.85);
  }

  .afn-nav-utility-card{
    display:block;
    margin-top:12px;
    padding:16px;
    border-radius:22px;
    background:linear-gradient(135deg,#fff8ff,#f5f3ff);
    border:1px solid rgba(217,70,239,.1);
  }

  .afn-home-hero-main,
  .afn-home-band,
  .afn-panel,
  .afn-single-card,
  .afn-widget,
  .afn-comments,
  .afn-template-hero-card,
  .afn-home-closing-card,
  .afn-page-card-premium,
  .afn-single-card-premium{
    border-radius:24px;
  }

  .afn-home-hero-main{
    padding:26px;
  }

  .afn-template-title{
    font-size:clamp(2rem,8vw,3rem);
  }

  .afn-single-content-premium{
    padding:28px 22px 32px;
  }

  .afn-single-thumbnail-premium{
    margin:20px 20px 0;
  }

  .afn-reader-toolbar{
    position:static;
    margin-top:0;
  }

  .afn-card-grid-4,
  .afn-card-grid-3,
  .afn-card-grid-2,
  .afn-home-quick-grid,
  .afn-dashboard-grid,
  .afn-dashboard-grid-archive,
  .afn-platform-grid,
  .afn-feature-grid,
  .afn-home-strip-grid,
  .afn-home-strip-grid-archive,
  .afn-subcategory-grid,
  .afn-topcategory-grid,
  .afn-category-posts-section .afn-card-grid-2,
  .afn-footer-grid-investing{
    grid-template-columns:1fr;
  }

  .afn-home-actions{
    flex-direction:column;
  }

  .afn-btn{
    width:100%;
  }

  .afn-gradient-pill-grid{
    grid-template-columns:1fr;
  }

  .afn-feature-card{
    grid-template-columns:1fr;
  }

  .afn-home-closing-card{
    flex-direction:column;
    align-items:flex-start;
    padding:24px;
  }

  .afn-home-closing-card h2{
    max-width:none;
  }

  .afn-home-actions-closing{
    justify-content:flex-start;
    min-width:0;
  }

  .afn-footer-topbar,
  .afn-footer-bottom-investing{
    flex-direction:column;
    align-items:flex-start;
  }

  .afn-footer-bottom-right{
    gap:12px;
  }

  .afn-category-page-premium .afn-template-hero-card-category{
    padding:24px 22px 22px;
    border-radius:28px;
  }

  .afn-category-hero-meta{
    gap:8px;
  }

  .afn-category-subcats-section,
  .afn-category-posts-section,
  .afn-category-topcats-section,
  .afn-category-tags-section{
    margin-top:26px;
  }

  .afn-category-posts-section .afn-archive-card-premium.is-featured{
    grid-template-columns:1fr;
  }

  .afn-category-posts-section .afn-archive-card-premium.is-featured .afn-archive-content-premium{
    padding:24px;
  }
}
.afn-footer-logo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  flex:0 0 48px;
}

.afn-footer-logo-wrap .custom-logo-link{
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}

.afn-footer-logo-wrap .custom-logo{
  max-height:40px;
  width:auto;
  max-width:100%;
  object-fit:contain;
}
/* =========================================================
   LIGHT FOOTER REFINEMENT
========================================================= */

.afn-site-footer-light{
  background:
    linear-gradient(180deg, #fffafc 0%, #f9f4ff 42%, #f4efff 100%);
  border-top:1px solid rgba(192,38,211,.10);
  color:var(--afn-text);
}

.afn-site-footer-light .afn-footer-shell:before{
  background:radial-gradient(circle, rgba(192,38,211,.10), rgba(192,38,211,0) 68%);
}

.afn-site-footer-light .afn-footer-shell:after{
  background:radial-gradient(circle, rgba(139,92,246,.10), rgba(139,92,246,0) 70%);
}

.afn-site-footer-light .afn-footer-topbar{
  border-bottom:1px solid rgba(192,38,211,.10);
}

.afn-site-footer-light .afn-footer-badge{
  background:rgba(255,255,255,.7);
  border:1px solid rgba(192,38,211,.12);
  color:var(--afn-fuchsia-strong);
}

.afn-site-footer-light .afn-footer-topbar-copy h2{
  color:var(--afn-slate-950);
}

.afn-site-footer-light .afn-footer-topbar-copy p{
  color:var(--afn-text-soft);
}

.afn-site-footer-light .afn-footer-topbar-btn-secondary{
  background:rgba(255,255,255,.75);
  border:1px solid rgba(192,38,211,.12);
  color:var(--afn-text);
}

.afn-site-footer-light .afn-footer-brand-block{
  background:linear-gradient(135deg, rgba(255,255,255,.88), rgba(248,243,255,.92));
  border:1px solid rgba(192,38,211,.08);
  box-shadow:0 20px 50px -36px rgba(15,23,42,.12);
}

.afn-site-footer-light .afn-footer-brand-title{
  color:var(--afn-slate-950);
}

.afn-site-footer-light .afn-footer-brand-text{
  color:var(--afn-text-soft);
}

.afn-site-footer-light .afn-footer-brand-pills span{
  background:rgba(255,255,255,.8);
  border:1px solid rgba(192,38,211,.10);
  color:var(--afn-fuchsia-strong);
}

.afn-site-footer-light .afn-footer-link-column h3{
  color:var(--afn-slate-950);
}

.afn-site-footer-light .afn-footer-links-list a{
  color:var(--afn-text-soft);
}

.afn-site-footer-light .afn-footer-links-list a:hover{
  color:var(--afn-fuchsia-strong);
}

.afn-footer-risk-box{
  margin-top:10px;
  padding:24px 26px;
  border-radius:26px;
  background:linear-gradient(135deg, rgba(255,255,255,.88), rgba(248,243,255,.92));
  border:1px solid rgba(192,38,211,.08);
  box-shadow:0 18px 40px -30px rgba(15,23,42,.10);
}

.afn-footer-risk-box h3{
  margin:0 0 14px;
  color:var(--afn-slate-950);
  font-size:1.1rem;
  line-height:1.15;
  letter-spacing:-.02em;
}

.afn-footer-risk-box p{
  margin:0 0 12px;
  color:var(--afn-text-soft);
  font-size:.93rem;
  line-height:1.75;
}

.afn-footer-risk-box p:last-child{
  margin-bottom:0;
}

.afn-site-footer-light .afn-footer-bottom-investing{
  border-top:1px solid rgba(192,38,211,.10);
  color:var(--afn-text-soft);
}

.afn-site-footer-light .afn-footer-bottom-right a{
  color:var(--afn-text-soft);
}

.afn-site-footer-light .afn-footer-bottom-right a:hover{
  color:var(--afn-fuchsia-strong);
}