/* G6923 V2.3.2 — Scoped, QA-only member modal over the EXISTING TTDC Website. */
.g6924-member-dialog{position:fixed;inset:0;margin:auto;padding:0;color:#f9eacc;border:1px solid #e2b86c;background:#061e19;width:min(1060px,calc(100vw - 60px));height:min(690px,calc(100dvh - 75px));max-width:none;max-height:none;border-radius:14px;box-shadow:0 30px 110px #000e,0 0 0 1px #b1924b inset;overflow:hidden}
.g6924-member-dialog::backdrop{background:rgba(0,12,11,.54);-webkit-backdrop-filter:blur(9px) saturate(.72);backdrop-filter:blur(9px) saturate(.72)}
.g6924-member-dialog[open]{display:block}
.g6924-member-dialog-shell,.g6924-member-window{height:100%;display:flex;flex-direction:column;min-height:0;max-height:100%}
.g6924-member-bar{height:68px;flex:none;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:9px 20px;border-bottom:1px solid #b18a4c;background:linear-gradient(90deg,#031c17,#123f31 60%,#061e18)}
.g6924-member-brand{display:flex;align-items:center;gap:12px;min-width:0}.g6924-seal{width:41px;height:41px;display:grid;place-items:center;border:1px solid #cda55a;background:#0b3025;border-radius:9px;font:27px Georgia,serif;color:#ffe4a1}.g6924-member-brand strong{display:block;color:#ffe4a0;font:700 17px Georgia,serif;letter-spacing:.025em}.g6924-member-brand small{display:block;color:#c4b188;font-size:10px;letter-spacing:.075em}
.g6924-member-tools{display:flex;align-items:center;gap:14px}.g6924-live-hint{color:#b6cbbe;font-size:11px}.g6924-member-close{color:#ffdf9c;background:#163e30;border:1px solid #c09c58;border-radius:8px;padding:9px 13px;min-height:39px;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}.g6924-member-close:hover{background:#235541}.g6924-member-close:focus-visible{outline:2px solid #ffe5a0;outline-offset:2px}
#g6924-member-frame{width:100%;height:auto;border:0;background:#061b16;flex:1 1 0;min-height:0;display:block}
@media(max-width:760px){.g6924-member-dialog{width:calc(100vw - 14px);height:calc(100dvh - 18px);border-radius:10px}.g6924-member-bar{height:63px;padding:8px 11px}.g6924-member-brand strong{font-size:13px}.g6924-member-brand small{font-size:8px}.g6924-live-hint{display:none}.g6924-member-close{min-height:38px;padding:7px 11px}}
@media(max-width:380px){.g6924-seal{display:none}}
/* G6923 V2.3.2 — Registration becomes a first-class TTDC modal, not a new controller. */
.g6914-account-dialog::backdrop{-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:rgba(0,13,12,.72)}
.g6914-account-dialog:has([data-g6914-panel="register"]:not([hidden])){border-color:#d7b66b}

/* G6923 V2.3.3 — Account Login/Register tab switch in ONE TTDC hero panel. */
.login-panel .g6925-hero-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;border-bottom:1px solid #806739;margin-bottom:12px}
.login-panel .g6925-hero-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;min-height:34px;padding:4px 5px 10px;color:#b9d0be;font:700 13px 'Segoe UI',Arial,sans-serif;cursor:pointer}
.login-panel .g6925-hero-tabs button[aria-selected="true"]{color:#ffe3a6;border-bottom-color:#e3b66a;text-shadow:0 0 12px #cda55b50}
.login-panel .g6925-hero-tabs button:focus-visible,.login-panel #g6925-hero-register :is(input,button):focus-visible{outline:2px solid #ffe3a6;outline-offset:2px}
.login-panel #g6925-login-fields[hidden],.login-panel #g6925-hero-register[hidden]{display:none!important}
.login-panel:has(#g6925-hero-register:not([hidden])){padding-block:17px 16px}
#g6925-hero-register{position:relative;color:#f8e4c1}
#g6925-hero-register h2{margin:0 0 7px;font-size:19px}
#g6925-hero-register .demo-note{font-size:11px;line-height:1.4;margin-bottom:11px}
#g6925-hero-register form{display:grid;gap:8px}
#g6925-hero-register form label{display:block;font-size:11px;font-weight:650;color:#e9d7a9;line-height:1.45}
#g6925-hero-register form label>input{display:block;width:100%;min-width:0;height:39px;margin-top:5px;padding:8px 11px;background:#041c19;color:#fff2d6;border:1px solid #507360;border-radius:5px;font:13px 'Segoe UI',Arial,sans-serif}
#g6925-hero-register .g6914-captcha{display:grid;grid-template-columns:minmax(58px,1fr) 96px 64px;gap:6px;align-items:center;margin-top:5px}
#g6925-hero-register .g6914-captcha input{width:100%;height:38px;min-width:0;background:#041c19;color:#fff;border:1px solid #52725a;border-radius:5px;padding:5px 8px;font-size:13px}
#g6925-hero-register .g6914-captcha img{width:96px;height:32px;object-fit:contain;background:#fff;border-radius:4px}
#g6925-hero-register .g6914-captcha button{background:#174134;color:#ffe0a1;border:1px solid #866d42;border-radius:5px;padding:6px 4px;min-height:38px;font-size:11px;cursor:pointer}
#g6925-hero-register .g6917-field-hint{font-size:10px;line-height:1.4;color:#c5cbb7;margin:1px 0}
#g6925-hero-register .g6914-form-state{font-size:11px;min-height:0;margin:0;line-height:1.5}
#g6925-hero-register .btn[type="submit"]{min-height:42px;width:100%;font-size:14px;padding:8px 12px}
#g6925-hero-register .btn[disabled]{opacity:.55;cursor:not-allowed}
#g6925-hero-register .g6925-switch-footer{margin:10px 0 0;font-size:11px;text-align:center;color:#bed4c6}
#g6925-hero-register .g6925-switch-footer button{color:#ffe0a1;border:0;text-decoration:underline;background:none;cursor:pointer;font-size:11px}
@media(max-width:400px){#g6925-hero-register .g6914-captcha{grid-template-columns:minmax(50px,1fr) 84px 59px}#g6925-hero-register .g6914-captcha img{width:84px}}
/* The original TTDC header only overflows at 1024px, where desktop navigation
 * and download CTA both remain visible. Keep QA preview within viewport. */
@media (min-width:1024px) and (max-width:1120px){.site-header .btn-download{display:none}}

/* G6923 V2.3.4 — Stable two-mode account shell. Zero page reflow on tab switch.
   QA only: these nodes do not exist on frozen Website when QA flag is OFF. */
.login-panel:has(.g6925-hero-tabs){
  height:558px;
  min-height:558px;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  padding-top:15px;
  padding-bottom:15px;
  overflow:hidden;
  overflow-anchor:none;
}
.login-panel:has(.g6925-hero-tabs) .g6925-hero-tabs{flex:0 0 auto;}
.login-panel:has(.g6925-hero-tabs) #g6925-login-fields,
.login-panel:has(.g6925-hero-tabs) #g6925-hero-register{
  flex:1 1 auto;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  overflow-anchor:none;
  scrollbar-width:thin;
  scrollbar-color:#6f8064 transparent;
}
/* Match the existing higher-specificity mode selector, so the tabs do not
   move by even 2px when switching to Register. */
.login-panel:has(.g6925-hero-tabs):has(#g6925-hero-register:not([hidden])){
  padding-top:15px;
  padding-bottom:15px;
}
/* Reserve the same geometry in both modes, even at the stacked mobile breakpoint. */
@media(max-width:640px){
  .login-panel:has(.g6925-hero-tabs){height:558px;min-height:558px;}
}

/* G6923 V2.3.5 -- matched Vietnamese typography in the outer member modal. */
.g6924-member-bar,.g6924-member-dialog{font-family:'Segoe UI',Tahoma,Arial,sans-serif}
.g6924-member-brand strong{font-family:'Segoe UI',Tahoma,Arial,sans-serif;font-size:16px;letter-spacing:0;font-weight:700;line-height:1.25}
.g6924-member-brand small{font-family:'Segoe UI',Tahoma,Arial,sans-serif;letter-spacing:0;line-height:1.4}
@media (max-width:760px){.g6924-member-brand strong{font-size:13px}}

/* RC25 Fix4: avoid background page scrolling while the modal is open. */
body:has(#g6924-member-dialog[open]){overflow:hidden}
