/**
 * Nova Glow Affiliate Program - Styles
 * v1.0.13 restyle: matches the approved portal/admin design preview —
 * dark sidebar (#04262b) + teal active pill, white stat cards, tint panels.
 * Primary: #0d7d8c (teal) / #075a66 (teal dark) / Accent: #b8912f (gold)
 * Light tint: #eef7f8 / Sidebar: #04262b
 */

:root {
  --nga-teal: #0d7d8c;
  --nga-teal-dark: #075a66;
  --nga-sidebar: #04262b;
  --nga-gold: #b8912f;
  --nga-gold-dark: #9a7826;
  --nga-tint: #eef7f8;
  --nga-ink: #112233;
  --nga-label: #33475b;
  --nga-muted: #6b7a7d;
  --nga-faint: #8aa0a3;
  --nga-border: #dbe7e8;
  --nga-card-border: #e6efef;
  --nga-row-border: #eef3f3;
  --nga-green: #25d366;
  --nga-radius: 14px;
  /* legacy aliases (older selectors) */
  --nga-pink: #0d7d8c;
  --nga-pink-dark: #075a66;
  --nga-pink-light: #eef7f8;
  --nga-dark: #04262b;
  --nga-dark-2: #0a3238;
  --nga-text: #112233;
}

/* ========== Base ========== */
.nga-page {
  color-scheme: light;
}

/* Hide theme header/footer on affiliate pages */
body.nga-page header,
body.nga-page .site-header,
body.nga-page footer,
body.nga-page .site-footer,
body.nga-page #colophon {
  display: none !important;
}

/* ========== Auth (login/register) ========== */
.nga-auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef7f8 0%, #f3f6f6 55%, #fff 100%);
  padding: 20px;
  font-family: Calibri, "Segoe UI", sans-serif;
  color: var(--nga-ink);
}

.nga-auth-card {
  background: #fff;
  border: 1px solid #e2ebec;
  border-radius: 18px;
  padding: 32px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(7, 90, 102, 0.08);
}

/* ========== Split auth layout (form left, branding panel right) ========== */
.nga-auth-split {
  padding: 24px;
}

.nga-auth-split-card {
  display: flex;
  flex-direction: row-reverse; /* form first (left), brand panel right — like the preview */
  width: 100%;
  max-width: 900px;
  min-height: 520px;
  background: #fff;
  border: 1px solid #e2ebec;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 90, 102, 0.08);
}

.nga-auth-side {
  flex: 0.9;
  background: linear-gradient(160deg, #eef7f8, #e0f2f4);
  color: var(--nga-ink);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nga-auth-side::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(184, 145, 47, 0.10);
  top: -100px;
  right: -100px;
}

.nga-auth-side::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(13, 125, 140, 0.05);
  bottom: -70px;
  left: -70px;
}

.nga-side-mono {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nga-gold), var(--nga-gold-dark));
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 20px rgba(7, 90, 102, 0.18);
}

.nga-side-brand {
  font-size: 24px;
  letter-spacing: 4px;
  font-weight: 700;
  color: var(--nga-teal-dark);
  margin: 0;
  position: relative;
  z-index: 1;
}

.nga-side-tag {
  font-size: 10px;
  letter-spacing: 3.5px;
  color: var(--nga-gold);
  margin: 5px 0 0;
  position: relative;
  z-index: 1;
}

.nga-side-welcome {
  font-size: 25px;
  font-weight: 300;
  color: var(--nga-ink);
  margin: 26px 0 0;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.nga-side-welcome span {
  color: var(--nga-teal);
  font-weight: 700;
}

.nga-side-sub {
  font-size: 14px;
  color: var(--nga-label);
  margin: 10px 0 0;
  position: relative;
  z-index: 1;
}

.nga-side-note {
  font-size: 13px;
  color: var(--nga-muted);
  margin: 20px 0 0;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.nga-side-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  width: 100%;
  max-width: 240px;
  position: relative;
  z-index: 1;
}

.nga-side-perk {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 4px 12px rgba(7, 90, 102, 0.08);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--nga-ink);
  text-align: left;
}

.nga-side-perk .nga-perk-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--nga-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--nga-teal-dark);
}

.nga-auth-form {
  flex: 1.1;
  padding: 38px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.nga-auth-form h2 {
  font-size: 22px;
  color: var(--nga-ink);
  margin: 0 0 4px;
}

.nga-brand {
  text-align: center;
  margin-bottom: 24px;
}

.nga-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--nga-teal);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.nga-brand h1 {
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--nga-teal-dark);
  margin: 0;
}

.nga-tagline {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--nga-gold);
  margin: 4px 0 0;
}

.nga-auth-card h2 {
  font-size: 20px;
  color: var(--nga-ink);
  margin: 0 0 4px;
}

.nga-sub {
  color: var(--nga-muted);
  font-size: 13.5px;
  margin: 0 0 22px;
}

