/* VibeLinkTH top bar. Owner-approved 19 Nov 2026 ("นี้คือ Fasttrack เสร็จแล้ว ... เอาขึ้น ได้เลย").
   One frame for www (landing/index.html) and the app (components/layout/site-header.tsx).
   The same file ships as landing/, public/ and app/ copies; they must stay identical.
   Rule 7 item 4: every control in the bar and every tab is 40px tall, on every page.
   The navy bar is the owner's exception to "Bright White" (docs/brand/CI-UI-RULES-20261119.md). */

/* Sticky fix: overflow-x:hidden on html and body turns body into its own scroll box, so a sticky bar
   never sticks. clip hides sideways overflow without creating that scroll box. */
html,body{overflow-x:clip!important}

html body header.vlh{position:sticky!important;top:0!important;z-index:1000;display:block;width:100%;margin:0!important;padding:0!important;height:auto!important;min-height:0!important;background:#051226!important;color:#fff!important;border:0!important;outline:0!important;border-radius:0!important;box-shadow:0 10px 30px -18px rgba(5,18,38,.6)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;font-family:"IBM Plex Sans Thai","IBM Plex Sans",system-ui,sans-serif;line-height:1.2}
html body header.vlh *{box-sizing:border-box}
html body header.vlh :is(a,button,summary){font-family:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
html body header.vlh :is(a,button,summary):focus-visible{outline:2px solid #67e8f9!important;outline-offset:2px}
html body header.vlh summary{list-style:none}
html body header.vlh summary::-webkit-details-marker{display:none}
html body header.vlh .vlh-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

html body header.vlh .vlh-row{position:relative;max-width:1240px;margin:0 auto;padding:0 24px;height:68px;display:flex;align-items:center;gap:24px;min-width:0}
html body header.vlh .vlh-brand{display:flex;align-items:center;gap:12px;flex-shrink:0;color:#fff!important;min-width:0}
html body header.vlh .vlh-brand img{width:38px;height:38px;display:block;flex-shrink:0}
html body header.vlh .vlh-name{display:flex;flex-direction:column;line-height:1.1;min-width:0}
html body header.vlh .vlh-name b{font-size:20px;font-weight:700;letter-spacing:-.01em;color:#fff!important}
html body header.vlh .vlh-name small{font-size:11.5px;font-weight:500;color:#cfdbf0!important;margin-top:3px;white-space:nowrap}

html body header.vlh .vlh-nav{display:flex;align-items:center;gap:4px;min-width:0}
html body header.vlh :is(.vlh-link,.vlh-products>summary){height:40px!important;min-height:40px!important;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;padding:0 12px!important;margin:0!important;border:0!important;border-radius:10px!important;background:none!important;box-shadow:none!important;color:rgba(255,255,255,.86)!important;font-size:15px!important;font-weight:500!important;line-height:1!important;white-space:nowrap;cursor:pointer}
html body header.vlh :is(.vlh-link,.vlh-products>summary):hover,html body header.vlh .vlh-products[open]>summary{background:rgba(255,255,255,.08)!important;color:#fff!important}
html body header.vlh .vlh-link svg{opacity:.8;flex-shrink:0}
html body header.vlh .vlh-products{position:static;margin:0;padding:0;border:0;background:none;box-shadow:none;color:inherit}
html body header.vlh .vlh-products>summary [aria-hidden="true"]{font-size:12px;opacity:.8}
/* The product panel opens just under the bar. */
html body header.vlh .vlh-products>nav{top:72px!important;color:#17213a}
/* A closed menu is not displayed at all. Newer Chrome keeps layout boxes inside a closed <details>, so say it outright. */
html body header.vlh :is(.vlh-products,.vlh-menu):not([open])>nav{display:none!important}

html body header.vlh .vlh-spacer{flex:1;min-width:0}
html body header.vlh .vlh-right{display:flex;align-items:center;gap:8px;flex-shrink:0}
html body header.vlh .vlh-locale{height:40px!important;min-height:40px!important;width:auto!important;min-width:0!important;display:inline-flex!important;align-items:center;gap:6px;padding:0 10px!important;margin:0!important;border:0!important;border-radius:10px!important;background:none!important;box-shadow:none!important;color:rgba(255,255,255,.76)!important;font-size:13px!important;font-weight:500!important;line-height:1!important;letter-spacing:.02em;white-space:nowrap;cursor:pointer}
html body header.vlh .vlh-locale:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}
html body header.vlh .vlh-locale svg{display:block!important;flex-shrink:0}
html body header.vlh .vlh-locale span{display:inline!important;color:inherit!important}
/* Globe menu (owner 19 Nov): ไทย | EN switches the page in place; Region & currency opens the dialog. */
html body header.vlh .vlh-locale-wrap{position:relative;display:inline-flex;flex-shrink:0}
html body header.vlh .vlh-locale[aria-expanded="true"]{background:rgba(255,255,255,.12)!important;color:#fff!important}
html body header.vlh .vlh-locale-pop{position:absolute;top:calc(100% + 10px);right:0;width:260px;padding:10px;border-radius:16px;background:#fff;color:#172038;box-shadow:0 18px 44px -16px rgba(23,32,56,.32);display:flex;flex-direction:column;gap:8px;z-index:1010}
html body header.vlh .vlh-locale-pop[hidden]{display:none!important}
html body header.vlh .vlh-locale-cap{margin:2px 4px 0;font-size:13px;font-weight:600;color:#475569!important}
html body header.vlh :is(.vlh-locale-pop,.vlh-drawer-lang) .lang-toggle{display:grid!important;grid-template-columns:1fr 1fr;gap:4px;width:100%;height:auto!important;padding:3px!important;margin:0!important;border:0!important;border-radius:12px!important;box-shadow:none!important}
html body header.vlh .vlh-locale-pop .lang-toggle{background:#eef1fa!important}
html body header.vlh .vlh-drawer-lang .lang-toggle{background:rgba(255,255,255,.08)!important}
html body header.vlh :is(.vlh-locale-pop,.vlh-drawer-lang) .lang-toggle button{display:flex!important;align-items:center;justify-content:center!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:0 12px!important;margin:0!important;border:0!important;border-radius:10px!important;background:none!important;box-shadow:none!important;font-size:15px!important;font-weight:600!important;cursor:pointer}
html body header.vlh .vlh-locale-pop .lang-toggle button{color:#475569!important}
html body header.vlh .vlh-drawer-lang .lang-toggle button{color:#cfdbf0!important}
html body header.vlh :is(.vlh-locale-pop,.vlh-drawer-lang) .lang-toggle button[aria-pressed="true"]{background:linear-gradient(135deg,#2563eb,#4338ca)!important;color:#fff!important}
html body header.vlh .vlh-locale-region{display:flex!important;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px!important;padding:0 12px!important;margin:0!important;border:0!important;border-radius:10px!important;background:none!important;box-shadow:none!important;color:#172038!important;font-size:15px!important;font-weight:500!important;text-align:left;cursor:pointer}
html body header.vlh .vlh-locale-region:hover{background:#eef1fa!important}
html body header.vlh .vlh-locale-now{font-size:13px;color:#475569!important;white-space:nowrap}
html body header.vlh .vlh-drawer-lang{padding:0 12px 6px}
html body header.vlh .vlh-signin{height:40px!important;min-height:40px!important;display:inline-flex!important;align-items:center;justify-content:center;padding:0 18px!important;margin:0!important;border:0!important;border-radius:999px!important;background:rgba(255,255,255,.12)!important;box-shadow:none!important;color:#fff!important;font-size:15px!important;font-weight:600!important;line-height:1!important;white-space:nowrap;flex-shrink:0}
html body header.vlh .vlh-signin:hover{background:rgba(255,255,255,.2)!important}

html body header.vlh .vlh-account-wrap{position:relative;flex-shrink:0}
html body header.vlh .vlh-account{height:40px!important;min-height:40px!important;display:inline-flex!important;align-items:center;gap:10px;padding:0 12px 0 5px!important;margin:0!important;border:0!important;border-radius:999px!important;background:rgba(255,255,255,.08)!important;box-shadow:none!important;color:#fff!important;font-size:15px;line-height:1;white-space:nowrap;cursor:pointer}
html body header.vlh .vlh-account:hover,html body header.vlh .vlh-account[aria-expanded="true"]{background:rgba(255,255,255,.16)!important}
html body header.vlh .vlh-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:linear-gradient(135deg,#38bdf8,#a855f7);color:#051226!important;font-size:14px;font-weight:700}
html body header.vlh .vlh-who{display:inline-flex;align-items:baseline;gap:6px;max-width:220px;overflow:hidden;font-size:15px;font-weight:600;color:#fff!important}
html body header.vlh .vlh-who b{font-weight:600;color:#fff!important;overflow:hidden;text-overflow:ellipsis}
html body header.vlh .vlh-who span{font-weight:400;color:rgba(255,255,255,.66)!important;white-space:nowrap}
html body header.vlh .vlh-account svg{flex-shrink:0;transition:transform .2s ease}
html body header.vlh .vlh-account[aria-expanded="true"] svg{transform:rotate(180deg)}

/* Account menu: a light card under the chip. */
html body header.vlh .vlh-account-menu{position:absolute;top:calc(100% + 10px);right:0;min-width:230px;padding:8px 6px;border-radius:16px;background:#fff;color:#172038;box-shadow:0 18px 44px -16px rgba(23,32,56,.32);display:flex;flex-direction:column;gap:2px;z-index:1010}
html body header.vlh .vlh-account-id{padding:6px 12px 8px;font-size:12.5px;color:#475569;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body header.vlh .vlh-account-menu :is(a,button){display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;padding:0 12px;border:0;border-radius:10px;background:none;box-shadow:none;color:#172038!important;font-size:15px;font-weight:500;text-align:left;cursor:pointer}
html body header.vlh .vlh-account-menu :is(a,button):hover{background:#eef1fa}
html body header.vlh .vlh-account-menu .vlh-signout{color:#b91c1c!important}

/* Menu button (phones) and the menu it opens. */
html body header.vlh .vlh-menu{position:static;margin:0;padding:0;border:0;background:none}
html body header.vlh .vlh-menu,html body header.vlh .vlh-menu-btn{display:none}
html body header.vlh .vlh-menu-btn{width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;margin:0!important;border:0!important;border-radius:10px!important;background:rgba(255,255,255,.08)!important;box-shadow:none!important;color:#fff!important;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
html body header.vlh .vlh-drawer{position:absolute;top:60px;left:0;right:0;display:flex;flex-direction:column;gap:2px;max-height:calc(100dvh - 60px);overflow:auto;padding:10px 14px 18px;background:#0a1b35;box-shadow:0 24px 40px -24px rgba(5,18,38,.8);z-index:1010}
html body header.vlh .vlh-drawer :is(a,button){display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:none;box-shadow:none;color:#fff!important;font-size:16px;font-weight:500;text-align:left;cursor:pointer}
html body header.vlh .vlh-drawer :is(a,button):hover{background:rgba(255,255,255,.08)}
html body header.vlh .vlh-drawer .vlh-drawer-label{margin:10px 12px 2px;font-size:12px;font-weight:600;letter-spacing:.04em;color:#cfdbf0}
html body header.vlh .vlh-drawer .vlh-drawer-cta{justify-content:center;margin-top:8px;background:linear-gradient(135deg,#2563eb,#4338ca);font-weight:700}
html body header.vlh .vlh-drawer .vlh-signout{color:#fca5a5!important}

/* Product tabs: four equal tabs, the same on every page. */
html body header.vlh .vlh-tabs{display:block;margin:0;padding:0;border:0;background:#0a1b35!important}
html body header.vlh .vlh-tabs-track{max-width:1240px;margin:0 auto;padding:3px 24px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
html body header.vlh .vlh-tab{position:relative;height:40px!important;min-height:40px!important;min-width:0;display:flex!important;align-items:center;justify-content:center;gap:8px;padding:0 6px!important;margin:0!important;border:0!important;border-radius:10px!important;background:none!important;box-shadow:none!important;color:rgba(255,255,255,.7)!important;font-size:15px!important;font-weight:500!important;line-height:1!important;white-space:nowrap}
html body header.vlh .vlh-tab:hover{color:#fff!important;background:rgba(255,255,255,.05)!important}
html body header.vlh .vlh-tab[aria-current="page"]{color:#fff!important;font-weight:600!important}
html body header.vlh .vlh-tab[aria-current="page"]::after{content:"";position:absolute;left:18%;right:18%;bottom:3px;height:3px;border-radius:3px;background:linear-gradient(90deg,#00f5ff,#38bdf8,#4338ca)}

@media (max-width:1100px){html body header.vlh .vlh-name small{display:none}}
@media (max-width:860px){
  html body header.vlh .vlh-row{height:60px;padding:0 14px;gap:10px}
  html body header.vlh .vlh-nav{display:none}
  html body header.vlh .vlh-brand img{width:32px;height:32px}
  html body header.vlh .vlh-name b{font-size:18px}
  html body header.vlh .vlh-locale .vlh-cur{display:none!important}
  html body header.vlh .vlh-locale-pop{position:fixed;top:64px;right:12px;width:min(300px,calc(100vw - 24px))}
  html body header.vlh .vlh-signin{padding:0 14px!important;font-size:14px!important}
  html body header.vlh .vlh-who{display:none}
  html body header.vlh .vlh-account{padding:0 5px!important;gap:4px}
  html body header.vlh .vlh-menu{display:block}
  html body header.vlh .vlh-menu-btn{display:inline-flex}
  /* Owner 19 Nov: on phones the 4 tabs share the width equally and never scroll. */
  html body header.vlh .vlh-tabs-track{padding:2px 4px;gap:0}
  html body header.vlh .vlh-tab{padding:0 2px!important;font-size:14px!important}
  html body header.vlh .vlh-tab[aria-current="page"]::after{left:22%;right:22%}
}
/* Phones show the globe only (the button keeps its full name for screen readers); 340px moves it into the menu. */
@media (max-width:420px){html body header.vlh .vlh-locale span{display:none!important}html body header.vlh .vlh-locale{padding:0 10px!important}}
@media (max-width:360px){html body header.vlh .vlh-tab{font-size:13px!important}}
@media (max-width:340px){html body header.vlh .vlh-locale-wrap{display:none!important}}

/* Homepage hero: one clear sign-up button under the promise, then small paths. */
.vlh-hero-cta{display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-top:28px}
.vlh-hero-cta .vlh-cta{display:inline-flex;align-items:center;gap:10px;height:58px;padding:0 30px;border-radius:16px;font-size:19px;font-weight:700;color:#fff!important;text-decoration:none;background:linear-gradient(135deg,#2563eb 0%,#4338ca 100%);box-shadow:0 18px 36px -14px rgba(67,56,202,.55)}
.vlh-hero-cta .vlh-cta svg{transition:transform .2s ease}
.vlh-hero-cta .vlh-cta:hover svg{transform:translateX(3px)}
.vlh-hero-cta .vlh-cta:focus-visible{outline:3px solid #67e8f9;outline-offset:4px}
.vlh-hero-cta .vlh-paths{margin:0;font-size:15px;color:#526075}
/* Each small path link is a full 44px tap target (rule 7, touch ≥44px). */
.vlh-hero-cta .vlh-paths a{display:inline-block;padding:11px 2px;line-height:22px;color:#1d4ed8;font-weight:600;text-decoration:none;white-space:nowrap}
.vlh-hero-cta .vlh-paths a:hover{text-decoration:underline;text-underline-offset:3px}
@media (max-width:860px){.vlh-hero-cta{align-items:stretch}.vlh-hero-cta .vlh-cta{justify-content:center}}
@media (prefers-reduced-motion:reduce){html body header.vlh .vlh-account svg,.vlh-hero-cta .vlh-cta svg{transition:none}}
