/**
 * Gift accounts directory (/gift-accounts). Loaded after item-shop.css on that page only.
 */

.ft-gift-accounts-page {
  --ft-ga-ink: #f4f4f5;
  --ft-ga-muted: #a1a1aa;
  --ft-ga-line: rgba(255, 255, 255, 0.08);
  --ft-ga-panel: rgba(24, 24, 27, 0.72);
}

.ft-gift-accounts-page .ft-shop-page__wrap {
  padding-bottom: 2.5rem;
}

.ft-gift-accounts-hero {
  margin: 0 0 1.15rem;
  text-align: center;
  padding-inline: 0.15rem;
}

.ft-gift-accounts-hero__brand {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 5.5vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: rgb(var(--ft-brand-rgb));
  line-height: 1.1;
}

.ft-gift-accounts-hero__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.05rem, 3.2vw, 1.45rem);
  font-weight: 800;
  color: var(--ft-ga-ink);
}

.ft-gift-accounts-hero__lead {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--ft-ga-muted);
  font-size: clamp(0.84rem, 2.6vw, 0.92rem);
  line-height: 1.7;
}

.ft-gift-accounts-alert {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.95rem 0.65rem 0.65rem;
  border-radius: 1.1rem;
  border: 1px solid var(--ft-ga-line);
  background: var(--ft-ga-panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  animation: ft-ga-alert-in 0.45s ease both;
}

.ft-gift-accounts-alert::before {
  content: '';
  position: absolute;
  inset-block: 0.9rem;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

@media (min-width: 640px) {
  .ft-gift-accounts-alert {
    margin-bottom: 1.5rem;
  }
}

.ft-gift-accounts-alert__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
}

.ft-gift-accounts-alert__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ft-gift-accounts-alert__title {
  color: #fafafa;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.5;
}

.ft-gift-accounts-alert__text {
  margin: 0;
  color: #a1a1aa;
  font-size: clamp(0.76rem, 2.4vw, 0.8rem);
  font-weight: 600;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .ft-gift-accounts-alert__text {
    text-align: justify;
  }
}

.ft-gift-accounts-alert__text b {
  color: #fcd34d;
  font-weight: 800;
}

.ft-gift-accounts-alert:has(+ .ft-gift-accounts-alert) {
  margin-bottom: 0.6rem;
}

.ft-gift-accounts-alert.is-danger {
  border-color: rgba(248, 113, 113, 0.16);
  background: rgba(60, 14, 16, 0.55);
  box-shadow: inset 0 1px 0 rgba(254, 202, 202, 0.05);
}

.ft-gift-accounts-alert.is-danger::before {
  background: #f87171;
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.55);
}

.ft-gift-accounts-alert.is-danger .ft-gift-accounts-alert__icon {
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.ft-gift-accounts-alert.is-danger .ft-gift-accounts-alert__text b {
  color: #fca5a5;
}

@keyframes ft-ga-alert-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ft-gift-accounts-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.45rem;
  border-radius: 1.1rem;
  border: 1px solid var(--ft-ga-line);
  background: var(--ft-ga-panel);
  backdrop-filter: blur(10px);
}

.ft-gift-accounts-toolbar.is-hidden {
  display: none;
}

.ft-gift-accounts-toolbar.is-pending {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent) 0 0 / 200% 100%,
    var(--ft-ga-panel);
  animation: ft-ga-skel 1.4s linear infinite;
  pointer-events: none;
}

.ft-gift-accounts-toolbar.is-pending > * {
  visibility: hidden;
}

.ft-gift-accounts-toolbar.is-pending > .ft-gift-accounts-toolbar__filters {
  display: none;
}

.ft-gift-accounts-toolbar__search,
.ft-gift-accounts-toolbar__sort {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.5rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s ease;
}

.ft-gift-accounts-toolbar__search:focus-within,
.ft-gift-accounts-toolbar__sort:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
}

.ft-gift-accounts-toolbar__search {
  flex: 1 1 14rem;
  min-width: 0;
}

.ft-gift-accounts-toolbar__search-icon,
.ft-gift-accounts-toolbar__sort-icon {
  position: absolute;
  inset-inline-start: 0.75rem;
  display: inline-flex;
  color: var(--ft-ga-muted);
  pointer-events: none;
}

.ft-gift-accounts-toolbar__sort-icon {
  inset-inline-start: auto;
  inset-inline-end: 0.7rem;
}

.ft-gift-accounts-toolbar__search input {

  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ft-ga-ink);
  font: inherit;
  font-size: 0.82rem;
}

.ft-gift-accounts-toolbar__search input {
  padding-inline: 2.5rem 0.85rem;
}

.ft-gift-accounts-toolbar__search input::placeholder {
  color: #71717a;
}

.ft-gift-accounts-toolbar__search input::-webkit-search-cancel-button {
  filter: invert(0.7);
  cursor: pointer;
}

.ft-gift-accounts-toolbar__filters {
  display: flex;
  gap: 0.3rem;
  padding: 0.2rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ft-gift-accounts-toolbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.05rem;
  padding: 0 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--ft-ga-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ft-gift-accounts-toolbar__pill[hidden] {
  display: none;
}

.ft-gift-accounts-toolbar__pill span {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  font-weight: 800;
}

.ft-gift-accounts-toolbar__pill:hover {
  color: var(--ft-ga-ink);
}

.ft-gift-accounts-toolbar__pill.is-active {
  color: var(--ft-ga-ink);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.09);
}

.ft-gift-accounts-toolbar__pill.is-active span {
  background: #34d399;
  color: #052e1c;
}

.ft-gift-accounts-toolbar__pill[data-ga-filter='all'].is-active span {
  background: rgb(var(--ft-brand-rgb) / 0.22);
  box-shadow: inset 0 0 0 1px rgb(var(--ft-brand-rgb) / 0.45);
  color: #fff;
}

.ft-gift-accounts-toolbar__pill.is-charging.is-active span {
  background: #fb923c;
  color: #3b1603;
}

.ft-gift-accounts-toolbar__sort {
  flex: 0 0 auto;
  min-width: 11.5rem;
}

.ft-gift-accounts-toolbar__sort-btn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.85rem;
  border: 0;
  background: transparent;
  color: var(--ft-ga-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ft-gift-accounts-toolbar__sort .ft-gift-accounts-toolbar__sort-icon {
  position: static;
  transition: transform 0.2s ease;
}

.ft-gift-accounts-toolbar__sort[hidden],
.ft-gift-accounts-toolbar__filters[hidden] {
  display: none;
}

.ft-gift-accounts-toolbar__sort.is-open {
  border-color: rgba(255, 255, 255, 0.2);
}

.ft-gift-accounts-toolbar__sort.is-open .ft-gift-accounts-toolbar__sort-icon {
  transform: rotate(180deg);
  color: var(--ft-ga-ink);
}

.ft-gift-accounts-toolbar__sort-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  inset-inline: 0;
  z-index: 20;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #18181b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.ft-gift-accounts-toolbar__sort.is-open .ft-gift-accounts-toolbar__sort-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ft-gift-accounts-toolbar__sort-menu li[hidden] {
  display: none;
}