/* ========== Forms ========== */
.nga-field {
  margin-bottom: 14px;
}

.nga-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--nga-label);
  margin-bottom: 6px;
}

.nga-field input,
.nga-field select,
.nga-field textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 16px;
  font-family: inherit;
  border: 1.5px solid var(--nga-border);
  border-radius: 10px;
  background: #fcfefe;
  color: #22343a;
  box-sizing: border-box;
}

.nga-field input:focus,
.nga-field select:focus,
.nga-field textarea:focus {
  outline: none;
  border-color: var(--nga-teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 125, 140, 0.12);
}

.nga-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.nga-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0 18px;
  font-size: 12.5px;
  color: var(--nga-muted);
}

.nga-row a {
  color: var(--nga-teal);
  font-weight: 700;
  text-decoration: none;
}

.nga-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--nga-muted);
}

/* ========== Buttons ========== */
.nga-btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid #d5e8ea;
  border-radius: 10px;
  background: var(--nga-tint);
  color: var(--nga-teal-dark);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, transform 0.1s;
  box-sizing: border-box;
}

.nga-btn:hover {
  background: #e0f2f4;
}

.nga-btn:active {
  transform: scale(0.98);
}

.nga-btn-primary {
  background: var(--nga-teal);
  border-color: var(--nga-teal);
  color: #fff;
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

.nga-btn-primary:hover {
  background: var(--nga-teal-dark);
  border-color: var(--nga-teal-dark);
}

.nga-btn-block {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

.nga-btn-whatsapp {
  background: #25a244;
  border-color: #25a244;
  color: #fff;
  padding: 13px;
  font-size: 15px;
}

.nga-btn-whatsapp:hover {
  background: #1e8a39;
  border-color: #1e8a39;
}

.nga-btn-share {
  background: var(--nga-teal);
  border-color: var(--nga-teal);
  color: #fff;
  padding: 13px;
  font-size: 15px;
}

.nga-btn-share:hover {
  background: var(--nga-teal-dark);
  border-color: var(--nga-teal-dark);
}

/* Copy buttons inside link/code boxes (preview: solid dark teal) */
.nga-btn.nga-copy-btn {
  background: var(--nga-teal-dark);
  border-color: var(--nga-teal-dark);
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  flex: none;
}

.nga-btn.nga-copy-btn:hover {
  background: var(--nga-sidebar);
  border-color: var(--nga-sidebar);
}

.nga-btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

.nga-btn-xs {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.nga-btn-green {
  background: #1e7d3a;
  border-color: #1e7d3a;
  color: #fff;
}

.nga-btn-green:hover {
  background: #17652f;
  border-color: #17652f;
}

.nga-btn-danger {
  background: #fdeaea;
  border-color: #fdeaea;
  color: #b3261e;
}

.nga-btn-danger:hover {
  background: #fbdede;
}

.nga-btn-light {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 9px;
  padding: 9px 16px;
  font-size: 13.5px;
}

.nga-btn-light:hover {
  background: rgba(255, 255, 255, 0.32);
}

.nga-alt {
  text-align: center;
  font-size: 13px;
  color: var(--nga-muted);
  margin-top: 16px;
}

.nga-alt a {
  color: var(--nga-teal);
  font-weight: 700;
  text-decoration: none;
}

.nga-admin-link {
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
}

.nga-admin-link a {
  color: var(--nga-teal);
  font-weight: 700;
  text-decoration: none;
}

.nga-admin-link a:hover {
  text-decoration: underline;
}

/* ========== Messages ========== */
.nga-error {
  background: #fdeaea;
  color: #b3261e;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

.nga-success {
  background: #e4f5e9;
  color: #1e7d3a;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

.nga-muted {
  color: var(--nga-muted);
  font-size: 14px;
}

.nga-muted-sm {
  color: var(--nga-muted);
  font-size: 12px;
}

/* ========== App Layout ========== */
.nga-app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f3f6f6;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--nga-ink);
  color-scheme: light;
}

/* Desktop sidebar — deep teal, preview style */
.nga-sidebar {
  width: 212px;
  background: var(--nga-sidebar);
  color: #cfe3e5;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
}

.nga-brand-sm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 2px 10px 4px;
}

.nga-logo-sm {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--nga-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.nga-brand-sm span {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14.5px;
  color: #fff;
}

.nga-brand-sm em {
  font-style: normal;
  color: var(--nga-gold);
  font-size: 11px;
  letter-spacing: 1px;
  margin-left: 2px;
}

.nga-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 22px;
  flex: 1;
}

.nga-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #a9c6c9;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nga-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nga-nav-item.active {
  background: var(--nga-teal);
  color: #fff;
  font-weight: 700;
}

.nga-nav-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex: none;
}

