/* cursor — create / invite / history (Figma 309:33868, 309:33925, 288:16681, 891:60955) */
:root {
  --sgc-pink: #EC008C;
  --sgc-pink-50: #FFF5FA;
  --sgc-pink-100: #ffe7ee;
  --sgc-pink-card: #ffe4f4;
  --sgc-mint: linear-gradient(105.12deg, #42f2d9 0%, #03bbb1 53.85%, #049b9b 100%);
  --sgc-mint-shadow: inset 0 1px 1px rgba(255,255,255,.45), 0 3px 6px rgba(3,133,133,.2), 0 10px 22px rgba(3,133,133,.2);
  --sgc-n900: #1F1F1F;
  --sgc-n800: #1F1F1F;
  --sgc-n700: #6B6B6B;
  --sgc-n500: #6B6B6B;
  --sgc-n400: #C4C4C4;
  --sgc-n100: #E5E5E5;
  --sgc-n50: #FFF5FA;
  --sgc-disabled: #C4C4C4;
  --sgc-green: #02cfa0;
  --sgc-line: #06c755;
  --sgc-font: 'Noto Sans Thai', 'Prompt', sans-serif;
}

/* ===== Create 288:16623 ===== */
.sgc-page.sg-page { background: #fff4f7; font-family: var(--sgc-font); color: var(--sgc-n900); }
.sgc-col {
  width: 100%;
  max-width: 540px;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 22px 16px 0;
  display: flex;
  flex-direction: column;
}
.sgc-card {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 24px;
  padding: 16px 18px 22px;
  box-shadow:
    -20px -20px 30px rgba(255,255,255,.53),
    10px 10px 24px rgba(0,0,0,.14),
    inset 4px 4px 8px rgba(0,0,0,.06);
  margin-bottom: 16px;
}
.sgc-card.is-terms { padding: 16px; box-shadow: none; }
.sgc-heading {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: #ed008c;
}
.sgc-heading.is-center { text-align: center; }
.sgc-card.is-terms .sgc-heading { margin-bottom: 4px; }
.sgc-field { margin: 0 0 10px; }
.sgc-field:last-child { margin-bottom: 0; }
.sgc-label {
  display: block;
  margin: 0 0 2px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #303747;
}
.sgc-field.is-goal .sgc-label { margin-bottom: 6px; }
.sgc-input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid #dfe1e6;
  border-radius: 18px;
  background: #fff;
  padding: 8px 16px;
  font-family: var(--sgc-font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--sgc-n900);
  outline: none;
}
.sgc-input::placeholder { color: #c9cdd4; }
.sgc-input:focus { border-color: var(--sgc-pink); }
.sgc-input.is-invalid { border-color: #DC2626; }
.sgc-error {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 14px;
  color: #DC2626;
}
.sgc-rules {
  margin: 0;
  padding: 0 0 0 22px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #566278;
}
.sgc-rules b {
  display: block;
  font-weight: 500;
  color: #232934;
}
.sgc-cta-wrap {
  position: sticky;
  bottom: 0;
  margin: auto -16px 0;
  padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
  background: #fff4f7;
}
.sgc-cta {
  display: block;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(153.61deg, #42f2d9 0%, #03bbb1 53.85%, #049b9b 100%);
  box-shadow: var(--sgc-mint-shadow);
  color: #fff;
  font-family: var(--sgc-font);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  cursor: pointer;
}
.sgc-cta:disabled {
  background: var(--sgc-disabled);
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

/* Confirm 501:82127 — Mobile_Modal 350×364 + mascot 238 @ y=13 */
.sgc-scrim {
  position: fixed;
  inset: 0;
  z-index: 1400;
  overflow: auto;
  background: rgba(31,31,31,.68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sgc-font);
}
.sgc-modal {
  position: relative;
  flex: none;
  width: 350px;
  max-width: calc(100vw - 40px);
  padding-top: 144px;
  box-sizing: border-box;
}
.sgc-modal-mascot {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 13px;
  width: 238px;
  height: 238px;
  transform: translateX(-50%);
  object-fit: contain;
  pointer-events: none;
}
.sgc-modal-card {
  position: relative;
  box-sizing: border-box;
  min-height: 364px;
  padding: 105px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--sgc-pink-50);
  border: 1px solid var(--sgc-n100);
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(31,31,31,.14), inset 0 0 16px 2px #FFFFFF;
}
.sgc-modal-deco {
  position: absolute;
  left: 13px;
  top: -25px;
  width: 324px;
  height: 324px;
  pointer-events: none;
}
.sgc-modal-text {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.sgc-modal-title {
  margin: 0;
  width: 298px;
  max-width: 100%;
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  color: var(--sgc-pink);
}
.sgc-modal-body {
  margin: 0;
  width: 285px;
  max-width: 100%;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  color: var(--sgc-n700);
}
.sgc-modal-body.is-wide { width: 306px; }
.sgc-modal-actions {
  position: relative;
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sgc-modal-yes,
.sgc-modal-no {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 174px;
  height: 48px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sgc-font);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sgc-modal-yes {
  background: var(--sgc-mint);
  box-shadow: var(--sgc-mint-shadow);
  color: #fff;
}
.sgc-modal-no {
  background: none;
  color: var(--sgc-n900);
}
.sgc-modal-yes:focus-visible,
.sgc-modal-no:focus-visible {
  outline: 2px solid #03bbb1;
  outline-offset: 3px;
}
.sgc-modal-yes:disabled,
.sgc-modal-no:disabled {
  cursor: default;
  opacity: .65;
}
@media (max-width: 390px) {
  .sgc-modal-deco {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ===== Invite card 288:16681 ===== */
.sgi-page.sg-page { background: var(--sgc-pink-50); font-family: var(--sgc-font); }
.sgi-col {
  width: 100%;
  max-width: 540px;
  box-sizing: border-box;
  padding: 24px 16px 32px;
}
.sgi-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  margin-bottom: 12px;
}
.sgi-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sgi-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--sgc-pink);
}
.sgi-count { font-size: 16px; font-weight: 600; color: var(--sgc-n800); }
.sgi-note { margin: 0 0 8px; font-size: 16px; line-height: 24px; color: #566278; }
.sgi-member { display: flex; align-items: center; gap: 10px; }
.sgi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #ffb3e6 center/45px 45px no-repeat;
  box-shadow: inset 0 0 8px 2px #fff4f7;
}
.sgi-avatar.is-photo { background-size: cover; }
.sgi-member-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--sgc-n800); }
.sgi-member-tag { font-size: 14px; font-weight: 600; color: var(--sgc-pink); }

.sgi-invite { text-align: center; }
.sgi-invite-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--sgc-pink);
  text-align: center;
}
.sgi-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 128px;
  background: #f8f8f9;
  border: 1px solid #f0f1f3;
  margin-bottom: 8px;
}
.sgi-code img, .sgi-code svg { width: 24px; height: 24px; flex: none; }
.sgi-code-text {
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: var(--sgc-n900);
  letter-spacing: .2px;
  word-break: keep-all;
}
.sgi-actions { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.sgi-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 8px;
  border-radius: 18px;
  border: 0;
  background: #ffe7ee;
  box-shadow: inset 0 0 16px #ffb3e6;
  color: var(--sgc-pink);
  font-family: var(--sgc-font);
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  cursor: pointer;
}
.sgi-btn.is-line {
  background: #268800;
  box-shadow: none;
  color: #fff;
}
.sgi-btn img, .sgi-btn svg { width: 16px; height: 16px; flex: none; }

