:root {
  --sg-green: #43b72a;
  --sg-green-2: #27c76f;
  --sg-blue: #2867ef;
  --sg-text: #34333a;
  --sg-soft-text: #6f6b80;
  --sg-muted: #b9b8c4;
  --sg-bg: #f6f6f7;
  --sg-card: #fff;
  --sg-line: #ececec;
  --sg-radius: 24px;
  --sg-shadow: 0 12px 28px rgba(20, 20, 20, .08);
  --sg-bottom: 92px;
}

html, body {
  min-height: 100%;
}

body {
  background: var(--sg-bg) !important;
  color: var(--sg-text);
  font-family: "nomal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

a, a:hover {
  text-decoration: none;
}

.sg-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--sg-bg);
}

.sg-mobile-frame {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  background: var(--sg-bg);
  overflow-x: hidden;
}

.sg-main {
  padding: 106px 21px 116px;
}

.sg-topbar {
  position: fixed;
  z-index: 1000;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 42px), 388px);
  height: 78px;
  padding: 0 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--sg-shadow);
  border: 1px solid rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sg-icon { display: block; width: 24px; height: 24px; object-fit: contain; }
.sg-icon-button {
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #6f6b80;
}
.sg-lang-trigger { margin-left: auto; margin-right: 14px; }
.sg-balance-pill {
  min-width: 132px;
  height: 54px;
  border-radius: 999px;
  background: var(--sg-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(40,103,239,.18);
}
.sg-balance-pill .sg-icon { width: 31px; height: 31px; }

.sg-card {
  background: var(--sg-card);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.sg-section-title {
  color: #5c5870;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.sg-section-copy {
  color: #9999a4;
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 18px;
}

.sg-btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--sg-green-2);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: none;
}
.sg-btn:hover { color: #fff; filter: brightness(.98); }
.sg-btn.pill { border-radius: 999px; min-height: 60px; font-size: 20px; }
.sg-btn.disabled, .sg-btn:disabled { opacity: .75; pointer-events: none; }

.sg-user-head {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
}
.sg-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sg-green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
}
.sg-user-name { font-size: 18px; font-weight: 800; color: #3a3940; }
.sg-verified { color: #a7a6ad; font-size: 16px; display: flex; align-items: center; gap: 5px; }
.sg-verified .sg-icon { width: 20px; height: 20px; }
.sg-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
}
.sg-balance-label { font-size: 21px; font-weight: 600; margin: 0 0 2px; }
.sg-balance-value { color: var(--sg-green); font-size: 32px; line-height: 1; font-weight: 900; }
.sg-divider { height: 1px; background: #ddd; margin: 28px 0; }
.sg-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.sg-stat {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
}
.sg-stat-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9fff1;
}
.sg-stat-icon .sg-icon { width: 31px; height: 31px; }
.sg-stat:nth-child(2) .sg-stat-icon { background: #dffaff; }
.sg-stat:nth-child(3) .sg-stat-icon { background: #fff0e1; }
.sg-stat:nth-child(4) .sg-stat-icon { background: #eee8ff; }
.sg-stat strong { display: block; font-size: 22px; line-height: 1.1; }
.sg-stat span { color: #7c798b; font-size: 17px; }

.sg-ref-card h2 {
  font-size: 27px;
  margin: 0 0 20px;
  font-weight: 900;
}
.sg-ref-card h2 span { color: var(--sg-green); }
.sg-ref-input {
  height: 58px;
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #f0f0f1;
  border-radius: 8px;
  color: #777789;
  font-size: 18px;
}
.sg-ref-input input {
  border: 0;
  background: transparent;
  width: 100%;
  font-size: 18px;
  color: #777789;
  outline: 0;
}
.sg-copy-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
}
.sg-copy-btn .sg-icon {
  width: 25px;
  height: 25px;
}
.sg-share-label { margin: 20px 0 14px; color: #4f4d55; font-size: 20px; }
.sg-share-icons { display: flex; gap: 24px; align-items: center; }
.sg-share-icons img { width: 48px; height: 48px; object-fit: contain; }

.sg-earn-card { overflow: hidden; }
.sg-earn-hero { display: flex; justify-content: center; padding: 6px 0 20px; }
.sg-earn-hero img { width: 86%; max-height: 230px; object-fit: contain; }
.sg-earn-row {
  display: grid;
  grid-template-columns: 54px 1fr 122px;
  gap: 12px;
  align-items: center;
  color: #111;
  padding: 14px 0;
  border-top: 1px solid #eee;
}
.sg-earn-row .sg-icon {
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 50%;
  background: #fff0e1;
}
.sg-earn-row:nth-child(3) .sg-icon { background: #dffaff; }
.sg-earn-row:nth-child(4) .sg-icon { background: #eee8ff; }
.sg-earn-row:nth-child(5) .sg-icon { background: #e9fff1; }
.sg-earn-row span { font-size: 17px; font-weight: 700; line-height: 1.2; }
.sg-earn-row b {
  justify-self: end;
  min-width: 118px;
  height: 38px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--sg-green-2);
  font-size: 14px;
  font-weight: 800;
}

.sg-footer {
  text-align: center;
  padding: 38px 16px 60px;
  color: #999;
}
.sg-footer-line { height: 1px; background: #d6d6d6; margin: 0 0 30px; }
.sg-footer-logo { width: 160px; max-height: 110px; object-fit: contain; margin: 0 auto 20px; }
.sg-footer p { font-size: 14px; line-height: 1.7; margin: 0 auto 12px; max-width: 330px; }
.sg-copyright { color: #96a0a8; }

.sg-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 430px);
  height: var(--sg-bottom);
  z-index: 1001;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 10px 10px 12px;
  background: linear-gradient(180deg, rgba(239,255,245,.93), #fff 28%, #fff 100%);
  border-top: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 -4px 18px rgba(0,0,0,.04);
}
.sg-bottom-item {
  position: relative;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #616161;
  font-size: 14px;
  font-weight: 800;
  gap: 4px;
}
.sg-bottom-item .sg-icon { width: 20px; height: 20px; margin-top: 8px; }
.sg-bottom-item.active { color: var(--sg-green); }
.sg-bottom-item i {
  position: absolute;
  bottom: -10px;
  width: 0;
  height: 6px;
  border-radius: 999px;
  background: var(--sg-green);
  transition: width .25s;
}
.sg-bottom-item.active i { width: 64px; }
.sg-bottom-item.center {
  margin-top: -36px;
  gap: 6px;
}
.sg-bottom-item.center .sg-bottom-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sg-green);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(67,183,42,.22);
  animation: sgPulseCenter 1.9s ease-in-out infinite;
}
.sg-bottom-item.center .sg-icon { width: 38px; height: 38px; margin: 0; filter: brightness(0) invert(1); }
@keyframes sgPulseCenter {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.08); }
}

.sg-drawer {
  position: fixed;
  inset: 0;
  z-index: 1110;
  pointer-events: none;
}
.sg-drawer.open { pointer-events: auto; }
.sg-drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.47);
  border: 0;
  opacity: 0;
  transition: opacity .25s;
}
.sg-drawer-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(76%, 326px);
  background: #fff;
  padding: 28px 30px 40px;
  transform: translateX(-100%);
  transition: transform .25s;
  overflow-y: auto;
}
.sg-drawer.open .sg-drawer-scrim { opacity: 1; }
.sg-drawer.open .sg-drawer-panel { transform: translateX(0); }
.sg-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.sg-drawer-logo { width: 180px; max-height: 70px; object-fit: contain; }
.sg-drawer-close {
  border: 0;
  background: transparent;
  font-size: 38px;
  line-height: 1;
  color: #555;
}
.sg-drawer-nav a {
  height: 60px;
  border-radius: 8px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #747184;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 7px;
}
.sg-drawer-nav a.active {
  color: #fff;
  background: var(--sg-green);
  box-shadow: 0 10px 22px rgba(94, 60, 255, .28);
  font-weight: 800;
}
.sg-drawer-nav a .sg-icon { width: 28px; height: 28px; }
.sg-drawer-nav a.active .sg-icon { filter: brightness(0) invert(1); }
.sg-drawer-fallback {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
}
.sg-drawer-nav i { font-size: 28px; width: 28px; text-align: center; }
.sg-drawer-group {
  color: #9290a0;
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 12px;
}

.sg-language-modal {
  position: fixed;
  inset: 0;
  z-index: 1120;
  display: none;
}
.sg-language-modal.open { display: block; }
.sg-modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.46); }
.sg-language-panel {
  position: absolute;
  left: 50%;
  top: 32px;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 406px);
  max-height: calc(100vh - 64px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: 22px 20px 10px;
}
.sg-language-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.sg-language-head h2 { margin: 0; font-size: 30px; font-weight: 900; }
.sg-language-head button {
  border: 0;
  background: transparent;
  font-size: 38px;
  line-height: 1;
}
.sg-language-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.sg-language-grid button {
  height: 58px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.04);
  font-size: 21px;
  color: #000;
}
.sg-language-grid button.active { background: #2878ff; border-color: #2878ff; color: #fff; }

.sg-payment-toast {
  position: fixed;
  z-index: 1090;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  width: min(calc(100% - 42px), 388px);
  min-height: 88px;
  padding: 14px 44px 14px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.13);
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: start;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.sg-payment-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.sg-toast-logo img { width: 78px; height: 30px; object-fit: contain; object-position: left center; }
.sg-toast-meta { color: #111; font-size: 15px; font-weight: 700; white-space: nowrap; }
.sg-toast-title { color: var(--sg-green); font-size: 17px; line-height: 1.25; font-weight: 700; }
.sg-toast-text { color: #111; font-size: 17px; line-height: 1.25; }
.sg-toast-text span { color: #ff8c00; }
.sg-toast-close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 36px;
  line-height: 1;
}

.sg-swal {
  border-radius: 16px !important;
  width: 220px !important;
  padding: 18px !important;
}

.sg-tip {
  background: #ecfff3;
  border-radius: 8px;
  color: var(--sg-green);
  overflow: hidden;
  margin-top: 20px;
}
.sg-tip strong {
  display: block;
  background: #e6faee;
  padding: 12px 18px;
  font-size: 20px;
}
.sg-tip p { padding: 16px 18px; margin: 0; font-size: 20px; line-height: 1.45; }

.sg-mini-lines {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  color: #7c798b;
  font-size: 16px;
  margin: 28px 0 18px;
}
.sg-mini-lines:before, .sg-mini-lines:after { content: ""; height: 1px; background: #89d584; }

.sg-alert-red {
  color: #ff4d55;
  background: #ffe2e4;
  border-radius: 6px;
  padding: 16px;
  font-size: 17px;
  line-height: 1.45;
}
.sg-alert-purple {
  color: var(--sg-green);
  background: #f0edff;
  border-radius: 6px;
  padding: 16px;
  font-size: 18px;
  line-height: 1.55;
}

.sg-invite-hero {
  padding: 18px 4px 20px;
  color: #6f6b80;
}
.sg-invite-hero h1 {
  color: #050505;
  font-size: 30px;
  line-height: 1.45;
  text-align: center;
  font-weight: 900;
  margin: 0 0 24px;
}
.sg-invite-hero p {
  font-size: 21px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.sg-invite-hero ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 20px;
  line-height: 1.5;
}
.sg-invite-hero li { margin-bottom: 12px; }
.sg-invite-hero li:before { content: "\2713"; margin-right: 12px; color: #6f6b80; }
.sg-table-card h2 { font-size: 24px; margin: 0 0 4px; color: #5c5870; }
.sg-table-card p { color: #b1b0bd; margin: 0 0 20px; font-size: 16px; }
.sg-ref-table { margin: 0 -24px -24px; border-top: 1px solid #e6e6e6; }
.sg-ref-table .head, .sg-ref-table .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 15px 24px;
  border-bottom: 1px solid #eee;
  color: #747184;
}
.sg-ref-table .head { font-weight: 900; font-size: 16px; }
.sg-ref-table .row span { color: #b1b0bd; font-weight: 800; }
.sg-ref-table .row strong { color: var(--sg-green); text-align: right; font-weight: 900; }
.sg-ref-table .empty { padding: 18px 24px; color: #999; }

.sg-task-list h2 { color: #5c5870; font-size: 28px; margin: 0 0 4px; }
.sg-task-list > p { color: #a5a3af; font-size: 17px; margin: 0 0 18px; }
.sg-task-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid #e9e9e9;
  align-items: center;
}
.sg-task-copy h3 { font-size: 21px; line-height: 1.25; margin: 0 0 4px; color: #34333a; }
.sg-task-copy span { display: block; color: #999; font-size: 17px; line-height: 1.25; margin-bottom: 18px; }
.sg-task-go {
  min-width: 144px;
  height: 47px;
  border: 0;
  border-radius: 9px;
  background: var(--sg-green);
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}
.sg-task-go.done { background: #e9fff1; color: var(--sg-green); }
.sg-task-reward {
  justify-self: end;
  min-width: 112px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--sg-green-2);
  border-radius: 9px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(39,199,111,.55);
}
.sg-task-check {
  justify-self: end;
  color: var(--sg-green-2);
  font-size: 40px;
  line-height: 1;
}

.sg-video-intro h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2f5597;
  font-size: 27px;
  font-weight: 900;
  margin: 0 0 18px;
}
.sg-video-intro h1 .sg-icon { width: 30px; height: 30px; }
.sg-video-intro p { color: #6b6b6b; font-size: 21px; line-height: 1.45; margin: 0; }
.sg-video-list { padding: 28px 16px; }
.sg-video-item { margin-bottom: 28px; }
.sg-video-item img, .sg-video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  background: #000;
}
.sg-video-item .sg-btn { width: 100%; margin-top: 16px; }
.sg-watch-card { padding: 24px 16px; }
.sg-video-frame { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.sg-watch-action { margin-top: 22px; text-align: center; }
.sg-watch-action .sg-btn { width: 92%; }

.sg-payment-empty {
  color: #7f858d;
  background: #efefef;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 20px;
  line-height: 1.45;
  margin-bottom: 24px;
}
.sg-payment-current {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  margin: 12px 0 24px;
}
.sg-payment-current strong { display: block; font-size: 21px; color: #5c5870; }
.sg-payment-current span { color: #7c798b; font-size: 16px; }
.sg-current-balance {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 18px;
}
.sg-current-balance .sg-stat-icon { width: 64px; height: 64px; border-radius: 8px; background: #eeeaff; }
.sg-current-balance h2 { color: #5c5870; font-size: 26px; margin: 0 0 4px; }
.sg-current-balance span { color: #5c5870; font-size: 20px; }
.sg-stat-grid.compact { gap: 20px; }
.sg-progress-label { color: #8a8795; font-size: 18px; margin-bottom: 8px; }
.sg-progress {
  height: 14px;
  background: #e8e9eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 30px;
}
.sg-progress i { display: block; height: 100%; background: #7b40ff; }
.sg-wide { width: 100%; }
.sg-cash-warning {
  margin-top: 24px;
  border-radius: 20px;
  min-height: 130px;
  background: #f36368;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 21px;
  line-height: 1.15;
}
.sg-cash-warning .sg-icon { width: 42px; height: 42px; margin-bottom: 12px; }
.sg-cash-disabled {
  width: 100%;
  margin-top: 20px;
  min-height: 64px;
  border: 0;
  border-radius: 8px;
  background: #969696;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  text-align: left;
}
.sg-cash-disabled strong { display: block; font-size: 18px; }
.sg-cash-disabled em { display: block; font-style: normal; font-size: 13px; }
.sg-cash-disabled b {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-size: 26px;
}
.sg-history-row {
  display: flex;
  justify-content: space-between;
  color: #5c5870;
  padding: 12px 0;
  border-top: 1px solid #eee;
}

.sg-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 1130;
  display: none;
}
.sg-pay-modal.open { display: block; }
.sg-pay-panel {
  position: absolute;
  top: 180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 42px), 366px);
  background: #fff;
  border-radius: 14px;
  padding: 0 22px 22px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.sg-pay-panel h2 {
  margin: 0 -22px 28px;
  padding: 24px 22px;
  border-bottom: 1px solid #eee;
  color: #5c5870;
  font-size: 25px;
}
.sg-pay-close {
  position: absolute;
  right: -12px;
  top: -16px;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  font-size: 36px;
  color: #555;
}
.sg-pay-panel label, .sg-form label, .sg-account-grid label {
  display: block;
  color: #6f6b80;
  font-size: 21px;
  margin: 14px 0 8px;
}
.sg-pay-panel select, .sg-pay-panel input, .sg-form select, .sg-form textarea, .sg-form input, .sg-account-grid input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 18px;
  color: #34333a;
  background: #fff;
}
.sg-form textarea { padding-top: 12px; }
.sg-pay-panel input:focus, .sg-pay-panel select:focus, .sg-form input:focus, .sg-form textarea:focus, .sg-form select:focus {
  outline: 0;
  border-color: #2684ff;
  box-shadow: 0 0 0 3px rgba(38,132,255,.15);
}
.sg-account-grid { display: grid; gap: 12px; }

.sg-public-page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--sg-bg);
  color: #241936;
  overflow-x: hidden;
}
.sg-public-nav {
  height: 92px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 900;
}
.sg-public-menu {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
}
.sg-public-menu .sg-icon { width: 28px; height: 28px; }
.sg-public-actions { display: flex; align-items: center; gap: 12px; }
.sg-public-pill {
  min-width: 104px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--sg-green);
  color: var(--sg-green);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
}
.sg-public-pill.active {
  color: #fff;
  background: var(--sg-green);
}
.sg-public-main {
  padding: 36px 20px 52px;
}
.sg-public-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--sg-shadow);
  padding: 36px 26px 38px;
  margin-bottom: 72px;
}
.sg-public-logo-wrap {
  text-align: center;
  margin-bottom: 24px;
}
.sg-public-logo-wrap .sg-logo {
  width: 170px;
  max-height: 142px;
  object-fit: contain;
}
.sg-public-title {
  text-align: center;
  font-size: 32px;
  line-height: 1.35;
  margin: 0 0 8px;
  font-weight: 700;
  color: #241936;
}
.sg-public-title strong {
  color: #ff1616;
  font-weight: 900;
}
.sg-public-switch {
  display: block;
  text-align: center;
  color: var(--sg-green);
  border-bottom: 1px solid var(--sg-green);
  width: max-content;
  max-width: 100%;
  margin: 0 auto 44px;
  font-size: 16px;
  font-weight: 700;
}
.sg-public-form label {
  display: block;
  color: #241936;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 12px;
}
.sg-public-form input {
  width: 100%;
  height: 52px;
  border-radius: 999px;
  border: 1px solid #d8d8d8;
  background: #fafafa;
  padding: 0 28px;
  color: #34333a;
  font-size: 17px;
  outline: 0;
  margin-bottom: 28px;
}
.sg-public-form input:focus {
  border-color: var(--sg-green-2);
  box-shadow: 0 0 0 3px rgba(39,199,111,.12);
}
.sg-public-submit {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 999px;
  background: var(--sg-green);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  margin-top: 20px;
}
.sg-public-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #fff;
  transform: translateX(-100%);
  transition: transform .25s;
}
.sg-public-menu-panel.open { transform: translateX(0); }
.sg-public-menu-bar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.sg-public-menu-bar button {
  border: 0;
  background: transparent;
  font-size: 48px;
  line-height: 1;
}
.sg-public-menu-panel nav {
  display: grid;
  gap: 30px;
  padding: 38px 36px;
}
.sg-public-menu-panel nav a {
  color: #000;
  font-size: 20px;
  font-weight: 800;
}
.sg-public-menu-panel nav a.start {
  width: 150px;
  height: 56px;
  border-radius: 8px;
  color: #fff;
  background: var(--sg-green);
  display: grid;
  place-items: center;
}
.sg-public-footer {
  text-align: center;
  padding: 0 20px 64px;
  color: #969696;
}
.sg-public-footer .sg-footer-logo {
  width: 170px;
  max-height: 118px;
  object-fit: contain;
  margin: 42px auto 28px;
}
.sg-public-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 32px;
}
.sg-public-links h3 {
  font-size: 20px;
  color: #241936;
  margin: 0 0 18px;
}
.sg-public-links a {
  display: block;
  color: #241936;
  font-size: 18px;
  line-height: 1.7;
}
.sg-public-footer p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 auto 14px;
  max-width: 340px;
}

@media (min-width: 768px) {
  .sg-mobile-frame { box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
  .sg-public-page { box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
}

/* SmartGain JSON calibration pass. Values are from tools/smartgain-*-ui JSON at 400x700. */
@font-face {
  font-family: "regular";
  src: url("../fonts/general-sans/GeneralSans-Regular-Dn3hZj8I.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "nomal";
  src: url("../fonts/general-sans/GeneralSans-Medium-Dnk_K_Tg.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "sbold";
  src: url("../fonts/general-sans/GeneralSans-SemiBold-DQ6WvPG1.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "bold";
  src: url("../fonts/general-sans/GeneralSans-Bold-BWHD35xo.otf") format("opentype");
  font-display: swap;
}

:root {
  --sg-green: #4bb227;
  --sg-green-2: #28c76f;
  --sg-blue: #2763e7;
  --sg-text: #3e3e3e;
  --sg-soft-text: #6e6b7b;
  --sg-muted: #a5a3ae;
  --sg-bg: #f6f6f7;
  --sg-radius: 20px;
  --sg-shadow: 0 1px 10px rgba(0, 0, 0, .05);
  --sg-bottom: 83.0729px;
}

html,
body {
  font-size: 16px;
}

body {
  font-family: "nomal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--sg-bg) !important;
}

.sg-shell {
  font-family: "nomal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sg-shell strong,
.sg-shell b,
.sg-dashboard-name,
.sg-balance-value,
.sg-ref-card h2,
.sg-section-title,
.sg-task-list h2,
.sg-language-head h2 {
  font-family: "bold", "nomal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sg-btn,
.sg-task-go,
.sg-bottom-item,
.sg-drawer-nav a.active,
.sg-public-submit,
.sg-public-pill.active {
  font-family: "sbold", "nomal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sg-drawer-nav a,
.sg-section-copy,
.sg-stat span,
.sg-task-copy span,
.sg-footer,
.sg-language-grid button {
  font-family: "regular", "nomal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sg-shell,
.sg-shell * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.sg-mobile-frame {
  width: min(100%, 400px);
  background: var(--sg-bg);
}

.sg-main {
  padding: 0 20px 112px;
}

.sg-topbar {
  position: relative;
  inset: auto;
  transform: none;
  z-index: 100;
  width: min(calc(100% - 40px), 360px);
  height: 71.0625px;
  margin: 24px auto 24px;
  padding: 16px 20px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--sg-shadow);
}

.sg-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sg-icon-button {
  width: 24px;
  height: 24px;
  padding: 0;
}

.sg-icon-button .sg-icon {
  width: 24px;
  height: 24px;
}

.sg-lang-trigger {
  width: 28px;
  height: 37.7292px;
  margin-left: auto;
  margin-right: 16px;
}

.sg-lang-trigger .sg-icon {
  width: 28px;
  height: 28px;
}

.sg-balance-pill {
  min-width: 0;
  height: 37.7292px;
  padding: 8px 14px;
  border-radius: 9999px;
  gap: 6px;
  font-size: 13.6px;
  line-height: 20.4px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
}

.sg-balance-pill .sg-icon {
  width: 20px;
  height: 20px;
}

.sg-card {
  width: 100%;
  margin: 0 0 24px;
  padding: 16px;
  border: 0;
  border-radius: 20px;
  box-shadow: var(--sg-shadow);
  background: #fff;
}

.sg-section-title {
  margin: 0;
  color: #5d596c;
  font-size: 20.8px;
  line-height: 31.2px;
  font-weight: 700;
}

.sg-section-copy {
  margin: 8px 0 0;
  color: #b9b9c3;
  font-size: 16px;
  line-height: 24px;
}

.sg-btn {
  min-height: 43.1875px;
  padding: 9.6px 17.6px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.sg-btn.pill {
  min-height: 40px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 24px;
}

.sg-dashboard-card {
  padding: 20px 20px 16px;
  margin-bottom: 16px;
}

.sg-user-head {
  grid-template-columns: 48px 1fr;
  gap: 8px;
}

.sg-avatar {
  width: 48px;
  height: 48px;
  font-size: 20.8px;
  line-height: 31.2px;
  font-weight: 700;
}

.sg-user-name {
  font-size: 18.4px;
  line-height: 27.6px;
  color: #3e3e3e;
}

.sg-verified {
  gap: 4px;
  color: #acacac;
  font-size: 13.6px;
  line-height: 20.4px;
}

.sg-verified .sg-icon {
  width: 16px;
  height: 16px;
}

.sg-balance-row {
  margin-top: 16px;
}

.sg-balance-label {
  margin: 0;
  color: #3e3e3e;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.sg-balance-value {
  color: var(--sg-green);
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
  white-space: nowrap;
}

.sg-dashboard-card .sg-btn {
  width: 126.583px;
  height: 43.1875px;
}

.sg-divider {
  margin: 20px 0 24px;
  background: #ddd;
}

.sg-stat-grid {
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
}

.sg-stat {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  color: var(--sg-text);
  text-decoration: none;
}

.sg-stat:hover {
  color: var(--sg-text);
  text-decoration: none;
}

.sg-stat-icon {
  width: 48px;
  height: 48px;
}

.sg-stat-icon .sg-icon {
  width: 28px;
  height: 28px;
}

.sg-stat strong {
  font-size: 18.4px;
  line-height: 27.6px;
  font-weight: 500;
  white-space: nowrap;
}

.sg-stat span {
  color: #7e7a8c;
  font-size: 13.6px;
  line-height: 20.4px;
}

.sg-ref-card {
  padding: 16px 20px;
}

.sg-ref-card h2 {
  margin: 0 0 8px;
  font-size: 20.8px;
  line-height: 31.2px;
}

.sg-ref-input {
  height: 48px;
  grid-template-columns: 1fr 24px;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  background: #efefef;
  font-size: 16px;
}

.sg-ref-input input {
  height: 32px;
  font-size: 16px;
  line-height: 24px;
}

.sg-copy-btn {
  width: 24px;
  height: 32px;
}

.sg-copy-btn .sg-icon {
  width: 20px;
  height: 20px;
}

.sg-share-label {
  margin: 12px 0;
  font-size: 16px;
  line-height: 24px;
}

.sg-share-icons {
  gap: 24px;
}

.sg-share-icons img {
  width: 40px;
  height: 40px;
}

.sg-earn-card {
  padding: 20px 16px 12px;
}

.sg-earn-hero img {
  width: 86%;
  max-height: 230px;
}

.sg-earn-row {
  grid-template-columns: 46px 1fr 118px;
  gap: 12px;
  padding: 14px 0;
}

.sg-earn-row .sg-icon {
  width: 46px;
  height: 46px;
  padding: 9px;
}

.sg-earn-row span {
  font-size: 16px;
  line-height: 20px;
}

.sg-earn-row b {
  min-width: 118px;
  height: 38px;
  font-size: 13.6px;
  border-radius: 7px;
}

.sg-invite-hero {
  margin: 0 0 24px;
  color: #6e6b7b;
}

.sg-invite-hero h1 {
  margin: 0 0 20px;
  color: #000;
  font-size: 24px;
  line-height: 36px;
  font-weight: 900;
  text-align: center;
}

.sg-invite-hero p,
.sg-invite-hero ul {
  font-size: 16px;
  line-height: 24px;
}

.sg-invite-hero p {
  margin: 0 0 12px;
}

.sg-invite-hero li {
  margin-bottom: 8px;
}

.sg-invite-hero li:before {
  margin-right: 10px;
}

.sg-table-card {
  padding: 12px 0 4px;
}

.sg-table-card h2,
.sg-table-card p {
  padding: 0 16px;
}

.sg-table-card h2 {
  font-size: 18.4px;
  line-height: 27.6px;
}

.sg-table-card p {
  font-size: 13.6px;
  line-height: 20.4px;
}

.sg-ref-table {
  margin: 0;
}

.sg-ref-table .head,
.sg-ref-table .row {
  padding: 8px 16px;
  font-size: 13.6px;
  line-height: 20.4px;
}

.sg-main > .sg-card:first-child:not(.sg-payment-card):not(.sg-video-intro) .sg-section-title {
  font-size: 18.4px;
  line-height: 27.6px;
  color: #3e3e3e;
}

.sg-tip {
  margin-top: 20px;
  border-radius: 8px;
  background: #ebfcf3;
}

.sg-tip strong {
  padding: 4px 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  box-shadow: 0 6px 15px -7px rgba(87, 198, 87, .4);
}

.sg-tip p {
  padding: 8px 16px;
  font-size: 16px;
  line-height: 24px;
}

.sg-task-list {
  padding: 16px 16px 4px;
}

.sg-task-list h2 {
  margin: 0;
  color: #5d596c;
  font-size: 20.8px;
  line-height: 31.2px;
}

.sg-task-list > p {
  margin: 0 0 8px;
  color: #a5a3ae;
  font-size: 13.6px;
  line-height: 20.4px;
}

.sg-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px 12px;
  border-top: 1px solid #e9e9e9;
}

.sg-task-copy h3 {
  margin: 0;
  color: #3e3e3e;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.sg-task-copy span {
  margin: 0;
  color: #959595;
  font-size: 13.6px;
  line-height: 20.4px;
}

.sg-task-go {
  width: 96px;
  min-width: 96px;
  height: 32px;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.sg-task-go.loading {
  pointer-events: none;
  opacity: .96;
}

.sg-task-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sgSpin .65s linear infinite;
}

@keyframes sgSpin {
  to { transform: rotate(360deg); }
}

.sg-task-reward {
  width: auto;
  min-width: 79.2917px;
  height: 24.4062px;
  margin-top: 12px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 13.6px;
  line-height: 20.4px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 10px #28c76f;
}

.sg-task-check {
  align-self: center;
  color: #28c76f;
  font-size: 32px;
  line-height: 1;
}

.sg-video-intro {
  padding: 24px 16px;
}

.sg-video-intro h1 {
  margin: 0 0 8px;
  gap: 8px;
  color: #39579b;
  font-size: 20.8px;
  line-height: 31.2px;
  font-weight: 700;
}

.sg-video-intro h1 .sg-icon {
  width: 24px;
  height: 24px;
}

.sg-video-intro p {
  color: #727272;
  font-size: 16px;
  line-height: 24px;
}

.sg-video-list {
  margin-top: -4px;
  padding: 20px 16px;
}

.sg-video-item {
  margin-bottom: 28px;
}

.sg-video-item img,
.sg-video-frame iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.sg-video-item .sg-btn {
  width: 100%;
  height: 40px;
  margin-top: 16px;
}

.sg-payment-card {
  padding: 16px;
}

.sg-payment-empty {
  margin: 16px 0 24px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
}

.sg-payment-current {
  grid-template-columns: 48px 1fr;
  gap: 14px;
  margin: 16px 0 24px;
}

.sg-payment-current strong {
  font-size: 16px;
  line-height: 24px;
}

.sg-payment-current span {
  font-size: 13.6px;
  line-height: 20.4px;
}

.sg-payment-card .sg-btn {
  min-height: 40px;
  padding: 0 18px;
}

.sg-cash-card {
  padding: 16px;
}

.sg-current-balance {
  grid-template-columns: 58px 1fr;
  gap: 14px;
}

.sg-current-balance .sg-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.sg-current-balance h2 {
  margin: 0 0 4px;
  font-size: 18.4px;
  line-height: 27.6px;
}

.sg-current-balance span {
  font-size: 13.6px;
  line-height: 20.4px;
}

.sg-mini-lines {
  margin: 24px 0 16px;
  font-size: 13.6px;
  line-height: 20.4px;
}

.sg-cash-card .sg-section-copy {
  font-size: 16px !important;
  line-height: 24px;
}

.sg-progress-label {
  font-size: 16px;
  line-height: 24px;
}

.sg-progress {
  height: 12px;
  margin-bottom: 28px;
}

.sg-cash-warning {
  min-height: 100px;
  margin-top: 20px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 20px;
}

.sg-alert-red,
.sg-alert-purple {
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 24px;
}

.sg-cash-disabled {
  min-height: 60px;
  margin-top: 14px;
  border-radius: 8px;
}

.sg-history-card {
  padding: 16px;
}

.sg-bottom-nav {
  width: min(100%, 400px);
  height: 83.0729px;
  padding: 8px 0 0;
  background: linear-gradient(180deg, rgba(239, 255, 245, .96), rgba(255, 255, 255, .98) 34%, #fff 100%);
  border-top: 1px solid rgba(0, 0, 0, .04);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .035);
  backdrop-filter: blur(10px);
}

.sg-bottom-item {
  position: relative;
  height: 83.0729px;
  gap: 0;
  color: #616161;
  font-size: 13.6px;
  line-height: 20.4px;
  font-weight: 700;
}

.sg-bottom-item .sg-bottom-icon {
  position: absolute;
  top: .6667px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
}

.sg-bottom-item .sg-icon {
  width: 20px;
  height: 20px;
  margin: 0;
}

.sg-bottom-item span:last-of-type {
  position: absolute;
  top: 32.6667px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

.sg-bottom-item.active {
  color: var(--sg-green);
}

.sg-bottom-item i {
  left: 50%;
  bottom: 0;
  height: 6px;
  transform: translateX(-50%);
  transform-origin: center;
}

.sg-bottom-item.active i {
  width: 64px;
  animation: sgActiveLine .24s ease-out both;
}

@keyframes sgActiveLine {
  from { transform: translateX(-50%) scaleX(0); }
  to { transform: translateX(-50%) scaleX(1); }
}

.sg-bottom-item.center {
  margin-top: 0;
}

.sg-bottom-item.center .sg-bottom-icon {
  top: -24.57px;
  width: 52px;
  height: 52px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .09);
  animation: sgPulseCenterFixed 1.9s ease-in-out infinite;
}

.sg-bottom-item.center .sg-icon {
  width: 25.13px;
  height: 25.13px;
  margin: 0;
}

@keyframes sgPulseCenterFixed {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.08); }
}

.sg-drawer-scrim {
  z-index: 1;
}

.sg-drawer-panel {
  z-index: 2;
  width: 302px;
  padding: 24px 24px 40px;
  background: #fff;
}

.sg-drawer-logo {
  width: 192px;
  max-height: 42px;
}

.sg-drawer-close {
  font-size: 32px;
}

.sg-drawer-nav a {
  width: 252px;
  height: 40px;
  margin-bottom: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  gap: 18px;
  font-size: 16px;
  line-height: 24px;
}

.sg-drawer-nav a .sg-icon,
.sg-drawer-fallback {
  width: 24px;
  height: 24px;
}

.sg-drawer-nav a.active {
  box-shadow: 0 0 10px 1px rgba(115, 103, 240, .7);
}

.sg-drawer-group {
  width: 252px;
  height: 40px;
  margin: 0;
  padding: 8px 0;
  color: #93909e;
  font-size: 16px;
  line-height: 24px;
}

.sg-language-panel {
  z-index: 2;
  top: 0;
  width: min(calc(100% - 20px), 380px);
  height: auto;
  max-height: calc(100vh - 58px);
  padding: 20px 16px 0;
  border-radius: 0 0 20px 20px;
  box-shadow: var(--sg-shadow);
}

.sg-language-modal .sg-modal-scrim {
  z-index: 1;
}

.sg-language-head {
  margin-bottom: 26px;
}

.sg-language-head h2 {
  color: #5b5b5b;
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
}

.sg-language-head button {
  font-size: 32px;
}

.sg-language-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px 20.82px;
  padding-bottom: 16px;
}

.sg-language-grid button {
  height: 40px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 24px;
}

.sg-payment-toast {
  top: 24px;
  width: min(calc(100% - 40px), 360px);
  min-height: 87.2708px;
  padding: 10px 40px 10px 12px;
  border-radius: 20px;
  box-shadow: var(--sg-shadow);
  display: block;
}

.sg-toast-head {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 17.125px;
  margin-bottom: 8px;
}

.sg-toast-logo img {
  width: 80px;
  height: 17.125px;
  object-fit: contain;
  object-position: left center;
}

.sg-toast-meta,
.sg-toast-title,
.sg-toast-text {
  font-size: 13.6px;
  line-height: 20.4px;
}

.sg-toast-meta {
  line-height: 16px;
}

.sg-toast-close {
  top: 11px;
  right: 20px;
  width: 12px;
  height: 12px;
  font-size: 24px;
}

.sg-swal {
  width: 122px !important;
  padding: 16px 12px !important;
  border-radius: 12px !important;
}

.sg-swal .swal2-icon {
  width: 40px !important;
  height: 40px !important;
  margin: 0 auto 4px !important;
}

.sg-swal .swal2-html-container,
.sg-swal .swal2-content {
  margin: 4px 0 0 !important;
  font-size: 16px !important;
  line-height: 24px !important;
}

.sg-pay-panel {
  top: 180px;
  width: min(calc(100% - 42px), 320px);
  border-radius: 14px;
  padding: 0 20px 20px;
}

.sg-pay-panel h2 {
  margin: 0 -20px 24px;
  padding: 20px;
  font-size: 20.8px;
  line-height: 31.2px;
}

.sg-pay-close {
  right: -12px;
  top: -12px;
  width: 48px;
  height: 48px;
  font-size: 32px;
}

.sg-pay-panel label,
.sg-form label,
.sg-account-grid label {
  margin: 12px 0 8px;
  font-size: 16px;
  line-height: 24px;
}

.sg-pay-panel select,
.sg-pay-panel input,
.sg-form select,
.sg-form textarea,
.sg-form input,
.sg-account-grid input {
  min-height: 40px;
  border-radius: 6px;
  font-size: 16px;
}

/* SmartGain reference asset integration, 400 x 700 mobile baseline. */
html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: #f9f9fa !important;
  font-family: "nomal", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Arial, Roboto, sans-serif !important;
  color: #3e3e3e;
}

.sg-shell,
.sg-shell * {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.sg-mobile-frame {
  width: min(100%, 400px);
  margin: 0 auto;
  overflow-x: hidden;
  background: #f9f9fa;
}

.sg-main {
  padding: 0 20px 112px;
}

.sg-topbar {
  width: min(calc(100% - 40px), 360px);
  height: 71px;
  margin: 24px auto;
  padding: 16px 20px;
  border-radius: 20px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, .05);
}

.sg-icon-button,
.sg-icon-button .sg-icon {
  width: 24px;
  height: 24px;
}

.sg-lang-trigger {
  width: 28px;
  height: 38px;
  margin-left: auto;
  margin-right: 16px;
}

.sg-lang-trigger .sg-icon {
  width: 28px;
  height: 28px;
}

.sg-balance-pill {
  height: 38px;
  min-width: 0;
  padding: 8px 14px;
  gap: 6px;
  color: #fff !important;
  background: #2763e7;
  box-shadow: none;
  font-family: "sbold", "nomal", sans-serif;
  font-size: 13.6px;
  line-height: 20.4px;
  font-weight: 700;
}

.sg-balance-pill .sg-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.sg-card {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, .05);
}

.sg-section-title,
.sg-task-list h2,
.sg-ref-card h2,
.sg-invite-hero h1,
.sg-language-head h2 {
  font-family: "bold", "nomal", sans-serif;
}

.sg-dashboard-card {
  padding: 20px 20px 16px;
}

.sg-user-head {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
}

.sg-avatar {
  width: 48px;
  height: 48px;
  font-size: 20.8px;
  font-family: "bold", "nomal", sans-serif;
}

.sg-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "bold", "nomal", sans-serif;
  font-size: 18.4px;
  line-height: 27.6px;
}

.sg-balance-label {
  font-family: "nomal", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.sg-balance-value {
  font-family: "bold", "nomal", sans-serif;
  font-size: 24px;
  line-height: 36px;
  color: #4bb227;
}

.sg-dashboard-card .sg-btn {
  width: 126px;
  height: 43px;
  min-height: 43px;
  border-radius: 8px;
  background: #28c76f;
  font-size: 16px;
}

.sg-stat strong {
  font-family: "nomal", sans-serif;
  font-size: 18.4px;
  line-height: 27.6px;
  font-weight: 500;
}

.sg-stat span,
.sg-section-copy,
.sg-task-copy span,
.sg-footer p {
  font-family: "regular", "nomal", sans-serif;
}

.sg-ref-card {
  padding: 16px 20px;
}

.sg-ref-input {
  height: 48px;
  border-radius: 6px;
  background: #efefef;
}

.sg-share-icons {
  gap: 24px;
}

.sg-share-icons img {
  width: 40px;
  height: 40px;
}

.sg-earn-card {
  padding: 20px 16px 12px;
}

.sg-earn-hero {
  padding: 0 0 14px;
}

.sg-earn-hero img {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
}

.sg-bottom-nav {
  width: min(100%, 400px);
  height: 83px;
  padding: 8px 0 0;
  overflow: visible;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, .05);
  box-shadow: none;
}

.sg-bottom-item {
  height: 83px;
  color: #616161;
  font-family: "sbold", "nomal", sans-serif;
  font-size: 13.6px;
  line-height: 20.4px;
  font-weight: 700;
}

.sg-bottom-item .sg-bottom-icon {
  top: 1px;
}

.sg-bottom-item .sg-icon {
  width: 20px;
  height: 20px;
}

.sg-bottom-item span:last-of-type {
  top: 33px;
  white-space: nowrap;
}

.sg-bottom-item.active {
  color: #4bb227;
}

.sg-bottom-item i {
  bottom: 0;
  height: 6px;
  border-radius: 999px;
  background: #4bb227;
}

.sg-bottom-item.active i {
  width: 64px;
}

.sg-bottom-item.center .sg-bottom-icon {
  top: -25px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #4bb227;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .09);
}

.sg-bottom-item.center .sg-icon {
  width: 25px;
  height: 25px;
  filter: none;
}

.sg-drawer {
  z-index: 2200;
}

.sg-drawer-scrim {
  z-index: 1;
  background: rgba(0, 0, 0, .5);
}

.sg-drawer-panel {
  z-index: 2;
  width: 300px;
  padding: 24px 24px 40px;
  background: #fff;
  opacity: 1;
  box-shadow: none;
}

.sg-drawer-logo {
  width: 192px;
  height: 42px;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.sg-drawer-nav a {
  width: 252px;
  height: 40px;
  padding: 8px 16px;
  gap: 18px;
  color: #747184;
  font-family: "regular", "nomal", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.sg-drawer-nav a.active {
  color: #fff;
  background: #4bb227;
  box-shadow: 0 0 10px 1px rgba(115, 103, 240, .7);
  font-family: "sbold", "nomal", sans-serif;
}

.sg-drawer-nav a .sg-icon {
  width: 24px;
  height: 24px;
}

.sg-drawer-group {
  width: 252px;
  height: 40px;
  padding: 8px 0;
  margin: 0;
  color: #93909e;
  font-family: "sbold", "nomal", sans-serif;
  font-size: 16px;
  line-height: 24px;
}

.sg-payment-toast {
  z-index: 2300;
  top: 24px;
  width: min(calc(100% - 40px), 360px);
  min-height: 87px;
  padding: 10px 40px 10px 12px;
  border-radius: 20px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, .08);
}

.sg-toast-head {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 17px;
  margin-bottom: 8px;
}

.sg-toast-logo .sg-logo {
  width: 80px;
  height: 17px;
  object-fit: contain;
  object-position: left center;
}

.sg-toast-meta,
.sg-toast-title,
.sg-toast-text {
  font-size: 13.6px;
  line-height: 20.4px;
}

.sg-toast-title {
  color: #4bb227;
}

.sg-toast-close {
  top: 10px;
  right: 16px;
  width: 20px;
  height: 20px;
  font-size: 28px;
  color: #555;
}

.sg-language-modal {
  z-index: 2250;
}

.sg-language-panel {
  top: 0;
  width: min(calc(100% - 20px), 380px);
  max-height: calc(100vh - 58px);
  padding: 20px 16px 0;
  border-radius: 0 0 20px 20px;
}

.sg-language-grid button {
  height: 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  word-spacing: 0;
  text-transform: none;
}

.sg-task-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px 12px;
  gap: 12px;
}

.sg-task-copy h3 {
  font-family: "nomal", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.sg-task-go {
  width: 96px;
  min-width: 96px;
  height: 32px;
  margin-top: 12px;
  border-radius: 8px;
  font-size: 16px;
}

.sg-task-reward {
  min-width: 79px;
  height: 24px;
  padding: 2px 8px;
  font-size: 13.6px;
  line-height: 20.4px;
  box-shadow: 0 0 10px #28c76f;
}

.sg-task-check {
  color: #28c76f;
  font-size: 32px;
}

.sg-video-item img,
.sg-video-frame iframe {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.sg-public-page {
  width: min(100%, 400px);
  background: #f9f9fa;
}

.sg-public-nav {
  height: 92px;
}

.sg-public-card {
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(20, 20, 20, .08);
}

.sg-public-main-logo {
  width: 170px;
  max-height: 142px;
  object-fit: contain;
}

.sg-footer-logo {
  width: 160px;
  max-height: 118px;
  object-fit: contain;
}

/* SmartGain polish pass: light mobile interactions and in-place task feedback. */
.sg-shell *,
.sg-public-page * {
  box-sizing: border-box;
}

.sg-icon-button,
.sg-toast-close,
.sg-drawer-close,
.sg-language-head button,
.sg-pay-close,
.sg-copy-btn,
.sg-public-menu {
  -webkit-tap-highlight-color: transparent;
  transition: none !important;
}

.sg-icon-button:hover,
.sg-toast-close:hover,
.sg-drawer-close:hover,
.sg-language-head button:hover,
.sg-pay-close:hover,
.sg-copy-btn:hover,
.sg-public-menu:hover,
.sg-btn:hover {
  filter: none;
  transform: none;
}

.sg-btn:hover {
  color: #fff;
  background: var(--sg-green);
}

.sg-mini-toast {
  position: fixed;
  z-index: 2600;
  left: 50%;
  top: 50%;
  width: auto;
  min-width: 96px;
  max-width: min(260px, calc(100vw - 80px));
  padding: 12px 16px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .14);
  color: #111;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.96);
}

.sg-mini-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.sg-mini-toast-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 4px;
  border-radius: 50%;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
}

.sg-mini-toast.success .sg-mini-toast-icon {
  background: #4bb227;
}

.sg-mini-toast.success .sg-mini-toast-icon::before {
  content: "\2713";
}

.sg-mini-toast.error .sg-mini-toast-icon {
  background: #dc3a3a;
}

.sg-mini-toast.error .sg-mini-toast-icon::before {
  content: "\00d7";
  transform: translateY(-1px);
}

.sg-mini-toast-text {
  font-family: "regular", "nomal", sans-serif;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
}

.sg-ref-table {
  overflow: hidden;
}

.sg-ref-table .head,
.sg-ref-table .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 18px;
  align-items: center;
  padding: 12px 16px;
}

.sg-ref-table .head span:last-child,
.sg-ref-table .row strong {
  justify-self: end;
  text-align: right;
}

.sg-ref-table .row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-ref-table .row strong {
  white-space: nowrap;
}

.sg-pay-panel form {
  display: flex;
  flex-direction: column;
}

.sg-pay-panel select,
.sg-pay-panel input {
  box-sizing: border-box;
  margin-bottom: 14px;
}

.sg-pay-panel label {
  margin: 8px 0 8px;
}

.sg-pay-panel .sg-btn {
  margin-top: 10px;
}

.sg-payment-name-field[style*="none"] + textarea + .sg-btn {
  margin-top: 12px;
}

.sg-public-card {
  width: 100%;
  padding: 36px 26px 38px;
}

.sg-public-form input {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 420px) {
  .sg-public-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sg-public-card {
    padding-left: 24px;
    padding-right: 24px;
  }

  .sg-public-title {
    font-size: 28px;
    line-height: 1.35;
  }

  .sg-public-form label {
    font-size: 18px;
  }

  .sg-public-form input {
    height: 51px;
    padding: 0 26px;
    font-size: 16px;
  }
}

/* SmartGain polish pass 2: table alignment, compact public pages, unified forms. */
.sg-stat {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.sg-stat-icon {
  width: 44px;
  height: 44px;
}

.sg-stat-icon .sg-icon {
  width: 26px;
  height: 26px;
}

.sg-current-balance .sg-stat-icon {
  width: 56px;
  height: 56px;
}

.sg-table-card {
  padding: 16px 0 0;
  overflow: hidden;
}

.sg-table-card h2,
.sg-table-card > p {
  padding: 0 16px;
}

.sg-ref-table {
  width: 100%;
  margin: 16px 0 0;
  border-top: 1px solid #dcdcdc;
}

.sg-ref-table .head,
.sg-ref-table .row {
  grid-template-columns: minmax(0, 1fr) 132px;
  padding: 12px 16px;
  column-gap: 12px;
  border-bottom: 1px solid #ececec;
}

.sg-ref-table .head span:first-child,
.sg-ref-table .row span {
  justify-self: start;
  text-align: left;
}

.sg-ref-table .head span:last-child,
.sg-ref-table .row strong {
  width: 132px;
  justify-self: end;
  text-align: right;
}

.sg-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sg-form label {
  margin: 0;
}

.sg-form select,
.sg-form textarea,
.sg-form input,
.sg-account-grid input {
  margin: 0;
}

.sg-form textarea + .sg-btn,
.sg-form input + .sg-btn {
  margin-top: 4px;
}

.sg-help-card,
.sg-faq-card {
  padding: 20px 16px;
}

.sg-help-label {
  display: block;
  margin: 16px 0 8px;
  color: #6f6b80;
  font-size: 16px;
  line-height: 24px;
}

.sg-help-textarea {
  width: 100%;
  min-height: 116px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #34333a;
  background: #fff;
  font-family: "regular", "nomal", sans-serif;
  font-size: 16px;
  line-height: 24px;
  resize: vertical;
}

.sg-help-textarea:focus {
  outline: 0;
  border-color: #2684ff;
  box-shadow: 0 0 0 3px rgba(38, 132, 255, .15);
}

.sg-help-card .sg-btn {
  margin-top: 14px;
}

.sg-faq-list {
  margin-top: 14px;
  border-top: 1px solid #ececec;
}

.sg-faq-item {
  border-bottom: 1px solid #ececec;
}

.sg-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  color: #3e3e3e;
  font-family: "sbold", "nomal", sans-serif;
  font-size: 16px;
  line-height: 22px;
}

.sg-faq-item summary::-webkit-details-marker {
  display: none;
}

.sg-faq-item summary::after {
  content: "+";
  float: right;
  color: #747184;
  font-size: 22px;
  line-height: 18px;
}

.sg-faq-item[open] summary::after {
  content: "-";
}

.sg-faq-item p {
  margin: 0 0 14px;
  color: #747184;
  font-family: "regular", "nomal", sans-serif;
  font-size: 14px;
  line-height: 21px;
}

.sg-public-nav {
  height: 76px;
}

.sg-public-main {
  padding: 28px 20px 40px;
}

.sg-public-card {
  padding: 28px 24px 32px;
  margin-bottom: 56px;
}

.sg-public-logo-wrap {
  margin-bottom: 16px;
}

.sg-public-logo-wrap .sg-logo,
.sg-public-main-logo {
  width: 145px;
  max-height: 120px;
}

.sg-public-title {
  font-size: 27px;
  line-height: 1.32;
  margin-bottom: 8px;
}

.sg-public-switch {
  margin-bottom: 30px;
  font-size: 15px;
}

.sg-public-form label {
  font-size: 17px;
  line-height: 24px;
  margin-bottom: 8px;
}

.sg-public-form input {
  height: 46px;
  margin-bottom: 20px;
  padding: 0 24px;
  font-size: 15px;
}

.sg-public-submit {
  height: 52px;
  margin-top: 12px;
  font-size: 18px;
}

/* SmartGain polish pass 3: public page centering and tighter financial stats. */
.sg-public-page {
  width: min(100%, 400px);
  max-width: 400px;
  margin: 0 auto;
}

.sg-public-nav {
  width: 100%;
  height: 68px;
  padding: 0 20px;
}

.sg-public-menu {
  width: 36px;
  height: 36px;
}

.sg-public-menu .sg-icon {
  width: 24px;
  height: 24px;
}

.sg-public-actions {
  gap: 12px;
}

.sg-public-pill {
  min-width: 96px;
  height: 44px;
  font-size: 16px;
}

.sg-public-main {
  padding: 18px 20px 36px;
}

.sg-public-card {
  width: 100%;
  margin: 0 auto 44px;
  padding: 22px 24px 30px;
}

.sg-public-logo-wrap {
  margin-bottom: 12px;
}

.sg-public-logo-wrap .sg-logo,
.sg-public-main-logo {
  width: 136px;
  max-height: 112px;
}

.sg-public-title {
  font-size: 24px;
  line-height: 1.3;
}

.sg-public-switch {
  margin-bottom: 24px;
  font-size: 14px;
}

.sg-public-form label {
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 7px;
}

.sg-public-form input {
  height: 44px;
  margin-bottom: 16px;
  padding: 0 22px;
  font-size: 14px;
}

.sg-public-submit {
  height: 50px;
  margin-top: 8px;
}

.sg-public-payment-toast {
  top: 20px;
  width: min(calc(100% - 40px), 360px);
}

.sg-table-card .sg-ref-table .head,
.sg-table-card .sg-ref-table .row {
  grid-template-columns: minmax(0, 1fr) 142px !important;
  padding: 12px 24px !important;
  column-gap: 12px !important;
}

.sg-table-card .sg-ref-table .head span:first-child,
.sg-table-card .sg-ref-table .row span {
  justify-self: start !important;
  text-align: left !important;
}

.sg-table-card .sg-ref-table .head span:last-child,
.sg-table-card .sg-ref-table .row strong {
  width: 142px !important;
  justify-self: end !important;
  text-align: right !important;
}

.sg-cash-card .sg-stat-grid.compact .sg-stat {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.sg-cash-card .sg-stat-grid.compact .sg-stat > div:last-child {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  min-width: 0;
}

.sg-cash-card .sg-stat-grid.compact .sg-stat strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #13c96f;
  font-size: 13.6px;
  line-height: 20.4px;
  white-space: nowrap;
}

.sg-cash-card .sg-stat-grid.compact .sg-stat span {
  color: #5d596c;
  font-size: 18.4px;
  line-height: 24px;
}

/* Public auth pages need their own reset because they do not load Bootstrap/common.css. */
html,
body.sg-public-body {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.sg-public-body {
  position: relative;
  background: #f9f9fa !important;
}

body.sg-public-body .sg-public-page {
  width: 100%;
  max-width: 400px;
  min-width: 0;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
  transform: none;
}

body.sg-public-body .sg-public-nav,
body.sg-public-body .sg-public-main,
body.sg-public-body .sg-public-footer {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.sg-public-body .sg-public-nav {
  padding-left: 20px;
  padding-right: 20px;
}

body.sg-public-body .sg-public-main {
  padding-left: 20px;
  padding-right: 20px;
}

body.sg-public-body .sg-public-card {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.sg-public-body .sg-payment-toast {
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(-12px);
}

body.sg-public-body .sg-payment-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Mobile text-fit guardrails for long currency values and translated labels. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.sg-topbar {
  background: rgba(255, 255, 255, .98) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sg-balance-pill {
  max-width: 154px;
  min-width: 112px;
  overflow: hidden;
  white-space: nowrap;
}

.sg-balance-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-btn,
.sg-task-go,
.sg-public-pill,
.sg-copy-btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-dashboard-card .sg-balance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
}

.sg-dashboard-card .sg-balance-row > div {
  min-width: 0;
}

.sg-balance-value {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(22px, 6.2vw, 28px);
  line-height: 1.16;
}

.sg-dashboard-card .sg-btn {
  width: auto;
  min-width: 126px;
  max-width: 138px;
  padding: 0 14px;
  font-size: clamp(13px, 3.8vw, 16px);
  line-height: 1;
}

.sg-stat {
  min-width: 0;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.sg-stat-icon {
  width: 44px;
  height: 44px;
}

.sg-stat-icon .sg-icon {
  width: 27px;
  height: 27px;
}

.sg-stat strong,
.sg-stat span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-stat strong {
  font-size: clamp(16px, 4.6vw, 18.4px);
  line-height: 1.35;
}

.sg-stat span {
  font-size: clamp(13px, 3.8vw, 16px);
  line-height: 1.35;
}

.sg-ref-card h2 {
  font-size: clamp(22px, 6.4vw, 28px);
  line-height: 1.14;
}

.sg-ref-card h2 span {
  white-space: nowrap;
}

.sg-ref-input {
  min-width: 0;
}

.sg-ref-input input {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-earn-row {
  grid-template-columns: 44px minmax(0, 1fr) minmax(112px, 128px);
  gap: 12px;
}

.sg-earn-row .sg-icon {
  width: 44px;
  height: 44px;
}

.sg-earn-row span {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.sg-earn-row b {
  width: 128px;
  min-width: 112px;
  max-width: 128px;
  padding: 0 8px;
  justify-self: end;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(11px, 3.15vw, 13.6px);
}

.sg-task-row {
  min-width: 0;
}

.sg-task-copy,
.sg-task-copy h3,
.sg-task-copy span {
  min-width: 0;
}

.sg-task-copy h3 {
  overflow-wrap: anywhere;
}

.sg-task-reward {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(11px, 3.15vw, 13.6px);
}

.sg-payment-toast {
  background: rgba(255, 255, 255, .98);
  overflow: hidden;
}

.sg-toast-head,
.sg-toast-meta,
.sg-toast-title,
.sg-toast-text {
  min-width: 0;
}

.sg-toast-meta,
.sg-toast-title,
.sg-toast-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-toast-logo {
  flex: 0 0 auto;
}

.sg-bottom-item span:last-of-type {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom nav should read as a white fixed bar; keep green only on active states. */
.sg-bottom-nav {
  background: rgba(255, 255, 255, .97) !important;
  background-image: none !important;
  border-top: 1px solid rgba(0, 0, 0, .06);
  box-shadow: none;
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.sg-bottom-item.center .sg-bottom-icon {
  background: #4bb227;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .09);
}

@media (max-width: 370px) {
  .sg-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sg-topbar {
    width: min(calc(100% - 32px), 360px);
  }

  .sg-dashboard-card .sg-btn {
    min-width: 112px;
    max-width: 124px;
  }

  .sg-earn-row {
    grid-template-columns: 40px minmax(0, 1fr) minmax(100px, 112px);
    gap: 10px;
  }

  .sg-earn-row .sg-icon {
    width: 40px;
    height: 40px;
  }

  .sg-earn-row b {
    width: 112px;
    max-width: 112px;
    font-size: 11px;
  }
}

/* SmartGain polish pass 4: interaction and alignment fixes. */
.sg-payment-toast .sg-toast-meta {
  font-size: 14px;
  font-weight: 700;
}

.sg-cash-disabled {
  cursor: pointer;
  border: 0;
  outline: 0;
  -webkit-tap-highlight-color: transparent;
}

.sg-cash-disabled:focus-visible,
.sg-earn-card:focus-visible {
  outline: 0;
}

.sg-invite-requirement {
  margin-top: 16px;
  padding: 14px 16px 16px;
  border-radius: 10px;
  background: #f7fff8;
  border: 1px solid rgba(75, 178, 39, .18);
}

.sg-invite-requirement-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sg-invite-requirement-head .sg-stat-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.sg-invite-requirement-head strong,
.sg-invite-requirement-head span {
  display: block;
  color: #5f5b70;
}

.sg-invite-requirement-head strong {
  font-size: 17px;
  line-height: 22px;
  font-weight: 800;
}

.sg-invite-requirement-head span {
  margin-top: 2px;
  font-size: 15px;
  line-height: 20px;
  color: #42b22a;
  font-weight: 800;
}

.sg-invite-progress {
  margin-bottom: 12px;
}

.sg-invite-progress i {
  background: #42b22a;
}

.sg-invite-requirement p {
  margin: 0 0 14px;
  color: #6f6b80;
  font-size: 15px;
  line-height: 22px;
}

.sg-invite-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sg-table-card {
  padding: 20px 0 0;
}

.sg-table-card h2,
.sg-table-card > p {
  padding-left: 24px;
  padding-right: 24px;
}

.sg-table-card .sg-ref-table {
  width: 100%;
  margin: 18px 0 0 !important;
  border-top: 1px solid #dcdcdc;
  overflow: hidden;
}

.sg-table-card .sg-ref-table .head,
.sg-table-card .sg-ref-table .row {
  display: grid !important;
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 12px 24px !important;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 16px;
  align-items: center;
  border-bottom: 1px solid #ececec;
}

.sg-table-card .sg-ref-table .head span:first-child,
.sg-table-card .sg-ref-table .row span {
  min-width: 0;
  justify-self: start;
  text-align: left;
}

.sg-table-card .sg-ref-table .head span:last-child,
.sg-table-card .sg-ref-table .row strong {
  width: auto;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.sg-account-grid,
.sg-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sg-account-grid label,
.sg-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.sg-form select,
.sg-form textarea,
.sg-form input,
.sg-account-grid input {
  margin: 0;
}

.sg-form .sg-btn {
  margin-top: 2px;
}

.sg-faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  column-gap: 12px;
  align-items: center;
}

.sg-faq-item summary::after {
  float: none;
  grid-column: 2;
  justify-self: end;
  text-align: center;
}

/* SmartGain polish pass 5: mobile zoom guard, toast swipe, centered loaders. */
html,
body,
.sg-shell,
.sg-mobile-frame,
.sg-public-page {
  touch-action: manipulation;
}

a,
button,
[role="button"],
input,
select,
textarea {
  touch-action: manipulation;
}

.sg-task-go.loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  color: transparent;
  position: relative;
}

.sg-task-go.loading .sg-task-spinner {
  display: none;
}

.sg-task-go.loading::after {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sgSpin .65s linear infinite;
  position: absolute;
  left: calc(50% - 8.5px);
  top: calc(50% - 8.5px);
  margin: 0;
}

.sg-payment-toast {
  touch-action: pan-y;
  will-change: transform;
}

.sg-cash-disabled {
  user-select: none;
  -webkit-user-select: none;
}

/* SmartGain polish pass 6: payout detail, daily invite rewards, and first-run tour. */
.sg-detail-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 90%;
  min-height: 36px;
  margin: 0 auto 16px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #6577ea;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.sg-detail-trail a,
.sg-detail-trail strong,
.sg-detail-trail span {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.sg-payment-detail-card {
  padding: 28px 24px;
  color: var(--sg-text);
  background: #2fcf8b;
}

.sg-payment-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sg-payment-detail-head p {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.sg-payment-detail-head h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
}

.sg-payment-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 190px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #ffd4df;
  color: #e9143b;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.sg-payment-status.review { background: #fff5d9; color: #d18800; }
.sg-payment-status.approved { background: #dff7e9; color: #1f9f51; }
.sg-payment-status.rejected { background: #ffe1e1; color: #d53b3b; }

.sg-payment-to {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.sg-payment-to .sg-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.sg-payment-detail-list {
  margin: 0 0 28px 18px;
  padding: 0;
  color: #050505;
  font-size: 16px;
  line-height: 1.45;
}

.sg-payment-detail-list li {
  margin: 6px 0;
}

.sg-payment-total {
  margin: 0 0 28px;
  color: #2e2570;
  font-size: 18px;
  font-weight: 900;
}

.sg-payment-total strong {
  font-size: 20px;
}

.sg-payment-method-box {
  display: grid;
  gap: 6px;
  margin: 0 auto;
  padding: 18px 24px;
  border-radius: 6px;
  background: #7c8be8;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
  overflow: hidden;
  word-break: break-word;
}

.sg-daily-hero {
  padding: 28px 0 24px;
  text-align: center;
  overflow: hidden;
}

.sg-daily-hero h1 {
  margin: 0 24px 8px;
  color: #3e3e3e;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.sg-daily-hero p {
  margin: 0 26px 22px;
  color: #4a4a4a;
  font-size: 17px;
  line-height: 1.45;
}

.sg-daily-line {
  height: 1px;
  margin: 0 0 22px;
  background: #e8e8eb;
}

.sg-daily-hero h2 {
  margin: 0 16px 12px;
  color: #3e3e3e;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.sg-daily-countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.sg-daily-countdown div {
  width: 76px;
  min-height: 66px;
  display: grid;
  place-items: center;
  padding: 7px 0;
  border: 1px solid #7461f2;
  border-radius: 8px;
  color: #7461f2;
}

.sg-daily-countdown strong,
.sg-daily-countdown span {
  display: block;
  line-height: 1.1;
  font-weight: 900;
}

.sg-daily-countdown strong {
  font-size: 21px;
}

.sg-daily-countdown span {
  font-size: 15px;
}

.sg-daily-card {
  padding: 0 0 22px;
  overflow: hidden;
}

.sg-daily-card h2 {
  margin: 0;
  padding: 24px 20px 18px;
  color: #3e3e3e;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 900;
}

.sg-daily-recommended {
  margin: 0 20px 16px;
  padding: 11px 12px;
  border-radius: 6px;
  background: #7461f2;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  text-align: center;
}

.sg-daily-card p {
  margin: 0 20px 18px;
  color: #777;
  font-size: 16px;
  line-height: 1.45;
}

.sg-daily-progress {
  height: 12px;
  margin: 0 20px 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ecef;
}

.sg-daily-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7461f2;
}

.sg-daily-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 20px;
}

.sg-daily-status,
.sg-daily-claim {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  padding: 8px 16px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}

.sg-daily-status {
  background: #e54558;
}

.sg-daily-claim {
  min-width: 128px;
  background: #f0ad0d;
}

.sg-daily-card.claimed .sg-daily-status,
.sg-daily-card.claimed .sg-daily-claim {
  background: var(--sg-green);
}

.sg-daily-claim:disabled {
  opacity: .9;
}

.sg-daily-claim.loading {
  color: transparent;
  position: relative;
}

.sg-daily-claim.loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sgSpin .65s linear infinite;
  position: absolute;
}

.sg-daily-loading {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: none;
  place-items: center;
  pointer-events: none;
}

.sg-daily-loading.show {
  display: grid;
}

.sg-daily-loading div {
  width: 112px;
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 10px;
  border-radius: 18px;
  background: rgba(70,70,70,.78);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.sg-daily-loading span {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sgSpin .75s linear infinite;
}

.sg-tour-running {
  overflow-x: hidden;
}

.sg-tour-shade {
  position: fixed;
  inset: 0;
  z-index: 1680;
  background: rgba(0,0,0,.56);
}

.sg-tour-active {
  position: relative;
  z-index: 1690;
  box-shadow: 0 0 0 2px rgba(75,178,39,.25), 0 18px 40px rgba(0,0,0,.22);
}

.sg-tour-card {
  position: fixed;
  z-index: 1700;
  left: max(16px, calc(50% - 184px));
  right: max(16px, calc(50% - 184px));
  bottom: 116px;
  max-width: 368px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #1f7a3f;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
}

.sg-tour-title {
  padding: 14px 16px;
  background: #065b35;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.sg-tour-body {
  padding: 14px 16px 16px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.sg-tour-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px 16px;
}

.sg-tour-actions button {
  min-width: 104px;
  height: 44px;
  border: 0;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 800;
}

.sg-tour-actions .back {
  background: #fff;
  color: #115732;
}

.sg-tour-actions .back:disabled {
  opacity: .35;
}

.sg-tour-actions .next {
  margin-left: auto;
  background: #075c37;
  color: #fff;
}

.sg-onboard-bonus {
  color: #4f4d55;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
}

/* Recovery pass: guest drawer, compact public footer logo, and daily page polish. */
.sg-guest-topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  min-height: 92px;
  padding: 0 22px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: 16px;
}

.sg-guest-menu-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
}

.sg-guest-menu-btn .sg-icon {
  width: 28px;
  height: 28px;
}

.sg-guest-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.sg-guest-logo {
  width: 178px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.sg-guest-drawer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
}

.sg-guest-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(75vw, 325px);
  height: 100%;
  padding: 28px 26px 34px;
  background: #fff;
  transform: translateX(-105%);
  transition: transform .24s ease;
  box-shadow: 18px 0 34px rgba(0,0,0,.08);
  overflow-y: auto;
  pointer-events: auto;
}

.sg-guest-drawer-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.44);
  opacity: 0;
  transition: opacity .24s ease;
  pointer-events: none;
}

.sg-guest-drawer.open {
  pointer-events: auto;
}

.sg-guest-drawer.open .sg-guest-drawer-panel {
  transform: translateX(0);
}

.sg-guest-drawer.open .sg-guest-drawer-scrim {
  opacity: 1;
  pointer-events: auto;
}

.sg-guest-payment-toast {
  z-index: 1600;
}

.sg-public-nav-simple {
  justify-content: flex-start;
  gap: 16px;
}

.sg-public-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.sg-public-nav-logo {
  width: 178px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.sg-public-menu-panel {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1500 !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  transform: none !important;
  transition: none !important;
  pointer-events: none;
}

.sg-public-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(75vw, 325px);
  height: 100%;
  padding: 28px 26px 34px;
  background: #fff;
  transform: translateX(-105%);
  transition: transform .24s ease;
  box-shadow: 18px 0 34px rgba(0,0,0,.08);
  overflow-y: auto;
  pointer-events: auto;
}

.sg-public-drawer-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.44);
  opacity: 0;
  transition: opacity .24s ease;
  pointer-events: none;
}

.sg-public-menu-panel.open {
  pointer-events: auto;
}

.sg-public-menu-panel.open .sg-public-drawer-panel {
  transform: translateX(0);
}

.sg-public-menu-panel.open .sg-public-drawer-scrim {
  opacity: 1;
  pointer-events: auto;
}

.sg-index-footer-logo-wrap {
  min-width: 150px !important;
  min-height: 74px !important;
  padding: 8px 12px !important;
  border-radius: 16px !important;
}

.sg-index-footer-logo-wrap .sg-logo,
.sg-index-footer-logo {
  width: 132px !important;
  max-height: 58px !important;
}

.sg-daily-hero {
  padding: 26px 0 24px;
}

.sg-daily-hero h1 {
  max-width: 310px;
  margin: 0 auto 8px;
}

.sg-daily-hero p {
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
}

.sg-daily-card {
  border-radius: 18px;
}

.sg-daily-card h2 {
  border-bottom: 1px solid #e9e9ed;
}

.sg-daily-recommended {
  margin-top: 18px;
  background: #7362ee;
}

.sg-daily-progress span {
  min-width: 0;
  transition: width .25s ease;
}

.sg-daily-card.claimed .sg-daily-progress span {
  background: var(--sg-green);
}

.sg-daily-claim {
  box-shadow: 0 10px 18px rgba(240,173,13,.16);
}

.sg-daily-card.claimed .sg-daily-claim {
  box-shadow: none;
}

/* Final recovery pass: public drawer must use the logged-in drawer language,
   and onboarding must render as a real overlay instead of loose text. */
.sg-public-nav.sg-public-nav-simple,
body.sg-public-body .sg-public-nav.sg-public-nav-simple {
  width: 100%;
  max-width: 400px;
  height: 88px;
  margin: 0 auto;
  padding: 0 22px;
  justify-content: flex-start;
  gap: 16px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-sizing: border-box;
}

.sg-public-nav.sg-public-nav-simple .sg-public-menu {
  flex: 0 0 42px;
}

.sg-public-nav.sg-public-nav-simple .sg-public-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.sg-public-nav.sg-public-nav-simple .sg-public-lang-trigger {
  flex: 0 0 42px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
}

.sg-public-nav.sg-public-nav-simple .sg-public-lang-trigger .sg-icon {
  width: 28px;
  height: 28px;
}

.sg-public-nav.sg-public-nav-simple .sg-public-nav-logo {
  width: 176px;
  max-width: calc(100vw - 160px);
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}

.sg-public-menu-panel {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1500 !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  transform: none !important;
  transition: none !important;
  pointer-events: none !important;
}

.sg-public-menu-panel.open {
  transform: none !important;
  pointer-events: auto !important;
}

.sg-public-drawer-panel {
  position: absolute !important;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(76%, 326px);
  height: 100%;
  padding: 28px 30px 40px;
  background: #fff;
  transform: translateX(-105%);
  transition: transform .25s ease;
  box-shadow: 18px 0 34px rgba(0,0,0,.08);
  overflow-y: auto;
  pointer-events: auto;
}

.sg-public-menu-panel.open .sg-public-drawer-panel {
  transform: translateX(0) !important;
}

.sg-public-drawer-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.47);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.sg-public-menu-panel.open .sg-public-drawer-scrim {
  opacity: 1;
  pointer-events: auto;
}

.sg-public-menu-panel .sg-drawer-nav {
  display: block !important;
  gap: 0 !important;
  padding: 0 !important;
}

.sg-public-menu-panel .sg-drawer-nav a {
  height: 60px;
  border-radius: 8px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #747184 !important;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500 !important;
  margin-bottom: 7px;
}

.sg-public-menu-panel .sg-drawer-nav a.active {
  color: #fff !important;
  background: var(--sg-green);
  box-shadow: 0 10px 22px rgba(94, 60, 255, .28);
  font-weight: 800 !important;
}

.sg-public-menu-panel .sg-drawer-nav a .sg-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.sg-public-menu-panel .sg-drawer-nav a.active .sg-icon {
  filter: brightness(0) invert(1);
}

.sg-public-menu-panel .sg-drawer-group {
  color: #9290a0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  margin: 24px 0 12px;
}

.sg-index-footer-logo-wrap {
  width: 150px !important;
  min-width: 0 !important;
  max-width: 150px !important;
  min-height: 72px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 8px 10px !important;
  border-radius: 16px !important;
}

.sg-index-footer-logo-wrap .sg-logo,
.sg-index-footer-logo {
  width: 132px !important;
  max-width: 132px !important;
  max-height: 58px !important;
  object-fit: contain !important;
}

.sg-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: auto;
  pointer-events: none;
}

.sg-tour-shade {
  position: fixed;
  inset: 0;
  z-index: 1680;
  background: rgba(0,0,0,.56);
  pointer-events: auto;
}

.sg-tour-active {
  position: relative;
  z-index: 1690;
  border-radius: var(--sg-radius);
}

.sg-tour-card {
  position: fixed;
  z-index: 1720;
  left: max(16px, calc(50% - 184px));
  right: max(16px, calc(50% - 184px));
  bottom: 112px;
  max-width: 368px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #1f7a3f;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
  pointer-events: auto;
}

.sg-tour-card,
.sg-tour-card * {
  box-sizing: border-box;
}

.sg-tour-title {
  padding: 14px 16px;
  background: #065b35;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.sg-tour-body {
  padding: 14px 16px 16px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.sg-tour-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px 16px;
}

.sg-tour-actions button {
  min-width: 104px;
  height: 44px;
  border: 0;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 800;
}

.sg-tour-actions .back {
  background: #fff;
  color: #115732;
}

.sg-tour-actions .back:disabled {
  opacity: .35;
}

.sg-tour-actions .next {
  margin-left: auto;
  background: #075c37;
  color: #fff;
}

.sg-daily-hero,
.sg-daily-card {
  box-sizing: border-box;
}

.sg-daily-hero {
  text-align: center;
}

.sg-daily-card {
  padding: 0 0 22px;
  overflow: hidden;
}

.sg-daily-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sg-daily-status,
.sg-daily-claim {
  white-space: nowrap;
}

/* Tight final pass for public pages and the guided tour. */
.sg-public-nav.sg-public-nav-simple,
body.sg-public-body .sg-public-nav.sg-public-nav-simple {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 12px !important;
  position: sticky;
}

.sg-public-nav.sg-public-nav-simple .sg-public-menu {
  flex: 0 0 42px;
  position: relative;
  z-index: 2;
}

.sg-public-nav.sg-public-nav-simple .sg-public-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 140px);
  min-width: 0;
  justify-content: center;
  margin-left: 0 !important;
  z-index: 1;
}

.sg-public-nav.sg-public-nav-simple .sg-public-nav-logo {
  width: 172px;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  object-position: center center;
}

.sg-public-nav.sg-public-nav-simple .sg-public-lang-trigger {
  flex: 0 0 42px;
  position: relative;
  z-index: 2;
  margin-left: 0 !important;
}

.sg-public-drawer-panel {
  z-index: 2;
}

.sg-public-drawer-scrim {
  z-index: 1;
}

.sg-public-menu-panel .sg-drawer-head {
  margin-bottom: 26px;
}

.sg-public-menu-panel .sg-drawer-nav a {
  height: 60px;
  font-size: 20px !important;
  letter-spacing: 0;
}

.sg-public-menu-panel .sg-drawer-nav a.active {
  box-shadow: 0 10px 22px rgba(94, 60, 255, .28);
}

@media (max-width: 360px) {
  .sg-public-nav.sg-public-nav-simple,
  body.sg-public-body .sg-public-nav.sg-public-nav-simple {
    padding-left: 18px;
    padding-right: 18px;
    gap: 10px !important;
  }

  .sg-public-nav.sg-public-nav-simple .sg-public-nav-logo {
    width: 160px;
  }
}

.sg-index-simple-footer,
.sg-public-simple-footer {
  background: #85bb65;
  color: #fff;
  text-align: center;
  padding: 54px 20px 46px;
}

.sg-index-simple-footer section {
  width: min(100%, 430px);
  margin: 0 auto;
}

.sg-public-simple-footer {
  margin-top: 28px;
}

.sg-simple-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin: 0 auto 28px;
  max-width: 340px;
}

.sg-simple-footer-links a {
  color: #fff !important;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.sg-public-simple-footer .sg-footer-logo,
.sg-index-simple-footer .sg-index-footer-logo {
  display: block;
  margin: 0 auto;
}

.sg-index-copyright,
.sg-public-simple-footer .sg-copyright {
  margin: 26px 0 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

.swal2-popup.sg-signup-bonus-popup {
  width: min(300px, calc(100vw - 44px)) !important;
  padding: 20px 16px 22px !important;
  border-radius: 10px !important;
}

.swal2-popup.sg-signup-bonus-popup .swal2-title {
  font-size: 23px !important;
  line-height: 1.25 !important;
}

.swal2-popup.sg-signup-bonus-popup .swal2-html-container {
  margin: 12px 8px 0 !important;
}

.swal2-popup.sg-signup-bonus-popup .swal2-confirm {
  min-width: 104px !important;
  height: 44px !important;
  border-radius: 6px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

.swal2-container {
  z-index: 2600 !important;
}

.sg-tour-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2200 !important;
  pointer-events: none !important;
}

.sg-tour-shade {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2200 !important;
  pointer-events: auto !important;
  background: rgba(0,0,0,.56) !important;
}

.sg-tour-active {
  scroll-margin-top: 122px;
  z-index: 2210 !important;
}

.sg-tour-card {
  position: fixed !important;
  z-index: 2300 !important;
  bottom: 96px;
  pointer-events: auto !important;
  touch-action: manipulation;
}

.sg-tour-card,
.sg-tour-card * {
  pointer-events: auto !important;
}

.sg-public-drawer-panel {
  background: #fff !important;
  z-index: 2 !important;
}

.sg-public-drawer-scrim {
  z-index: 1 !important;
}

/* Stable signup bonus + guided tour overlays. Keep these at the end so they
   win over older SweetAlert and early tour rules still left in the theme. */
body.sg-ui-locked .sg-payment-toast,
body.sg-bonus-running .sg-payment-toast,
body.sg-tour-running .sg-payment-toast {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(-20px) !important;
}

.sg-bonus-overlay {
  position: fixed;
  inset: 0;
  z-index: 2700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .54);
}

.sg-bonus-modal {
  width: min(292px, calc(100vw - 44px));
  margin: 0 auto;
  padding: 22px 18px 24px;
  border-radius: 10px;
  background: #fff;
  color: #55525e;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .2);
}

.sg-bonus-check {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sg-green);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.sg-bonus-modal h2 {
  margin: 0;
  color: #4f4d55;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

.sg-bonus-modal p {
  margin: 12px 0 20px;
  color: #4f4d55;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 800;
}

.sg-bonus-modal button {
  min-width: 104px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--sg-green);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
}

.sg-tour-shade {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2400 !important;
  background: rgba(0, 0, 0, .56) !important;
  pointer-events: auto !important;
}

.sg-tour-active {
  position: relative !important;
  z-index: 2410 !important;
  border-radius: var(--sg-radius) !important;
  box-shadow: 0 0 0 2px rgba(75, 178, 39, .35), 0 18px 44px rgba(0, 0, 0, .22) !important;
}

.sg-tour-card {
  position: fixed !important;
  z-index: 2420 !important;
  left: max(16px, calc(50% - 184px)) !important;
  right: max(16px, calc(50% - 184px)) !important;
  bottom: 112px !important;
  max-width: 368px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #1f7a3f !important;
  color: #fff !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24) !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

.sg-tour-card,
.sg-tour-card * {
  box-sizing: border-box;
  pointer-events: auto;
}

.sg-tour-title {
  padding: 14px 16px !important;
  background: #065b35 !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
}

.sg-tour-body {
  padding: 14px 16px 16px !important;
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

.sg-tour-actions {
  display: flex !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 0 16px 16px !important;
}

.sg-tour-actions button {
  min-width: 104px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 7px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.sg-tour-actions .back {
  background: #fff !important;
  color: #115732 !important;
}

.sg-tour-actions .back:disabled {
  opacity: .45 !important;
}

.sg-tour-actions .next {
  margin-left: auto !important;
  background: #075c37 !important;
  color: #fff !important;
}

/* Mobile compatibility guard for long translations and embedded browsers. */
html,
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0;
}

img,
svg,
canvas,
video,
iframe {
  max-width: 100%;
}

.sg-shell,
.sg-mobile-frame,
.sg-main {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.sg-shell *,
.sg-shell *:before,
.sg-shell *:after {
  box-sizing: border-box;
}

.sg-card {
  max-width: 100%;
}

.sg-card,
.sg-card * {
  word-wrap: break-word;
}

.sg-btn,
.sg-task-go,
.sg-daily-status,
.sg-daily-claim,
.sg-pay-panel button {
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 40px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-align: center;
  line-height: 1.2;
}

.sg-dashboard-card .sg-btn {
  width: auto;
  min-width: 116px;
  max-width: 156px;
  padding: 8px 12px;
}

.sg-balance-pill {
  max-width: 168px;
  min-width: 0;
}

.sg-balance-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-bottom-item {
  min-width: 0;
  overflow: visible;
}

.sg-bottom-item span:last-of-type {
  width: 100%;
  max-width: 78px;
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  text-align: center;
  line-height: 1.1;
}

.sg-bottom-nav {
  overflow: visible;
}

.sg-bottom-item.center {
  overflow: visible;
  z-index: 2;
}

.sg-bottom-item.center .sg-bottom-icon {
  z-index: 3;
}

.sg-cash-disabled {
  width: 100%;
  min-height: 60px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #969696;
  color: #fff;
  text-align: left;
  line-height: 1.2;
}

.sg-cash-disabled span {
  min-width: 0;
  text-align: left;
}

.sg-cash-disabled strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.sg-cash-disabled em {
  display: block;
  font-style: normal;
  font-size: 13px;
  line-height: 1.25;
}

.sg-cash-disabled b {
  width: 42px;
  height: 42px;
  min-width: 42px;
  margin-left: 12px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.sg-task-row,
.sg-stat,
.sg-payment-current,
.sg-current-balance {
  min-width: 0;
}

.sg-task-copy,
.sg-task-copy h3,
.sg-task-copy span,
.sg-stat strong,
.sg-stat span,
.sg-payment-current strong,
.sg-payment-current span,
.sg-current-balance h2,
.sg-current-balance span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.sg-task-go {
  width: auto;
  min-width: 84px;
  padding: 6px 8px;
}

.sg-task-reward {
  min-width: 0;
  max-width: 96px;
  padding-left: 6px;
  padding-right: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-daily-hero,
.sg-daily-card {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow-x: hidden;
}

.sg-daily-countdown {
  padding-left: 8px;
  padding-right: 8px;
  margin-left: 0;
  margin-right: 0;
}

.sg-daily-countdown div {
  width: 30%;
  max-width: 76px;
  min-width: 0;
  margin-left: 4px;
  margin-right: 4px;
  padding-left: 2px;
  padding-right: 2px;
}

.sg-daily-countdown span {
  font-size: 14px;
}

.sg-daily-card h2 {
  padding-left: 18px;
  padding-right: 18px;
}

.sg-daily-recommended,
.sg-daily-card p,
.sg-daily-progress,
.sg-daily-actions {
  margin-left: 18px;
  margin-right: 18px;
}

.sg-daily-actions {
  flex-wrap: wrap;
}

.sg-daily-status {
  flex: 1 1 90px;
}

.sg-daily-claim {
  flex: 1 1 128px;
}

@media (max-width: 370px) {
  .sg-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sg-dashboard-card .sg-btn {
    min-width: 104px;
    max-width: 140px;
    font-size: 14px;
  }

  .sg-balance-pill {
    max-width: 150px;
  }

  .sg-daily-hero h1 {
    font-size: 24px;
  }

  .sg-daily-hero p {
    font-size: 16px;
  }

  .sg-daily-countdown {
    padding-left: 4px;
    padding-right: 4px;
  }

  .sg-daily-countdown div {
    width: 31%;
    margin-left: 2px;
    margin-right: 2px;
  }

  .sg-daily-countdown span {
    font-size: 13px;
  }
}

/* Long-language safety pass for public forms, cash out buttons, and inline toasts. */
.sg-public-title,
.sg-public-switch,
.sg-public-form label,
.sg-public-submit,
.sg-alert-red,
.sg-alert-purple,
.sg-mini-toast,
.sg-mini-toast-text {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.sg-public-submit {
  min-height: 50px;
  height: auto;
  padding: 12px 18px;
  line-height: 1.2;
  white-space: normal;
}

.sg-mini-toast {
  width: auto;
  min-width: 160px;
  max-width: min(340px, calc(100vw - 56px));
  padding-left: 18px;
  padding-right: 18px;
}

.sg-mini-toast-text {
  white-space: normal;
  text-align: center;
}

.sg-cash-disabled {
  min-height: 68px;
  padding: 8px 14px 8px 18px;
}

.sg-cash-disabled span {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 8px;
}

.sg-cash-disabled strong,
.sg-cash-disabled em {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.sg-cash-disabled strong {
  font-size: 17px;
}

.sg-cash-disabled em {
  font-size: 13px;
  line-height: 1.25;
}

/* Dashboard stat labels can use two lines in longer languages without resizing the card. */
.sg-dashboard-card .sg-stat span {
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  line-height: 1.18;
  max-height: 2.36em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Long local currencies should wrap inside reward badges instead of clipping. */
.sg-earn-row b,
.sg-task-reward {
  height: auto;
  min-height: 38px;
  white-space: normal;
  text-overflow: clip;
  overflow: hidden;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
}

.sg-earn-row b {
  width: 132px;
  max-width: 132px;
  padding: 5px 8px;
}

.sg-task-reward {
  width: 132px;
  max-width: 132px;
  padding: 5px 8px;
  align-self: center;
}
