/* ============================
   NyaySar Central (Global)
   V2 CLEAN — Stable + Conflict Free
   Header modes:
   - default: Logo + Login/SignUp
   - body.ns-authed: Logo + Logout
   - body.ns-min / body.ns-logo-only / body.ns-auth: Logo only
   Footer: unified
============================ */

/* ===== Theme Tokens ===== */
:root{
  --ns-bg:#f7f9fd;
  --ns-header:#0f2f55;
  --ns-footer:#0f2f55;
  --ns-accent:#f9a825;

  --ns-white:#ffffff;
  --ns-text:#101828;
  --ns-muted:#6b7785;

  --ns-maxw:1200px;
  --ns-pad:16px;
  --ns-radius:16px;

  /* tuned after looking at current header screenshot */
  --ns-logo-h:120px;
  --ns-header-h:126px;
}

/* ===== Base ===== */
*{ box-sizing:border-box; }

html,
body{
  height:100%;
}

body{
  margin:0;
  background:var(--ns-bg);
  color:var(--ns-text);
  font:15px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
  overflow-x:hidden;
}

[hidden]{
  display:none !important;
}

.ns-body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--ns-bg);
}

#site-footer{
  margin-top:auto;
}

.ns-container{
  max-width:var(--ns-maxw);
  margin:0 auto;
  padding:0 var(--ns-pad);
}

.ns-section{
  padding:18px 0;
}

.ns-section--alt{
  background:rgba(15,47,85,.03);
}

.ns-h1{
  margin:0 0 6px;
  color:var(--ns-header);
  font-size:28px;
  font-weight:800;
  line-height:1.2;
}

.ns-h2{
  margin:0 0 10px;
  color:var(--ns-header);
  font-size:1.45rem;
  font-weight:800;
}

.ns-h3{
  margin:0 0 6px;
  color:var(--ns-header);
  font-size:1rem;
  font-weight:700;
}

.ns-muted{
  color:var(--ns-muted);
}

.ns-dim{
  color:var(--ns-muted);
  font-size:14px;
}

.ns-mt-sm{ margin-top:10px; }
.ns-mt-md{ margin-top:16px; }
.ns-mt-lg{ margin-top:24px; }
.ns-mb-md{ margin-bottom:12px; }

/* ===== Buttons ===== */
.ns-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--ns-accent);
  color:#043a6b;
  border:0;
  border-radius:999px;
  padding:9px 14px;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  line-height:1.1;
  white-space:nowrap;
}

.ns-btn:hover{
  filter:brightness(.96);
}

.ns-btn--ghost{
  background:transparent;
  color:var(--ns-header);
  border:1px solid rgba(15,47,85,.22);
}

.ns-btn--ghost:hover{
  background:rgba(15,47,85,.06);
}

.ns-btn--light{
  background:#fff;
  color:var(--ns-header);
  border:1px solid #d9e3f0;
}

/* ===== Panels ===== */
.ns-panel{
  background:#fff;
  border:1px solid #e6ebf5;
  border-radius:var(--ns-radius);
  padding:16px;
  box-shadow:0 10px 26px rgba(10,25,60,.06);
}

/* ============================
   HEADER
============================ */
.ns-header{
  background:#f3f5f8;
  border-bottom:1px solid #e6ebf5;
}