/* Sidebar logout — nav-row style pinned to the bottom */
.nga-sidebar-logout {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nga-logout-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: #a9c6c9;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
}

.nga-logout-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Main content */
.nga-main {
  flex: 1;
  min-width: 0;
  padding: 24px 26px 40px;
  background: #fbfdfd;
  overflow-x: hidden;
  box-sizing: border-box;
}

.nga-page-title {
  font-size: 21px;
  color: var(--nga-ink);
  margin: 0 0 6px;
}

.nga-page-title + .nga-muted {
  margin: 0 0 18px;
  font-size: 13px;
}

/* Mobile bottom nav - hidden on desktop */
.nga-bottomnav {
  display: none;
}

/* ========== Dashboard components ========== */
.nga-hello {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.nga-hello h2 {
  font-size: 21px;
  margin: 0;
  color: var(--nga-ink);
}

.nga-hello p {
  color: var(--nga-muted);
  font-size: 13px;
  margin: 3px 0 0;
}

.nga-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--nga-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.nga-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--nga-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}

/* White stat cards grid (affiliate home — preview style) */
.nga-statgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.nga-statcard {
  background: #fff;
  border: 1px solid var(--nga-card-border);
  border-radius: var(--nga-radius);
  padding: 16px 18px;
  box-shadow: 0 3px 10px rgba(7, 90, 102, 0.05);
}

.nga-statcard-lbl {
  display: block;
  font-size: 12.5px;
  color: var(--nga-muted);
  font-weight: 700;
  margin-bottom: 5px;
}

.nga-statcard-val {
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: var(--nga-ink);
}

/* Admin dashboard: gradient hero stat + small stat cards */
.nga-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.nga-stat {
  background: linear-gradient(135deg, var(--nga-teal), var(--nga-teal-dark));
  color: #fff;
  border-radius: var(--nga-radius);
  padding: 20px;
}

.nga-stat-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 5px;
}

.nga-stat-val {
  font-size: 25px;
  font-weight: 700;
}

.nga-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.nga-stat-sm {
  background: #fff;
  border: 1px solid var(--nga-card-border);
  border-radius: var(--nga-radius);
  padding: 16px 18px;
  box-shadow: 0 3px 10px rgba(7, 90, 102, 0.05);
}

.nga-stat-num {
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: var(--nga-ink);
  margin-bottom: 3px;
}

.nga-stat-lbl {
  font-size: 12.5px;
  color: var(--nga-muted);
  font-weight: 700;
}

/* Cards */
.nga-card {
  background: #fff;
  border: 1px solid var(--nga-card-border);
  border-radius: var(--nga-radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 3px 10px rgba(7, 90, 102, 0.05);
}

.nga-card h3 {
  font-size: 15px;
  margin: 0 0 14px;
  color: var(--nga-ink);
}

/* Dashboard home: referral + recent orders side by side */
.nga-home-cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  align-items: start;
}

.nga-home-cols .nga-card {
  margin-bottom: 0;
}

/* Referral link / coupon boxes */
.nga-copy-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.nga-copy-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 13px;
  border: 1.5px solid var(--nga-border);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  background: #f7fbfb;
  color: var(--nga-label);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Quick share (Links tab): brand-coloured circles with labels */
.nga-share-icons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nga-qs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.nga-qs-ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff;
  background: var(--nga-teal);
}

