/* =========================================================
   VELAEA Public Auth Navigation
   แสดงสถานะ Login + ปุ่ม Logout บนหน้าแรกแบบไม่กระทบเมนูหลัก
========================================================= */
.site-header .nav-actions > [data-public-auth]{
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.site-header .nav-actions > [data-public-auth] .public-auth-text,
.site-header .nav-actions > [data-public-auth-mobile] .public-auth-text{
  position:relative;
  z-index:1;
}

.site-header .nav-actions > [data-public-auth="login"].is-auth-status{
  border-color:rgba(74,222,128,.42)!important;
  background:linear-gradient(180deg,rgba(74,222,128,.13),rgba(8,22,20,.28))!important;
  color:#dfffea!important;
  box-shadow:0 0 0 1px rgba(74,222,128,.08),0 12px 34px rgba(0,0,0,.18)!important;
  max-width:190px;
}

.site-header .nav-actions > [data-public-auth="primary"].is-dashboard-link{
  min-width:128px;
  justify-content:center;
}

.site-header .nav-actions > [data-public-auth="primary"].is-dashboard-link::after{
  content:'›';
  position:relative;
  z-index:1;
  margin-left:8px;
  font-size:18px;
  line-height:0;
  transform:translateY(-1px);
}

.site-header .nav-actions > [data-public-auth="primary"].is-logout-link{
  min-width:118px;
  justify-content:center;
  border-color:rgba(248,113,113,.46)!important;
  background:linear-gradient(180deg,rgba(248,113,113,.20),rgba(127,29,29,.34))!important;
  color:#fff1f2!important;
  box-shadow:0 0 0 1px rgba(248,113,113,.08),0 14px 34px rgba(127,29,29,.18)!important;
}

.site-header .nav-actions > [data-public-auth="primary"].is-logout-link::before{
  content:'⎋';
  position:relative;
  z-index:1;
  margin-right:8px;
  font-size:15px;
  line-height:1;
  transform:translateY(-1px);
}

.public-auth-dot{
  position:relative;
  z-index:1;
  width:22px;
  height:22px;
  flex:0 0 22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(74,222,128,.18);
  color:#86efac;
  font-size:11px;
  font-weight:950;
  box-shadow:inset 0 0 0 1px rgba(74,222,128,.20),0 0 18px rgba(74,222,128,.16);
}

.public-auth-dot::after{
  content:'';
  position:absolute;
  right:-1px;
  bottom:0;
  width:7px;
  height:7px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 2px #06111f,0 0 10px rgba(34,197,94,.7);
}

.public-auth-dot.checking::after{
  background:#f2c76a;
  box-shadow:0 0 0 2px #06111f,0 0 10px rgba(242,199,106,.55);
}

.site-header .nav-actions > [data-public-auth="login"].is-auth-status .public-auth-text{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.site-header .nav-actions > [data-public-auth].is-auth-status:hover,
.site-header .nav-actions > [data-public-auth].is-dashboard-link:hover,
.site-header .nav-actions > [data-public-auth].is-logout-link:hover{
  transform:translateY(-1px);
  border-color:rgba(242,199,106,.72)!important;
  box-shadow:0 0 0 1px rgba(242,199,106,.10),0 16px 38px rgba(0,0,0,.22)!important;
}

html[data-theme="light"] .site-header .nav-actions > [data-public-auth="login"].is-auth-status,
body.light-mode .site-header .nav-actions > [data-public-auth="login"].is-auth-status{
  background:linear-gradient(180deg,#f1fff6,#ffffff)!important;
  border-color:rgba(5,150,105,.32)!important;
  color:#075b3a!important;
  box-shadow:0 10px 26px rgba(4,120,87,.10)!important;
}

html[data-theme="light"] .site-header .nav-actions > [data-public-auth="primary"].is-logout-link,
body.light-mode .site-header .nav-actions > [data-public-auth="primary"].is-logout-link{
  background:linear-gradient(180deg,#fff5f5,#ffffff)!important;
  border-color:rgba(220,38,38,.30)!important;
  color:#991b1b!important;
  box-shadow:0 10px 26px rgba(220,38,38,.10)!important;
}

html[data-theme="light"] .public-auth-dot,
body.light-mode .public-auth-dot{
  background:rgba(5,150,105,.12);
  color:#047857;
  box-shadow:inset 0 0 0 1px rgba(5,150,105,.14),0 0 14px rgba(5,150,105,.10);
}

html[data-theme="light"] .public-auth-dot::after,
body.light-mode .public-auth-dot::after{
  box-shadow:0 0 0 2px #ffffff,0 0 10px rgba(34,197,94,.44);
}

@media (max-width: 1180px){
  .site-header .nav-actions > [data-public-auth="login"].is-auth-status{
    max-width:156px;
  }
}

@media (max-width: 760px){
  .site-header .mobile-menu-actions [data-public-auth-mobile][data-auth-state="logged-in"]{
    border-color:rgba(74,222,128,.42)!important;
    background:linear-gradient(180deg,rgba(74,222,128,.14),rgba(74,222,128,.06))!important;
    color:#dfffea!important;
  }

  .site-header .mobile-menu-actions [data-public-auth-mobile="primary"][data-auth-state="logged-in"]{
    background:linear-gradient(180deg,rgba(248,113,113,.22),rgba(127,29,29,.28))!important;
    color:#fff1f2!important;
    border-color:rgba(248,113,113,.48)!important;
  }

  html[data-theme="light"] .site-header .mobile-menu-actions [data-public-auth-mobile][data-auth-state="logged-in"],
  body.light-mode .site-header .mobile-menu-actions [data-public-auth-mobile][data-auth-state="logged-in"]{
    background:linear-gradient(180deg,#f1fff6,#ffffff)!important;
    color:#075b3a!important;
    border-color:rgba(5,150,105,.30)!important;
  }

  html[data-theme="light"] .site-header .mobile-menu-actions [data-public-auth-mobile="primary"][data-auth-state="logged-in"],
  body.light-mode .site-header .mobile-menu-actions [data-public-auth-mobile="primary"][data-auth-state="logged-in"]{
    background:linear-gradient(180deg,#fff5f5,#ffffff)!important;
    color:#991b1b!important;
    border-color:rgba(220,38,38,.30)!important;
  }
}

/* =========================================================
   Mobile logged-in Dashboard access on public index (clean menu tab)
   - Desktop rule from the previous Logout patch stays unchanged.
   - Mobile users get a clean Dashboard entry without cluttering the header.
========================================================= */
.site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"][hidden],
.index-mobile-dashboard-cta[hidden]{
  display:none!important;
}

.index-mobile-dashboard-cta{
  display:none!important;
}

@media (max-width: 760px){
  .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]{
    border-color:rgba(242,199,106,.58)!important;
    background:linear-gradient(135deg,#f7d87d 0%,#d6a841 52%,#b98522 100%)!important;
    color:#221404!important;
    box-shadow:0 14px 34px rgba(214,168,65,.18), inset 0 1px 0 rgba(255,255,255,.26)!important;
    font-weight:950!important;
    letter-spacing:.01em!important;
  }

  .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]::before{
    content:'Dashboard';
    position:absolute;
    left:14px;
    top:-9px;
    padding:2px 8px;
    border-radius:999px;
    background:rgba(4,12,24,.92);
    color:#f7d87d;
    border:1px solid rgba(242,199,106,.25);
    font-size:9px;
    line-height:1;
    font-weight:950;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  html[data-theme="light"] .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"],
  body.light-mode .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]{
    background:linear-gradient(135deg,#ffe59b 0%,#d7a842 55%,#b98522 100%)!important;
    color:#211404!important;
    border-color:rgba(185,132,25,.34)!important;
    box-shadow:0 12px 28px rgba(185,132,25,.16)!important;
  }

  html[data-theme="light"] .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]::before,
  body.light-mode .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]::before{
    background:#fffdf6;
    color:#9a6512;
    border-color:rgba(185,132,25,.22);
  }

  html.is-authenticated-public .index-mobile-dashboard-cta,
  body:has(.index-mobile-dashboard-cta:not([hidden])) .index-mobile-dashboard-cta{
    display:inline-flex!important;
  }

  .index-mobile-dashboard-cta{
    width:100%;
    max-width:360px;
    min-height:48px;
    margin-bottom:2px;
    border-radius:16px!important;
    justify-content:center;
    background:linear-gradient(135deg,#f8df95 0%,#d6a841 54%,#a8731f 100%)!important;
    color:#211404!important;
    border:1px solid rgba(255,226,144,.55)!important;
    box-shadow:0 18px 42px rgba(214,168,65,.22), inset 0 1px 0 rgba(255,255,255,.28)!important;
  }

  .index-mobile-dashboard-cta::after{
    content:'›';
    margin-left:10px;
    font-size:20px;
    line-height:0;
    transform:translateY(-1px);
  }

  .hero-actions{
    align-items:stretch;
  }
}

@media (min-width: 761px){
  .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"],
  .index-mobile-dashboard-cta{
    display:none!important;
  }
}

@media (max-width: 760px){
  html.is-authenticated-public .site-header .mobile-menu-actions{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  .site-header .mobile-menu-actions a{
    position:relative!important;
  }
}


/* =========================================================
   Index mobile Dashboard menu clean-up
   - Mobile only: Dashboard is a normal menu action, not a hero CTA.
   - Remove logged-in/logout wording from mobile menu without touching desktop.
========================================================= */
@media (max-width: 760px){
  .index-page .index-mobile-dashboard-cta,
  html.is-authenticated-public .index-mobile-dashboard-cta,
  body:has(.index-mobile-dashboard-cta:not([hidden])) .index-mobile-dashboard-cta{
    display:none!important;
  }

  .index-page .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]{
    background:rgba(255,255,255,.045)!important;
    border:1px solid rgba(255,255,255,.12)!important;
    color:#eef6ff!important;
    box-shadow:none!important;
    font-weight:850!important;
    letter-spacing:.01em!important;
  }

  .index-page .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]::before,
  .index-page .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]::after,
  .index-mobile-dashboard-cta::after{
    content:none!important;
    display:none!important;
  }

  .index-page .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]:hover,
  .index-page .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]:focus-visible{
    border-color:rgba(242,199,106,.36)!important;
    background:rgba(242,199,106,.08)!important;
    color:#f8d777!important;
  }

  .index-page .site-header .mobile-menu-actions [data-public-auth-mobile="primary"][data-auth-state="logged-in"]{
    display:none!important;
  }

  .index-page .site-header .mobile-menu-actions [data-public-auth-mobile="status"][data-auth-state="logged-in"]{
    background:rgba(255,255,255,.045)!important;
    border-color:rgba(255,255,255,.12)!important;
    color:#e8f0ff!important;
  }

  html[data-theme="light"] .index-page .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"],
  body.light-mode.index-page .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"],
  html[data-theme="light"] .index-page .site-header .mobile-menu-actions [data-public-auth-mobile="status"][data-auth-state="logged-in"],
  body.light-mode.index-page .site-header .mobile-menu-actions [data-public-auth-mobile="status"][data-auth-state="logged-in"]{
    background:rgba(255,255,255,.72)!important;
    border-color:rgba(20,31,48,.12)!important;
    color:#132033!important;
    box-shadow:none!important;
  }

  html[data-theme="light"] .index-page .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]:hover,
  body.light-mode.index-page .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]:hover,
  html[data-theme="light"] .index-page .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]:focus-visible,
  body.light-mode.index-page .site-header .mobile-menu-actions [data-public-auth-mobile="dashboard"]:focus-visible{
    background:rgba(242,199,106,.18)!important;
    border-color:rgba(185,132,25,.28)!important;
    color:#7a500e!important;
  }
}