.ft-gift-accounts-toolbar__sort-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--ft-ga-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}

.ft-gift-accounts-toolbar__sort-menu button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ft-ga-ink);
}

.ft-gift-accounts-toolbar__sort-menu button.is-selected {
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
}

.ft-gift-accounts-toolbar__bulk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid rgb(var(--ft-brand-rgb) / 0.45);
  background: rgb(var(--ft-brand-rgb) / 0.16);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ft-gift-accounts-toolbar__bulk:hover {
  border-color: rgb(var(--ft-brand-rgb) / 0.7);
  background: rgb(var(--ft-brand-rgb) / 0.26);
}

.ft-gift-accounts-toolbar__bulk[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .ft-gift-accounts-toolbar__search,
  .ft-gift-accounts-toolbar__filters,
  .ft-gift-accounts-toolbar__sort,
  .ft-gift-accounts-toolbar__bulk {
    flex: 1 1 100%;
    min-width: 0;
  }

  .ft-gift-accounts-toolbar__pill {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 0.4rem;
  }
}

.ft-gift-accounts-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
  padding: 1.4rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgb(var(--ft-brand-rgb) / 0.22);
  background:
    radial-gradient(120% 160% at 100% 0%, rgb(var(--ft-brand-rgb) / 0.16), transparent 55%),
    var(--ft-ga-panel);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.ft-gift-accounts-cta__text {
  flex: 1 1 18rem;
  min-width: 0;
}

.ft-gift-accounts-cta__title {
  margin: 0;
  color: #fafafa;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 800;
}

.ft-gift-accounts-cta__sub {
  margin: 0.4rem 0 0;
  color: var(--ft-ga-muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.7;
}

.ft-gift-accounts-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ft-gift-accounts-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border-radius: 0.85rem;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ft-gift-accounts-cta__btn.is-primary {
  border: 1px solid rgb(var(--ft-brand-rgb) / 0.5);
  background: rgb(var(--ft-brand-rgb));
  color: var(--ft-brand-contrast, #fff);
  box-shadow: 0 10px 24px rgb(var(--ft-brand-rgb) / 0.28);
}

.ft-gift-accounts-cta__btn.is-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.ft-gift-accounts-cta__btn.is-ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
}

.ft-gift-accounts-cta__btn.is-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
  .ft-gift-accounts-cta {
    padding: 1.15rem;
    text-align: center;
  }

  .ft-gift-accounts-cta__actions {
    width: 100%;
  }

  .ft-gift-accounts-cta__btn {
    flex: 1 1 100%;
  }
}

.ft-gift-accounts-skel {
  height: 8.6rem;
  border-radius: 1.1rem;
  border: 1px solid var(--ft-ga-line);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent) 0 0 / 200% 100%,
    var(--ft-ga-panel);
  animation: ft-ga-skel 1.4s linear infinite;
}

@keyframes ft-ga-skel {
  from { background-position: 100% 0, 0 0; }
  to { background-position: -100% 0, 0 0; }
}

.ft-gift-accounts-grid {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.ft-gift-accounts-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.ft-gift-accounts-section__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0 0.15rem;
}

.ft-gift-accounts-section__mark {
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.ft-gift-accounts-section.is-waiting .ft-gift-accounts-section__mark {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.14);
}

.ft-gift-accounts-section.is-ready .ft-gift-accounts-section__mark {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

.ft-gift-accounts-section__title {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 750;
  color: #a1a1aa;
  letter-spacing: 0.01em;
}

.ft-gift-accounts-section.is-waiting .ft-gift-accounts-section__title {
  color: #fcd34d;
}

.ft-gift-accounts-section.is-ready .ft-gift-accounts-section__title {
  color: #6ee7b7;
}

.ft-gift-accounts-section__count {
  flex-shrink: 0;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ft-gift-accounts-section__rule {
  flex: 1 1 auto;
  min-width: 1.5rem;
  height: 1px;
  margin-inline-start: 0.15rem;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.04) 60%,
    transparent
  );
}

.ft-gift-accounts-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .ft-gift-accounts-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 1100px) {
  .ft-gift-accounts-section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ft-gift-accounts-section.is-charging {
  margin-top: 0.6rem;
}

.ft-gift-accounts-section.is-charging.is-solo {
  margin-top: 0;
}

.ft-gift-accounts-section.is-charging .ft-gift-accounts-section__mark {
  background: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.16);
  animation: ft-ga-charging-pulse 1.8s ease-in-out infinite;
}

.ft-gift-accounts-section.is-charging .ft-gift-accounts-section__title {
  color: #fdba74;
}

@keyframes ft-ga-charging-pulse {
  50% { box-shadow: 0 0 0 6px rgba(251, 146, 60, 0.05); }
}

.ft-gift-accounts-charging {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(251, 146, 60, 0.26);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(251, 146, 60, 0.14), transparent 60%),
    rgba(251, 146, 60, 0.05);
}

@media (min-width: 768px) {
  .ft-gift-accounts-charging {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ft-gift-accounts-charging__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.ft-gift-accounts-charging__note {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.7;
  color: #fed7aa;
}

.ft-gift-accounts-charging__hint {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.7;
  color: #a1a1aa;
}

.ft-gift-accounts-charging__eta.ft-gift-accounts-card__wait {
  flex-shrink: 0;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.ft-gift-accounts-charging__eta .ft-gift-accounts-card__wait-unit {
  border-color: rgba(251, 146, 60, 0.28);
}

.ft-gift-accounts-charging__eta .ft-gift-accounts-card__wait-key {
  color: #fdba74;
}

.ft-gift-accounts-charging__eta .ft-gift-accounts-card__wait-num {
  color: #fff7ed;
}

.ft-gift-accounts-charging__eta .ft-gift-accounts-card__wait-sep {
  color: rgba(253, 186, 116, 0.55);
}

.ft-gift-accounts-card.is-charging .ft-gift-accounts-card__status {
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.14);
  border-color: rgba(251, 146, 60, 0.32);
}

.ft-gift-accounts-card.is-charging .ft-gift-accounts-card__avatar {
  filter: saturate(0.6);
}

.ft-gift-accounts-empty {
  margin: 0;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--ft-ga-muted);
  font-size: 0.875rem;
}

.ft-gift-accounts-empty.is-error {
  color: #f87171;
}

.ft-gift-accounts-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.9rem;
  border-radius: 1.1rem;
  border: 1px solid var(--ft-ga-line);
  background:
    radial-gradient(circle at 12% 0%, rgb(var(--ft-brand-rgb) / 0.12), transparent 45%),
    var(--ft-ga-panel);
  opacity: 0;
  transform: translateY(0.55rem);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.2s ease;
  transition-delay: var(--ft-ga-delay, 0ms);
}

