@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --fg-sp-gold: #f3d56a;
  --fg-sp-gold-deep: #c9a227;
  --fg-sp-green: #1a8f4a;
  --fg-sp-green-deep: #0d6530;
  --fg-sp-ink: #1c2a22;
  --fg-sp-muted: rgba(255, 247, 224, 0.62);
  --fg-sp-line: rgba(255, 233, 176, 0.22);
  --fg-sp-card: rgba(28, 18, 10, 0.72);
  --fg-sp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fg-sp-safe-top: env(safe-area-inset-top, 0px);
  --fg-sp-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

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

body.fg-subpage {
  min-height: 100dvh;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #fff7e8;
  background-color: #3d2618;
  background-image:
    linear-gradient(180deg, rgba(61, 38, 24, 0.15) 0%, rgba(28, 16, 8, 0.42) 100%),
    url('fg-dirt-bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  -webkit-text-size-adjust: 100%;
}

.fg-subpage-wrap {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(10px + var(--fg-sp-safe-top))
    16px
    calc(24px + var(--fg-sp-safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- Standalone header (not tied to base.html shell) ---- */
.fg-sp-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 4px 0 8px;
}

.fg-sp-back {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 2px solid #6a3a08;
  color: #3a1c04;
  text-decoration: none;
  background: linear-gradient(180deg, #ffe98a 0%, #e8b84a 45%, #c98912 100%);
  box-shadow:
    0 4px 0 #5a3208,
    0 6px 14px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.1s var(--fg-sp-ease);
}

.fg-sp-back:active { transform: translateY(2px); }
.fg-sp-back svg { width: 20px; height: 20px; }

.fg-sp-top__title {
  margin: 0;
  flex: 1;
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--fg-sp-gold);
  text-shadow:
    0 1px 0 #6a3a08,
    0 2px 4px rgba(0, 0, 0, 0.75);
}

.fg-sp-top__badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3a1c04;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe98a, #e8b84a);
  border: 1px solid rgba(106, 58, 8, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

/* ---- Shared cards ---- */
.fg-sp-card {
  border-radius: 20px;
  padding: 16px;
  background: var(--fg-sp-card);
  border: 1.5px solid var(--fg-sp-line);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.fg-sp-card__lbl {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-sp-muted);
}

.fg-sp-card__val {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 800;
  color: var(--fg-sp-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.fg-sp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fg-sp-stat {
  text-align: center;
  padding: 12px 6px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--fg-sp-line);
}

.fg-sp-stat__val {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: clamp(14px, 4vw, 17px);
  font-weight: 800;
  color: var(--fg-sp-gold);
  line-height: 1.15;
}

.fg-sp-stat__lbl {
  margin: 4px 0 0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-sp-muted);
}

.fg-sp-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  border: 2px solid #5a3208;
  border-radius: 14px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3a1c04;
  cursor: pointer;
  background: linear-gradient(180deg, #ffe98a 0%, #e8b84a 40%, #c98912 100%);
  box-shadow:
    0 4px 0 #5a3208,
    0 8px 18px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.1s var(--fg-sp-ease), opacity 0.15s;
}

.fg-sp-btn:active:not(:disabled) { transform: translateY(2px); }

.fg-sp-btn:disabled,
.fg-sp-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.fg-sp-btn--ghost {
  background: rgba(0, 0, 0, 0.28);
  border-color: var(--fg-sp-line);
  color: var(--fg-sp-gold);
  box-shadow: none;
}

.fg-sp-hint {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--fg-sp-muted);
  text-align: center;
}

/* ---- Check-in ---- */
.fg-ci-hero {
  text-align: center;
  padding: 18px 14px 16px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 224, 130, 0.14), transparent 70%),
    var(--fg-sp-card);
  border: 1.5px solid rgba(255, 224, 130, 0.32);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.fg-ci-hero__kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-sp-muted);
}

.fg-ci-hero__reward {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: clamp(36px, 11vw, 48px);
  font-weight: 900;
  color: var(--fg-sp-gold);
  text-shadow:
    0 2px 0 #6a3a08,
    0 4px 12px rgba(0, 0, 0, 0.55);
  line-height: 1;
}