/* Public topbar profile avatar when a member is logged in */
.public-auth-dot.has-image{
  padding:0;
  overflow:hidden;
  background:#071421;
  border:1px solid rgba(242,199,106,.34);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 0 0 3px rgba(242,199,106,.08),0 0 18px rgba(242,199,106,.18);
}

.public-auth-dot.has-image::after{
  right:-1px;
  bottom:-1px;
  z-index:3;
}

.public-auth-dot.has-image img{
  position:absolute;
  inset:0;
  z-index:2;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
  display:block;
}

.public-auth-dot.has-image .public-auth-fallback{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  color:#f2c76a;
  font-weight:950;
}


/* =========================================================
   VELAEA Public Topbar Dashboard Reference Patch 20260706
   ใช้เฉพาะหน้า index.html: Dark / Language / Notifications / Profile / Logout
   ไม่แตะเนื้อหา Hero หรือโครงหน้าหลัก
========================================================= */
.site-header .nav-actions > [data-public-notifications][hidden]{
  display:none!important;
}

html:not(.is-authenticated-public) .site-header .nav-actions > [data-public-notifications],
html:not(.is-authenticated-public) .site-header .nav-actions > .velaea-public-notification-wrap,
html.is-guest-public .site-header .nav-actions > [data-public-notifications],
html.is-guest-public .site-header .nav-actions > .velaea-public-notification-wrap,
.site-header .nav-actions > .velaea-public-notification-wrap[hidden]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