@media (min-width: 640px) {
  .ft-gift-accounts-card {
    gap: 0.85rem;
    padding: 1rem;
  }
}

.ft-gift-accounts-card.is-in {
  opacity: 1;
  transform: translateY(0);
}

.ft-gift-accounts-card.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.ft-gift-accounts-card:hover {
  border-color: rgb(var(--ft-brand-rgb) / 0.35);
}

.ft-gift-accounts-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}

.ft-gift-accounts-card__avatar {
  width: 3.5rem;
  height: 3.5rem;
  align-self: center;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  background: #3f3f46;
}

.ft-gift-accounts-card[data-tone='0'] .ft-gift-accounts-card__avatar {
  background: linear-gradient(145deg, #0ea5e9, #0369a1);
}
.ft-gift-accounts-card[data-tone='1'] .ft-gift-accounts-card__avatar {
  background: linear-gradient(145deg, #10b981, #047857);
}
.ft-gift-accounts-card[data-tone='2'] .ft-gift-accounts-card__avatar {
  background: linear-gradient(145deg, #f59e0b, #b45309);
}
.ft-gift-accounts-card[data-tone='3'] .ft-gift-accounts-card__avatar {
  background: linear-gradient(145deg, #ef4444, #b91c1c);
}
.ft-gift-accounts-card[data-tone='4'] .ft-gift-accounts-card__avatar {
  background: linear-gradient(145deg, #64748b, #334155);
}

.ft-gift-accounts-card .ft-gift-accounts-card__avatar.has-img {
  overflow: hidden;
  background: #27272a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.ft-gift-accounts-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ft-gift-accounts-card__meta {
  min-width: 0;
  flex: 1;
}

.ft-gift-accounts-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.ft-gift-accounts-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.ft-gift-accounts-card__vbucks {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  flex-shrink: 0;
  min-height: 1.45rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 11, 0.35);
  color: #fafafa;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.ft-gift-accounts-card__vbucks-icon {
  width: 0.95rem;
  height: 0.95rem;
  object-fit: contain;
  flex-shrink: 0;
}

.ft-gift-accounts-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  margin-top: -0.2rem;
}

.ft-gift-accounts-card__status,
.ft-gift-accounts-card__friend-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.ft-gift-accounts-card__status {
  color: #bbf7d0;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.ft-gift-accounts-card__fast {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.18));
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.ft-gift-accounts-card__fast .ft-icon {
  color: #fbbf24;
  flex-shrink: 0;
}

.ft-gift-accounts-card__friend-badge.is-pending {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.ft-gift-accounts-card__friend-badge.is-waiting {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.ft-gift-accounts-card__name {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: clamp(0.9rem, 2.8vw, 0.98rem);
  font-weight: 800;
  color: var(--ft-ga-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
}

.ft-gift-accounts-card__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex-shrink: 0;
  min-height: 1.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ft-gift-accounts-card__copy:hover,
.ft-gift-accounts-card__copy.is-copied {
  background: rgb(var(--ft-brand-rgb) / 0.2);
  border-color: rgb(var(--ft-brand-rgb) / 0.45);
  color: #fff;
}

.ft-gift-accounts-card__copy-icon {
  display: inline-flex;
  line-height: 0;
}

.ft-gift-accounts-card__copy-icon svg {
  width: 0.85rem;
  height: 0.85rem;
}

.ft-gift-accounts-card__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-top: auto;
}

@media (min-width: 480px) {
  .ft-gift-accounts-card__actions:has(> .ft-gift-accounts-card__btn:nth-child(2)) {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 560px) and (max-width: 719px) {
  .ft-gift-accounts-card__actions:has(> .ft-gift-accounts-card__btn:nth-child(2)) {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 720px) {
  .ft-gift-accounts-card__actions:has(> .ft-gift-accounts-card__btn:nth-child(2)) {
    grid-template-columns: 1fr 1fr;
  }
}

.ft-gift-accounts-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.75rem;
  font-size: clamp(0.72rem, 2.2vw, 0.78rem);
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.ft-gift-accounts-card__btn.is-disabled,
.ft-gift-accounts-card__btn:disabled,
.btn-fort.ft-gift-accounts-card__btn.is-disabled,
.btn-fort.ft-gift-accounts-card__btn.is-disabled:hover {
  opacity: 0.65;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
  box-shadow: none;
  filter: none;
  transform: none;
}

.ft-gift-accounts-card__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #e4e4e7;
}

.ft-gift-accounts-card__btn--ghost:hover:not(.is-disabled):not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.ft-gift-accounts-card__login-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #d4d4d8;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ft-gift-accounts-card__login-hint:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f4f4f5;
}

.ft-gift-accounts-card__done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.16);
  color: #d1fae5;
  font-size: 0.8rem;
  font-weight: 800;
}

.ft-gift-accounts-card__done svg {
  width: 1rem;
  height: 1rem;
  color: #6ee7b7;
}

.ft-gift-accounts-card__pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 750;
}

.ft-gift-accounts-card__wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 0.65rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(34, 211, 238, 0.16), transparent 55%),
    rgba(6, 182, 212, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ft-gift-accounts-card__wait.is-done {
  border-color: rgba(52, 211, 153, 0.35);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(52, 211, 153, 0.16), transparent 55%),
    rgba(16, 185, 129, 0.08);
}

.ft-gift-accounts-card__wait-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #a5f3fc;
  text-align: center;
  width: 100%;
}

.ft-gift-accounts-card__wait.is-done .ft-gift-accounts-card__wait-label {
  color: #a7f3d0;
}

.ft-gift-accounts-card__wait-timer {
  direction: ltr;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.25rem;
  width: auto;
  max-width: 100%;
}

.ft-gift-accounts-card__wait-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 2.85rem;
  padding: 0.35rem 0.4rem 0.4rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(0, 0, 0, 0.28);
}

.ft-gift-accounts-card__wait-num {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  color: #ecfeff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.ft-gift-accounts-card__wait-key {
  font-size: 0.58rem;
  font-weight: 700;
  color: #67e8f9;
  opacity: 0.9;
}

.ft-gift-accounts-card__wait-sep {
  align-self: center;
  padding-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(103, 232, 249, 0.55);
  line-height: 1;
}

.ft-gift-accounts-card__wait-done {
  font-size: 0.8rem;
  font-weight: 800;
  color: #a7f3d0;
  padding: 0.35rem 0.25rem;
}

.ft-gift-accounts-profile-bar {
  margin: 0 0 0.6rem;
}

.ft-gift-accounts-profile-bar.is-pending {
  min-height: 3.65rem;
  border-radius: 1.1rem;
  border: 1px solid var(--ft-ga-line);
  background: var(--ft-ga-panel);
}

.ft-gift-accounts-profile-bar.is-hidden {
  display: none !important;
}

