
/* Boxes */
.nf-ev-box{max-width:520px;margin:18px auto;padding:22px;border-radius:10px;background:#fff;box-shadow:0 6px 20px rgba(12,20,40,0.04);font-family:Tahoma,Arial,Helvetica,sans-serif;color:#222;direction:rtl}
.nf-ev-box h2{margin-top:0;color:#0e3a60}
.nf-ev-form input,.nf-form input{width:100%;padding:10px 12px;margin:8px 0;border:1px solid #e6e6e6;border-radius:6px;background:#fafafa}
.nf-form input:focus{outline:none;border-color:#cfd8e3;background:#fff}
.nf-form button{background:#1e73be;color:#fff;border:none;padding:10px 14px;border-radius:6px;cursor:pointer;font-weight:600;width:100%}
.nf-msg .nf-msg-ok{background:#e9f8ef;color:#0b6a3b;padding:10px;border-radius:6px;margin-bottom:12px}
.nf-msg .nf-msg-err{background:#fff6f6;color:#7a1a1a;padding:10px;border-radius:6px;margin-bottom:12px}
.nf-msg .nf-msg-loading{background:#f0f6ff;color:#0e3a60;padding:10px;border-radius:6px;margin-bottom:12px}
.nf-resend-btn{background:#f1f5f9;color:#0e3a60;border:1px solid #dbe7f3;padding:8px 12px;border-radius:6px;cursor:pointer}

/* ZERO-FLICKER */
body.logged-in a[href="https://neofablab.com/log-in"],
body.logged-in a[href="https://neofablab.com/log-in/"],
body.logged-in a[href="https://neofablab.com/register"],
body.logged-in a[href="https://neofablab.com/register/"]{display:none !important;}

/* Profile button (icon + label) */
.nf-profile-btn{display:inline-flex;align-items:center;gap:10px;background:#1e73be;color:#fff;text-decoration:none;padding:10px 14px;border-radius:999px;font-weight:600;line-height:1;box-shadow:0 6px 16px rgba(30,115,190,.18)}
.nf-profile-btn:hover{opacity:.92}

/* Bigger icon with gray circular background */
.nf-profile-icon{
  position:relative;display:inline-block;flex:0 0 28px;width:28px;height:28px;
  border-radius:50%;background:#e9edf3; /* gray circle bg */
}
.nf-profile-icon::after{
  content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:16px;height:16px;background:#ffffff;
  -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 12c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5zm0 2c-3.86 0-7 3.141-7 7h2c0-2.761 2.239-5 5-5s5 2.239 5 5h2c0-3.859-3.14-7-7-7z"/></svg>') no-repeat center / contain;
          mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 12c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5zm0 2c-3.86 0-7 3.141-7 7h2c0-2.761 2.239-5 5-5s5 2.239 5 5h2c0-3.859-3.14-7-7-7z"/></svg>') no-repeat center / contain;
}

.nf-profile-text{white-space:nowrap}

/* Logout button */
.nf-btn.logout{display:inline-block;text-decoration:none;background:#333;color:#fff;padding:8px 12px;border-radius:6px}

/* Responsive */
@media (max-width:720px){
  .nf-ev-box{padding:16px;margin:12px 12px}
  .nf-profile-btn{padding:8px 12px}
  .nf-profile-icon{width:26px;height:26px;flex-basis:26px}
  .nf-profile-icon::after{width:15px;height:15px}
}


/* v4.4.3 overrides: bigger icon + blue glyph */
.nf-profile-btn{ background:#1e73be; } /* ensure overall button blue */
.nf-profile-icon{
  width:34px; height:34px; flex:0 0 34px; background:#e3e8ef; border-radius:50%;
}
.nf-profile-icon::after{
  width:20px; height:20px; background:#1e73be; /* blue glyph for contrast */
}
@media (max-width:720px){
  .nf-profile-icon{ width:30px; height:30px; flex-basis:30px; }
  .nf-profile-icon::after{ width:18px; height:18px; }
}


/* Dropdown wrapper */
.nf-profile-dropdown{position:relative;display:inline-block}
.nf-caret{width:18px;height:18px;margin-right:8px;display:inline-block;background:#fff;-webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat center / contain;mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat center / contain;transition:transform .18s ease}
.nf-profile-dropdown.open .nf-caret{width:18px;height:18px;margin-right:8px;display:inline-block;background:#fff;-webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat center / contain;mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat center / contain;transition:transform .18s ease}

.nf-dropdown-menu{
  position:absolute; right:0; top:calc(100% + 8px); min-width:160px; z-index:9999;
  background:#fff; color:#111; border:1px solid #e6e6e6; border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.08); padding:8px; display:none;
}
.nf-profile-dropdown.open .nf-dropdown-menu{ display:block; }

.nf-dropdown-item{
  display:block; width:100%; text-align:right; padding:10px 12px; border-radius:8px;
  background:transparent; color:#111; text-decoration:none; border:none; cursor:pointer;
  font-family:inherit; font-size:14px;
}
.nf-dropdown-item:hover{ background:#f3f6fb; }

/* v4.4.5 overrides: larger font and caret */
.nf-profile-btn{ font-size:16px; padding:12px 16px; gap:12px; }
.nf-profile-text{ font-size:16px; }
.nf-caret{width:18px;height:18px;margin-right:8px;display:inline-block;background:#fff;-webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat center / contain;mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat center / contain;transition:transform .18s ease}
@media (max-width:720px){
  .nf-profile-btn{ font-size:15px; padding:10px 14px; gap:10px; }
  .nf-profile-text{ font-size:15px; }
  .nf-caret{width:18px;height:18px;margin-right:8px;display:inline-block;background:#fff;-webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat center / contain;mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat center / contain;transition:transform .18s ease}
}

/* v4.5.0: shortcode layout */
.nf-cards.nf-cards--shortcode{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:12px 0}
.nf-cards.nf-cards--shortcode .nf-card{text-align:center}
.nf-profile-btn[aria-expanded="true"] .nf-caret{transform:rotate(180deg)}