.site-header .nav-actions > .public-auth-notify{
  position:relative;
  overflow:visible;
  height:40px!important;
  min-height:40px!important;
  min-width:40px!important;
  padding:0 12px!important;
  border-radius:12px!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0;
  border:1px solid rgba(255,255,255,.08)!important;
  background:rgba(255,255,255,.035)!important;
  color:#dce7f5!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  text-decoration:none!important;
  white-space:nowrap;
  box-shadow:none!important;
  transition:transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.site-header .nav-actions > .public-auth-notify:hover,
.site-header .nav-actions > .public-auth-notify:focus-visible{
  transform:translateY(-1px);
  color:#ffd76a!important;
  border-color:rgba(242,199,106,.52)!important;
  background:linear-gradient(135deg,rgba(242,199,106,.18),rgba(255,255,255,.065))!important;
  box-shadow:0 12px 30px rgba(242,199,106,.16), inset 0 1px 0 rgba(255,255,255,.08)!important;
  outline:none;
}

.public-auth-notify-dot{
  position:absolute;
  top:5px;
  right:6px;
  width:8px;
  height:8px;
  border-radius:999px;
  background:#ff4d5f;
  box-shadow:0 0 0 3px rgba(255,77,95,.18), 0 0 18px rgba(255,77,95,.72);
}

.site-header .nav-actions > .public-auth-notify:hover .public-auth-notify-dot,
.site-header .nav-actions > .public-auth-notify:focus-visible .public-auth-notify-dot{
  background:#ff4545;
  box-shadow:0 0 0 4px rgba(255,69,69,.18),0 0 16px rgba(255,69,69,.48);
  animation:velaeaPublicNotifyDotPulse 1.2s ease-in-out infinite;
}

@keyframes velaeaPublicNotifyDotPulse{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.22)}
}