.ft-gift-accounts-profile-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 12% 0%, rgb(var(--ft-brand-rgb) / 0.18), transparent 42%),
    linear-gradient(165deg, rgba(39, 39, 42, 0.96), rgba(24, 24, 27, 0.92));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.ft-gift-accounts-profile-empty__copy {
  min-width: 0;
  flex: 1 1 14rem;
}

.ft-gift-accounts-profile-empty__copy strong {
  display: block;
  margin: 0 0 0.3rem;
  color: #f4f4f5;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
}

.ft-gift-accounts-profile-empty__copy p {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.6;
}

.ft-gift-accounts-profile-empty__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  width: 100%;
}

.ft-gift-accounts-profile-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  flex: 1 1 auto;
  padding: 0.45rem 1.05rem;
  border-radius: 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ft-gift-accounts-profile-empty__btn--primary {
  border: 1px solid rgb(var(--ft-brand-rgb) / 0.45);
  background: rgb(var(--ft-brand-rgb));
  color: var(--ft-brand-contrast, #fff);
  box-shadow: 0 8px 18px rgb(var(--ft-brand-rgb) / 0.25);
}

.ft-gift-accounts-profile-empty__btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.ft-gift-accounts-profile-empty__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
}

.ft-gift-accounts-profile-empty__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

@media (min-width: 480px) {
  .ft-gift-accounts-profile-empty__actions {
    width: auto;
  }

  .ft-gift-accounts-profile-empty__btn {
    flex: 0 0 auto;
    min-width: 8.5rem;
  }
}

/* Single active profile */
.ft-gift-accounts-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.55rem 0.5rem 0.75rem;
  border-radius: 1.1rem;
  border: 1px solid var(--ft-ga-line);
  background: var(--ft-ga-panel);
  backdrop-filter: blur(10px);
  animation: ft-ga-alert-in 0.4s ease both;
}

.ft-gift-accounts-identity__main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.ft-gift-accounts-identity__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, #10b981, #047857);
}