.fg-ci-hero__sub {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 247, 224, 0.88);
}

.fg-ci-hero__timer {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #ffe98a;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--fg-sp-line);
  font-variant-numeric: tabular-nums;
}

.fg-ci-trail-wrap {
  overflow: hidden;
}

.fg-ci-trail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.fg-ci-trail-head__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #fff7e8;
}

.fg-ci-trail-head__meta {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--fg-sp-muted);
}

.fg-ci-trail {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.fg-ci-trail::-webkit-scrollbar { display: none; }

.fg-ci-step {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  scroll-snap-align: center;
}

.fg-ci-step__dot {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 9px;
  font-weight: 800;
  color: var(--fg-sp-muted);
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--fg-sp-line);
  transition: transform 0.2s var(--fg-sp-ease), box-shadow 0.2s;
}

.fg-ci-step__day {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.fg-ci-step__amt {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.fg-ci-step__line {
  width: 10px;
  height: 2px;
  margin-top: 19px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.fg-ci-step--claimed .fg-ci-step__dot {
  background: linear-gradient(180deg, #4ecb7a, #1a8f4a);
  border-color: rgba(120, 255, 170, 0.35);
  color: #fff;
  box-shadow: 0 0 10px rgba(46, 184, 110, 0.35);
}

.fg-ci-step--ready .fg-ci-step__dot {
  background: linear-gradient(180deg, #ffe98a, #e8b84a);
  border-color: #c98912;
  color: #3a1c04;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(255, 200, 60, 0.45);
}

.fg-ci-step--done .fg-ci-step__dot {
  background: linear-gradient(180deg, #4ecb7a, #1a8f4a);
  border-color: rgba(120, 255, 170, 0.35);
  color: #fff;
}

.fg-ci-step--missed .fg-ci-step__dot {
  background: rgba(80, 30, 30, 0.55);
  border-color: rgba(255, 100, 100, 0.25);
  color: rgba(255, 180, 180, 0.75);
}

.fg-ci-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.fg-ci-cal__head {
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--fg-sp-muted);
  padding-bottom: 4px;
}

.fg-ci-cal__cell {
  aspect-ratio: 1;
  min-height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 247, 224, 0.55);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid transparent;
}

.fg-ci-cal__cell small {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 224, 130, 0.55);
  opacity: 1;
}

.fg-ci-cal__cell--claimed small {
  color: rgba(184, 245, 208, 0.85);
}

.fg-ci-cal__cell--today small {
  color: rgba(255, 233, 160, 0.9);
}

.fg-ci-cal__cell--today {
  border-color: rgba(255, 224, 130, 0.45);
  color: #fff7e8;
}

.fg-ci-cal__cell--claimed {
  background: linear-gradient(180deg, rgba(46, 184, 110, 0.35), rgba(26, 143, 74, 0.22));
  border-color: rgba(120, 255, 170, 0.22);
  color: #d8ffea;
}

.fg-ci-cal__cell--future {
  opacity: 0.45;
}

.fg-ci-cal__cell--blank {
  visibility: hidden;
  background: transparent;
  border: none;
  min-height: 0;
}

/* ---- Gift code ---- */
.fg-gift-ticket {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px 18px 18px;
  background:
    linear-gradient(145deg, rgba(255, 224, 130, 0.1) 0%, rgba(28, 18, 10, 0.92) 55%),
    var(--fg-sp-card);
  border: 1.5px solid rgba(255, 224, 130, 0.28);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.fg-gift-ticket::before,
.fg-gift-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: #3d2618;
  border: 1px solid rgba(255, 224, 130, 0.15);
}

.fg-gift-ticket::before { left: -8px; }
.fg-gift-ticket::after { right: -8px; }

.fg-gift-ticket__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3a1c04;
  background: linear-gradient(180deg, #ffe98a, #e8b84a);
}

.fg-gift-ticket__title {
  margin: 0 0 6px;
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--fg-sp-gold);
}

.fg-gift-ticket__hint {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--fg-sp-muted);
}

.fg-gift-input {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}

.fg-gift-input input {
  width: 100%;
  max-width: 220px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 2px solid rgba(255, 224, 130, 0.28);
  background: rgba(0, 0, 0, 0.35);
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-align: center;
  color: var(--fg-sp-gold);
  outline: none;
  font-variant-numeric: tabular-nums;
}

.fg-gift-input input:focus {
  border-color: rgba(255, 224, 130, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 200, 60, 0.12);
}

.fg-gift-input input::placeholder {
  color: rgba(255, 224, 130, 0.25);
  letter-spacing: 0.12em;
  font-size: 16px;
}

.fg-gift-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fg-gift-history__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--fg-sp-line);
}

