/* Team Be Bi - Google Login, light + dark */
.site-head .head-actions .tbbg-head-trigger,
.site-head .head-account-dropdown .tbbg-head-trigger {
  display:inline-flex!important; align-items:center!important; justify-content:center!important;
  box-sizing:border-box!important; width:auto!important; min-height:37px!important; height:37px!important;
  padding:0 12px!important; gap:6px!important; border:1px solid #ffc159!important; border-radius:999px!important;
  background:#fff!important; color:#252a32!important; font-family:inherit!important;font-size:13px!important;font-weight:700!important;line-height:1.2!important;
  text-transform:none!important; letter-spacing:normal!important; cursor:pointer!important;
  text-decoration:none!important; box-shadow:0 2px 7px rgba(0,0,0,.08)!important; transition:background .15s,transform .15s;
}
.site-head .head-actions .tbbg-head-trigger:hover {background:#fff7e9!important;transform:translateY(-1px)}
.site-head .tbbg-head-trigger::after {content:none!important;display:none!important}
.tbbg-g {width:22px;height:22px;display:block;flex-shrink:0}
.tbbg-header-g {width:21px;height:21px}
.tbbg-auth-backdrop[hidden] {display:none!important}
.tbbg-auth-backdrop {position:fixed;inset:0;z-index:2147482500;display:flex;align-items:center;justify-content:center;
  box-sizing:border-box;background:rgba(11,18,28,.57);padding:18px;overflow:auto;overscroll-behavior:contain}
.tbbg-auth-backdrop {--tb-bg:#fff;--tb-txt:#20242c;--tb-sub:#8a909c;--tb-line:#e4e7ed;--tb-soft:#f7f9fc;--tb-shadow:0 14px 40px rgba(0,0,0,.16);--tb-orange:#df7200;--tb-bonus-bg:#fff7e6;--tb-bonus-line:#ffdb9a}
body.dark .tbbg-auth-backdrop,html.dark .tbbg-auth-backdrop,body[data-theme="dark"] .tbbg-auth-backdrop,html[data-theme="dark"] .tbbg-auth-backdrop,
body.is-dark .tbbg-auth-backdrop {--tb-bg:#1e2430;--tb-txt:#f6f7fb;--tb-sub:#b0b8c7;--tb-line:#3b4454;--tb-soft:#2a3241;--tb-shadow:0 18px 45px rgba(0,0,0,.36);--tb-orange:#ffae50;--tb-bonus-bg:#392e20;--tb-bonus-line:#806037}
.tbbg-auth-panel {position:relative;box-sizing:border-box;width:min(420px,100%);border:1px solid var(--tb-line);border-radius:24px;
  background:var(--tb-bg);color:var(--tb-txt);box-shadow:var(--tb-shadow);overflow:hidden;text-align:center;
  font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-size:14px;line-height:1.5}
.tbbg-auth-main {padding:25px 23px 22px}
.tbbg-x {position:absolute;right:13px;top:11px;width:32px;height:32px;display:grid;place-items:center;border:0!important;
  background:transparent!important;color:var(--tb-txt)!important;border-radius:50%;cursor:pointer;font-size:25px!important;line-height:1}
.tbbg-x:hover {background:var(--tb-soft)!important}
.tbbg-logo {width:49px;height:49px;margin:0 auto 13px;display:grid;place-items:center;background:var(--tb-soft);border:1px solid var(--tb-line);border-radius:15px}
.tbbg-logo .tbbg-g {width:27px;height:27px}
.tbbg-auth-panel #tbbg-auth-title {font-size:20px!important;font-weight:700!important;color:var(--tb-txt)!important;line-height:1.35;margin:0!important}
.tbbg-subtitle {margin:2px 0 14px!important;color:var(--tb-sub)!important;font-size:13px!important}
.tbbg-subtitle strong {color:var(--tb-orange)!important;font-weight:700}
.tbbg-bonus {border:1px solid var(--tb-bonus-line)!important;border-radius:12px;background:var(--tb-bonus-bg)!important;
  padding:8px 10px!important;margin:0 0 22px!important;color:var(--tb-orange)!important;font-size:12px!important;line-height:1.5!important}
.tbbg-bonus b {font-weight:800}
.tbbg-sign-in-google {display:flex!important;align-items:center;justify-content:center;gap:11px;width:100%;min-height:50px;
  box-sizing:border-box;border:1px solid var(--tb-line)!important;box-shadow:0 2px 5px rgba(0,0,0,.14);border-radius:15px!important;
  background:var(--tb-bg)!important;color:var(--tb-txt)!important;font-size:14px;font-weight:550;text-decoration:none!important;padding:10px 12px!important}
.tbbg-sign-in-google:hover {background:var(--tb-soft)!important;color:var(--tb-txt)!important}
.tbbg-sign-in-google:focus-visible,.tbbg-x:focus-visible,.tbbg-head-trigger:focus-visible {outline:3px solid #e89b28!important;outline-offset:3px}
.tbbg-other-sign-in {display:inline-block;color:var(--tb-sub)!important;margin-top:14px;font-size:12px;text-decoration:underline;text-underline-offset:2px}
.tbbg-other-sign-in:hover {color:var(--tb-txt)!important}
.tbbg-unavailable {margin:12px 0;padding:12px;color:var(--tb-txt);background:var(--tb-soft);border-radius:10px}
.tbbg-auth-footer {border-top:1px solid var(--tb-line);background:var(--tb-soft);color:var(--tb-sub);font-size:11px;padding:15px 18px;line-height:1.55}
body.tbbg-modal-open {overflow:hidden!important}
@media(max-width:480px){.tbbg-auth-backdrop{padding:12px}.tbbg-auth-panel{border-radius:21px}.tbbg-auth-main{padding:25px 16px 19px}.tbbg-sign-in-google{font-size:13px}.tbbg-auth-footer{font-size:10px}}
@media (prefers-reduced-motion:reduce){.tbbg-head-trigger{transition:none!important}}

/* v1.1: Header variations in Team Be Bi (PC + mobile). */
.site-head .top-actions .tbbg-head-trigger,
.site-header .head-actions .tbbg-head-trigger,
.site-header .top-actions .tbbg-head-trigger,
.topbar .top-actions .tbbg-head-trigger,
#masthead .head-actions .tbbg-head-trigger,
#masthead .top-actions .tbbg-head-trigger {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;
 min-width:0!important;width:auto!important;height:37px!important;min-height:37px!important;padding:0 12px!important;gap:6px!important;
 border:1px solid #ffc159!important;border-radius:999px!important;background:#fff!important;color:#252a32!important;
 font-size:13px!important;font-weight:700!important;text-decoration:none!important;white-space:nowrap!important;
 box-shadow:0 2px 7px rgba(0,0,0,.08)!important;
}
body.dark .tbbg-head-trigger,html.dark .tbbg-head-trigger,
body[data-theme="dark"] .tbbg-head-trigger,html[data-theme="dark"] .tbbg-head-trigger {
 background:#252c35!important;color:#f4f6f9!important;border-color:#d49d44!important;
}
body.dark .tbbg-head-trigger:hover,body[data-theme="dark"] .tbbg-head-trigger:hover {
 background:#343b46!important;
}
/* Do not let a legacy auth dialog cover the new unified Google dialog. */
body.tbbg-modal-open #tbb-auth-modal,
body.tbbg-modal-open #tbbAdsAuthModal {display:none!important;}

/* Editor and VVIP purchase pages: replace their embedded guest login forms. */
.tbbg-editor-auth-upgraded #tbb-ed-login-form,
.tbbg-editor-auth-upgraded #tbb-ed-register-form,
.tbbg-editor-auth-upgraded #tbb-db-login-form,
.tbbg-editor-auth-upgraded #tbb-db-register-form,
.tbbg-editor-auth-upgraded .tbbg-editor-old-auth { display:none!important; }
.tbbg-editor-entry { display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:8px 0 14px;
  padding:16px;border:1px solid #f0d6ba;border-radius:14px;background:#fffaf4;box-sizing:border-box;max-width:100%; }
.tbbg-editor-google-btn { box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;gap:10px;
  width:auto;max-width:100%;min-height:46px;padding:10px 17px!important;border:1px solid #e2a354!important;
  border-radius:13px!important;background:#fff!important;color:#2a2a2a!important;font-size:14px!important;font-weight:700!important;
  cursor:pointer!important;line-height:1.4;box-shadow:0 2px 6px rgba(0,0,0,.05);text-decoration:none!important; }
.tbbg-editor-google-btn:hover { background:#fff3e0!important;border-color:#d78927!important; }
.tbbg-editor-google-btn .tbbg-g {width:22px;height:22px;flex-shrink:0;}
.tbbg-editor-bonus {font-size:13px;line-height:1.45;color:#815629;}
.tbbg-editor-bonus b {color:#b96307;}
body.dark .tbbg-editor-entry,html.dark .tbbg-editor-entry,
body[data-theme="dark"] .tbbg-editor-entry,html[data-theme="dark"] .tbbg-editor-entry,
body.is-dark .tbbg-editor-entry { background:#29241e;border-color:#69503c; }
body.dark .tbbg-editor-google-btn,html.dark .tbbg-editor-google-btn,
body[data-theme="dark"] .tbbg-editor-google-btn,html[data-theme="dark"] .tbbg-editor-google-btn,
body.is-dark .tbbg-editor-google-btn {background:#332c25!important;color:#faf6ef!important;border-color:#b88a53!important;}
body.dark .tbbg-editor-google-btn:hover,html.dark .tbbg-editor-google-btn:hover,
body[data-theme="dark"] .tbbg-editor-google-btn:hover,html[data-theme="dark"] .tbbg-editor-google-btn:hover,
body.is-dark .tbbg-editor-google-btn:hover {background:#433629!important;}
body.dark .tbbg-editor-bonus,html.dark .tbbg-editor-bonus,
body[data-theme="dark"] .tbbg-editor-bonus,html[data-theme="dark"] .tbbg-editor-bonus,
body.is-dark .tbbg-editor-bonus {color:#ebc695;}
body.dark .tbbg-editor-bonus b,html.dark .tbbg-editor-bonus b,
body[data-theme="dark"] .tbbg-editor-bonus b,html[data-theme="dark"] .tbbg-editor-bonus b,
body.is-dark .tbbg-editor-bonus b {color:#ffb965;}
@media(max-width:480px){.tbbg-editor-entry{padding:12px}.tbbg-editor-google-btn{width:100%!important;font-size:13px!important;}}