.ft-gift-accounts-identity[data-tone='0'] .ft-gift-accounts-identity__avatar {
  background: linear-gradient(145deg, #38bdf8, #0369a1);
}
.ft-gift-accounts-identity[data-tone='1'] .ft-gift-accounts-identity__avatar {
  background: linear-gradient(145deg, #4ade80, #166534);
}
.ft-gift-accounts-identity[data-tone='2'] .ft-gift-accounts-identity__avatar {
  background: linear-gradient(145deg, #fde047, #a16207);
}
.ft-gift-accounts-identity[data-tone='3'] .ft-gift-accounts-identity__avatar {
  background: linear-gradient(145deg, #fb7185, #9f1239);
}
.ft-gift-accounts-identity[data-tone='4'] .ft-gift-accounts-identity__avatar {
  background: linear-gradient(145deg, #64748b, #1e293b);
}
.ft-gift-accounts-identity[data-tone='5'] .ft-gift-accounts-identity__avatar {
  background: linear-gradient(145deg, #a3e635, #3f6212);
}
.ft-gift-accounts-identity[data-tone='6'] .ft-gift-accounts-identity__avatar {
  background: linear-gradient(145deg, #fb923c, #9a3412);
}
.ft-gift-accounts-identity[data-tone='7'] .ft-gift-accounts-identity__avatar {
  background: linear-gradient(145deg, #2dd4bf, #115e59);
}

.ft-gift-accounts-identity__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.ft-gift-accounts-identity__eyebrow {
  color: #71717a;
  font-size: 0.7rem;
  font-weight: 600;
}

.ft-gift-accounts-identity__name {
  color: #fafafa;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
}

.ft-gift-accounts-identity__id {
  color: #a1a1aa;
  font-size: 0.76rem;
  font-weight: 600;
}

.ft-gift-accounts-identity__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.05rem;
  padding: 0 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.28);
  color: #6ee7b7;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.ft-gift-accounts-identity__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
  animation: ft-ga-identity-pulse 2s ease-in-out infinite;
}

@keyframes ft-ga-identity-pulse {
  50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.05); }
}

/* Multi profile switcher */
.ft-gift-accounts-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1.1rem;
  border: 1px solid var(--ft-ga-line);
  background: var(--ft-ga-panel);
  backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
  .ft-gift-accounts-switcher {
    gap: 0.9rem 1.1rem;
    padding: 0.95rem 1.05rem;
  }
}

.ft-gift-accounts-switcher__copy {
  min-width: 0;
  flex: 1 1 12rem;
}

.ft-gift-accounts-switcher__eyebrow {
  display: block;
  margin: 0 0 0.2rem;
  color: #a1a1aa;
  font-size: 0.72rem;
  font-weight: 700;
}

.ft-gift-accounts-switcher__title {
  display: block;
  color: #f4f4f5;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
}

.ft-gift-accounts-switcher__lead {
  margin: 0.35rem 0 0;
  color: #a1a1aa;
  font-size: 0.78rem;
  line-height: 1.55;
}

.ft-gift-accounts-switcher__trigger {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 3.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
  cursor: pointer;
  text-align: start;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

@media (min-width: 640px) {
  .ft-gift-accounts-switcher__trigger {
    width: min(100%, 17.5rem);
    flex: 0 0 auto;
  }
}

.ft-gift-accounts-switcher__trigger:hover {
  border-color: rgb(var(--ft-brand-rgb) / 0.55);
  transform: translateY(-1px);
}

.ft-gift-accounts-switcher__avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, #64748b, #334155);
}

.ft-gift-accounts-switcher__trigger[data-tone='0'] .ft-gift-accounts-switcher__avatar {
  background: linear-gradient(145deg, #38bdf8, #0369a1);
}
.ft-gift-accounts-switcher__trigger[data-tone='1'] .ft-gift-accounts-switcher__avatar {
  background: linear-gradient(145deg, #4ade80, #166534);
}
.ft-gift-accounts-switcher__trigger[data-tone='2'] .ft-gift-accounts-switcher__avatar {
  background: linear-gradient(145deg, #fde047, #a16207);
}
.ft-gift-accounts-switcher__trigger[data-tone='3'] .ft-gift-accounts-switcher__avatar {
  background: linear-gradient(145deg, #fb7185, #9f1239);
}
.ft-gift-accounts-switcher__trigger[data-tone='4'] .ft-gift-accounts-switcher__avatar {
  background: linear-gradient(145deg, #64748b, #1e293b);
}
.ft-gift-accounts-switcher__trigger[data-tone='5'] .ft-gift-accounts-switcher__avatar {
  background: linear-gradient(145deg, #a3e635, #3f6212);
}
.ft-gift-accounts-switcher__trigger[data-tone='6'] .ft-gift-accounts-switcher__avatar {
  background: linear-gradient(145deg, #fb923c, #9a3412);
}
.ft-gift-accounts-switcher__trigger[data-tone='7'] .ft-gift-accounts-switcher__avatar {
  background: linear-gradient(145deg, #2dd4bf, #115e59);
}

.ft-gift-accounts-switcher__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.ft-gift-accounts-switcher__label {
  color: #a1a1aa;
  font-size: 0.68rem;
  font-weight: 700;
}

.ft-gift-accounts-switcher__name {
  color: #fafafa;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
}

.ft-gift-accounts-switcher__id {
  color: #a1a1aa;
  font-size: 0.72rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-gift-accounts-switcher__chev {
  display: inline-flex;
  color: #a1a1aa;
}

body.ft-ga-profile-modal-open {
  overflow: hidden;
}

.ft-ga-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 640px) {
  .ft-ga-profile-modal {
    align-items: center;
    padding: 1.25rem;
  }
}

.ft-ga-profile-modal[hidden] {
  display: none !important;
}

.ft-ga-profile-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ft-ga-profile-modal.is-open .ft-ga-profile-modal__backdrop {
  opacity: 1;
}

.ft-ga-profile-modal__panel {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  max-height: min(34rem, 88vh);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 1.25rem 1.25rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 12% 0%, rgb(var(--ft-brand-rgb) / 0.18), transparent 42%),
    linear-gradient(165deg, #27272a, #18181b);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(1rem);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (min-width: 640px) {
  .ft-ga-profile-modal__panel {
    border-radius: 1.25rem;
    transform: translateY(0.5rem) scale(0.98);
  }
}

.ft-ga-profile-modal.is-open .ft-ga-profile-modal__panel {
  opacity: 1;
  transform: none;
}

.ft-ga-profile-modal__handle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: -0.15rem 0 0.15rem;
  pointer-events: none;
}

.ft-ga-profile-modal__handle span {
  width: 2.35rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.22);
}

@media (min-width: 640px) {
  .ft-ga-profile-modal__handle {
    display: none;
  }
}

.ft-ga-profile-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ft-ga-profile-modal__title {
  margin: 0;
  color: #fafafa;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.ft-ga-profile-modal__sub {
  margin: 0.25rem 0 0;
  color: #a1a1aa;
  font-size: 0.78rem;
  line-height: 1.55;
}

.ft-ga-profile-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  line-height: 0;
  flex-shrink: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
  cursor: pointer;
}

.ft-ga-profile-modal__close svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  flex-shrink: 0;
}

.ft-ga-profile-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ft-ga-faq-modal__panel {
  width: min(36rem, 100%);
}

.ft-ga-faq-modal__count {
  display: inline-flex;
  margin-bottom: 0.4rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgb(var(--ft-brand-rgb) / 0.14);
  color: var(--ft-brand-soft, rgb(var(--ft-brand-rgb)));
  font-size: 0.7rem;
  font-weight: 800;
}

.ft-ga-faq-modal__answer {
  min-height: 6rem;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.25);
  color: #d4d4d8;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.9;
  text-align: justify;
}

.ft-ga-faq-modal__cta {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0 0.95rem;
  border-radius: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  border: 1px solid rgb(var(--ft-brand-rgb) / 0.5);
  background: rgb(var(--ft-brand-rgb) / 0.16);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ft-ga-faq-modal__cta:hover {
  background: rgb(var(--ft-brand-rgb) / 0.26);
  transform: translateY(-1px);
}

.ft-ga-faq-modal__cta[hidden] {
  display: none;
}

.ft-ga-faq-modal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ft-ga-faq-modal__nav-btn {
  flex-shrink: 0;
}

.ft-ga-faq-modal__cta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 481px) {
  .ft-ga-faq-modal__cta {
    flex: 0 1 auto;
  }
}

@media (max-width: 480px) {
  .ft-ga-faq-modal__nav-btn span {
    display: none;
  }

  .ft-ga-faq-modal__nav-btn {
    padding: 0 0.7rem;
  }
}

.ft-ga-faq-modal__nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.ft-ga-faq-modal__nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.ft-ga-faq-modal__nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ft-ga-friend-modal__account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.ft-ga-friend-modal__account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fafafa;
  font-size: 0.9rem;
  font-weight: 800;
}

.ft-ga-friend-modal__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  padding: 0.3rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.ft-ga-friend-modal__copy:hover,
.ft-ga-friend-modal__copy.is-copied {
  color: #fff;
  border-color: rgb(var(--ft-brand-rgb) / 0.5);
}

.ft-ga-friend-modal__view {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ft-ga-friend-modal__view[hidden] {
  display: none !important;
}

.ft-ga-friend-confirm {
  z-index: 210;
}

.ft-ga-friend-confirm__panel {
  width: min(28rem, 100%);
  gap: 0.9rem;
  padding: 1.1rem 1rem 0.95rem;
}

@media (max-width: 639px) {
  .ft-ga-friend-confirm__panel {
    width: 100%;
    padding-bottom: max(1.1rem, env(safe-area-inset-bottom, 0px));
  }
}

.ft-ga-friend-modal__tile.is-new,
.ft-ga-friend-confirm__panel.is-new {
  --ga-tone: 245 158 11;
  --ga-tone-soft: 253 230 138;
}

.ft-ga-friend-modal__tile.is-old,
.ft-ga-friend-confirm__panel.is-old {
  --ga-tone: 16 185 129;
  --ga-tone-soft: 167 243 208;
}

.ft-ga-friend-modal__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.ft-ga-friend-modal__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 7.25rem;
  padding: 1rem 0.6rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ft-ga-friend-modal__tile strong {
  color: #f4f4f5;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.5;
}

.ft-ga-friend-modal__tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: rgb(var(--ga-tone-soft));
  background: rgb(var(--ga-tone) / 0.14);
}

.ft-ga-friend-modal__tile:hover,
.ft-ga-friend-modal__tile:focus-visible {
  outline: none;
  border-color: rgb(var(--ga-tone) / 0.55);
  background: rgb(var(--ga-tone) / 0.07);
}

.ft-ga-friend-modal__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.55rem 0.6rem;
  list-style: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.ft-ga-friend-modal__steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  color: #d4d4d8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.ft-ga-friend-modal__steps li.ft-ga-friend-modal__step-sep {
  color: #52525b;
}

.ft-ga-friend-modal__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: rgb(var(--ft-brand-rgb) / 0.2);
  border: 1px solid rgb(var(--ft-brand-rgb) / 0.5);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 380px) {
  .ft-ga-friend-modal__steps {
    gap: 0.2rem;
    padding-inline: 0.4rem;
  }

  .ft-ga-friend-modal__steps li {
    font-size: 0.66rem;
  }
}

.ft-ga-friend-modal__picked {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.25rem;
}

.ft-ga-friend-modal__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.3rem;
  padding-inline: 0.3rem 1rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--ga-tone) / 0.28);
  background: rgb(var(--ga-tone) / 0.12);
  color: rgb(var(--ga-tone-soft));
  font-size: 0.82rem;
  font-weight: 800;
}