.fg-gift-history__code {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--fg-sp-gold);
}

.fg-gift-history__meta {
  text-align: right;
}

.fg-gift-history__amt {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #8ef0b0;
}

.fg-gift-history__when {
  margin: 2px 0 0;
  font-size: 9px;
  font-weight: 600;
  color: var(--fg-sp-muted);
}

.fg-gift-empty {
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  border: 1px dashed var(--fg-sp-line);
  color: var(--fg-sp-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

/* ---- About ---- */
.fg-about-hero {
  text-align: center;
  padding: 8px 0 4px;
}

.fg-about-hero--text-only {
  padding: 4px 0 8px;
}

.fg-about-copy .fg-about-text {
  margin: 0 0 12px;
}

.fg-about-copy .fg-about-text:last-child {
  margin-bottom: 0;
}

.fg-about-hero__name {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--fg-sp-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.fg-about-hero__tag {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-sp-muted);
}

.fg-about-text {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 247, 224, 0.9);
}

.fg-about-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fg-about-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.fg-about-row__lbl {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-sp-muted);
  flex-shrink: 0;
}

.fg-about-row__val {
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  color: #fff7e8;
  word-break: break-all;
}

.fg-about-row__val a {
  color: var(--fg-sp-gold);
  text-decoration: none;
}

.fg-about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fg-about-features li {
  padding: 12px 10px;
  border-radius: 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255, 247, 224, 0.9);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--fg-sp-line);
}

.fg-about-features li span {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.fg-about-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fg-about-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  color: #3a1c04;
  background: linear-gradient(180deg, #ffe98a 0%, #e8b84a 100%);
  border: 2px solid #6a3a08;
  box-shadow: 0 3px 0 #5a3208;
}

.fg-about-link--ghost {
  color: var(--fg-sp-gold);
  background: rgba(0, 0, 0, 0.28);
  border-color: var(--fg-sp-line);
  box-shadow: none;
}

/* ---- Underline layout (check-in, gift — matches recharge/withdraw) ---- */
.fg-sp-page-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 4px;
  border-top: 1px solid rgba(255, 233, 176, 0.22);
  border-bottom: 1px solid rgba(255, 233, 176, 0.22);
}

.fg-sp-page-head__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.fg-sp-page-head__icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.fg-sp-page-head__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff7e8;
  line-height: 1.3;
  text-shadow:
    0 1px 0 #6a3a08,
    0 2px 4px rgba(0, 0, 0, 0.6);
}

.fg-sp-page-head__sub {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-sp-muted);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.fg-subpage--about .fg-about-copy {
  margin: 0;
  padding: 14px 4px 16px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 233, 176, 0.18);
  box-shadow: none;
  backdrop-filter: none;
}

.fg-subpage--about .fg-about-text {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.fg-subpage--checkin .fg-sp-card,
.fg-subpage--gift .fg-sp-card,
.fg-subpage--gift .fg-gift-ticket {
  border-radius: 0;
  padding: 14px 4px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 233, 176, 0.18);
  box-shadow: none;
  backdrop-filter: none;
}

.fg-subpage--checkin .fg-sp-card__lbl,
.fg-subpage--gift .fg-sp-card__lbl,
.fg-subpage--gift .fg-gift-ticket__tag {
  color: #ffe9b0;
  text-shadow:
    0 1px 0 #6a3a08,
    0 2px 4px rgba(0, 0, 0, 0.65);
}

.fg-subpage--gift .fg-gift-ticket::before,
.fg-subpage--gift .fg-gift-ticket::after {
  display: none;
}

.fg-subpage--gift .fg-gift-ticket__title {
  text-shadow:
    0 1px 0 #6a3a08,
    0 2px 4px rgba(0, 0, 0, 0.55);
}