.nga-qs-wa .nga-qs-ic { background: #25d366; }
.nga-qs-fb .nga-qs-ic { background: #1877f2; }
.nga-qs-ig .nga-qs-ic { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.nga-qs-cp .nga-qs-ic {
  background: var(--nga-tint);
  color: var(--nga-teal-dark);
  border: 1.5px solid var(--nga-border);
}

.nga-qs-lbl {
  font-size: 11px;
  color: var(--nga-muted);
}

/* Orders */
.nga-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.nga-filter {
  padding: 7px 16px;
  border-radius: 20px;
  background: #eef3f3;
  color: var(--nga-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
}

.nga-filter.active {
  background: var(--nga-teal);
  color: #fff;
}

.nga-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--nga-row-border);
}

.nga-order-row:last-child {
  border-bottom: none;
}

.nga-order-id {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--nga-ink);
}

.nga-order-date {
  display: block;
  font-size: 11.5px;
  color: var(--nga-muted);
  margin-top: 2px;
}

.nga-order-right {
  text-align: right;
}

.nga-order-amt {
  display: block;
  font-weight: 700;
  color: #22343a;
}

.nga-order-comm {
  display: block;
  font-size: 12px;
  color: var(--nga-muted);
  margin-top: 2px;
}

/* Status chips */
.nga-badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.nga-badge-approved,
.nga-badge-active {
  background: #e4f5e9;
  color: #1e7d3a;
}

.nga-badge-pending {
  background: #fdf0dd;
  color: #b06a00;
}

.nga-badge-paid {
  background: #e0f2f4;
  color: var(--nga-teal-dark);
}

.nga-badge-suspended,
.nga-badge-cancelled,
.nga-badge-rejected {
  background: #fdeaea;
  color: #b3261e;
}

/* Earnings */
.nga-balance-card {
  background: linear-gradient(135deg, var(--nga-teal), var(--nga-teal-dark));
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  margin-bottom: 16px;
}

.nga-balance-label {
  display: block;
  font-size: 12.5px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.nga-balance-val {
  display: block;
  font-size: 27px;
  font-weight: 700;
  margin-bottom: 14px;
}

.nga-balance-card .nga-muted-sm {
  color: rgba(255, 255, 255, 0.85);
}

/* Profile */
.nga-profile-head {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--nga-card-border);
  border-radius: var(--nga-radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 3px 10px rgba(7, 90, 102, 0.05);
}

.nga-profile-head h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
  color: var(--nga-ink);
}

.nga-profile-head .nga-muted {
  margin: 0 0 8px;
  font-size: 12.5px;
}

.nga-menu-list {
  background: #fff;
  border: 1px solid var(--nga-card-border);
  border-radius: var(--nga-radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(7, 90, 102, 0.05);
}

.nga-menu-list a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  text-decoration: none;
  color: #22343a;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--nga-row-border);
}

.nga-menu-list a:last-child {
  border-bottom: none;
}

.nga-menu-ic {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--nga-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.nga-menu-chev {
  margin-left: auto;
  color: #b6c6c8;
  font-size: 16px;
}

/* Tables (admin) */
.nga-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.nga-search-form {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 240px;
}

.nga-search-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1.5px solid var(--nga-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #22343a;
}

.nga-search-form input:focus {
  outline: none;
  border-color: var(--nga-teal);
  box-shadow: 0 0 0 3px rgba(13, 125, 140, 0.12);
}

.nga-search-form .nga-btn {
  background: var(--nga-teal);
  border-color: var(--nga-teal);
  color: #fff;
}

.nga-search-form .nga-btn:hover {
  background: var(--nga-teal-dark);
  border-color: var(--nga-teal-dark);
}

.nga-table-wrap {
  background: #fff;
  border: 1px solid var(--nga-card-border);
  border-radius: var(--nga-radius);
  overflow-x: auto;
  box-shadow: 0 3px 10px rgba(7, 90, 102, 0.05);
}

.nga-table-wrap .nga-muted {
  padding: 4px 18px 16px;
}

.nga-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.nga-table th {
  background: #fff;
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--nga-muted);
  font-size: 12px;
  border-bottom: 1.5px solid var(--nga-card-border);
  white-space: nowrap;
}

.nga-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--nga-row-border);
  color: var(--nga-label);
  vertical-align: middle;
}

.nga-table tbody tr:last-child td {
  border-bottom: none;
}