.ft-ga-friend-modal__chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgb(var(--ga-tone) / 0.22);
}

.ft-ga-friend-modal__chip-icon svg {
  width: 14px;
  height: 14px;
}

.ft-ga-friend-modal__note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgb(var(--ga-tone) / 0.22);
  background: rgb(var(--ga-tone) / 0.07);
}

.ft-ga-friend-modal__note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: rgb(var(--ga-tone) / 0.16);
  color: rgb(var(--ga-tone-soft));
}

.ft-ga-friend-modal__note-icon > span {
  display: inline-flex;
}

.ft-ga-friend-confirm__panel.is-new .is-old-only,
.ft-ga-friend-confirm__panel.is-old .is-new-only {
  display: none;
}

.ft-ga-friend-modal__desc {
  margin: 0;
  padding-top: 0.1rem;
  color: #e4e4e7;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.9;
}

.ft-ga-friend-modal__hold {
  --hold-ms: 1200ms;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.2rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgb(var(--ga-tone) / 0.45);
  background: rgb(var(--ga-tone) / 0.1);
  color: rgb(var(--ga-tone-soft));
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  transition: transform 0.15s ease;
}

.ft-ga-friend-modal__hold:focus-visible {
  outline: 2px solid rgb(var(--ga-tone) / 0.6);
  outline-offset: 2px;
}

.ft-ga-friend-modal__hold-fill {
  position: absolute;
  inset: 0;
  background: rgb(var(--ga-tone));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.25s ease;
}

.ft-ga-friend-modal__hold.is-holding {
  transform: scale(0.985);
}

.ft-ga-friend-modal__hold.is-holding .ft-ga-friend-modal__hold-fill,
.ft-ga-friend-modal__hold.is-done .ft-ga-friend-modal__hold-fill {
  transform: scaleX(1);
  transition: transform var(--hold-ms) linear;
}

.ft-ga-friend-modal__hold-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 0.2s ease;
}

.ft-ga-friend-modal__hold.is-holding .ft-ga-friend-modal__hold-label,
.ft-ga-friend-modal__hold.is-done .ft-ga-friend-modal__hold-label {
  color: #18181b;
  transition: color calc(var(--hold-ms) / 2) ease calc(var(--hold-ms) / 3);
}

.ft-ga-friend-modal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: center;
  margin-top: -0.2rem;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a1a1aa;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.ft-ga-friend-modal__back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.ft-ga-friend-modal__warn {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.ft-ga-friend-modal__warn-icon {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #fca5a5;
}

.ft-ga-friend-modal__warn p {
  margin: 0;
  color: #fecaca;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.75;
}

.ft-ga-profile-modal__search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.65rem;
  padding: 0 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 9, 11, 0.55);
}

.ft-ga-profile-modal__search-icon {
  display: inline-flex;
  color: #71717a;
}

.ft-ga-profile-modal__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #f4f4f5;
  font-size: 0.9rem;
  font-weight: 600;
}

.ft-ga-profile-modal__search input::placeholder {
  color: #71717a;
  font-weight: 500;
}

.ft-ga-profile-modal__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: auto;
  min-height: 0;
  padding: 0.1rem 0.1rem 0.25rem;
  margin: 0 -0.1rem;
}

.ft-ga-profile-modal__empty {
  margin: 0;
  padding: 1.25rem 0.5rem;
  text-align: center;
  color: #a1a1aa;
  font-size: 0.85rem;
}

.ft-ga-profile-modal__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(39, 39, 42, 0.55);
  color: #e4e4e7;
  cursor: pointer;
  text-align: start;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ft-ga-profile-modal__item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(63, 63, 70, 0.45);
}

.ft-ga-profile-modal__item.is-active {
  border-color: rgb(var(--ft-brand-rgb) / 0.65);
  background: rgb(22 118 231 / 24%);
}

.ft-ga-profile-modal__avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #64748b, #334155);
}

