body.gplaf-standalone {
  margin: 0;
  background: #f0f7ff;
}
.gplaf-root {
  --g-blue: #0865ef;
  --g-navy: #0b1948;
  --g-muted: #617496;
  --g-border: #e0eaf5;
  --g-bg: #f0f7ff;
}
.gplaf-root .product {
  min-height: 100vh;
  border-radius: 0 !important;
  border: 0 !important;
}
.gplaf-root .gpl-card {
  background: white;
  border: 1px solid #e0eaf5;
  border-radius: 12px;
  padding: 22px;
}
.gplaf-root .gpl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.gplaf-root .gpl-stack {
  display: grid;
  gap: 16px;
}
.gplaf-root .gpl-note {
  padding: 13px 16px;
  border-radius: 8px;
  background: #eaf3ff;
  color: #365880;
  font-size: 13px;
  line-height: 1.7;
}
.gplaf-root .gpl-sub {
  color: #617496;
  font-size: 12px;
}
.gplaf-root .gpl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #0865ef;
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 11px 16px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  min-height: 40px;
}
.gplaf-root .gpl-btn.secondary {
  background: #eaf3ff;
  color: #0961ce;
}
.gplaf-root .gpl-btn.danger {
  background: #ffeaf0;
  color: #b82c4a;
}
.gplaf-root .gpl-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.gplaf-root .gpl-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.gplaf-root .gpl-field {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0;
}
.gplaf-root .gpl-field input:not([type="checkbox"]),
.gplaf-root .gpl-field select,
.gplaf-root textarea {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid #cfdbea;
  border-radius: 7px;
  background: #fff;
  color: #0b1948;
  font: inherit;
  margin-top: 6px;
  box-sizing: border-box;
}
.gplaf-root textarea {
  min-height: 110px;
  resize: vertical;
}
.gplaf-root .gpl-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 12px 0;
}
.gplaf-root .gpl-check input {
  width: 17px;
  height: 17px;
  accent-color: #0865ef;
}
.gplaf-root .gpl-table-wrap {
  overflow: auto;
  max-width: 100%;
}
.gplaf-root .gpl-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
.gplaf-root .gpl-table th {
  background: #f2f7fd;
  color: #607798;
  padding: 12px;
  white-space: nowrap;
}
.gplaf-root .gpl-table td {
  padding: 12px;
  border-bottom: 1px solid #eaf0f7;
  vertical-align: top;
  min-width: 90px;
  max-width: 310px;
  overflow-wrap: anywhere;
}
.gplaf-root .gpl-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eaf3ff;
  color: #075cca;
  font-size: 11px;
}
.gplaf-root .gpl-pill.paid,
.gplaf-root .gpl-pill.active,
.gplaf-root .gpl-pill.credited {
  background: #e2f7ee;
  color: #00875e;
}
.gplaf-root .gpl-pill.rejected,
.gplaf-root .gpl-pill.failed,
.gplaf-root .gpl-pill.suspended {
  background: #ffe9ef;
  color: #b62948;
}
.gplaf-root .gpl-empty {
  text-align: center;
  padding: 35px;
  color: #7186a2;
}
.gplaf-root .gpl-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.gplaf-root .gpl-heading h2 {
  margin: 0;
}
.gplaf-root .gpl-reader details {
  border: 1px solid #e0eaf5;
  background: #fff;
  border-radius: 9px;
  margin: 10px 0;
}
.gplaf-root .gpl-reader summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 600;
}
.gplaf-root .gpl-reader .gpl-body {
  padding: 0 16px 18px;
  white-space: pre-line;
  line-height: 1.85;
  color: #405675;
}
.gplaf-root .gpl-editor-row {
  padding: 16px;
  border: 1px solid #dce8f5;
  border-radius: 9px;
  margin: 12px 0;
  background: white;
}
.gplaf-root .gpl-slide img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.gplaf-root .gpl-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.gplaf-root .gpl-dots button {
  border: 0;
  background: #cadcf2;
  width: 9px;
  height: 9px;
  border-radius: 100%;
  padding: 0;
  cursor: pointer;
}
.gplaf-root .gpl-dots button.active {
  background: #0865ef;
}
.gplaf-root .gpl-apps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gplaf-root .gpl-store {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #101b33;
  color: #fff;
  padding: 9px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
}
.gplaf-root .gpl-store img {
  width: 27px;
  height: 27px;
  filter: brightness(0) invert(1);
}
.gplaf-root .gpl-store small {
  display: block;
  font-size: 9px;
}
.gplaf-root .gpl-mobile-select {
  display: none;
}
.gplaf-root .gpl-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 140px;
  border-bottom: 1px solid #dce8f5;
  margin: 25px 0;
}
.gplaf-root .gpl-chart > div {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  font-size: 10px;
  gap: 3px;
}
.gplaf-root .gpl-chart b {
  width: 100%;
  background: #1479f4;
  border-radius: 4px 4px 0 0;
  min-height: 1px;
}
.gplaf-root .sidebar {
  min-height: 90vh;
}
.gplaf-root .side-menu {
  gap: 3px !important;
}
.gplaf-root .side-menu button {
  padding: 10px 12px !important;
}
.gplaf-root .gpl-product-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 7px;
}
.gplaf-root a {
  overflow-wrap: anywhere;
}
.gplaf-root #gplaf-toast:not(:empty) {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #15385e;
  color: white;
  padding: 14px 20px;
  border-radius: 9px;
  z-index: 100001;
  width: max-content;
  max-width: 85vw;
  box-shadow: 0 8px 30px #10274e33;
}
.gplaf-root .gpl-note.error {
  background: #fff0f3;
  color: #a42643;
}
#gpl-admin.gplaf-root {
  margin-left: -20px;
  width: calc(100% + 20px);
}
#gpl-admin .gpl-admin-content {
  padding: 24px;
  display: grid;
  gap: 18px;
}
#gpl-admin .admin-sidebar {
  min-height: 100vh;
}
#gpl-admin .admin-sidebar nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #637895;
  padding: 11px;
  border-radius: 7px;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