.site-header .nav-actions > [data-public-auth="login"].is-auth-status{
  height:42px!important;
  min-height:42px!important;
  min-width:112px!important;
  max-width:210px!important;
  padding:4px 10px 4px 6px!important;
  gap:9px!important;
  border-radius:14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  border:1px solid rgba(255,255,255,.08)!important;
  background:rgba(255,255,255,.035)!important;
  color:#fff!important;
  box-shadow:none!important;
  text-decoration:none!important;
}

.site-header .nav-actions > [data-public-auth="login"].is-auth-status:hover,
.site-header .nav-actions > [data-public-auth="login"].is-auth-status:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(242,199,106,.54)!important;
  background:linear-gradient(135deg,rgba(242,199,106,.15),rgba(255,255,255,.06))!important;
  box-shadow:0 14px 34px rgba(242,199,106,.15), inset 0 1px 0 rgba(255,255,255,.07)!important;
  outline:none;
}

.site-header .nav-actions > [data-public-auth="login"].is-auth-status .public-auth-dot{
  width:32px!important;
  height:32px!important;
  flex:0 0 32px!important;
  border-radius:12px!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,#142237,#081522)!important;
  border:1px solid rgba(242,199,106,.24)!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:950!important;
  line-height:1!important;
  box-shadow:none!important;
  overflow:hidden!important;
}

.site-header .nav-actions > [data-public-auth="login"].is-auth-status .public-auth-dot::after{
  display:none!important;
}