.ft-ga-profile-modal__item[data-tone='0'] .ft-ga-profile-modal__avatar {
  background: linear-gradient(145deg, #38bdf8, #0369a1);
}
.ft-ga-profile-modal__item[data-tone='1'] .ft-ga-profile-modal__avatar {
  background: linear-gradient(145deg, #4ade80, #166534);
}
.ft-ga-profile-modal__item[data-tone='2'] .ft-ga-profile-modal__avatar {
  background: linear-gradient(145deg, #fde047, #a16207);
}
.ft-ga-profile-modal__item[data-tone='3'] .ft-ga-profile-modal__avatar {
  background: linear-gradient(145deg, #fb7185, #9f1239);
}
.ft-ga-profile-modal__item[data-tone='4'] .ft-ga-profile-modal__avatar {
  background: linear-gradient(145deg, #64748b, #1e293b);
}
.ft-ga-profile-modal__item[data-tone='5'] .ft-ga-profile-modal__avatar {
  background: linear-gradient(145deg, #a3e635, #3f6212);
}
.ft-ga-profile-modal__item[data-tone='6'] .ft-ga-profile-modal__avatar {
  background: linear-gradient(145deg, #fb923c, #9a3412);
}
.ft-ga-profile-modal__item[data-tone='7'] .ft-ga-profile-modal__avatar {
  background: linear-gradient(145deg, #2dd4bf, #115e59);
}

.ft-ga-profile-modal__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.ft-ga-profile-modal__name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fafafa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
}

.ft-ga-profile-modal__id {
  font-size: 0.74rem;
  font-weight: 600;
  color: #a1a1aa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-ga-profile-modal__state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.ft-ga-profile-modal__item.is-active .ft-ga-profile-modal__state {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.18);
  color: #bbf7d0;
}

.ft-ga-bulk-modal__view {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.ft-ga-bulk-modal__view[hidden] {
  display: none;
}

.ft-ga-bulk-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ft-ga-bulk-modal__all {
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.ft-ga-bulk-modal__all:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.2);
}

.ft-ga-bulk-modal__all:disabled {
  opacity: 0.45;
  cursor: default;
}

.ft-ga-bulk-modal__count {
  color: #a1a1aa;
  font-size: 0.74rem;
  font-weight: 700;
}

.ft-ga-bulk-modal__list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(19rem, 46vh);
  overflow: auto;
}

@media (max-width: 639px) {
  .ft-ga-bulk-modal .ft-ga-profile-modal__panel {
    width: 100%;
    height: min(96dvh, 100%);
    max-height: min(96dvh, 100%);
    padding-bottom: max(1.1rem, env(safe-area-inset-bottom, 0px));
  }

  .ft-ga-bulk-modal__view {
    flex: 1 1 auto;
  }

  .ft-ga-bulk-modal__list {
    max-height: none;
  }
}

.ft-ga-profile-modal__item.ft-ga-bulk-modal__row {
  grid-template-columns: auto auto 1fr auto;
  min-height: 3.3rem;
  padding: 0.55rem 0.7rem;
  user-select: none;
}

.ft-ga-bulk-modal__row:focus-visible {
  outline: 2px solid rgb(var(--ft-brand-rgb) / 0.6);
  outline-offset: 2px;
}

.ft-ga-bulk-modal__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 0.4rem;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ft-ga-bulk-modal__check svg {
  width: 14px;
  height: 14px;
}

.ft-ga-bulk-modal__row.is-active .ft-ga-bulk-modal__check {
  border-color: rgb(var(--ft-brand-rgb));
  background: rgb(var(--ft-brand-rgb));
  color: #fff;
}

.ft-ga-bulk-modal__row .ft-ga-profile-modal__avatar {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.ft-ga-bulk-modal__row .ft-ga-profile-modal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ft-ga-bulk-modal__search {
  padding-inline-end: 0.35rem;
}

.ft-ga-bulk-modal__search input::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

.ft-ga-bulk-modal__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  background: none;
  color: #a1a1aa;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.ft-ga-bulk-modal__reset:hover:not(:disabled) {
  color: #fff;
}

.ft-ga-bulk-modal__reset[hidden] {
  display: none;
}

.ft-ga-bulk-modal__selall {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.7rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: #e4e4e7;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.ft-ga-bulk-modal__selall:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
}

.ft-ga-bulk-modal__selall:disabled {
  opacity: 0.45;
  cursor: default;
}

.ft-ga-bulk-modal__bar[hidden] {
  display: none;
}

.ft-ga-bulk-modal__agree {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #fecaca;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.8;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ft-ga-bulk-modal__agree .ft-ga-bulk-modal__check {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.ft-ga-bulk-modal__agree.is-shake {
  animation: ft-ga-bulk-shake 0.4s ease;
  border-color: rgba(248, 113, 113, 0.75);
}

@keyframes ft-ga-bulk-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.ft-ga-bulk-modal__next.is-locked {
  opacity: 0.5;
}

.ft-ga-bulk-modal__agree.is-active {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.08);
  color: #d1fae5;
}

.ft-ga-bulk-modal__agree.is-active .ft-ga-bulk-modal__check {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

.ft-ga-bulk-modal__selall.is-active .ft-ga-bulk-modal__check {
  border-color: rgb(var(--ft-brand-rgb));
  background: rgb(var(--ft-brand-rgb));
  color: #fff;
}

.ft-ga-bulk-modal__selall.is-partial .ft-ga-bulk-modal__check {
  position: relative;
  border-color: rgb(var(--ft-brand-rgb));
}

.ft-ga-bulk-modal__selall.is-partial .ft-ga-bulk-modal__check::after {
  content: '';
  position: absolute;
  width: 0.6rem;
  height: 2px;
  border-radius: 2px;
  background: rgb(var(--ft-brand-rgb));
}

.ft-ga-bulk-modal__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
  cursor: pointer;
}

.ft-ga-bulk-modal__copy:hover,
.ft-ga-bulk-modal__copy.is-copied {
  border-color: rgba(52, 211, 153, 0.45);
  color: #bbf7d0;
}

.ft-ga-bulk-modal__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.9rem;
  border: 0;
  border-radius: 0.95rem;
  background: rgb(var(--ft-brand-rgb));
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.ft-ga-bulk-modal__next:disabled {
  opacity: 0.4;
  cursor: default;
}

.ft-ga-bulk-modal__all-label {
  color: #a1a1aa;
  font-size: 0.76rem;
  font-weight: 700;
}

.ft-ga-bulk-modal__quick {
  display: flex;
  gap: 0.4rem;
}

.ft-ga-bulk-modal__quick .ft-ga-bulk-modal__all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ft-ga-bulk-modal__quick .ft-ga-bulk-modal__all.is-new.is-active {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}

.ft-ga-bulk-modal__quick .ft-ga-bulk-modal__all.is-old.is-active {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.14);
  color: #bbf7d0;
}

.ft-ga-bulk-modal__mrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.45rem 0.55rem 0.45rem 0.45rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(39, 39, 42, 0.55);
}

.ft-ga-bulk-modal__mname {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fafafa;
  font-size: 0.86rem;
  font-weight: 800;
}

.ft-ga-bulk-modal__seg {
  display: inline-flex;
  flex-shrink: 0;
  padding: 0.18rem;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ft-ga-bulk-modal__seg-btn {
  padding: 0.3rem 0.6rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #a1a1aa;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ft-ga-bulk-modal__seg-btn:hover {
  color: #e4e4e7;
}

.ft-ga-bulk-modal__seg-btn.is-new.is-on {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

.ft-ga-bulk-modal__seg-btn.is-old.is-on {
  background: rgba(16, 185, 129, 0.2);
  color: #bbf7d0;
}

.ft-ga-bulk-modal__summary {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 800;
}

.ft-ga-bulk-modal__summary span {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.ft-ga-bulk-modal__summary .is-new {
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}

.ft-ga-bulk-modal__summary .is-old {
  background: rgba(16, 185, 129, 0.12);
  color: #bbf7d0;
}

.ft-ga-bulk-modal__leave {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: inherit;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(3px);
}

.ft-ga-bulk-modal__leave[hidden] {
  display: none;
}

.ft-ga-bulk-modal__leave-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(20rem, 100%);
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #27272a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.ft-ga-bulk-modal__leave-box strong {
  color: #fafafa;
  font-size: 0.92rem;
  font-weight: 800;
}

.ft-ga-bulk-modal__leave-box p {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.8;
}

.ft-ga-bulk-modal__leave-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.ft-ga-bulk-modal__leave-stay,
.ft-ga-bulk-modal__leave-go {
  min-height: 2.5rem;
  border-radius: 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.ft-ga-bulk-modal__leave-stay {
  border: 0;
  background: rgb(var(--ft-brand-rgb));
  color: #fff;
}

.ft-ga-bulk-modal__leave-go {
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
}

.ft-ga-bulk-modal__leave-go:hover {
  background: rgba(239, 68, 68, 0.18);
}

.ft-ga-bulk-modal__row .ft-ga-profile-modal__name {
  position: relative;
  align-self: flex-start;
  max-width: 100%;
  transition: color 0.25s ease;
}

.ft-ga-bulk-modal__row .ft-ga-profile-modal__name::after {
  content: '';
  position: absolute;
  inset-inline: -2px;
  top: 52%;
  height: 1.5px;
  border-radius: 2px;
  background: #d4d4d8;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ft-ga-bulk-modal__row.is-active .ft-ga-profile-modal__name::after {
  transform: scaleX(1);
}

.ft-ga-bulk-modal__row .ft-ga-profile-modal__avatar {
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.ft-ga-bulk-modal__row.is-active .ft-ga-profile-modal__name {
  color: #8b8b94;
}

.ft-ga-bulk-modal__row.is-active .ft-ga-profile-modal__avatar {
  filter: grayscale(1);
  opacity: 0.7;
}

.ft-ga-bulk-modal__as {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgb(var(--ft-brand-rgb) / 0.35);
  background: rgb(var(--ft-brand-rgb) / 0.1);
}

.ft-ga-bulk-modal__as-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(145deg, rgb(var(--ft-brand-rgb)), #1e3a8a);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.ft-ga-bulk-modal__as-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 0.05rem;
}

.ft-ga-bulk-modal__as-label {
  color: #a1a1aa;
  font-size: 0.68rem;
  font-weight: 700;
}

.ft-ga-bulk-modal__as-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  color: #fafafa;
  font-size: 0.88rem;
  font-weight: 800;
}

.ft-ga-bulk-modal__as-change {
  flex-shrink: 0;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4e7;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.ft-ga-bulk-modal__as-change:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

/* Linked PlayStation / Xbox of the customer's own account (icon button → modal) */
.ft-ga-name-row,
.ft-ga-profile-modal__name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
}

.ft-ga-name-row > strong,
.ft-ga-profile-modal__name-row > .ft-ga-profile-modal__name {
  min-width: 0;
}

.ft-ga-platform-chips {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.ft-ga-platform-chips .ft-gift-accounts-resolve__platform-icon {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.3rem;
}

.ft-ga-platform-chips .ft-gift-accounts-resolve__platform-icon img {
  width: 0.7rem;
  height: 0.7rem;
}

.ft-gift-accounts-switcher__group {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.ft-gift-accounts-switcher__group .ft-gift-accounts-switcher__trigger {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 640px) {
  .ft-gift-accounts-switcher__group {
    width: auto;
    flex: 0 0 auto;
  }
}

.ft-ga-switcher-ids {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex-shrink: 0;
  min-height: 3.55rem;
  padding: 0.45rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #a1a1aa;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ft-ga-switcher-ids:hover,
.ft-ga-switcher-ids:focus-visible {
  border-color: rgb(var(--ft-brand-rgb) / 0.55);
  background: rgb(var(--ft-brand-rgb) / 0.06);
  transform: translateY(-1px);
  outline: none;
}

.ft-ga-switcher-ids__icons {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ft-ga-switcher-ids__icons .ft-gift-accounts-resolve__platform-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.45rem;
}

.ft-ga-switcher-ids__icons .ft-gift-accounts-resolve__platform-icon img {
  width: 0.95rem;
  height: 0.95rem;
}

.ft-ga-switcher-ids__label {
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.ft-gift-accounts-identity__side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.ft-gift-accounts-identity__side .ft-ga-switcher-add {
  min-height: 2.05rem;
  flex-direction: row;
  gap: 0.35rem;
  padding: 0 0.75rem;
  border-radius: 0.7rem;
}

.ft-ga-switcher-add {
  color: rgb(var(--ft-brand-rgb));
  border-style: dashed;
  border-color: rgb(var(--ft-brand-rgb) / 0.4);
}

.ft-ga-switcher-add__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ft-ga-switcher-add__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

@media (max-width: 479px) {
  .ft-gift-accounts-identity__side .ft-gift-accounts-identity__badge {
    display: none;
  }
}

.ft-ga-profile-modal__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
  width: 100%;
  min-height: 2.9rem;
  border-radius: 0.95rem;
  border: 1px dashed rgb(var(--ft-brand-rgb) / 0.45);
  background: rgb(var(--ft-brand-rgb) / 0.05);
  color: rgb(var(--ft-brand-rgb));
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ft-ga-profile-modal__add:hover,
.ft-ga-profile-modal__add:focus-visible {
  background: rgb(var(--ft-brand-rgb) / 0.12);
  border-color: rgb(var(--ft-brand-rgb) / 0.7);
  outline: none;
}

.ft-ga-profile-modal__add-icon {
  display: inline-flex;
}

.ft-ga-profile-modal__item.is-done {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.ft-ga-profile-modal__item.is-done:hover {
  transform: none;
}

.ft-ga-profile-modal__item.is-done .ft-ga-profile-modal__state {
  color: #a1a1aa;
}

.ft-shop-modal-overlay.ft-ga-ids-overlay {
  z-index: 220;
}

.ft-shop-modal.ft-ga-ids-modal {
  z-index: 230;
}

/*
 * Gift-accounts quick-add: TOP sheet on mobile (like auth login).
 * Keeps the form above the keyboard; handle sits under the panel.
 */
@media (max-width: 639px) {
  .ft-shop-modal.ft-ga-add-modal {
    --ft-ga-keyboard: 0px;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - var(--ft-ga-keyboard, 0px) - 0.5rem);
    transform: none;
    border-radius: 0 0 1.25rem 1.25rem;
    padding:
      max(0.65rem, env(safe-area-inset-top, 0px))
      1.15rem
      0.75rem;
    background:
      radial-gradient(circle at 12% 0%, rgb(var(--ft-brand-rgb) / 0.18), transparent 42%),
      linear-gradient(165deg, #27272a, #18181b);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .ft-shop-modal.ft-ga-add-modal.is-hidden {
    display: none;
  }

  /* Stay a top sheet even on the resolved step (do not go fullscreen). */
  .ft-shop-modal.ft-ga-add-modal.is-resolved {
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - var(--ft-ga-keyboard, 0px) - 0.5rem);
    border-radius: 0 0 1.25rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding:
      max(0.65rem, env(safe-area-inset-top, 0px))
      1.15rem
      0.75rem;
    overflow: auto;
  }

  .ft-shop-modal.ft-ga-add-modal .ft-ga-profile-modal__handle {
    display: flex;
    order: 20;
    margin: 0.55rem 0 0.1rem;
  }

  .ft-shop-modal.ft-ga-add-modal .ft-shop-modal__head {
    order: 1;
    margin-top: 0;
  }

  .ft-shop-modal.ft-ga-add-modal .ft-shop-modal__body {
    order: 2;
    width: 100%;
    min-width: 0;
  }

  .ft-shop-modal.ft-ga-add-modal.is-resolved .ft-shop-modal__body.is-resolved {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }

  .ft-shop-modal.ft-ga-add-modal.is-resolved .ft-gift-accounts-resolve {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  /* Equal pair of CTAs — avoid sticky/negative-margin layout hole on the side */
  .ft-shop-modal.ft-ga-add-modal .ft-shop-modal__actions,
  .ft-shop-modal.ft-ga-add-modal.is-resolved .ft-gift-accounts-resolve .ft-shop-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    margin: 0.5rem 0 0;
    margin-inline: 0;
    padding: 0;
    position: static;
    background: none;
  }

  .ft-shop-modal.ft-ga-add-modal .ft-shop-modal__actions .ft-shop-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 640px) {
  .ft-shop-modal.ft-ga-add-modal .ft-ga-profile-modal__handle {
    display: none;
  }
}