#gpl-admin .admin-sidebar nav button.active {
  background: #0865ef;
  color: #fff;
}
#gpl-admin .admin-header {
  position: relative;
}
#gpl-admin .gpl-field input {
  height: auto;
}
#gpl-admin .gpl-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
#gpl-admin .gpl-admin-stats strong {
  font-size: 30px;
  display: block;
  margin-top: 12px;
}
#gpl-admin h2 {
  font-size: 18px;
}
@media (max-width: 780px) {
  .gplaf-root .gpl-grid {
    grid-template-columns: 1fr;
  }
  .gplaf-root .gpl-mobile-select {
    display: block;
    width: 100%;
    padding: 11px;
    background: #fff;
    border: 1px solid #dce8f5;
    border-radius: 6px;
    margin-bottom: 14px;
  }
  #gpl-admin .admin-shell {
    display: block;
  }
  #gpl-admin .admin-sidebar {
    display: none;
  }
  #gpl-admin .gpl-admin-content {
    padding: 16px;
  }
  #gpl-admin .gpl-admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  #gpl-admin.gplaf-root {
    margin-left: -10px;
    width: calc(100% + 10px);
  }
  .gplaf-root .gpl-card {
    padding: 16px;
  }
  .gplaf-root .gpl-table td {
    padding: 10px;
  }
  .gplaf-root .gpl-heading {
    align-items: start;
  }
  .gplaf-root .gpl-field input,
  .gplaf-root textarea {
    font-size: 16px !important;
  }
}
/* Prevent intrinsic table widths from expanding mobile grid tracks. */
#gpl-preview .dash-main,
#gpl-admin .gpl-admin-content {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
#gpl-preview .dash-main > *,
#gpl-admin .gpl-admin-content > *,
.gplaf-root .gpl-grid > *,
.gplaf-root .middle-grid > * {
  min-width: 0;
  max-width: 100%;
}
.gplaf-root .gpl-table-wrap {
  width: 100%;
  min-width: 0;
}
.gplaf-root .gpl-table {
  min-width: 550px;
}
.gplaf-root [data-mobile-payout] {
  display: none;
}
#gpl-admin .gpl-admin-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 640px) {
  #gpl-preview .welcome > .gpl-btn {
    display: none;
  }
  .gplaf-root [data-mobile-payout] {
    display: flex;
    width: 100%;
    margin-top: 10px;
  }
  #gpl-preview .stat strong {
    font-size: 16px;
  }
  #gpl-admin .gpl-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #gpl-admin .gpl-admin-stats h2 {
    font-size: 14px;
  }
  #gpl-admin .admin-header,
  #gpl-admin .admin-header h1 {
    color: #fff;
  }
  #gpl-admin .admin-header .gpl-sub {
    color: #d6e8ff;
  }
}

