/* Gentelella sidebar + admin dark console
   User dash: same menu, G2A marketplace content
   https://github.com/ColorlibHQ/gentelella */
body.skin-g2a.is-console {
  --gt-side: #1a2332;
  --gt-side-text: #7b8fa3;
  --gt-side-hover: #c5d0dc;
  --gt-side-on: #ffffff;
  --gt-side-border: rgba(255,255,255,.06);
  --gt-side-w: 252px;
  --gt-primary: #1ABB9C;
  --gt-primary-dk: #169f85;
  --gt-body: #0f1623;
  --gt-card: #1a2332;
  --gt-text: #e6ebf2;
  --gt-muted: #8a93a3;
  --gt-line: rgba(255,255,255,.08);
}
body.skin-g2a.is-console main {
  margin-left: var(--gt-side-w);
  padding: 20px 24px 48px;
  min-height: calc(100vh - 56px);
}
body.skin-g2a.is-console .g2a-top {
  margin-left: var(--gt-side-w);
}
body.skin-g2a.is-console .g2a-top__row {
  max-width: none;
}
body.skin-g2a.is-console .brand__tag { display: none; }

/* ---- User dash: marketplace light ---- */
body.skin-g2a.is-console.is-dash {
  background: var(--g2a-bg);
  color: var(--g2a-ink);
}
body.skin-g2a.is-console.is-dash main { background: var(--g2a-bg); }
body.skin-g2a.is-console.is-dash .site-foot {
  margin-left: var(--gt-side-w);
}
body.skin-g2a.is-console.is-dash .gt-toggle { color: rgba(255,255,255,.82); }
body.skin-g2a.is-console.is-dash .gt-toggle:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---- Admin: Gentelella dark ---- */
body.skin-g2a.is-console.is-admin {
  background: var(--gt-body);
  color: var(--gt-text);
  padding-bottom: 0;
  --font: Inter, Sora, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.skin-g2a.is-console.is-admin a { color: var(--gt-primary); }
body.skin-g2a.is-console.is-admin a:hover { color: #3fd4b6; }
body.skin-g2a.is-console.is-admin main { background: var(--gt-body); }
body.skin-g2a.is-console.is-admin .g2a-top {
  height: 56px;
  overflow: hidden;
  background: rgba(20, 29, 43, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gt-line);
}
body.skin-g2a.is-console.is-admin .g2a-top__row {
  height: 56px;
  padding: 0 20px;
  gap: 12px;
  flex-wrap: nowrap;
}
body.skin-g2a.is-console.is-admin .g2a-search { display: none; }
body.skin-g2a.is-console.is-admin .site-foot { display: none; }

.gt-crumb {
  display: flex; align-items: center; gap: 6px;
  color: var(--gt-muted);
  font: 500 13px/1 Inter, Sora, sans-serif;
  white-space: nowrap;
}
.gt-crumb a { color: inherit !important; text-decoration: none; }
.gt-crumb a:hover { color: var(--gt-primary) !important; }
.gt-crumb .gt-crumb__sep { color: #5a6473; }
.gt-crumb b { color: var(--gt-text); font-weight: 600; }

.gt-find {
  position: relative;
  flex: 1;
  max-width: 280px;
  margin: 0 auto;
}
.gt-find input {
  width: 100%;
  height: 32px;
  padding: 0 42px 0 32px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--gt-line);
  border-radius: 6px;
  color: var(--gt-text);
  font: 400 13px/1 Inter, sans-serif;
  outline: none;
}
.gt-find input::placeholder { color: #5a6473; }
.gt-find input:focus {
  border-color: var(--gt-primary);
  box-shadow: 0 0 0 3px rgba(26,187,156,.14);
}
.gt-find svg {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--gt-muted); pointer-events: none;
}
.gt-find kbd {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 0 5px;
  font: 500 10px/18px Inter, sans-serif;
  color: var(--gt-muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--gt-line);
  border-radius: 3px;
}

.gt-cta {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  background: var(--gt-primary); color: #07241d !important;
  border-radius: 6px;
  font: 600 13px/1 Inter, sans-serif;
  text-decoration: none !important;
  white-space: nowrap;
}
body.is-admin .g2a-utils .gt-cta { background: var(--gt-primary); color: #07241d !important; }
body.is-admin .g2a-utils .gt-cta:hover {
  background: var(--gt-primary-dk); color: #07241d !important;
}
.gt-toggle {
  display: none;
  width: 34px; height: 34px; padding: 0;
  border: 0; background: transparent; color: var(--gt-muted);
  border-radius: 4px; cursor: pointer;
}
.gt-toggle:hover { background: rgba(255,255,255,.06); color: #fff; }
.gt-toggle svg { width: 18px; height: 18px; }

body.is-admin .g2a-utils .acct > summary.acct__av {
  background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-dk));
  color: #fff; border: 0;
}
body.is-admin .acct__menu {
  background: #1a2332;
  border: 1px solid var(--gt-line);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
body.is-admin .acct__who { border-color: var(--gt-line); }
body.is-admin .acct__who strong { color: #fff; }
body.is-admin .acct__who span { color: var(--gt-muted); }
body.is-admin .acct__bal b { color: #fff; }
body.is-admin .g2a-utils .acct__menu a,
body.is-admin .g2a-utils .acct__menu button { color: #c5d0dc; }
body.is-admin .g2a-utils .acct__menu a:hover,
body.is-admin .g2a-utils .acct__menu button:hover { background: rgba(255,255,255,.06); }
body.is-admin .acct__menu form { border-color: var(--gt-line); }
body.is-admin .lang summary { color: var(--gt-muted); }

.gt-side {
  position: fixed; inset: 0 auto 0 0;
  width: var(--gt-side-w, 252px); z-index: 100;
  display: flex; flex-direction: column;
  background: var(--gt-side, #1a2332);
  overflow: hidden;
}
.gt-side__brand {
  height: 56px; padding: 0 16px; flex: none;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none !important;
  border-bottom: 1px solid var(--gt-side-border, rgba(255,255,255,.06));
}
.gt-side__brand .brand-mark { font-size: 18px; }
.gt-side__brand .brand-mark b {
  background: linear-gradient(120deg, #ff6a00, #fe2c55);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gt-side__brand .brand-mark i { color: #25f4ee; font-style: normal; }
.gt-side__nav {
  flex: 1; overflow: auto; padding: 8px 0 16px;
}
.gt-side__nav::-webkit-scrollbar { width: 3px; }
.gt-side__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }

.gt-side__h {
  margin: 0;
  padding: 16px 20px 4px;
  font: 600 10px/1 Inter, Sora, sans-serif;
  letter-spacing: .5px; text-transform: uppercase;
  color: rgba(123,143,163,.5);
}
.gt-side__nav a {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 32px;
  margin: 1px 8px;
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--gt-side-text, #7b8fa3) !important;
  font: 400 13px/1.2 Inter, Sora, sans-serif;
  text-decoration: none !important;
}
.gt-ico {
  width: 18px; height: 18px; flex: none;
  opacity: .5;
}
.gt-side__nav a:hover {
  background: rgba(255,255,255,.04);
  color: var(--gt-side-hover, #c5d0dc) !important;
}
.gt-side__nav a:hover .gt-ico { opacity: .85; }
.gt-side__nav a.is-on {
  background: rgba(26,187,156,.08);
  color: var(--gt-side-on, #fff) !important;
  font-weight: 500;
}
.gt-side__nav a.is-on .gt-ico { opacity: .85; color: #1ABB9C; }
.gt-side__nav a.is-on::before {
  content: "";
  position: absolute; left: -8px; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 2px 2px 0;
  background: #1ABB9C;
}

.gt-side__user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px;
  margin: 8px;
  border-top: 1px solid var(--gt-side-border, rgba(255,255,255,.06));
  flex: none;
}
.gt-side__av {
  position: relative;
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1ABB9C, #169f85);
  color: #fff; font: 600 12px/1 Inter, sans-serif;
}
.gt-side__on {
  position: absolute; bottom: -1px; right: -1px;
  width: 8px; height: 8px;
  background: #2fb344;
  border: 2px solid #1a2332;
  border-radius: 50%;
}
.gt-side__who { min-width: 0; }
.gt-side__who strong {
  display: block; color: #fff;
  font: 500 12.5px/1.2 Inter, sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gt-side__who span {
  display: block; color: #7b8fa3;
  font: 400 11px/1.2 Inter, sans-serif;
}

.gt-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 95;
  background: rgba(15, 23, 42, .45);
}

.gt-page { max-width: 1180px; }

body.is-admin .ops-head { margin-bottom: 20px; }
body.is-admin .ops-head h1 {
  color: var(--gt-text);
  font-size: 18px; font-weight: 600;
}
body.is-admin .ops-head p { color: var(--gt-muted); font-size: 13px; }
body.is-admin .ops-kpis { gap: 12px; margin-bottom: 16px; }
body.is-admin .ops-kpi,
body.is-admin .ops-card,
body.is-admin .gsection,
body.is-admin .card {
  background: var(--gt-card);
  border: 1px solid var(--gt-line);
  border-radius: 8px;
  color: var(--gt-text);
  box-shadow: none;
}
body.is-admin .ops-kpi { padding: 14px 16px; }
body.is-admin .ops-kpi .k,
body.is-admin .ops-card h2,
body.is-admin .ops-group__t,
body.is-admin .gsection__head h2 { color: var(--gt-muted); }
body.is-admin .ops-kpi .v { color: #fff; font-size: 22px; font-weight: 700; }
body.is-admin .ops-kpi .h,
body.is-admin .ops-empty,
body.is-admin .faint,
body.is-admin .muted { color: var(--gt-muted); }
body.is-admin .g2a-table th { color: var(--gt-muted); border-color: var(--gt-line); }
body.is-admin .g2a-table td { color: #d7dee8; border-color: var(--gt-line); }
body.is-admin .g2a-table tr:hover td { background: rgba(255,255,255,.03); }
body.is-admin .btn {
  background: transparent; border-color: var(--gt-line); color: var(--gt-text);
  border-radius: 6px;
}
body.is-admin .btn--primary {
  background: var(--gt-primary); border-color: var(--gt-primary); color: #07241d;
}
body.is-admin .btn--primary:hover { background: var(--gt-primary-dk); filter: none; }
body.is-admin .btn--outline {
  background: transparent; border-color: var(--gt-primary); color: var(--gt-primary);
}
body.is-admin .btn--danger {
  background: transparent; border-color: #d63939; color: #f87171;
}
body.is-admin .pill { border-color: var(--gt-line); color: #b7c0cd; background: transparent; }
body.is-admin .pill--on { border-color: var(--gt-primary); color: var(--gt-primary); }
body.is-admin .note { background: var(--gt-card); border-color: var(--gt-line); color: var(--gt-text); }
body.is-admin .meter { background: rgba(255,255,255,.08); }
body.is-admin .meter > span { background: linear-gradient(90deg, var(--gt-primary), #4299e1); }
body.is-admin label { color: var(--gt-muted); }
body.is-admin input, body.is-admin select, body.is-admin textarea {
  background: #0f1623; border-color: var(--gt-line); color: var(--gt-text);
}
body.is-admin .c-red { color: #f87171; }
body.is-admin .wrap.admin {
  display: block;
  max-width: 1180px;
  padding: 0;
  background: transparent;
  grid-template-columns: none;
}
body.is-admin .gsection { margin-bottom: 12px; }
body.is-admin .setting { border-color: var(--gt-line); }
body.is-admin .setting__label b { color: var(--gt-text); }
body.is-admin .chart .c-lbl,
body.is-admin .chart .c-val,
body.is-admin .chart .c-empty { fill: #8a93a3; }
body.is-admin .c-grid,
body.is-admin .c-axis { stroke: rgba(255,255,255,.08); }

@media (max-width: 860px) {
  .gt-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .gt-find, .gt-crumb, .gt-cta { display: none; }
  .gt-side {
    transform: translateX(-100%);
    transition: transform 220ms ease;
  }
  body.gt-open .gt-side { transform: translateX(0); }
  body.gt-open .gt-backdrop { display: block; }
  body.skin-g2a.is-console main,
  body.skin-g2a.is-console .g2a-top,
  body.skin-g2a.is-console.is-dash .site-foot { margin-left: 0; }
  body.skin-g2a.is-console { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  body.is-admin .g2a-bottom {
    background: #141d2b;
    border-top-color: var(--gt-line);
  }
  body.is-admin .g2a-bottom a { color: var(--gt-muted); }
  body.is-admin .g2a-bottom a.is-on,
  body.is-admin .g2a-bottom a:hover { color: var(--gt-primary); background: rgba(26,187,156,.1); }
}

/* Auth — cùng skin cửa hàng, logo trang chủ */
body.skin-g2a .auth {
  display: flex; flex-direction: column;
  align-items: center;
  padding: 36px 16px 48px;
}
body.skin-g2a .auth__card {
  width: min(420px, 100%);
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--g2a-line);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(18, 21, 28, .06);
}
body.skin-g2a .auth__brand {
  display: flex; justify-content: center;
  margin: 0 0 18px;
  text-decoration: none !important;
}
body.skin-g2a .auth__h {
  margin: 0 0 6px;
  text-align: center;
  color: var(--g2a-ink);
  font: 750 22px/1.3 var(--font);
}
body.skin-g2a .auth__sub {
  margin: 0 0 22px;
  text-align: center;
  color: var(--g2a-muted);
  font-size: 14px;
}
body.skin-g2a .auth__forgot {
  margin: -6px 0 0; text-align: end; font-size: 13px;
}
body.skin-g2a .auth__alt {
  text-align: center; margin-top: 18px;
  font-size: 14px; color: var(--g2a-muted);
}
body.skin-g2a .auth__tos {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--g2a-ink); font: 400 13px/1.45 var(--font);
}
body.skin-g2a .auth__tos input {
  width: 16px; height: 16px; min-height: 16px; flex: none; margin-top: 2px;
  accent-color: var(--g2a-blue);
}