.nga-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ========== Mobile (app-like) ========== */
@media (max-width: 900px) {
  .nga-statgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nga-home-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Hide desktop sidebar on mobile */
  .nga-sidebar {
    display: none;
  }

  .nga-main {
    padding: 20px 16px 96px; /* bottom padding for nav */
  }

  /* Show bottom nav — preview style */
  .nga-bottomnav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--nga-card-border);
    padding: 9px 4px calc(10px + env(safe-area-inset-bottom));
    z-index: 100;
    font-family: Calibri, "Segoe UI", sans-serif;
  }

  .nga-bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 2px;
    text-decoration: none;
    color: var(--nga-faint);
    font-size: 10.5px;
    font-weight: 700;
  }

  .nga-bnav-icon {
    font-size: 19px;
    line-height: 1.2;
  }

  .nga-bnav-item.active {
    color: var(--nga-teal);
  }

  /* Mobile bottom-nav logout */
  .nga-bnav-logout {
    flex: 1;
    display: flex;
    margin: 0;
  }

  .nga-bnav-logout-btn {
    flex: 1;
    background: none;
    border: 0;
    color: #b3261e;
    font-family: inherit;
    cursor: pointer;
  }

  /* Dashboard header + stats */
  .nga-hello h2 {
    font-size: 17px;
  }

  .nga-avatar {
    width: 38px;
    height: 38px;
  }

  /* First stat card becomes the gradient total card (like the preview) */
  .nga-statgrid .nga-statcard:first-child {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--nga-teal), var(--nga-teal-dark));
    border-color: transparent;
    padding: 18px;
  }

  .nga-statgrid .nga-statcard:first-child .nga-statcard-lbl {
    color: rgba(255, 255, 255, 0.85);
  }

  .nga-statgrid .nga-statcard:first-child .nga-statcard-val {
    color: #fff;
    font-size: 25px;
  }

  /* Auth: stacked, brand panel becomes a compact header */
  .nga-auth {
    padding: 0;
    align-items: stretch;
  }

  .nga-auth-card {
    border-radius: 0;
    border: none;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    box-shadow: none;
  }

  .nga-auth-split-card {
    flex-direction: column;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .nga-auth-side {
    flex: none;
    padding: 30px 24px 24px;
  }

  .nga-side-mono {
    width: 52px;
    height: 52px;
    font-size: 19px;
    margin-bottom: 8px;
  }

  .nga-side-brand {
    font-size: 19px;
  }

  .nga-side-welcome,
  .nga-side-sub,
  .nga-side-note,
  .nga-side-perks {
    display: none;
  }

  .nga-auth-form {
    flex: none;
    padding: 28px 22px 40px;
  }

  /* Profile head stacks centered — like the preview */
  .nga-profile-head {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .nga-avatar-lg {
    width: 78px;
    height: 78px;
  }

  /* Tables scroll inside their card on mobile */
  .nga-table-wrap {
    margin: 0;
  }

  .nga-2col {
    grid-template-columns: 1fr;
  }
}

/* Force light mode (dark mode fix) */
.nga-auth,
.nga-app,
.nga-auth-card,
.nga-card,
.nga-stat-sm,
.nga-statcard,
.nga-profile-head,
.nga-menu-list,
.nga-table-wrap {
  color-scheme: light;
}

/* ========== Landing page: /affiliate-program/ ========== */
/* v1.0.5 redesign — teal #0d7d8c / dark #075a66, gold #b8912f — matches novaglowpk.store */

.nga-lp {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  color: #223038;
  background: #fff;
  color-scheme: light;
  line-height: 1.55;
  font-size: 15px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- Hero: full-width banner image only ---- */
.nga-lp-hero { display: block; background: #eef7f8; }
.nga-lp-hero-banner { width: 100%; height: auto; display: block; }
.nga-lp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0d7d8c;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  transition: background .2s;
}
.nga-lp-cta:hover { background: #075a66; color: #fff; }

/* ---- 4 icon cards ---- */
.nga-lp-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 26px 22px;
  background: #f2f9fa;
  border: 1px solid #d8ecef;
  border-radius: 12px;
  padding: 26px 10px;
}
.nga-lp-feature { text-align: center; padding: 0 18px; border-right: 1px solid #d8ecef; }
.nga-lp-feature:last-child { border-right: none; }
.nga-lp-ficon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d4ebee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d7d8c;
  margin-bottom: 10px;
}
.nga-lp-feature h3 { font-size: 16px; color: #1c2b31; margin: 0 0 6px; }
.nga-lp-feature p { font-size: 13.5px; color: #5b6b72; margin: 0; }

/* ---- Steps ---- */
.nga-lp-steps { padding: 10px 22px 6px; text-align: center; }
.nga-lp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #b8912f;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 6px;
}
.nga-lp-divider .dash { display: inline-block; width: 44px; height: 2px; background: #b8912f; }
.nga-lp-steps h2 { font-size: 26px; color: #1c2b31; margin: 0 0 18px; }
.nga-lp-steplist {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.nga-lp-snum {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #b8912f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.nga-lp-step h3 { font-size: 15px; margin: 6px 0 4px; }
.nga-lp-step p { font-size: 13px; color: #5b6b72; margin: 0; }
.nga-lp-chev { align-self: center; color: #b8912f; font-size: 22px; padding: 0 6px; }

/* ---- Main: content + sticky form ---- */
.nga-lp-main {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 26px;
  padding: 22px 22px 10px;
  align-items: start;
}
.nga-lp-why {
  background: #f2f9fa;
  border: 1px solid #d8ecef;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 22px;
}
.nga-lp-why h2 { font-size: 21px; color: #0d7d8c; margin: 0 0 2px; }
.nga-lp-why-sub { font-size: 13.5px; color: #5b6b72; margin: 0 0 16px; }
.nga-lp-whygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.nga-lp-whyitem { display: flex; gap: 12px; }
.nga-lp-wicon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: #d4ebee;
  color: #0d7d8c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nga-lp-whyitem h3 { font-size: 14.5px; margin: 0 0 2px; }
.nga-lp-whyitem p { font-size: 13px; color: #5b6b72; margin: 0; }

/* ---- CTA banner ---- */
.nga-lp-ctaband {
  background: linear-gradient(120deg, #e9f4f5, #e8f4f6);
  border: 1px solid #d8ecef;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.nga-lp-gift { color: #0d7d8c; flex: 0 0 40px; }
.nga-lp-ctaband h3 { font-size: 19px; margin: 0 0 2px; }
.nga-lp-ctaband p { font-size: 13.5px; color: #5b6b72; margin: 0 0 10px; }
.nga-lp-script2 {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  color: #075a66;
  font-size: 24px;
  transform: rotate(-8deg);
  margin-left: auto;
  white-space: nowrap;
  line-height: 1.25;
}

/* ---- Terms + about ---- */
.nga-lp-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.nga-lp-termsbox,
.nga-lp-aboutbox {
  background: #f2f9fa;
  border: 1px solid #d8ecef;
  border-radius: 12px;
  padding: 20px;
}
.nga-lp-termsbox h3,
.nga-lp-aboutbox h3 {
  font-size: 17px;
  color: #075a66;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.nga-lp-termsbox ul { list-style: none; margin: 0; padding: 0; }
.nga-lp-termsbox li {
  font-size: 13px;
  color: #5b6b72;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}
.nga-lp-termsbox li::before {
  content: "\2714";
  color: #b8912f;
  font-weight: 700;
  flex: 0 0 auto;
}
.nga-lp-aboutbox p { font-size: 13.5px; color: #5b6b72; margin: 0 0 10px; }
.nga-lp-sig {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  color: #0d7d8c;
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}
.nga-lp-sig small {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  color: #b8912f;
  letter-spacing: 1px;
}

/* ---- Registration form card ---- */
.nga-lp-formwrap { position: sticky; top: 20px; }
.nga-lp-formcard {
  background: #fff;
  border: 1px solid #d8ecef;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(13, 125, 140, .08);
}
.nga-lp-formcard h2 { font-size: 19px; color: #075a66; margin: 0 0 4px; }
.nga-lp-formsub { font-size: 13px; color: #5b6b72; margin: 0 0 16px; }
.nga-lp-formcard .nga-field { margin-bottom: 12px; }
.nga-lp-formcard .nga-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #223038;
}
.nga-lp-formcard .nga-field input,
.nga-lp-formcard .nga-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #dfe6e8;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #223038;
  background: #fbfdfd;
}
.nga-lp-formcard .nga-field input:focus,
.nga-lp-formcard .nga-field select:focus {
  outline: none;
  border-color: #0d7d8c;
  background: #fff;
}
.nga-lp-terms {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #5b6b72;
  margin: 12px 0;
  align-items: flex-start;
  cursor: pointer;
}
.nga-lp-terms input { margin-top: 3px; accent-color: #0d7d8c; }
.nga-lp-terms a { color: #0d7d8c; text-decoration: none; }
.nga-lp-submit {
  width: 100%;
  border: 0;
  border-radius: 30px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #0d7d8c;
  cursor: pointer;
}
.nga-lp-submit:hover { background: #075a66; }
.nga-lp-tempw {
  display: inline-block;
  background: #eef6f7;
  border: 1px dashed #0d7d8c;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 17px;
  letter-spacing: 1px;
  margin: 6px 0;
}

/* ---- Footer strip ---- */
.nga-lp-footer { margin-top: 26px; border-top: 1px solid #d8ecef; padding: 20px 22px 0; }
.nga-lp-frow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.nga-lp-fbrand-text { font-size: 20px; font-weight: 700; color: #075a66; line-height: 1.1; }
.nga-lp-fbrand-text small {
  display: block;
  font-size: 10px;
  color: #b8912f;
  letter-spacing: 2px;
  font-weight: 400;
}
.nga-lp-fcontact { display: flex; gap: 22px; font-size: 13.5px; color: #5b6b72; flex-wrap: wrap; }
.nga-lp-social { display: flex; gap: 8px; }
.nga-lp-soc {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #075a66;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.nga-lp-tagline {
  background: #075a66;
  color: #eaf4f5;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 1px;
  padding: 9px;
  margin: 0 -22px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nga-lp-main { display: flex; flex-direction: column; padding: 16px 14px; }
  .nga-lp-formwrap { order: -1; position: static; margin-bottom: 18px; width: 100%; }
  .nga-lp-features { grid-template-columns: repeat(2, 1fr); gap: 18px 0; margin: 20px 14px; padding: 20px 8px; }
  .nga-lp-feature:nth-child(2) { border-right: none; }
  .nga-lp-steplist { grid-template-columns: 1fr 1fr; gap: 18px; }
  .nga-lp-chev { display: none; }
  .nga-lp-whygrid { grid-template-columns: 1fr; }
  .nga-lp-twocol { grid-template-columns: 1fr; }
  .nga-lp-ctaband { flex-direction: column; text-align: center; }
  .nga-lp-script2 { margin-left: 0; }
  .nga-lp-frow { justify-content: center; text-align: center; }
}

/* ===== Admin affiliate Edit panel (v1.0.18) ===== */
.nga-edit-wrap { margin-top: 6px; }
.nga-edit-wrap > summary { cursor: pointer; list-style: none; display: inline-block; }
.nga-edit-wrap > summary::-webkit-details-marker { display: none; }
.nga-edit-form { margin-top: 8px; background: #f4f9fa; border: 1px solid #dcebee; border-radius: 10px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 260px; }
.nga-edit-form .nga-field { margin: 0; }
.nga-edit-form .nga-field label { font-size: 11px; }
.nga-edit-form .nga-field input { padding: 7px 9px; font-size: 13px; }
.nga-edit-form button { grid-column: 1 / -1; justify-self: start; }

/* ===== Withdraw popup (v1.0.21) ===== */
.nga-modal-overlay { position: fixed; inset: 0; background: rgba(4,38,43,.55); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.nga-modal { background: #fff; border-radius: 16px; padding: 22px; width: 100%; max-width: 380px; position: relative; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.nga-modal h3 { margin: 0 0 4px; }
.nga-modal-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: #5b7a80; }
.nga-modal .nga-btn { width: 100%; }

/* v1.0.25 delivery tracking (CN + live parcel status + rider) */
.nga-badge-booked { background:#dceefb; color:#155e8a; }
.nga-badge-transit { background:#fdf0d3; color:#9a6d00; }
.nga-badge-out { background:#ffe3c2; color:#9a5200; }
.nga-badge-delivered { background:#d8f3dc; color:#1d7a3a; }
.nga-badge-trackwait { background:#eceff1; color:#607d8b; }
.nga-order-row { flex-wrap: wrap; }
.nga-order-delivery { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 7px; padding-top: 8px; border-top: 1px dashed #e0ecec; font-size: .85rem; }
.nga-cn { font-weight: 700; color: #075a66; }
.nga-rider a { color: #0d7d8c; font-weight: 700; text-decoration: none; }
.nga-delivery-row td { background: #f7fbfb; padding-top: 6px; padding-bottom: 10px; }
.nga-delivery-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.nga-delivery-form label { font-size: .8rem; font-weight: 600; color: #41666c; display: inline-flex; align-items: center; gap: 6px; }
.nga-mini-input { border: 1px solid #c9dcdf; border-radius: 7px; padding: 5px 9px; font-size: .85rem; width: 150px; }

/* v1.0.26 Glow Points */
.nga-points-card { border: 1px solid #e8d9ae; background: linear-gradient(180deg, #fffdf4, #fff); }
.nga-points-balance { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 6px; }
.nga-points-num { font-size: 2rem; font-weight: 800; color: #b8912f; line-height: 1; }
.nga-glow-coupon { background: #fdf6dd; border: 1px dashed #b8912f; border-radius: 10px; padding: 12px; margin-top: 10px; }
.nga-points-history { margin-top: 12px; border-top: 1px solid #eef2f2; }
.nga-points-amt { font-weight: 800; }
.nga-points-amt.pos { color: #1d7a3a; }
.nga-points-amt.neg { color: #9a5200; }

/* ---------- v1.0.51: Announcement popup (dashboard only, modern) ---------- */
.nga-announce-overlay{position:fixed;inset:0;background:rgba(4,38,43,.55);z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px}
.nga-announce-card{background:#fff;border-radius:28px;box-shadow:0 24px 60px rgba(11,59,64,.30);overflow:hidden;width:100%;max-width:420px;color:#0b3b40;max-height:calc(100dvh - 32px);max-height:calc(100vh - 32px);display:flex;flex-direction:column}
.nga-announce-form{margin:0;display:flex;flex-direction:column;min-height:0;flex:1 1 auto}
.nga-announce-head{background:linear-gradient(135deg,#0d7d8c,#075a66 60%,#0b3b40);padding:22px 20px 24px;text-align:center;position:relative;flex-shrink:0}
.nga-announce-x{position:absolute;top:14px;right:16px;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;border:0;font-size:18px;line-height:1;cursor:pointer}
.nga-announce-icon{width:64px;height:64px;margin:0 auto;background:#fff;border-radius:20px;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.nga-announce-badge{color:#ffd968;font-size:11px;font-weight:800;letter-spacing:2px;margin-top:16px}
.nga-announce-body{padding:24px 22px 12px;text-align:center;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0}
.nga-announce-title{font-size:24px;font-weight:800;line-height:1.25;letter-spacing:-.3px}
.nga-announce-msg{font-size:16px;line-height:1.55;color:#33484a;margin-top:10px;white-space:pre-line}
.nga-announce-footer{padding:10px 22px 22px;text-align:center;flex-shrink:0;background:#fff}
.nga-announce-ok{width:100%;background:#0b3b40;color:#fff;border:0;border-radius:16px;padding:15px;font-weight:800;font-size:16px;letter-spacing:.3px;cursor:pointer;box-shadow:0 10px 22px rgba(11,59,64,.28)}
.nga-announce-ok:disabled{opacity:.7;cursor:default;box-shadow:none}
.nga-announce-foot{font-size:11.5px;color:#8a9a9b;margin-top:12px}

/* v1.0.53: admin preview must NOT be a full-screen overlay - it sits
   inline inside the Announcements tab, so it can never block the page
   or look frozen. The live affiliate popup still uses the overlay. */
.nga-announce-preview .nga-announce-overlay{position:static;background:transparent;padding:0;display:block}
.nga-announce-preview .nga-announce-card{margin:0 auto;max-height:none}
.nga-announce-preview .nga-announce-body{overflow:visible}

/* ---------- v1.0.57: Poster offer popup (image = offer, no image = plain announcement) ---------- */
.nga-poster-card{max-width:540px}
.nga-poster-head{background:#fff;padding:18px 16px 6px;text-align:center;position:relative;flex-shrink:0}
.nga-poster-head .nga-announce-x{background:#0b3b40;color:#fff}
.nga-poster-brand{font-size:20px;font-weight:900;letter-spacing:2px;color:#0b3b40}
.nga-poster-sub{font-size:10px;letter-spacing:2px;color:#8a9a9b;margin-top:2px}
.nga-poster-body{padding:10px 16px 12px}
.nga-poster-row{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap}
.nga-poster-text{flex:1 1 260px;min-width:240px}
.nga-poster-heading{background:#0b3b40;color:#fff;border-radius:10px;padding:12px 14px;font-size:22px;font-weight:800;line-height:1.3}
.nga-poster-msg{font-size:16px;line-height:1.55;color:#0b3b40;margin-top:12px;text-align:left}
.nga-poster-imgwrap{flex:0 1 170px;margin:0 auto;background:#f4f8f8;border:1px solid #e0ecec;border-radius:16px;padding:10px;text-align:center}
.nga-poster-img{width:100%;max-height:260px;object-fit:contain;display:block}
.nga-poster-footer{background:#0b3b40;color:#fff;padding:14px 16px 16px;text-align:center}
.nga-poster-footline{font-size:13px;line-height:1.5;margin-bottom:10px}
.nga-poster-startbtn{width:100%;background:#ffd968;color:#0b3b40;border:0;border-radius:999px;padding:14px 16px;font-weight:900;font-size:15px;cursor:pointer}
.nga-poster-footer .nga-announce-foot{color:#cfe0e0}
.nga-announce-preview .nga-poster-body{overflow:visible}

/* ========== v1.0.63: Admin mobile top hamburger menu (app-like) ========== */
/* Hidden everywhere by default (desktop uses the sidebar; portal keeps its own bottom nav). */
.nga-topbar,
.nga-drawer,
.nga-drawer-backdrop {
  display: none;
}

@media (max-width: 768px) {
  /* Hide the cramped bottom tab bar on ADMIN only — the affiliate portal keeps its own bottom nav. */
  .nga-admin-app .nga-bottomnav {
    display: none;
  }

  /* No more bottom-nav clearance needed on admin. */
  .nga-admin-app .nga-main {
    padding: 20px 16px 24px;
  }

  /* Sticky top bar: burger + current tab + ADMIN label. Edge-to-edge via negative margins. */
  .nga-admin-app .nga-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 200;
    margin: -20px -16px 18px;
    padding: 0 12px;
    height: 54px;
    background: var(--nga-sidebar);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  }

  /* When logged in, the WP admin bar (46px on mobile) sits above — park below it, never under it. */
  body.admin-bar .nga-admin-app .nga-topbar {
    top: 46px;
  }

  .nga-topbar-burger {
    background: none;
    border: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 8px;
    margin-left: -4px;
  }

  .nga-topbar-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
  }

  .nga-topbar-admin {
    color: var(--nga-gold);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
  }

  /* Slide-in drawer (left, app-style) + backdrop. */
  .nga-admin-app .nga-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(300px, 86vw);
    background: #fff;
    z-index: 300;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
  }

  body.admin-bar .nga-admin-app .nga-drawer {
    top: 46px;
  }

  .nga-admin-app .nga-drawer.open {
    transform: translateX(0);
  }

  .nga-admin-app .nga-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .nga-admin-app .nga-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nga-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: var(--nga-sidebar);
    color: #fff;
    flex: none;
  }

  .nga-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
  }

  .nga-drawer-brand em {
    font-style: normal;
    color: var(--nga-gold);
    font-size: 11px;
    letter-spacing: 1px;
    margin-left: 2px;
  }

  .nga-drawer-head .nga-logo-sm {
    background: var(--nga-gold);
  }

  .nga-drawer-close {
    background: none;
    border: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
  }

  .nga-drawer-items {
    display: flex;
    flex-direction: column;
    padding: 10px 8px;
    flex: 1;
  }

  .nga-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 9px;
    color: var(--nga-ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
  }

  .nga-drawer-item:hover {
    background: #f0f6f6;
  }

  .nga-drawer-item.active {
    background: var(--nga-teal);
    color: #fff;
    font-weight: 700;
  }

  .nga-drawer-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex: none;
  }

  .nga-drawer-logout {
    margin: 8px;
    border-top: 1px solid var(--nga-card-border);
    border-radius: 0;
    color: #b3261e;
  }
}