.fg-subpage--gift .fg-gift-input input {
  border-radius: 0;
  border: none;
  border-bottom: 2px solid rgba(255, 233, 176, 0.28);
  background: transparent;
  box-shadow: none;
}

.fg-subpage--gift .fg-gift-input input:focus {
  border-bottom-color: rgba(255, 224, 130, 0.55);
  box-shadow: none;
}

.fg-subpage--gift .fg-gift-history {
  gap: 0;
}

.fg-subpage--gift .fg-gift-history__item {
  padding: 12px 2px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 233, 176, 0.16);
}

.fg-subpage--gift .fg-gift-history__item:last-child {
  border-bottom: none;
}

.fg-subpage--gift .fg-gift-empty {
  border-radius: 0;
  border: none;
  border-bottom: 1px dashed rgba(255, 233, 176, 0.28);
  background: transparent;
}

/* ---- Modal ---- */
.fg-sp-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 12, 8, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--fg-sp-ease), visibility 0.25s;
}

.fg-sp-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fg-sp-modal__card {
  width: min(320px, 100%);
  padding: 22px 20px 18px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(160deg, rgba(42, 28, 16, 0.98), rgba(22, 14, 8, 0.98));
  border: 2px solid rgba(255, 224, 130, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transform: scale(0.92);
  transition: transform 0.25s var(--fg-sp-ease);
}

.fg-sp-modal.is-visible .fg-sp-modal__card {
  transform: scale(1);
}

.fg-sp-modal__title {
  margin: 0 0 8px;
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--fg-sp-gold);
}

.fg-sp-modal__msg {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 247, 224, 0.92);
}

.fg-sp-modal__btn {
  margin-top: 16px;
  min-width: 120px;
  min-height: 40px;
  padding: 10px 18px;
  border: 2px solid #5a3208;
  border-radius: 12px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #3a1c04;
  cursor: pointer;
  background: linear-gradient(180deg, #ffe98a, #e8b84a);
  box-shadow: 0 3px 0 #5a3208;
}

@media (max-width: 360px) {
  .fg-ci-step { min-width: 46px; }
  .fg-ci-step__dot { width: 36px; height: 36px; }
  .fg-gift-input input { font-size: 24px; }
}

/* ---- Telegram managers page ---- */
.fg-subpage--telegram .fg-tg-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fg-tg-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: var(--fg-sp-card);
  border: 1.5px solid var(--fg-sp-line);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  transition: transform 0.12s var(--fg-sp-ease), border-color 0.12s var(--fg-sp-ease);
}

.fg-tg-card:active {
  transform: scale(0.98);
}

.fg-tg-card:focus-visible {
  outline: 2px solid var(--fg-sp-gold);
  outline-offset: 2px;
}

.fg-tg-card__photo {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
}

.fg-tg-card__photo img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.fg-tg-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fg-tg-card__name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--fg-sp-gold);
  text-shadow:
    0 1px 0 #6a3a08,
    0 2px 4px rgba(0, 0, 0, 0.65);
}

.fg-tg-card__role {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-sp-muted);
}

.fg-tg-card__phone {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 247, 224, 0.88);
  letter-spacing: 0.02em;
}

.fg-tg-card__go {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 233, 176, 0.22);
}

.fg-tg-card__go img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.fg-tg-empty {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-sp-muted);
  border: 1px dashed var(--fg-sp-line);
  border-radius: 16px;
}

.fg-tg-group {
  margin-top: 4px;
}

.fg-subpage--telegram .fg-sp-card,
.fg-subpage--telegram .fg-tg-card {
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 233, 176, 0.18);
  box-shadow: none;
  backdrop-filter: none;
}

.fg-subpage--telegram .fg-tg-list .fg-tg-card:last-child {
  border-bottom: none;
}

@media (max-width: 360px) {
  .fg-tg-card__photo,
  .fg-tg-card__photo img {
    width: 76px;
    height: 76px;
  }
  .fg-tg-card__name { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .fg-sp-back,
  .fg-sp-btn,
  .fg-ci-step__dot,
  .fg-sp-modal,
  .fg-sp-modal__card,
  .fg-tg-card {
    transition: none;
  }
}