.gplaf-root .gpl-mobile-ledger {
  display: none;
}
.gplaf-root .gpl-ledger-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid #e7eef8;
  font-size: 12px;
}
.gplaf-root .gpl-ledger-item strong {
  font-size: 12px;
  display: block;
}
.gplaf-root .gpl-ledger-item small {
  display: block;
  color: #70839f;
  margin-top: 5px;
}
.gplaf-root .gpl-ledger-item span {
  grid-column: 1/-1;
  color: #627c9d;
  font-size: 11px;
}
.gplaf-root .gpl-ledger-item b {
  color: #0761d0;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .gplaf-root .gpl-desktop-ledger {
    display: none;
  }
  .gplaf-root .gpl-mobile-ledger {
    display: block;
  }
  .gplaf-root .gpl-table-wrap:after {
    content: "← Geser tabel untuk melihat rincian →";
    display: block;
    color: #7185a0;
    font-size: 10px;
    padding: 10px 0;
    position: sticky;
    left: 0;
  }
}
/* v1.1: grouped settings, category tiles, identity guidance, and bonus progress. */
.gplaf-root .gpl-setting-group {
  border: 1px solid #dce7f4;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border-top: 4px solid var(--group-color);
}
.gplaf-root .gpl-setting-group.blue {
  --group-color: #1976e9;
  --group-bg: #eef6ff;
}
.gplaf-root .gpl-setting-group.purple {
  --group-color: #8055ce;
  --group-bg: #f5efff;
}
.gplaf-root .gpl-setting-group.green {
  --group-color: #13966b;
  --group-bg: #edfaf4;
}
.gplaf-root .gpl-setting-group.amber {
  --group-color: #d79513;
  --group-bg: #fff8e8;
}
.gplaf-root .gpl-setting-group.slate {
  --group-color: #56718f;
  --group-bg: #f0f4f8;
}
.gplaf-root .gpl-setting-group > header {
  background: var(--group-bg);
  padding: 18px 22px;
  border-bottom: 1px solid #e3ebf3;
}
.gplaf-root .gpl-setting-group h3 {
  font-size: 17px;
  margin: 0;
  color: #183956;
}
.gplaf-root .gpl-setting-group header p {
  font-size: 12px;
  color: #526d89;
  margin: 5px 0 0;
}
.gplaf-root .gpl-group-body {
  padding: 16px 22px;
}
.gplaf-root .gpl-tier-row {
  background: #faf8ff;
  border: 1px solid #e6def5;
  padding: 14px 16px;
  border-radius: 9px;
  margin: 12px 0;
}
.gplaf-root .gpl-tier-row h4 {
  margin: 0;
  font-size: 15px;
  color: #6240aa;
}
.gplaf-root .gpl-tier-row h4 small {
  font-weight: 400;
  margin-left: 8px;
  font-size: 11px;
}
.gplaf-root .gpl-policy {
  padding: 15px;
  background: #fff8e8;
  border: 1px solid #f0deae;
  border-radius: 9px;
  color: #715315;
  font-size: 13px;
  line-height: 1.8;
}
.gplaf-root .gpl-policy p {
  margin: 6px 0;
}
.gplaf-root .gpl-save-bar {
  position: sticky;
  bottom: 12px;
  background: #ffffffed;
  padding: 14px;
  border: 1px solid #d8e5f4;
  border-radius: 10px;
  z-index: 2;
  box-shadow: 0 3px 16px #244a7a12;
}
.gplaf-root .gpl-event-editor {
  border: 1px solid #e0e7f3;
  border-radius: 9px;
  margin: 10px 0;
}
.gplaf-root .gpl-event-editor summary {
  cursor: pointer;
  padding: 15px;
  font-weight: 600;
  background: #f8faff;
}
.gplaf-root .gpl-event-editor > div {
  padding: 0 16px 16px;
}
.gplaf-root .gpl-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.gplaf-root .gpl-category {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 16px;
  border: 1px solid #dce8f5 !important;
  background: #f6faff;
  color: #264d79;
  border-radius: 10px;
  font: inherit;
  min-height: 90px;
}
.gplaf-root .gpl-category.selected {
  background: #e9f2ff;
  border-color: #0865ef !important;
  box-shadow: 0 0 0 1px #0865ef;
}
.gplaf-root .gpl-category img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 7px;
}
.gplaf-root .gpl-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gplaf-root .gpl-product-card {
  padding: 15px;
  border: 1px solid #e1eaf5;
  border-radius: 11px;
  background: white;
  min-width: 0;
}
.gplaf-root .gpl-product-card > img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f8faff;
  border-radius: 8px;
}
.gplaf-root .gpl-product-card h3 {
  margin: 10px 0;
}
.gplaf-root .gpl-product-card .referral-actions {
  display: block;
}
.gplaf-root .gpl-product-card .referral-buttons {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
}
.gplaf-root .gpl-brand-link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.gplaf-root .gpl-brand-link img {
  display: block;
  max-width: 150px;
  max-height: 44px;
  object-fit: contain;
}
.gplaf-root .gpl-brand-link small {
  display: block;
}
.gplaf-root .gpl-level-bonus {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #d9e9f5;
  border-radius: 11px;
  background: #f7fbff;
  margin: 12px 0;
}
.gplaf-root .gpl-level-bonus h3 {
  margin: 0;
}
.gplaf-root .gpl-level-bonus strong {
  color: #076bdc;
}
.gplaf-root .gpl-profile-check {
  padding: 12px 15px;
  border-radius: 8px;
  background: #e8f8f0;
  color: #137354;
  margin: 12px 0;
}
.gplaf-root .gpl-profile-check.invalid {
  background: #fff1e8;
  color: #a45623;
}
@media (max-width: 900px) {
  .gplaf-root .gpl-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gplaf-root .gpl-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .gplaf-root .gpl-group-body {
    padding: 12px 15px;
  }
  .gplaf-root .gpl-setting-group > header {
    padding: 15px;
  }
  .gplaf-root .gpl-catalog-grid {
    grid-template-columns: 1fr;
  }
  .gplaf-root .gpl-category {
    padding: 12px;
    display: block;
    font-size: 12px;
  }
  .gplaf-root .gpl-category img {
    margin-bottom: 8px;
  }
  .gplaf-root .gpl-brand-link img {
    max-height: 34px;
  }
  .gplaf-root .gpl-save-bar {
    position: static;
  }
}
