/* GDTG Escrow — scoped under .gdtg-app (Flatsome-safe). */
.gdtg-app {
  --g-ink: #14201b;
  --g-primary: #1b6b4a;
  --g-primary-d: #145239;
  --g-primary-soft: #e8f3ed;
  --g-accent: #c45c26;
  --g-success: #1f7a45;
  --g-danger: #b42318;
  --g-warn: #b54708;
  --g-info: #175cd3;
  --g-muted: #667085;
  --g-border: #e4e7ec;
  --g-bg: #f6f7f5;
  --g-surface: #ffffff;
  --g-text: #1d2939;
  --g-radius: 12px;
  /* Inherit theme/Flatsome typography — do not force a separate Google font */
  --g-font: inherit;
  --g-display: inherit;
  color: var(--g-text);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.gdtg-app *, .gdtg-app *::before, .gdtg-app *::after { box-sizing: border-box; }
.gdtg-app h2, .gdtg-app h3, .gdtg-app h4 { margin: 0 0 12px; line-height: 1.3; color: var(--g-ink); font-weight: 650; font-family: inherit; }
.gdtg-app .gdtg-title { font-size: 1.55rem; letter-spacing: -0.02em; font-family: inherit; }
.gdtg-app .gdtg-brand {
  font-family: inherit;
  font-size: 1.75rem;
  color: var(--g-ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.gdtg-app .gdtg-muted { color: var(--g-muted); font-size: 13px; }
.gdtg-app .gdtg-center { text-align: center; }
.gdtg-app .gdtg-loading { padding: 36px 16px; text-align: center; color: var(--g-muted); }
.gdtg-app .gdtg-card {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  padding: 22px;
  margin-bottom: 18px;
}
.gdtg-app .gdtg-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gdtg-app .gdtg-cols { display: grid; gap: 18px; grid-template-columns: 2fr 1fr; }
.gdtg-app .gdtg-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gdtg-app .gdtg-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.gdtg-app .gdtg-stat {
  background: var(--g-bg);
  border: 1px solid transparent;
  border-radius: var(--g-radius);
  padding: 16px;
  transition: border-color .15s ease, background .15s ease;
}
.gdtg-app .gdtg-stat b { display: block; font-size: 1.35rem; margin-top: 4px; color: var(--g-ink); letter-spacing: -0.02em; }
.gdtg-app .gdtg-stat-hero { background: var(--g-primary-soft); border-color: #c6dfd2; }
.gdtg-app .gdtg-stat-warn { background: #fff7ed; border-color: #fdba74; }
.gdtg-app .gdtg-stat-dim { opacity: .55; }
.gdtg-app a.gdtg-stat { text-decoration: none; color: inherit; display: block; }
.gdtg-app a.gdtg-stat:hover { border-color: var(--g-primary); background: var(--g-primary-soft); }
.gdtg-app .gdtg-mt { margin-top: 18px; }
.gdtg-app .gdtg-mt-sm { margin-top: 8px; }
.gdtg-app .gdtg-page-head { margin-bottom: 16px; align-items: center; }
.gdtg-app .gdtg-page-head .gdtg-title,
.gdtg-app .gdtg-page-head h3 { margin-bottom: 0; }
.gdtg-app .gdtg-filters { margin-bottom: 14px; gap: 8px; }
.gdtg-app .gdtg-filters select, .gdtg-app .gdtg-filters input { width: auto; min-width: 140px; max-width: 100%; margin: 0; flex: 1 1 140px; }
.gdtg-app .gdtg-link {
  background: none; border: none; padding: 0; margin: 0; color: var(--g-primary);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.gdtg-app .gdtg-actions-primary { display: flex; flex-direction: column; gap: 8px; }
.gdtg-app .gdtg-actions-secondary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--g-border); }
.gdtg-app .gdtg-alert-stack { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.gdtg-app .gdtg-alert-stack .gdtg-alert { margin: 0; }
.gdtg-app .gdtg-otp-sm { max-width: 160px; letter-spacing: .2em; }
.gdtg-app details.gdtg-card > summary { cursor: pointer; list-style: none; font-weight: 600; margin-bottom: 10px; }
.gdtg-app details.gdtg-card > summary::-webkit-details-marker { display: none; }
.gdtg-app details.gdtg-card > summary::before { content: "▸ "; color: var(--g-muted); }
.gdtg-app details.gdtg-card[open] > summary::before { content: "▾ "; }
.gdtg-app details.gdtg-advanced {
  margin: 12px 0 16px; padding: 12px 14px; border: 1px dashed var(--g-border); border-radius: 10px; background: var(--g-bg);
}
.gdtg-app details.gdtg-advanced > summary {
  cursor: pointer; font-weight: 600; color: var(--g-muted); margin-bottom: 8px;
}

/* Floating notification bell (auto-mounted for logged-in users) */
.gdtg-float-bell {
  position: fixed; right: 18px; bottom: 86px; z-index: 99989;
  font-family: inherit;
}
.gdtg-float-bell .gdtg-bell {
  box-sizing: border-box;
  width: 44px !important; height: 44px !important;
  min-width: 44px !important; min-height: 44px !important;
  max-width: 44px !important; max-height: 44px !important;
  aspect-ratio: 1 / 1; border-radius: 50% !important;
  background: #fff; color: var(--g-ink, #14201b);
  border: 1px solid var(--g-border, #e4e7ec); box-shadow: 0 6px 18px rgba(20, 32, 27, .14);
  cursor: pointer; display: inline-flex !important; align-items: center; justify-content: center;
  position: relative; margin: 0 !important; padding: 0 !important; line-height: 1 !important;
}
.gdtg-float-bell .gdtg-bell-ico { width: 18px; height: 18px; }
.gdtg-float-bell .gdtg-bell .gdtg-dot,
.gdtg-bell-wrap .gdtg-bell .gdtg-dot {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px;
  background: #b42318; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
@media (max-width: 640px) {
  .gdtg-float-bell { right: 12px; bottom: 80px; }
}
.gdtg-app .gdtg-money-pair { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.gdtg-app .gdtg-money-pair strong { font-size: 1.2rem; color: var(--g-ink); letter-spacing: -0.02em; }
.gdtg-app .gdtg-money-pair span { font-size: 12px; color: var(--g-muted); }

/* Forms */
.gdtg-app .gdtg-form label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 14px; color: var(--g-ink); }
.gdtg-app .gdtg-form label small { display: block; font-weight: 400; color: var(--g-muted); margin-top: 4px; }
/* Restore HTML hidden — form label { display:block } otherwise overrides [hidden] */
.gdtg-app [hidden], .gdtg-app .gdtg-hidden,
.gdtg-modal-wrap [hidden], .gdtg-modal-wrap .gdtg-hidden { display: none !important; }
.gdtg-app input[type=text], .gdtg-app input[type=email], .gdtg-app input[type=password], .gdtg-app input[type=tel],
.gdtg-app input[type=number], .gdtg-app input:not([type]), .gdtg-app select, .gdtg-app textarea {
  display: block; width: 100%; margin: 6px 0 0; padding: 11px 12px; height: auto; min-height: 44px;
  border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; font: inherit; font-size: 15px;
  font-weight: 400; box-shadow: none; color: var(--g-text);
}
.gdtg-app textarea { min-height: 96px; }
.gdtg-app input:focus, .gdtg-app select:focus, .gdtg-app textarea:focus {
  outline: none; border-color: var(--g-primary); box-shadow: 0 0 0 3px rgba(27, 107, 74, .18);
}
.gdtg-app .gdtg-check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.gdtg-app .gdtg-check input { margin: 0; width: auto; min-height: 0; }
.gdtg-app .gdtg-otp { letter-spacing: .35em; font-size: 1.35rem; text-align: center; font-variant-numeric: tabular-nums; }
.gdtg-app .gdtg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#firebase-recaptcha { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Buttons — modest spacing so adjacent buttons don’t stick (theme often forces margin:0) */
.gdtg-app .gdtg-btn,
.gdtg-modal-wrap .gdtg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; margin: 0 6px 6px 0; border: 1px solid var(--g-border); border-radius: 10px;
  background: #fff; color: var(--g-text); font: inherit; font-size: 14px; font-weight: 600;
  line-height: 1.3; cursor: pointer; text-decoration: none; text-transform: none; letter-spacing: 0; min-height: 0;
  vertical-align: middle;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.gdtg-app .gdtg-btn:hover,
.gdtg-modal-wrap .gdtg-btn:hover { background: var(--g-bg); }
.gdtg-app .gdtg-btn:disabled,
.gdtg-modal-wrap .gdtg-btn:disabled { opacity: .55; cursor: not-allowed; }
.gdtg-app .gdtg-btn-primary,
.gdtg-modal-wrap .gdtg-btn-primary {
  background: var(--g-primary); border-color: var(--g-primary); color: #fff;
  box-shadow: 0 1px 2px rgba(20, 32, 27, .08);
}
.gdtg-app .gdtg-btn-primary:hover,
.gdtg-modal-wrap .gdtg-btn-primary:hover {
  background: var(--g-primary-d); border-color: var(--g-primary-d); color: #fff;
  box-shadow: 0 2px 8px rgba(27, 107, 74, .22);
}
.gdtg-app .gdtg-auth .gdtg-btn-block {
  min-height: 46px; border-radius: 12px; font-size: 15px; margin-top: 6px;
}
.gdtg-app .gdtg-btn-success,
.gdtg-modal-wrap .gdtg-btn-success { background: var(--g-success); border-color: var(--g-success); color: #fff; }
.gdtg-app .gdtg-btn-danger,
.gdtg-modal-wrap .gdtg-btn-danger { background: var(--g-danger); border-color: var(--g-danger); color: #fff; }
.gdtg-app .gdtg-btn-warn,
.gdtg-modal-wrap .gdtg-btn-warn { background: var(--g-warn); border-color: var(--g-warn); color: #fff; }
.gdtg-app .gdtg-btn-sm,
.gdtg-modal-wrap .gdtg-btn-sm { padding: 6px 11px; font-size: 13px; }
.gdtg-app .gdtg-btn-block,
.gdtg-modal-wrap .gdtg-btn-block { width: 100%; margin-right: 0; }

/* Flex groups already use gap — drop per-button margin to avoid double spacing */
.gdtg-app .gdtg-row > .gdtg-btn,
.gdtg-app .gdtg-row > a.gdtg-btn,
.gdtg-app .gdtg-actions-secondary > .gdtg-btn,
.gdtg-app .gdtg-actions-primary > .gdtg-btn,
.gdtg-app .gdtg-pager > .gdtg-btn,
.gdtg-app .gdtg-chat-form > .gdtg-btn,
.gdtg-app .gdtg-chat-form > label.gdtg-btn,
.gdtg-app .gdtg-account-menu > .gdtg-btn,
.gdtg-app .gdtg-filters > .gdtg-btn,
.gdtg-app .gdtg-between > .gdtg-btn,
.gdtg-app .gdtg-between > a.gdtg-btn,
.gdtg-modal-wrap .gdtg-row > .gdtg-btn {
  margin: 0;
}
.gdtg-app .gdtg-form > .gdtg-btn,
.gdtg-app .gdtg-form > button.gdtg-btn,
.gdtg-modal-wrap .gdtg-form > .gdtg-btn {
  margin: 4px 0 0;
}

/* Badges / alerts */
.gdtg-app .gdtg-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.gdtg-app .gdtg-badge-success { background: #dcfae6; color: #067647; }
.gdtg-app .gdtg-badge-danger { background: #fee4e2; color: #b42318; }
.gdtg-app .gdtg-badge-warn { background: #fef0c7; color: #93370d; }
.gdtg-app .gdtg-badge-info { background: #d1e9ff; color: #175cd3; }
.gdtg-app .gdtg-badge-muted { background: #f2f4f7; color: #475467; }
.gdtg-app .gdtg-alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.gdtg-app .gdtg-alert-info { background: #eff8ff; color: #175cd3; }
.gdtg-app .gdtg-alert-warn { background: #fffaeb; color: #93370d; }
.gdtg-app .gdtg-alert-danger { background: #fef3f2; color: #b42318; }
.gdtg-app .gdtg-alert-success { background: #ecfdf3; color: #067647; }

/* Tables / lists */
.gdtg-app .gdtg-table-wrap { overflow-x: auto; }
.gdtg-app table.gdtg-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.gdtg-app .gdtg-table th, .gdtg-app .gdtg-table td { padding: 11px 10px; border-bottom: 1px solid var(--g-border); text-align: left; vertical-align: top; }
.gdtg-app .gdtg-table th { background: var(--g-bg); font-weight: 600; white-space: nowrap; color: var(--g-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.gdtg-app .gdtg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--g-border); margin-bottom: 16px; overflow-x: auto; }
.gdtg-app .gdtg-tab {
  padding: 10px 14px; border: none; background: none; border-bottom: 2px solid transparent;
  cursor: pointer; font: inherit; font-weight: 600; color: var(--g-muted); white-space: nowrap; margin: 0;
}
.gdtg-app .gdtg-tab.active { color: var(--g-primary); border-bottom-color: var(--g-primary); }
.gdtg-app .gdtg-pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 14px; }
.gdtg-app .gdtg-kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14px; }
.gdtg-app .gdtg-kv dt { color: var(--g-muted); }
.gdtg-app .gdtg-kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.gdtg-app .gdtg-empty { text-align: center; color: var(--g-muted); padding: 28px 16px; }

/*
 * Page shell: push footer down without stretching auth form backgrounds.
 * Auth: min-height on .gdtg-auth-page only; .gdtg-auth wraps the card (no inherit height).
 */
body.gdtg-page-body:not(.gdtg-auth-body) #main,
body.gdtg-page-body:not(.gdtg-auth-body) .page-wrapper {
  min-height: calc(100vh - 160px);
  min-height: calc(100dvh - 160px);
}
.gdtg-app.gdtg-page:not(.gdtg-auth-page),
.gdtg-app.gdtg-gate {
  min-height: calc(100vh - 200px);
  min-height: calc(100dvh - 200px);
  box-sizing: border-box;
}
.gdtg-app.gdtg-gate {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 12px 56px;
}
.gdtg-app.gdtg-gate .gdtg-card { width: 100%; max-width: 420px; margin: 0; }

/* Auth pages (login / register / forgot / reset / verify) */
.gdtg-app.gdtg-auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: calc(100vh - 220px);
  min-height: calc(100dvh - 220px);
  padding: 32px 12px 48px;
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(4, 63, 103, .07), transparent 60%),
    radial-gradient(ellipse 70% 45% at 90% 30%, rgba(4, 63, 103, .04), transparent 55%);
}
.gdtg-app .gdtg-auth {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  /* Do NOT stretch — background lives on .gdtg-auth-page */
  min-height: 0;
  flex: none;
  background: transparent;
  border-radius: 0;
}
.gdtg-app .gdtg-auth .gdtg-card {
  margin: 0;
  box-shadow: 0 10px 30px rgba(20, 32, 27, .06);
  width: 100%;
}
.gdtg-app .gdtg-auth-footer { margin-top: 16px; text-align: center; font-size: 14px; color: var(--g-muted); }
.gdtg-app .gdtg-auth-footer a { color: var(--g-primary); font-weight: 600; text-decoration: none; }
.gdtg-app .gdtg-auth-footer a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  body.gdtg-page-body:not(.gdtg-auth-body) #main,
  body.gdtg-page-body:not(.gdtg-auth-body) .page-wrapper {
    min-height: calc(100vh - 120px);
    min-height: calc(100dvh - 120px);
  }
  .gdtg-app.gdtg-page:not(.gdtg-auth-page),
  .gdtg-app.gdtg-gate {
    min-height: calc(100vh - 140px);
    min-height: calc(100dvh - 140px);
  }
  .gdtg-app.gdtg-auth-page {
    min-height: calc(100vh - 160px);
    min-height: calc(100dvh - 160px);
    padding: 24px 10px 40px;
  }
}

/* Progress steps */
.gdtg-app .gdtg-steps { display: flex; gap: 6px; margin: 10px 0 20px; }
.gdtg-app .gdtg-step { flex: 1; text-align: center; font-size: 12px; color: var(--g-muted); }
.gdtg-app .gdtg-step::before { content: ''; display: block; height: 5px; border-radius: 3px; background: var(--g-border); margin-bottom: 6px; }
.gdtg-app .gdtg-step.done { color: var(--g-success); }
.gdtg-app .gdtg-step.done::before { background: var(--g-success); }
.gdtg-app .gdtg-step.current { color: var(--g-primary); font-weight: 700; }
.gdtg-app .gdtg-step.current::before { background: var(--g-primary); }

/* Create form: payment type */
.gdtg-app .gdtg-pay-type, .gdtg-pay-type {
  border: 1px solid var(--g-border); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px;
}
.gdtg-app .gdtg-pay-type legend, .gdtg-pay-type legend {
  font-size: 13px; font-weight: 600; padding: 0 6px;
}
.gdtg-app .gdtg-pay-type .gdtg-check, .gdtg-pay-type .gdtg-check { margin-right: 16px; }

/* Account bar in header: chuông SVG + tên tài khoản nhỏ gọn */
.gdtg-app .gdtg-account-bar, .gdtg-account-bar {
  display: inline-flex; align-items: center; gap: 6px; position: relative; font-family: inherit;
  vertical-align: middle;
}

/* Guest auth buttons — adapt to header bg (#043f67 top → white when sticky) */
.gdtg-app .gdtg-guest-menu, .gdtg-guest-menu {
  gap: 8px; flex-wrap: nowrap;
  --g-hdr: #043f67;
  --g-hdr-d: #032f4d;
}
.gdtg-app .gdtg-auth-link, .gdtg-auth-link,
.gdtg-app .gdtg-auth-cta, .gdtg-auth-cta {
  box-sizing: border-box;
  display: inline-flex !important; align-items: center; justify-content: center;
  height: 34px; min-height: 34px; max-height: 34px;
  padding: 0 14px !important; margin: 0 !important;
  border-radius: 999px !important;
  font: inherit; font-size: 12.5px !important; font-weight: 600 !important;
  line-height: 1 !important; letter-spacing: 0; text-transform: none !important;
  text-decoration: none !important; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

/*
 * Header account/auth colors — single source of truth:
 *   html.gdtg-header-light (default / nền trắng) → mực đậm
 *   html.gdtg-header-dark  (header tối, JS đo luminance) → mực trắng
 * Không gắn theo .stuck nữa (sticky ≠ luôn nền trắng; top ≠ luôn nền tối).
 */

/* Default + light header: readable on white */
.gdtg-app .gdtg-auth-link, .gdtg-auth-link,
html.gdtg-header-light .gdtg-auth-link {
  color: #111 !important;
  background: transparent !important;
  border: 1.5px solid rgba(17, 17, 17, .35) !important;
  box-shadow: none !important;
}
.gdtg-app .gdtg-auth-link:hover, .gdtg-auth-link:hover,
.gdtg-app .gdtg-auth-link:focus, .gdtg-auth-link:focus,
html.gdtg-header-light .gdtg-auth-link:hover,
html.gdtg-header-light .gdtg-auth-link:focus {
  color: #000 !important;
  background: rgba(0, 0, 0, .05) !important;
  border-color: #111 !important;
}
.gdtg-app .gdtg-auth-cta, .gdtg-auth-cta,
html.gdtg-header-light .gdtg-auth-cta {
  color: #fff !important;
  background: #111 !important;
  border: 1.5px solid #111 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12) !important;
}
.gdtg-app .gdtg-auth-cta:hover, .gdtg-auth-cta:hover,
.gdtg-app .gdtg-auth-cta:focus, .gdtg-auth-cta:focus,
html.gdtg-header-light .gdtg-auth-cta:hover,
html.gdtg-header-light .gdtg-auth-cta:focus {
  color: #fff !important;
  background: #000 !important;
  border-color: #000 !important;
}

/* Dark header only — white controls */
html.gdtg-header-dark .gdtg-auth-link {
  color: #fff !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, .55) !important;
}
html.gdtg-header-dark .gdtg-auth-link:hover,
html.gdtg-header-dark .gdtg-auth-link:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, .12) !important;
  border-color: #fff !important;
}
html.gdtg-header-dark .gdtg-auth-cta {
  color: #043f67 !important;
  background: #fff !important;
  border-color: #fff !important;
}
html.gdtg-header-dark .gdtg-auth-cta:hover,
html.gdtg-header-dark .gdtg-auth-cta:focus {
  color: #032f4d !important;
  background: #f3f8fc !important;
  border-color: #f3f8fc !important;
}

/* Logged-in: default + light = dark ink (visible on white) */
.gdtg-account-bar .gdtg-bell,
html.gdtg-header-light .gdtg-account-bar .gdtg-bell {
  background: #fff !important;
  border-color: rgba(17, 17, 17, .2) !important;
  color: #111 !important;
}
.gdtg-account-toggle,
html.gdtg-header-light .gdtg-account-toggle {
  background: #fff !important;
  border-color: rgba(17, 17, 17, .2) !important;
  color: #111 !important;
}
.gdtg-account-name,
html.gdtg-header-light .gdtg-account-name { color: #111 !important; }
.gdtg-account-caret,
html.gdtg-header-light .gdtg-account-caret { color: rgba(17, 17, 17, .5) !important; }
.gdtg-account-avatar,
html.gdtg-header-light .gdtg-account-avatar {
  background: #111 !important; color: #fff !important;
}

/* Logged-in on dark header */
html.gdtg-header-dark .gdtg-account-bar .gdtg-bell {
  background: rgba(255, 255, 255, .1) !important;
  border-color: rgba(255, 255, 255, .45) !important;
  color: #fff !important;
}
html.gdtg-header-dark .gdtg-account-toggle {
  background: rgba(255, 255, 255, .1) !important;
  border-color: rgba(255, 255, 255, .45) !important;
  color: #fff !important;
}
html.gdtg-header-dark .gdtg-account-name { color: #fff !important; }
html.gdtg-header-dark .gdtg-account-caret { color: rgba(255, 255, 255, .75) !important; }
html.gdtg-header-dark .gdtg-account-avatar {
  background: #fff !important; color: #111 !important;
}

@media (max-width: 560px) {
  .gdtg-app .gdtg-guest-menu, .gdtg-guest-menu { gap: 6px; }
  .gdtg-app .gdtg-auth-link, .gdtg-auth-link,
  .gdtg-app .gdtg-auth-cta, .gdtg-auth-cta {
    height: 32px; min-height: 32px; max-height: 32px;
    padding: 0 11px !important; font-size: 12px !important;
  }
}
.gdtg-app .gdtg-account-menu, .gdtg-account-menu {
  display: inline-flex; align-items: center; gap: 8px; position: relative; font-family: inherit;
}
.gdtg-app .gdtg-account-menu > a, .gdtg-account-menu > a {
  color: var(--g-ink); font-weight: 600; text-decoration: none; font-size: 13px;
}
.gdtg-app .gdtg-account-toggle, .gdtg-account-toggle {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; margin: 0;
  border: 1px solid var(--g-border); border-radius: 999px; background: #fff;
  font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; color: var(--g-ink);
  line-height: 1.2;
}
.gdtg-app .gdtg-account-toggle:hover, .gdtg-account-toggle:hover { border-color: #c6dfd2; background: var(--g-primary-soft); }
.gdtg-app .gdtg-account-avatar, .gdtg-account-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--g-primary); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1; flex-shrink: 0;
}
.gdtg-app .gdtg-account-name, .gdtg-account-name {
  max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: 500;
}
.gdtg-app .gdtg-account-caret, .gdtg-account-caret {
  font-size: 9px; color: var(--g-muted); line-height: 1;
}
.gdtg-app .gdtg-header-bell, .gdtg-header-bell {
  position: relative; display: inline-flex; align-items: center;
}
.gdtg-app .gdtg-header-bell .gdtg-bell,
.gdtg-header-bell .gdtg-bell,
.gdtg-app .gdtg-bell-wrap .gdtg-bell,
.gdtg-account-bar .gdtg-bell {
  box-sizing: border-box;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  border: 1px solid var(--g-border);
  background: #fff; color: var(--g-ink);
  display: inline-flex !important; align-items: center; justify-content: center;
  cursor: pointer; padding: 0 !important; margin: 0 !important;
  position: relative; line-height: 1 !important; flex-shrink: 0;
  overflow: visible; font-size: 0;
}
.gdtg-app .gdtg-header-bell .gdtg-bell:hover,
.gdtg-header-bell .gdtg-bell:hover,
.gdtg-account-bar .gdtg-bell:hover { background: var(--g-bg); border-color: #c6dfd2; color: var(--g-primary); }
.gdtg-app .gdtg-bell-ico, .gdtg-bell-ico {
  display: block; width: 15px; height: 15px; flex-shrink: 0;
  pointer-events: none;
}
.gdtg-app .gdtg-header-bell .gdtg-dot,
.gdtg-header-bell .gdtg-dot,
.gdtg-app .gdtg-bell-wrap .gdtg-dot {
  position: absolute; top: -3px; right: -3px; min-width: 14px; height: 14px;
  background: var(--g-danger, #b42318); color: #fff; border-radius: 999px;
  font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
}
.gdtg-app .gdtg-header-bell .gdtg-bell-menu,
.gdtg-header-bell .gdtg-bell-menu,
.gdtg-float-bell .gdtg-bell-menu {
  position: absolute; right: 0; top: calc(100% + 6px); width: 300px; max-width: calc(100vw - 24px);
  display: flex; flex-direction: column; max-height: min(360px, 70vh);
  overflow: hidden;
  background: #fff; border: 1px solid var(--g-border); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(20, 32, 27, .12); z-index: 10001; text-align: left;
}
.gdtg-float-bell .gdtg-bell-menu {
  top: auto; bottom: calc(100% + 8px);
}
.gdtg-app .gdtg-account-dropdown, .gdtg-account-dropdown {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px;
  background: #fff; border: 1px solid var(--g-border); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(20, 32, 27, .12); padding: 6px; z-index: 10000;
}
@media (max-width: 560px) {
  .gdtg-app .gdtg-account-name, .gdtg-account-name { display: none; }
  .gdtg-app .gdtg-account-toggle, .gdtg-account-toggle { padding: 2px; }
}

/* Notifications page: keep delete on same row */
.gdtg-app .gdtg-notif-list { margin-top: 4px; }
.gdtg-app .gdtg-notif-row {
  display: flex; align-items: flex-start; gap: 8px;
  border-bottom: 1px solid var(--g-border); padding: 2px 0;
}
.gdtg-app .gdtg-notif-row .gdtg-notif {
  flex: 1; min-width: 0; border-bottom: none; padding: 10px 4px 10px 8px;
}
.gdtg-app .gdtg-notif-del {
  flex: 0 0 auto; align-self: center;
  width: 28px; height: 28px; margin: 0 6px 0 0; padding: 0;
  border: none; border-radius: 8px; background: transparent;
  color: var(--g-muted); font-size: 18px; line-height: 1; cursor: pointer;
}
.gdtg-app .gdtg-notif-del:hover { background: #fef3f2; color: var(--g-danger); }
.gdtg-app .gdtg-account-dropdown a,
.gdtg-app .gdtg-account-dropdown button,
.gdtg-account-dropdown a,
.gdtg-account-dropdown button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; margin: 0;
  border: none; background: none; border-radius: 8px; font: inherit; font-size: 14px;
  font-weight: 500; color: var(--g-text); text-decoration: none; cursor: pointer;
  text-transform: none !important; letter-spacing: 0 !important;
}
.gdtg-app .gdtg-account-dropdown a:hover,
.gdtg-app .gdtg-account-dropdown button:hover,
.gdtg-account-dropdown a:hover,
.gdtg-account-dropdown button:hover { background: var(--g-bg); color: var(--g-primary); }

/* Chat */
.gdtg-app .gdtg-chat { display: flex; flex-direction: column; height: 380px; border: 1px solid var(--g-border); border-radius: var(--g-radius); }
.gdtg-app .gdtg-chat-msgs { flex: 1; overflow-y: auto; padding: 12px; background: var(--g-bg); }
.gdtg-app .gdtg-msg { max-width: 80%; margin-bottom: 10px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--g-border); word-wrap: break-word; }
.gdtg-app .gdtg-msg.mine { margin-left: auto; background: var(--g-primary-soft); border-color: #c6dfd2; }
.gdtg-app .gdtg-msg.admin { background: #fff7ed; border-color: #fdba74; }
.gdtg-app .gdtg-msg small { display: block; color: var(--g-muted); font-size: 11px; }
.gdtg-app .gdtg-msg img { max-width: 220px; border-radius: 8px; display: block; margin-top: 4px; cursor: zoom-in; }
.gdtg-app .gdtg-chat-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--g-border); align-items: center; }
.gdtg-app .gdtg-chat-form input[name=body] { margin: 0; }
.gdtg-app .gdtg-file { position: relative; overflow: hidden; }
.gdtg-app .gdtg-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.gdtg-chat-root { position: fixed; right: 18px; bottom: 18px; z-index: 99990; }
.gdtg-chat-root .gdtg-chat-toggle {
  width: 56px; height: 56px; border-radius: 50%; background: var(--g-primary); color: #fff;
  border: none; font-size: 22px; cursor: pointer; box-shadow: 0 8px 20px rgba(27, 107, 74, .35);
  position: relative; margin: 0; padding: 0;
}
.gdtg-chat-root .gdtg-chat-toggle .gdtg-dot {
  position: absolute; top: -2px; right: -2px; background: var(--g-danger); color: #fff;
  border-radius: 999px; font-size: 11px; padding: 1px 6px;
}
.gdtg-chat-root .gdtg-chat-panel {
  position: absolute; right: 0; bottom: 68px; width: 340px; max-width: calc(100vw - 36px);
  background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(20, 32, 27, .18); overflow: hidden;
}
.gdtg-chat-root .gdtg-chat-head { background: var(--g-primary); color: #fff; padding: 12px 14px; font-weight: 700; }
.gdtg-chat-root .gdtg-chat { border: none; border-radius: 0; height: 400px; }

/* Bell dropdown */
.gdtg-app.gdtg-bell-wrap, .gdtg-bell-wrap { display: inline-flex; position: relative; align-items: center; }
.gdtg-app .gdtg-bell-list,
.gdtg-bell-list {
  flex: 1 1 auto; overflow-y: auto; min-height: 0; max-height: 260px;
}
.gdtg-app .gdtg-bell-empty, .gdtg-bell-empty { padding: 20px 12px; margin: 0; }
.gdtg-app .gdtg-bell-actions, .gdtg-bell-actions {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--g-border);
  background: #fafafa;
}
.gdtg-app .gdtg-bell-act, .gdtg-bell-act {
  margin: 0; padding: 0; border: none; background: none;
  font: inherit; font-size: 12px; font-weight: 600; color: #043f67;
  text-decoration: none; cursor: pointer; line-height: 1.3;
}
.gdtg-app .gdtg-bell-act:hover, .gdtg-bell-act:hover { text-decoration: underline; color: #032f4d; }
.gdtg-app .gdtg-notif {
  display: block; padding: 10px 12px; border-bottom: 1px solid #f0f0f0;
  color: inherit; text-decoration: none; font-size: 13px; background: #fff;
}
.gdtg-app .gdtg-notif:hover { background: #f7f7f7; }
.gdtg-app .gdtg-notif.unread {
  background: #fff; position: relative; padding-left: 18px;
}
.gdtg-app .gdtg-notif.unread strong { font-weight: 700; }
.gdtg-app .gdtg-notif.unread::before {
  content: ''; position: absolute; left: 8px; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: #111;
}
.gdtg-app .gdtg-notif-msg {
  color: var(--g-muted); font-size: 12.5px; line-height: 1.4; margin: 2px 0 4px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  line-clamp: 2; overflow: hidden; word-break: break-word;
}
.gdtg-app .gdtg-notif strong {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;
  line-clamp: 1; overflow: hidden;
}

/* Modal / toast */
.gdtg-modal-wrap { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 99995; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gdtg-modal-wrap .gdtg-modal { background: #fff; border-radius: 14px; padding: 22px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; position: relative; font-family: inherit; }
.gdtg-modal-wrap .gdtg-modal-close { position: absolute; top: 8px; right: 10px; border: none; background: none; font-size: 26px; cursor: pointer; margin: 0; padding: 0 6px; }
.gdtg-toasts { position: fixed; top: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; }
.gdtg-toast { padding: 12px 16px; border-radius: 10px; color: #fff; font-size: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.15); max-width: 360px; font-family: inherit; }
.gdtg-toast-success { background: #1f7a45; }
.gdtg-toast-error { background: #b42318; }
.gdtg-toast-info { background: #175cd3; }

/* QR / timeline */
.gdtg-app .gdtg-qr { text-align: center; }
.gdtg-app .gdtg-qr img { max-width: 240px; border: 1px solid var(--g-border); border-radius: 10px; padding: 6px; background: #fff; }
.gdtg-app .gdtg-copy { cursor: pointer; border-bottom: 1px dashed var(--g-primary); }
.gdtg-app .gdtg-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--g-border); }
.gdtg-app .gdtg-timeline li { margin: 0 0 12px; position: relative; font-size: 14px; }
.gdtg-app .gdtg-timeline li::before { content: ''; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--g-primary); }
.gdtg-app .gdtg-milestone { border: 1px solid var(--g-border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }

@media (max-width: 768px) {
  .gdtg-app .gdtg-cols, .gdtg-app .gdtg-form-row { grid-template-columns: 1fr; }
  .gdtg-app .gdtg-kv { grid-template-columns: 1fr; }
  .gdtg-app .gdtg-card { padding: 16px; }
  .gdtg-app .gdtg-steps .gdtg-step span { display: none; }
}

/* Hide theme/WP login CTAs + Flatsome account widget when GDTG user is logged in.
   Tip: wrap custom Login/Register HTML in class="gdtg-guest-only". */
body.gdtg-logged-in .gdtg-guest-only,
body.logged-in .gdtg-guest-only,
body.gdtg-logged-in .gdtg-theme-login-hide,
body.gdtg-logged-in .header-nav > li > a[href*="wp-login"],
body.gdtg-logged-in .header-nav > li > a[href*="/dang-nhap"],
body.gdtg-logged-in .header-nav > li > a[href*="/dang-ky"],
body.gdtg-logged-in .header-button a[href*="/dang-nhap"],
body.gdtg-logged-in .header-button a[href*="/dang-ky"],
body.gdtg-logged-in .header-button a[href*="login"],
body.gdtg-logged-in .header-button a[href*="register"],
body.gdtg-logged-in .nav-dropdown a[href*="wp-login"],
body.gdtg-logged-in li.account-item:not(:has([data-gdtg-view])),
body.gdtg-logged-in .header-account-login,
body.gdtg-logged-in .account-login,
body.gdtg-guest .gdtg-auth-only {
  display: none !important;
}