.ns-header__row,
.ns-header__inner{
  width:100%;
  min-height:var(--ns-header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0;
}

/* Brand anchor */
.ns-brand,
.ns-logo{
  display:flex;
  align-items:center;
  min-height:var(--ns-header-h);
  line-height:0;
  text-decoration:none;
  margin:0;
  flex:0 0 auto;
}

.ns-brand{
  gap:0;
}

/* Brand internal row */
.ns-brand__top{
  display:flex;
  align-items:center;
  gap:0;
}

/* Logo wrapper */
.ns-logo-wrap{
  position:relative;
  width:186px;
  min-width:186px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  line-height:0;
  margin:0;
}

.ns-logo__img,
.ns-brand__logo{
  height:var(--ns-logo-h);
  width:auto;
  display:block;
  object-fit:contain;
  object-position:left center;
  max-width:186px;
  transform:none;
  backface-visibility:hidden;
}

/* keep legacy selectors harmless, but unused now */
.ns-tagline-manual,
.ns-brand__text,
.ns-brand__hi,
.ns-brand__en{
  display:none !important;
}

/* Auth area */
.ns-auth{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
  visibility:visible;
}

.ns-login,
.ns-signup{
  display:inline-flex;
}

.ns-logout{
  display:none;
}

/* ===== Header Modes ===== */
body.ns-authed .ns-login,
body.ns-authed .ns-signup{
  display:none !important;
}

body.ns-authed .ns-logout{
  display:inline-flex !important;
}

body.ns-min .ns-auth,
body.ns-logo-only .ns-auth,
body.ns-auth .ns-auth{
  display:none !important;
}

/* ===== Auth pages: compact header, logo only ===== */
body.ns-auth .ns-header{
  background:#f3f5f8;
}

body.ns-auth .ns-header__row,
body.ns-auth .ns-header__inner{
  min-height:72px;
  justify-content:flex-start !important;
}

body.ns-auth .ns-brand,
body.ns-auth .ns-logo{
  min-height:72px;
}

body.ns-auth .ns-logo-wrap{
  width:122px;
  min-width:122px;
}

body.ns-auth .ns-logo__img,
body.ns-auth .ns-brand__logo{
  height:64px;
  max-width:122px;
}

/* ============================
   FOOTER
============================ */
.ns-footer{
  margin-top:18px;
  background:#fff;
  border-top:1px solid #e6ebf5;
}

.ns-footer__bottom{
  background:#f8fafc;
  border-top:1px solid #e6ebf5;
  padding:10px 0;
}

.ns-footer__bottom-line{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
}

.ns-footer__btn{
  background:var(--ns-accent);
  color:#043a6b;
  border:none;
  border-radius:999px;
  padding:7px 14px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}

.ns-footer__btn:hover{
  filter:brightness(.95);
}

.ns-footer__btn--ghost{
  background:transparent;
  border:1px solid #d6e2ff;
  color:var(--ns-header);
}

.ns-footer__center{
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.ns-footer__brand{
  font-weight:900;
  font-size:13px;
  color:var(--ns-header);
}

.ns-footer__copy{
  font-size:12px;
  color:var(--ns-muted);
  font-weight:700;
}

.ns-footer__links-inline{
  margin-top:2px;
  font-size:12px;
  font-weight:800;
}

.ns-footer__links-inline a{
  text-decoration:none;
  color:var(--ns-header);
}

.ns-footer__links-inline a:hover{
  color:var(--ns-accent);
}

@media (max-width:820px){
  .ns-footer__bottom-line{
    grid-template-columns:1fr;
    text-align:center;
    gap:8px;
  }
}

/* ============================
   Chat Modal (shared)
============================ */
.ns-chat-modal{
  position:fixed;
  inset:0;
  display:none;
  background:rgba(0,0,0,.45);
  z-index:2147483647;
  padding:16px;
}

.ns-chat-modal[aria-hidden="true"]{
  display:none !important;
  pointer-events:none !important;
}

.ns-chat-modal[aria-hidden="false"]{
  display:flex !important;
  pointer-events:auto !important;
  align-items:flex-end;
  justify-content:flex-start;
}

.ns-chat-dialog{
  width:min(420px, calc(100vw - 32px));
  background:#fff;
  border-radius:16px;
  box-shadow:0 14px 40px rgba(0,0,0,.28);
  overflow:hidden;
}

.ns-chat-header{
  background:var(--ns-header);
  color:#fff;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.ns-chat-close{
  background:transparent;
  border:0;
  color:#fff;
  font-size:22px;
  cursor:pointer;
  line-height:1;
}

.ns-chat-form{
  padding:12px 14px 14px;
  display:grid;
  gap:12px;
}

.ns-chat-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.ns-chat-status{
  min-height:18px;
  color:var(--ns-muted);
  font-size:.92rem;
}

/* Auth UI */
body.ns-auth-pending .ns-auth{
  visibility:hidden;
}

.ns-user-name{
  cursor:pointer;
  text-decoration:none;
}

.ns-user-name:hover{
text-decoration:none;
}

/* ============================
   Tablet Header
============================ */
@media (max-width:820px){
  :root{
    --ns-logo-h:98px;
    --ns-header-h:108px;
  }

  .ns-header__row,
  .ns-header__inner{
    gap:12px;
  }

  .ns-logo-wrap{
    width:154px;
    min-width:154px;
  }

  .ns-logo__img{
    height:98px;
    max-width:154px;
  }

  body.ns-auth .ns-header__row,
  body.ns-auth .ns-header__inner{
    min-height:68px;
  }

  body.ns-auth .ns-logo-wrap{
    width:112px;
    min-width:112px;
  }

  body.ns-auth .ns-logo__img,
  body.ns-auth .ns-brand__logo{
    height:58px;
    max-width:112px;
  }
}

/* ============================
   Mobile Header
============================ */
@media (max-width:520px){
  :root{
    --ns-logo-h:82px;
    --ns-header-h:92px;
  }

  .ns-header__row,
  .ns-header__inner{
    min-height:var(--ns-header-h);
    padding:0;
    gap:8px;
  }

  .ns-logo-wrap{
    width:126px;
    min-width:126px;
  }

  .ns-logo__img{
    height:82px;
    max-width:126px;
  }

  body.ns-auth .ns-header__row,
  body.ns-auth .ns-header__inner{
    min-height:62px;
  }

  body.ns-auth .ns-logo-wrap{
    width:98px;
    min-width:98px;
  }

  body.ns-auth .ns-logo__img,
  body.ns-auth .ns-brand__logo{
    height:52px;
    max-width:98px;
  }

  .ns-auth{
    gap:8px;
  }

  .ns-btn{
    padding:8px 12px;
  }
}

.ns-pill--success {
  background: #e6f9ed;
  color: #027a48;
}

.ns-pill--warn {
  background: #fff4e5;
  color: #b54708;
}

.ns-pill--danger {
  background: #fde8e8;
  color: #b42318;
}


.ns-nav {
  display: flex;
  gap: 18px;
  margin-left: 30px;
}

.ns-nav a {
  text-decoration: none;
  color: var(--ns-text);
  font-size: 14px;
}

.ns-nav a:hover {
  color: var(--ns-accent);
}




.ns-footer__btn,
.ns-footer__btn:hover,
.ns-footer__btn:focus,
.ns-footer__btn:active,
.ns-footer__btn:visited {
  text-decoration: none !important;
}




.ns-user:hover{
  text-decoration:none;
}

.ns-user-name{
  display:inline-flex;
  align-items:center;
  color:var(--ns-header);
  font-weight:800;
  text-decoration:none;
  line-height:1.1;
}

.ns-user-name:hover{
  text-decoration:none;
}

.ns-user-menu-wrap{
  position:relative;
}

.ns-user-menu-btn{
  min-width:42px;
  padding:8px 12px;
  line-height:1;
  font-size:18px;
}

.ns-user-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:220px;
  background:#fff;
  border:1px solid #e6ebf5;
  border-radius:14px;
  box-shadow:0 14px 40px rgba(10,25,60,.12);
  padding:8px;
  z-index:1200;
}

.ns-user-menu__list{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ns-user-menu__item{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height:40px;
  padding:10px 12px;
  border-radius:10px;
  color:var(--ns-header);
  font-weight:700;
  text-decoration:none;
  background:transparent;
}

.ns-user-menu__item:hover{
  background:#f7f9fd;
  text-decoration:none;
}

.ns-user-menu__item.is-active{
  background:rgba(249,168,37,.14);
  color:#8a5a00;
}

@media (max-width:820px){
  .ns-user{
    gap:8px;
  }

  .ns-user-name{
    max-width:140px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .ns-user-menu{
    right:0;
    min-width:190px;
  }
}

@media (max-width:520px){
  .ns-auth{
    gap:6px;
  }

  .ns-user{
    gap:6px;
  }

  .ns-user-name{
    max-width:90px;
    font-size:13px;
  }

  .ns-user-menu-btn,
  .ns-logout{
    min-height:34px;
    padding:7px 10px;
  }

  .ns-user-menu{
    right:0;
    left:auto;
    min-width:170px;
    max-width:calc(100vw - 24px);
  }
}



.ns-user{
  display:inline-flex;
  align-items:center;
  gap:12px;
  position:relative;
}

.ns-user-name--hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

.ns-avatar{
  width:52px;
  height:52px;
  border-radius:50%;
  background:#e8edf5;
  border:1px solid #dbe4f0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--ns-header);
  font-weight:800;
  font-size:18px;
  flex:0 0 52px;
  overflow:hidden;
}

.ns-avatar span{
  line-height:1;
}

.ns-user-menu-btn{
  width:44px;
  height:44px;
  border:none;
  background:transparent;
  display:inline-flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  cursor:pointer;
  padding:0;
}

.ns-user-menu-btn span{
  display:block;
  width:26px;
  height:3px;
  border-radius:999px;
  background:#7c8090;
}

.ns-user-menu{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  min-width:260px;
  background:#fff;
  border:1px solid #e7edf5;
  border-radius:22px;
  box-shadow:0 20px 44px rgba(15, 47, 85, .14);
  padding:10px;
  z-index:1200;
}

.ns-user-menu__list{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ns-user-menu__item{
  width:100%;
  display:flex;
  align-items:center;
  min-height:56px;
  padding:0 16px;
  border-radius:16px;
  text-decoration:none;
  border:none;
  background:transparent;
  color:#1d2540;
  font-size:15px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
}

.ns-user-menu__item:hover{
  background:#f5f7fb;
  text-decoration:none;
}

.ns-user-menu__item.is-active{
  background:#eef2f8;
  color:#2a2f6f;
}

.ns-user-menu__divider{
  height:1px;
  background:#e9eef5;
  margin:8px 6px 2px;
}

.ns-user-menu__item--logout{
  color:var(--ns-header);
}

@media (max-width:820px){
  .ns-avatar{
    width:46px;
    height:46px;
    flex-basis:46px;
    font-size:16px;
  }

  .ns-user-menu{
    min-width:230px;
  }
}

@media (max-width:520px){
  .ns-auth{
    gap:6px;
  }

  .ns-user{
    gap:8px;
  }

  .ns-avatar{
    width:40px;
    height:40px;
    flex-basis:40px;
    font-size:14px;
  }

  .ns-user-menu-btn{
    width:38px;
    height:38px;
  }

  .ns-user-menu-btn span{
    width:22px;
    height:2.5px;
  }

  .ns-user-menu{
    min-width:210px;
    max-width:calc(100vw - 24px);
    border-radius:18px;
  }

  .ns-user-menu__item{
    min-height:50px;
    font-size:14px;
  }
}

/* ===== Final header avatar + hamburger + dropdown ===== */
.ns-user{
  display:inline-flex;
  align-items:center;
  gap:12px;
  position:relative;
}

.ns-user-name--hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

.ns-avatar{
  width:52px;
  height:52px;
  border-radius:50%;
  background:#e8edf5;
  border:1px solid #dbe4f0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--ns-header);
  font-weight:800;
  font-size:18px;
  flex:0 0 52px;
  overflow:hidden;
}

.ns-avatar span{
  line-height:1;
}

.ns-user-menu-wrap{
  position:relative;
}

.ns-user-menu-btn{
  width:44px;
  height:44px;
  border:none;
  background:transparent;
  display:inline-flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  cursor:pointer;
  padding:0;
}

.ns-user-menu-btn span{
  display:block;
  width:26px;
  height:3px;
  border-radius:999px;
  background:#7c8090;
}

.ns-user-menu{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  min-width:260px;
  background:#fff;
  border:1px solid #e7edf5;
  border-radius:22px;
  box-shadow:0 20px 44px rgba(15, 47, 85, .14);
  padding:10px;
  z-index:1200;
}

.ns-user-menu__list{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ns-user-menu__item{
  width:100%;
  display:flex;
  align-items:center;
  min-height:56px;
  padding:0 16px;
  border-radius:16px;
  text-decoration:none;
  border:none;
  background:transparent;
  color:#1d2540;
  font-size:15px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
}

.ns-user-menu__item:hover{
  background:#f5f7fb;
  text-decoration:none;
}

.ns-user-menu__item.is-active{
  background:#eef2f8;
  color:#2a2f6f;
}

.ns-user-menu__divider{
  height:1px;
  background:#e9eef5;
  margin:8px 6px 2px;
}

.ns-user-menu__item--logout{
  color:var(--ns-header);
}

@media (max-width:820px){
  .ns-avatar{
    width:46px;
    height:46px;
    flex-basis:46px;
    font-size:16px;
  }

  .ns-user-menu{
    min-width:230px;
  }
}

@media (max-width:520px){
  .ns-auth{
    gap:6px;
  }

  .ns-user{
    gap:8px;
  }

  .ns-avatar{
    width:40px;
    height:40px;
    flex-basis:40px;
    font-size:14px;
  }

  .ns-user-menu-btn{
    width:38px;
    height:38px;
  }

  .ns-user-menu-btn span{
    width:22px;
    height:2.5px;
  }

  .ns-user-menu{
    min-width:210px;
    max-width:calc(100vw - 24px);
    border-radius:18px;
  }

  .ns-user-menu__item{
    min-height:50px;
    font-size:14px;
  }
}
















.ns-footer__disclaimer {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.ns-footer__copyright {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 10px;
}




.hero-image {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.hero-image img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  object-position: center;
  display: block;
}
 