/* ===== History 891:60955 ===== */
.sgl-page.sg-page { background: var(--sgc-pink-50); font-family: var(--sgc-font); }
.sgl-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.sgl-col {
  width: 100%;
  max-width: 540px;
  box-sizing: border-box;
  padding: 24px 16px 32px;
}
.sgl-chips { display: flex; gap: 6px; margin-bottom: 8px; }
.sgl-chip {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--sgc-n100);
  border-radius: 999px;
  background: var(--sgc-n50);
  color: var(--sgc-n700);
  font-family: var(--sgc-font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  cursor: pointer;
}
.sgl-chip.is-on {
  border-color: transparent;
  background: var(--sgc-green);
  color: #fff;
  box-shadow: inset 0 4px 4px rgba(0,0,0,.25);
}
.sgl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 76px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sgc-n100);
}
.sgl-card .sgl-row:last-child,
.sgl-card > div > div:last-child .sgl-row { border-bottom: 0; }
.sgl-pic {
  position: relative;
  flex: none;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffb3e6;
  box-shadow: inset 0 0 8px 2px #fff4f7;
}
.sgl-pic img {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 45px;
  height: 45px;
  transform: translateX(-50%);
  object-fit: contain;
}
.sgl-body { flex: 1; min-width: 0; }
.sgl-title {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--sgc-n800);
}
.sgl-date {
  display: block;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--sgc-n500);
}
.sgl-pts { flex: none; text-align: center; }
.sgl-pts b {
  display: block;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--sgc-pink);
}
.sgl-pts small {
  display: block;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--sgc-n800);
}
.sgl-pts.is-minus b { color: var(--sgc-n500); }
.sgl-empty { margin: 24px 0; font-size: 14px; color: var(--sgc-n500); text-align: center; }
.sgl-more {
  display: block;
  width: 100%;
  margin-top: 16px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--sgc-mint);
  color: #fff;
  font-family: var(--sgc-font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.sgl-more:disabled { opacity: .6; }
.sgl-spend-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font-family: var(--sgc-font);
  cursor: pointer;
}
.sgl-caret { width: 18px; height: 18px; flex: none; color: var(--sgc-n400); transition: transform .15s ease; }
.sgl-caret.is-open { transform: rotate(180deg); }
.sgl-detail { padding: 0 0 12px 62px; font-size: 13px; line-height: 20px; color: var(--sgc-n700); }
.sgl-detail-row { display: flex; justify-content: space-between; gap: 12px; }