.site-header .nav-actions > [data-public-auth="login"].is-auth-status .public-auth-dot.has-image{
  padding:0!important;
  background:rgba(255,255,255,.06)!important;
}

.site-header .nav-actions > [data-public-auth="login"].is-auth-status .public-auth-dot.has-image img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
}

.site-header .nav-actions > [data-public-auth="login"].is-auth-status .public-auth-dot.has-image .public-auth-fallback{
  display:none!important;
}

.public-auth-profile-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1.05;
}

.public-auth-profile-name{
  display:block;
  max-width:112px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#fff;
  font-size:13px;
  font-weight:950;
  letter-spacing:.01em;
}

.public-auth-profile-role{
  display:block;
  margin-top:3px;
  color:#f2c76a;
  font-size:10.5px;
  font-weight:950;
  letter-spacing:.02em;
}

.site-header .nav-actions > [data-public-auth="login"].is-auth-status:hover .public-auth-profile-name,
.site-header .nav-actions > [data-public-auth="login"].is-auth-status:focus-visible .public-auth-profile-name{
  color:#ffd76a;
}

.site-header .nav-actions > [data-public-auth="login"].is-auth-status:hover .public-auth-profile-role,
.site-header .nav-actions > [data-public-auth="login"].is-auth-status:focus-visible .public-auth-profile-role{
  color:#ffe2a0;
}

.site-header .nav-actions > [data-public-auth="primary"].is-logout-link{
  height:42px!important;
  min-height:42px!important;
  min-width:104px!important;
  padding:0 18px!important;
  border-radius:12px!important;
  justify-content:center!important;
  border:0!important;
  background:linear-gradient(135deg,#ffd978,#c8952e)!important;
  color:#1d1205!important;
  box-shadow:0 12px 26px rgba(200,149,46,.24)!important;
}

.site-header .nav-actions > [data-public-auth="primary"].is-logout-link::before{
  content:none!important;
  display:none!important;
}

.site-header .nav-actions > [data-public-auth="primary"].is-logout-link:hover,
.site-header .nav-actions > [data-public-auth="primary"].is-logout-link:focus-visible{
  transform:translateY(-1px);
  border-color:transparent!important;
  background:linear-gradient(135deg,#ffe597,#d5a241)!important;
  color:#1d1205!important;
  box-shadow:0 18px 38px rgba(200,149,46,.30), inset 0 1px 0 rgba(255,255,255,.22)!important;
  outline:none;
}

html[data-theme="light"] .site-header .nav-actions > .public-auth-notify,
body.light-mode .site-header .nav-actions > .public-auth-notify{
  background:rgba(255,255,255,.72)!important;
  color:#061a2f!important;
  border-color:rgba(200,149,46,.28)!important;
  box-shadow:none!important;
}

html[data-theme="light"] .site-header .nav-actions > .public-auth-notify:hover,
body.light-mode .site-header .nav-actions > .public-auth-notify:hover,
html[data-theme="light"] .site-header .nav-actions > .public-auth-notify:focus-visible,
body.light-mode .site-header .nav-actions > .public-auth-notify:focus-visible{
  background:linear-gradient(135deg,rgba(255,249,235,.98),rgba(255,255,255,.88))!important;
  border-color:rgba(200,149,46,.52)!important;
  color:#061a2f!important;
  box-shadow:0 14px 34px rgba(8,24,42,.11),0 0 0 4px rgba(200,149,46,.08)!important;
}

html[data-theme="light"] .site-header .nav-actions > [data-public-auth="login"].is-auth-status,
body.light-mode .site-header .nav-actions > [data-public-auth="login"].is-auth-status{
  background:rgba(255,255,255,.72)!important;
  color:#061a2f!important;
  border-color:rgba(200,149,46,.28)!important;
  box-shadow:0 10px 26px rgba(8,24,42,.07)!important;
}

html[data-theme="light"] .site-header .nav-actions > [data-public-auth="login"].is-auth-status:hover,
body.light-mode .site-header .nav-actions > [data-public-auth="login"].is-auth-status:hover,
html[data-theme="light"] .site-header .nav-actions > [data-public-auth="login"].is-auth-status:focus-visible,
body.light-mode .site-header .nav-actions > [data-public-auth="login"].is-auth-status:focus-visible{
  background:linear-gradient(135deg,rgba(255,249,235,.98),rgba(255,255,255,.88))!important;
  border-color:rgba(200,149,46,.52)!important;
  box-shadow:0 14px 34px rgba(8,24,42,.11),0 0 0 4px rgba(200,149,46,.08)!important;
}

html[data-theme="light"] .site-header .nav-actions > [data-public-auth="login"].is-auth-status .public-auth-dot,
body.light-mode .site-header .nav-actions > [data-public-auth="login"].is-auth-status .public-auth-dot{
  background:linear-gradient(135deg,#ffffff,#eaf0f7)!important;
  color:#061a2f!important;
  border-color:rgba(200,149,46,.28)!important;
}

html[data-theme="light"] .public-auth-profile-name,
body.light-mode .public-auth-profile-name{
  color:#061a2f;
}

html[data-theme="light"] .public-auth-profile-role,
body.light-mode .public-auth-profile-role{
  color:#9c6b12;
}

html[data-theme="light"] .site-header .nav-actions > [data-public-auth="primary"].is-logout-link,
body.light-mode .site-header .nav-actions > [data-public-auth="primary"].is-logout-link{
  background:linear-gradient(135deg,#ffe59b 0%,#d7a842 55%,#b98522 100%)!important;
  color:#211404!important;
  border-color:transparent!important;
  box-shadow:0 12px 28px rgba(185,132,25,.16)!important;
}

@media (min-width:1101px) and (max-width:1320px){
  .site-header .nav-actions > .public-auth-notify{
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    padding:0!important;
  }

  .site-header .nav-actions > .public-auth-notify .public-auth-notify-text{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    white-space:nowrap!important;
  }

  .site-header .nav-actions > .public-auth-notify::before{
    content:'🔔';
    font-size:14px;
    line-height:1;
  }

  .site-header .nav-actions > [data-public-auth="login"].is-auth-status{
    min-width:78px!important;
    max-width:118px!important;
    padding-right:8px!important;
  }

  .public-auth-profile-role{
    display:none!important;
  }

  .public-auth-profile-name{
    max-width:58px;
  }
}

@media (max-width:980px){
  .site-header .nav-actions > .public-auth-notify{
    display:none!important;
  }
}

/* =========================================================
   VELAEA Public Notifications Dropdown Patch 20260706
   ให้ปุ่ม Notifications หน้า index.html เปิดกล่องแจ้งเตือนแบบ Dashboard
========================================================= */
.site-header .nav-actions > .velaea-public-notification-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  z-index:1200;
}

.site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify,
.site-header .nav-actions .velaea-public-notification-wrap > .notify{
  position:relative;
  overflow:visible;
  height:40px!important;
  min-height:40px!important;
  min-width:40px!important;
  padding:0 12px!important;
  border-radius:12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgba(255,255,255,.08)!important;
  background:rgba(255,255,255,.035)!important;
  color:#dce7f5!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-shadow:none!important;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify:hover,
.site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify:focus-visible,
.site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify.is-open{
  transform:translateY(-1px);
  color:#ffd76a!important;
  background:linear-gradient(135deg,rgba(242,199,106,.18),rgba(255,255,255,.065))!important;
  border-color:rgba(242,199,106,.52)!important;
  box-shadow:0 12px 30px rgba(242,199,106,.16), inset 0 1px 0 rgba(255,255,255,.08)!important;
  outline:none;
}

.site-header .nav-actions .velaea-public-notification-wrap .notify-dot{
  position:absolute;
  top:5px;
  right:6px;
  width:8px;
  height:8px;
  border-radius:999px;
  background:#ff4d5f;
  box-shadow:0 0 0 3px rgba(255,77,95,.18), 0 0 18px rgba(255,77,95,.72);
}

.site-header .nav-actions .velaea-public-notification-wrap .notify-count{
  position:absolute;
  right:-8px;
  top:-8px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  font-size:10px;
  font-weight:950;
  color:#fff;
  background:linear-gradient(135deg,#ff5e6d,#c8243a);
  border:1px solid rgba(255,255,255,.35);
  box-shadow:0 12px 28px rgba(255,45,73,.24);
}

.site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify:not(.has-unread) .notify-dot,
.site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify:not(.has-unread) .notify-count{
  display:none!important;
}

.site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify:hover .notify-dot,
.site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify:focus-visible .notify-dot,
.site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify.is-open .notify-dot{
  background:#ff4545;
  box-shadow:0 0 0 4px rgba(255,69,69,.18),0 0 16px rgba(255,69,69,.48);
  animation:velaeaPublicNotifyDotPulse 1.2s ease-in-out infinite;
}

.site-header .nav-actions .velaea-public-notification-wrap .velaea-notification-panel{
  position:absolute;
  top:calc(100% + 14px);
  right:0;
  width:min(390px, calc(100vw - 28px));
  border:1px solid rgba(242,199,106,.20);
  border-radius:24px;
  background:
    radial-gradient(circle at 12% 0, rgba(242,199,106,.16), transparent 34%),
    linear-gradient(150deg, rgba(10,22,37,.98), rgba(2,8,17,.98));
  box-shadow:0 30px 80px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.04) inset;
  backdrop-filter:blur(22px);
  padding:14px;
  transform-origin:top right;
  animation:velaeaNotifIn .16s ease-out both;
  z-index:2000;
}

.site-header .nav-actions .velaea-public-notification-wrap .velaea-notification-panel[hidden]{
  display:none!important;
}

@keyframes velaeaNotifIn{
  from{opacity:0; transform:translateY(-6px) scale(.98)}
  to{opacity:1; transform:translateY(0) scale(1)}
}

.site-header .nav-actions .velaea-public-notification-wrap .velaea-notification-panel::before{
  content:'';
  position:absolute;
  top:-8px;
  right:26px;
  width:16px;
  height:16px;
  transform:rotate(45deg);
  border-left:1px solid rgba(242,199,106,.20);
  border-top:1px solid rgba(242,199,106,.20);
  background:rgba(10,22,37,.98);
}

.velaea-notification-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:4px 4px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.velaea-notification-head p{
  margin:0 0 4px;
  color:#f2c76a;
  font-size:11px;
  font-weight:950;
  letter-spacing:.12em;
}
.velaea-notification-head h3{
  margin:0;
  color:#fff;
  font-size:18px;
  font-weight:950;
  letter-spacing:-.02em;
}
.velaea-notification-readall{
  height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(242,199,106,.32);
  background:rgba(242,199,106,.08);
  color:#f6d889;
  font-size:11px;
  font-weight:950;
  cursor:pointer;
}
.velaea-notification-readall:hover{
  background:rgba(242,199,106,.16);
  border-color:rgba(242,199,106,.55);
}
.velaea-notification-list{
  display:grid;
  gap:10px;
  max-height:350px;
  overflow:auto;
  padding:12px 0 6px;
}
.velaea-notification-item{
  width:100%;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  border-radius:16px;
  padding:12px;
  display:grid;
  grid-template-columns:34px 1fr 8px;
  gap:10px;
  align-items:flex-start;
  text-align:left;
  color:#dce7f5;
  cursor:pointer;
  transition:.18s ease;
}
.velaea-notification-item:hover{
  transform:translateY(-1px);
  border-color:rgba(242,199,106,.28);
  background:rgba(242,199,106,.07);
}
.velaea-notification-item.is-read{
  opacity:.72;
}
.velaea-notification-icon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#f6d889,#c79532);
  color:#09111d;
  font-weight:950;
}
.velaea-notification-item.tone-warning .velaea-notification-icon{background:linear-gradient(135deg,#ffd67b,#d08b1c)}
.velaea-notification-item.tone-danger .velaea-notification-icon{background:linear-gradient(135deg,#ff8a99,#d9354f);color:#fff}
.velaea-notification-item.tone-success .velaea-notification-icon{background:linear-gradient(135deg,#91f5b5,#31b970);color:#062014}
.velaea-notification-copy{
  min-width:0;
  display:grid;
  gap:4px;
}
.velaea-notification-copy b{
  color:#fff;
  font-size:13px;
  font-weight:950;
}
.velaea-notification-copy em{
  color:#aebfd4;
  font-style:normal;
  font-size:12px;
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.velaea-notification-copy small{
  color:#71849d;
  font-size:11px;
  font-weight:800;
}
.velaea-notification-unread{
  width:8px;
  height:8px;
  border-radius:999px;
  margin-top:5px;
  background:#ff4d5f;
  box-shadow:0 0 0 3px rgba(255,77,95,.15);
}
.velaea-notification-empty{
  min-height:118px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:10px;
  text-align:center;
  border:1px dashed rgba(242,199,106,.22);
  border-radius:18px;
  color:#aebfd4;
  padding:18px;
}
.velaea-notification-empty strong{
  color:#fff;
  font-size:14px;
  font-weight:950;
}
.velaea-notification-empty span{
  max-width:270px;
  font-size:12px;
  line-height:1.55;
}
.velaea-notification-foot{
  padding:8px 4px 2px;
  border-top:1px solid rgba(255,255,255,.06);
  color:#71849d;
  font-size:11px;
}

html[data-theme="light"] .site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify,
body.light-mode .site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify{
  background:rgba(255,255,255,.72)!important;
  color:#061a2f!important;
  border-color:rgba(200,149,46,.28)!important;
  box-shadow:none!important;
}
html[data-theme="light"] .site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify:hover,
body.light-mode .site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify:hover,
html[data-theme="light"] .site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify:focus-visible,
body.light-mode .site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify:focus-visible,
html[data-theme="light"] .site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify.is-open,
body.light-mode .site-header .nav-actions .velaea-public-notification-wrap > .public-auth-notify.is-open{
  background:linear-gradient(135deg,rgba(255,249,235,.98),rgba(255,255,255,.88))!important;
  border-color:rgba(200,149,46,.52)!important;
  color:#061a2f!important;
  box-shadow:0 14px 34px rgba(8,24,42,.11),0 0 0 4px rgba(200,149,46,.08)!important;
}
html[data-theme="light"] .site-header .nav-actions .velaea-public-notification-wrap .velaea-notification-panel,
body.light-mode .site-header .nav-actions .velaea-public-notification-wrap .velaea-notification-panel{
  background:
    radial-gradient(circle at 12% 0, rgba(242,199,106,.16), transparent 34%),
    linear-gradient(150deg, rgba(255,255,255,.98), rgba(244,248,252,.98));
  border-color:rgba(200,149,46,.24);
  box-shadow:0 30px 70px rgba(8,24,42,.14), 0 0 0 1px rgba(255,255,255,.75) inset;
}
html[data-theme="light"] .site-header .nav-actions .velaea-public-notification-wrap .velaea-notification-panel::before,
body.light-mode .site-header .nav-actions .velaea-public-notification-wrap .velaea-notification-panel::before{
  background:rgba(255,255,255,.98);
}
html[data-theme="light"] .velaea-notification-head h3,
body.light-mode .velaea-notification-head h3,
html[data-theme="light"] .velaea-notification-copy b,
body.light-mode .velaea-notification-copy b,
html[data-theme="light"] .velaea-notification-empty strong,
body.light-mode .velaea-notification-empty strong{
  color:#061a2f;
}
html[data-theme="light"] .velaea-notification-copy em,
body.light-mode .velaea-notification-copy em,
html[data-theme="light"] .velaea-notification-empty,
body.light-mode .velaea-notification-empty{
  color:#62738a;
}
html[data-theme="light"] .velaea-notification-item,
body.light-mode .velaea-notification-item{
  background:rgba(255,255,255,.72);
  border-color:rgba(8,24,42,.08);
}

@media (max-width:980px){
  .site-header .nav-actions > .velaea-public-notification-wrap{
    display:none!important;
  }
}

@media (max-width:560px){
  .site-header .nav-actions .velaea-public-notification-wrap .velaea-notification-panel{
    position:fixed;
    top:76px;
    right:12px;
    left:12px;
    width:auto;
  }
  .site-header .nav-actions .velaea-public-notification-wrap .velaea-notification-panel::before{display:none}
  .velaea-notification-list{max-height:calc(100vh - 235px)}
}
