/* ==========================================================================
   PROFILE FRAMES + CUSTOM LIKE ICON — redesign
   Loaded after frames_shop.css / premium_likes.css. Everything is built on the
   theme tokens (surafel-theme.css), so accent skins and dark mode just work.
   ========================================================================== */

@keyframes sfSheetUp {
  from {
    transform: translateY(32px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

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

/* --------------------------------------------------------------------------
   SHARED: centered card modals in the exact middle with equal top & bottom spacing
   -------------------------------------------------------------------------- */
html body #fs-detail-modal .modal-dialog,
html body #fs-confirm-modal .modal-dialog,
html body #sf-sell-modal .modal-dialog,
html body.cl-app-frames_shop #sf-sell-modal .modal-dialog.fs-sell-modal__dialog,
html body #sf-submit-success-modal .modal-dialog,
html body .cl-gift2 .modal-dialog.cl-gift2__dialog,
html body div.modal[data-app="post-gift-modal"] .modal-dialog,
html body #plk-custom-modal .modal-dialog,
html body.cl-app-premium_likes #plk-custom-modal .modal-dialog.plk-request-modal__dialog,
html body #plk-asset-manage-modal .modal-dialog,
html body #plk-asset-delete-password-modal .modal-dialog {
  margin: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 560px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - max(48px, calc(max(var(--safe-top, 0px), env(safe-area-inset-top, 0px)) * 2 + 24px))) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none;
}

html body #fs-detail-modal .modal-content,
html body #fs-confirm-modal .modal-content,
html body #sf-sell-modal .modal-content,
html body.cl-app-frames_shop #sf-sell-modal .modal-content.fs-sell-modal__shell,
html body #sf-submit-success-modal .modal-content,
html body .cl-gift2 .modal-content.cl-gift2__shell,
html body div.modal[data-app="post-gift-modal"] .modal-content,
html body #plk-custom-modal .modal-content,
html body.cl-app-premium_likes #plk-custom-modal .modal-content.plk-request-modal__content,
html body #plk-asset-manage-modal .modal-content,
html body #plk-asset-delete-password-modal .modal-content {
  pointer-events: auto;
  width: 100%;
  height: auto !important;
  max-height: min(86vh, calc(100dvh - max(48px, calc(max(var(--safe-top, 0px), env(safe-area-inset-top, 0px)) * 2 + 24px)))) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: var(--sf-surface, var(--cl-primary-bg-color, #fff)) !important;
  box-shadow: var(--sf-shadow-xl, 0 20px 60px rgba(0, 0, 0, .28)) !important;
  animation: sfSheetUp .24s var(--sf-ease-out, ease-out);
}

body #fs-detail-modal .modal-header,
body #fs-confirm-modal .modal-header,
body #plk-custom-modal .modal-header,
body #plk-asset-manage-modal .modal-header,
body #plk-asset-delete-password-modal .modal-header {
  position: relative;
  padding: 22px 16px 10px !important;
  border: 0 !important;
  background: transparent !important;
}

body #fs-detail-modal .modal-header::before,
body #fs-confirm-modal .modal-header::before,
body #plk-custom-modal .modal-header::before,
body #plk-asset-manage-modal .modal-header::before,
body #plk-asset-delete-password-modal .modal-header::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 40px;
  height: 4px;
  margin-left: -20px;
  border-radius: 4px;
  background: var(--sf-hairline-strong, rgba(0, 0, 0, .16));
}

body #fs-detail-modal .modal-header__inner,
body #fs-confirm-modal .modal-header__inner,
body #plk-custom-modal .modal-header__inner,
body #plk-asset-manage-modal .modal-header__inner,
body #plk-asset-delete-password-modal .modal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

body #fs-detail-modal .modal-title,
body #fs-confirm-modal .modal-title,
body #plk-custom-modal .modal-title,
body #plk-asset-manage-modal .modal-title,
body #plk-asset-delete-password-modal .modal-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.3px;
  line-height: 1.2;
  text-align: left;
}

body #fs-detail-modal .dismiss-modal,
body #fs-confirm-modal .dismiss-modal,
body #plk-custom-modal .dismiss-modal,
body #plk-asset-manage-modal .dismiss-modal,
body #plk-asset-delete-password-modal .dismiss-modal,
body #plk-custom-modal .dismiss-modal,
body #sf-sell-modal .dismiss-modal {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 0 !important;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sf-surface-inset, #eef1f5) !important;
  color: var(--cl-primary-text-color, inherit) !important;
  box-shadow: none !important;
}

body #fs-detail-modal .dismiss-modal svg,
body #fs-confirm-modal .dismiss-modal svg,
body #plk-custom-modal .dismiss-modal svg,
body #plk-asset-manage-modal .dismiss-modal svg,
body #plk-asset-delete-password-modal .dismiss-modal svg,
body #plk-custom-modal .dismiss-modal svg,
body #sf-sell-modal .dismiss-modal svg {
  width: 18px;
  height: 18px;
}

body #fs-detail-modal .dismiss-modal svg path,
body #fs-confirm-modal .dismiss-modal svg path,
body #plk-custom-modal .dismiss-modal svg path,
body #plk-asset-manage-modal .dismiss-modal svg path,
body #plk-asset-delete-password-modal .dismiss-modal svg path,
body #plk-custom-modal .dismiss-modal svg path,
body #sf-sell-modal .dismiss-modal svg path {
  fill: currentColor;
}

body #fs-detail-modal .modal-body,
body #fs-confirm-modal .modal-body,
body #plk-custom-modal .modal-body,
body #plk-asset-manage-modal .modal-body,
body #plk-asset-delete-password-modal .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 16px 0 !important;
  -webkit-overflow-scrolling: touch;
}

body #fs-confirm-modal .modal-footer,
body #plk-custom-modal .modal-footer,
body #plk-asset-manage-modal .modal-footer,
body #plk-asset-delete-password-modal .modal-footer {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  border: 0 !important;
  background: var(--sf-surface, var(--cl-primary-bg-color, #fff)) !important;
}

/* footer buttons used by all redesigned modals */
body #fs-confirm-modal .modal-footer .btn-custom,
body #plk-custom-modal .modal-footer .btn-custom,
body #plk-asset-manage-modal .modal-footer .btn-custom,
body #plk-asset-delete-password-modal .modal-footer .btn-custom,
body #plk-custom-modal .modal-footer .btn-custom,
body #sf-sell-modal .fs-sell-modal__footer .btn-custom {
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  margin: 0 !important;
  padding: 0 14px;
  border: 0 !important;
  border-radius: 16px !important;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

body #fs-confirm-modal .modal-footer .main-gray,
body #plk-custom-modal .modal-footer .main-gray,
body #plk-asset-manage-modal .modal-footer .main-gray,
body #plk-asset-delete-password-modal .modal-footer .main-gray,
body #plk-custom-modal .modal-footer .main-gray,
body #sf-sell-modal .fs-sell-modal__footer .main-gray {
  background: var(--sf-surface-inset, #eef1f5) !important;
  color: var(--cl-primary-text-color, inherit) !important;
}

body #fs-confirm-modal .modal-footer .main-inline,
body #plk-custom-modal .modal-footer .main-inline,
body #plk-asset-manage-modal .modal-footer .main-inline,
body #plk-custom-modal .modal-footer .main-inline,
body #sf-sell-modal .fs-sell-modal__footer .main-inline {
  background: var(--sf-accent-gradient, var(--sf-accent)) !important;
  color: var(--sf-on-accent, #fff) !important;
  box-shadow: var(--sf-accent-glow, none) !important;
}

body #plk-asset-delete-password-modal .modal-footer .main-red {
  background: var(--cl-danger-color, #e5484d) !important;
  color: #fff !important;
}

body #plk-custom-modal .modal-footer .btn-custom:disabled,
body #sf-sell-modal .fs-sell-modal__footer .btn-custom:disabled,
body #plk-asset-manage-modal .modal-footer .btn-custom:disabled {
  opacity: .5;
  box-shadow: none !important;
}

/* ==========================================================================
   PROFILE FRAMES PAGE
   ========================================================================== */
body.cl-app-frames_shop .timeline-body.fs-page {
  padding: 14px 16px 120px;
  max-width: 720px;
}

/* ---- hero ---- */
body.cl-app-frames_shop header.fs-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: none;
  margin: 0 0 14px;
  padding: 20px 18px 20px 20px;
  text-align: left;
  border-radius: 24px;
  background: var(--sf-accent-gradient, var(--sf-accent));
  color: var(--sf-on-accent, #fff);
  box-shadow: var(--sf-accent-glow-lg, none);
}

body.cl-app-frames_shop header.fs-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 70%);
}

body.cl-app-frames_shop .fs-hero__copy {
  min-width: 0;
  flex: 1 1 auto;
}

body.cl-app-frames_shop .fs-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  margin-bottom: 8px;
}

body.cl-app-frames_shop h1.fs-hero__title {
  margin: 0 0 6px;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.4px;
  color: inherit;
  text-align: left;
}

body.cl-app-frames_shop p.fs-hero__lead {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: inherit;
  opacity: .92;
  text-align: left;
}

body.cl-app-frames_shop .fs-hero__art {
  position: relative;
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
}

body.cl-app-frames_shop .fs-hero__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, .75);
  animation: sfRingSpin 18s linear infinite;
}

body.cl-app-frames_shop .fs-hero__photo {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, .3);
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, .3);
}

body.cl-app-frames_shop .fs-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- search + filters ---- */
body.cl-app-frames_shop section.fs-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0 0 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.cl-app-frames_shop .fs-controls__search {
  margin: 0;
}

body.cl-app-frames_shop input.fs-controls__input {
  height: 48px;
  padding: 0 16px 0 46px;
  border-radius: 999px;
  border: 1px solid var(--sf-hairline-strong, var(--cl-primary-border-color));
  background: var(--sf-surface, var(--cl-primary-bg-color));
  font-size: 15px;
  box-shadow: var(--sf-shadow-xs, none);
}

body.cl-app-frames_shop input.fs-controls__input:focus {
  border-color: var(--sf-accent);
  box-shadow: var(--sf-accent-ring);
}

body.cl-app-frames_shop .fs-controls__search-icon {
  left: 17px;
  opacity: .55;
}

body.cl-app-frames_shop .fs-controls__search-icon svg {
  width: 20px;
  height: 20px;
}

body.cl-app-frames_shop .fs-controls__scope {
  width: 100%;
}

body.cl-app-frames_shop .fs-controls__scope .fs-field__label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body.cl-app-frames_shop .fs-field--scope .fs-scope-switch {
  min-height: 0;
  padding: 4px;
  gap: 4px;
  border: 0;
  border-radius: 16px;
  background: var(--sf-surface-inset, #eef1f5);
  overflow: visible;
}

body.cl-app-frames_shop button.fs-scope-switch__btn {
  flex: 1 1 50%;
  height: 40px;
  border: 0 !important;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cl-secondary-text-color, #64748b);
  background: transparent;
  transition: background var(--sf-dur, .2s), color var(--sf-dur, .2s), box-shadow var(--sf-dur, .2s);
}

body.cl-app-frames_shop button.fs-scope-switch__btn.is-active {
  background: var(--sf-surface-raised, #fff);
  color: var(--sf-accent-text, var(--sf-accent));
  box-shadow: var(--sf-shadow-sm, 0 1px 3px rgba(0, 0, 0, .12));
}

body.cl-app-frames_shop .fs-controls__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 2px 16px 4px;
  scrollbar-width: none;
}

body.cl-app-frames_shop .fs-controls__grid::-webkit-scrollbar {
  display: none;
}

body.cl-app-frames_shop .fs-controls__grid .fs-field {
  flex: 0 0 auto;
  width: auto;
  position: relative;
}

body.cl-app-frames_shop .fs-controls__grid .fs-field__label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body.cl-app-frames_shop .fs-controls__grid select.fs-field__select {
  width: auto;
  min-height: 0;
  height: 38px;
  padding: 0 32px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sf-hairline-strong, var(--cl-primary-border-color));
  background-color: var(--sf-surface, var(--cl-primary-bg-color));
  color: inherit;
  font-size: 13.5px;
  font-weight: 600;
  background-position: right 13px center;
}

body.cl-app-frames_shop .fs-controls__grid select.fs-field__select:focus {
  border-color: var(--sf-accent);
  box-shadow: var(--sf-accent-ring);
}

/* ---- grid + cards ---- */
body.cl-app-frames_shop div.fs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.cl-app-frames_shop article.fs-card {
  border-radius: 20px;
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color));
  background: var(--sf-surface, var(--cl-primary-bg-color));
  box-shadow: var(--sf-shadow-sm, none);
  transform: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--sf-dur-fast, .12s) ease, box-shadow var(--sf-dur, .2s) ease, border-color var(--sf-dur, .2s) ease;
}

body.cl-app-frames_shop article.fs-card:hover {
  transform: none;
  box-shadow: var(--sf-shadow-md, none);
}

body.cl-app-frames_shop article.fs-card:active {
  transform: scale(.98);
}

body.cl-app-frames_shop .fs-card__media {
  margin: 8px 8px 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sf-accent-gradient-soft, var(--sf-accent-subtle));
}

body.cl-app-frames_shop img.fs-card__avatar {
  inset: 8% !important;
  width: 84% !important;
  height: 84% !important;
  padding: 0 !important;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
}

body.cl-app-frames_shop img.fs-card__frame {
  inset: 8% !important;
  width: 84% !important;
  height: 84% !important;
  padding: 0 !important;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

body.cl-app-frames_shop .fs-card__body {
  padding: 10px 12px 12px;
  gap: 0;
}

body.cl-app-frames_shop .fs-card__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.cl-app-frames_shop h3.fs-card__name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  order: 1;
}

body.cl-app-frames_shop .fs-card__meta {
  order: 2;
  margin: 0;
  padding: 0;
  border: 0;
  width: auto;
}

body.cl-app-frames_shop .fs-card__from {
  margin: 0;
  font-size: 15px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

body.cl-app-frames_shop .fs-card__from-price {
  font-weight: 800;
  color: var(--sf-accent-text, var(--sf-accent));
}

body.cl-app-frames_shop .fs-card__from--free .fs-card__from-price {
  color: var(--cl-success-color, #16a34a);
}

body.cl-app-frames_shop .fs-card__from-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cl-secondary-text-color, #64748b);
}

body.cl-app-frames_shop .fs-card__chips {
  order: 3;
  margin-top: 2px;
  gap: 5px;
}

body.cl-app-frames_shop .fs-chip {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 0;
  background: var(--sf-surface-inset, #eef1f5);
}

body.cl-app-frames_shop .fs-chip--profile {
  background: var(--sf-accent-soft, var(--sf-accent-subtle));
  color: var(--sf-accent-text, var(--sf-accent));
}

body.cl-app-frames_shop article.fs-card--current {
  border-color: var(--sf-accent);
  box-shadow: 0 0 0 1px var(--sf-accent), var(--sf-accent-glow, none);
}

/* ---- pager ---- */
body.cl-app-frames_shop nav.fs-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 18px 0 0;
  padding: 6px;
  border-radius: 999px;
  background: var(--sf-surface-inset, #eef1f5);
  border: 0;
}

body.cl-app-frames_shop button.fs-pager__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--sf-surface-raised, #fff);
  color: inherit;
  box-shadow: var(--sf-shadow-xs, none);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.cl-app-frames_shop button.fs-pager__btn:disabled {
  opacity: .4;
  box-shadow: none;
}

body.cl-app-frames_shop button.fs-pager__btn svg {
  width: 20px;
  height: 20px;
}

body.cl-app-frames_shop button.fs-pager__btn svg path {
  fill: currentColor;
}

body.cl-app-frames_shop .fs-pager__meta {
  flex: 1 1 auto;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cl-secondary-text-color, #64748b);
}

/* ==========================================================================
   FRAME DETAIL SHEET
   ========================================================================== */
body.cl-app-frames_shop #fs-detail-modal .fs-detail-head-gift {
  display: none !important;
}

body.cl-app-frames_shop #fs-detail-modal .fs-modal-head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  width: 100%;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 14px;
  border-radius: 24px;
  background: var(--sf-accent-gradient-soft, var(--sf-accent-subtle));
  border: 1px solid var(--sf-accent-line, var(--sf-hairline));
  text-align: center;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-preview {
  position: relative;
  width: 152px;
  height: 152px;
  aspect-ratio: 1;
  max-width: 50vw;
  border-radius: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

body.cl-app-frames_shop #fs-detail-modal img.fs-detail-preview__avatar {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .4);
}

body.cl-app-frames_shop #fs-detail-modal img.fs-detail-preview__frame {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-hero__name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: inherit;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--sf-surface-raised, #fff);
  color: var(--cl-secondary-text-color, #64748b);
  box-shadow: var(--sf-shadow-xs, none);
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-chip--price {
  background: var(--sf-accent);
  color: var(--sf-on-accent, #fff);
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-chip--live {
  background: var(--sf-accent-soft);
  color: var(--sf-accent-text, var(--sf-accent));
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-chip--ok {
  background: color-mix(in srgb, var(--cl-success-color, #16a34a) 16%, var(--sf-surface, #fff));
  color: var(--cl-success-color, #16a34a);
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-chip--bad {
  background: color-mix(in srgb, var(--cl-danger-color, #e5484d) 14%, var(--sf-surface, #fff));
  color: var(--cl-danger-color, #e5484d);
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-chip--wait {
  background: color-mix(in srgb, #f59e0b 18%, var(--sf-surface, #fff));
  color: #b45309;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--sf-accent-subtle);
  color: var(--sf-accent-text, var(--sf-accent));
  font-size: 13.5px;
  text-align: left;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-callout svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-callout svg path {
  fill: currentColor;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-panel {
  margin: 0;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color));
  background: var(--sf-surface-sunken, var(--cl-secondary-bg-color));
  box-shadow: none;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-panel__title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cl-secondary-text-color, #64748b);
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-spec {
  margin: 0;
  display: block;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--sf-hairline, var(--cl-primary-border-color));
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-spec__row:first-child {
  border-top: 0;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-spec__k {
  flex: 0 0 auto;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--cl-secondary-text-color, #64748b);
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-spec__v {
  margin: 0;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-code {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--sf-surface-inset, #eef1f5);
  color: inherit;
  font-size: 12px;
}

/* ---- term picker ---- */
body.cl-app-frames_shop #fs-detail-modal .fs-detail-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}

body.cl-app-frames_shop #fs-detail-modal .fs-plan-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 92px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1.5px solid var(--sf-hairline-strong, var(--cl-primary-border-color)) !important;
  background: var(--sf-surface, var(--cl-primary-bg-color)) !important;
  color: inherit !important;
  text-align: left;
  box-shadow: none !important;
  transition: border-color var(--sf-dur, .2s), background var(--sf-dur, .2s), box-shadow var(--sf-dur, .2s);
}

body.cl-app-frames_shop #fs-detail-modal .fs-plan-btn.is-active {
  border-color: var(--sf-accent) !important;
  background: var(--sf-accent-subtle) !important;
  box-shadow: 0 0 0 1px var(--sf-accent), var(--sf-accent-glow, none) !important;
}

body.cl-app-frames_shop #fs-detail-modal .fs-plan-btn__radio {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--sf-hairline-strong, #cbd5e1);
  background: var(--sf-surface, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.cl-app-frames_shop #fs-detail-modal .fs-plan-btn.is-active .fs-plan-btn__radio {
  border-color: var(--sf-accent);
  background: var(--sf-accent);
}

body.cl-app-frames_shop #fs-detail-modal .fs-plan-btn.is-active .fs-plan-btn__radio::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--sf-on-accent, #fff);
  border-bottom: 2px solid var(--sf-on-accent, #fff);
  transform: translateY(-1px) rotate(-45deg);
}

body.cl-app-frames_shop #fs-detail-modal .fs-plan-btn__tag {
  order: -1;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sf-accent-soft);
  color: var(--sf-accent-text, var(--sf-accent));
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .02em;
}

body.cl-app-frames_shop #fs-detail-modal .fs-plan-btn__term {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cl-secondary-text-color, #64748b);
}

body.cl-app-frames_shop #fs-detail-modal .fs-plan-btn__price {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.4px;
}

body.cl-app-frames_shop #fs-detail-modal .fs-plan-btn__per {
  font-size: 11.5px;
  color: var(--cl-secondary-text-color, #64748b);
}

body.cl-app-frames_shop #fs-detail-modal .fs-plan-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--sf-surface-inset, #eef1f5);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cl-secondary-text-color, #64748b);
}

body.cl-app-frames_shop #fs-detail-modal .fs-plan-total strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--cl-primary-text-color, inherit);
}

body.cl-app-frames_shop #fs-detail-modal .fs-auto-renew-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body.cl-app-frames_shop #fs-detail-modal .fs-auto-renew-card__row .fs-detail-panel__title {
  margin-bottom: 2px;
}

body.cl-app-frames_shop #fs-detail-modal .fs-auto-renew-card__hint {
  margin: 0;
  font-size: 13px;
  color: var(--cl-secondary-text-color, #64748b);
}

/* ---- actions ---- */
body.cl-app-frames_shop #fs-detail-modal .fs-detail-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 -16px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, transparent, var(--sf-surface, #fff) 14px);
  border: 0;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-footer__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.cl-app-frames_shop #fs-detail-modal .fs-detail-footer__row--single {
  grid-template-columns: 1fr;
}

body.cl-app-frames_shop #fs-detail-modal .fs-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: var(--sf-surface-inset, #eef1f5);
  color: var(--cl-primary-text-color, inherit);
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--sf-dur-fast, .12s), box-shadow var(--sf-dur, .2s);
}

body.cl-app-frames_shop #fs-detail-modal .fs-act:active {
  transform: scale(.98);
}

body.cl-app-frames_shop #fs-detail-modal .fs-act:disabled {
  opacity: .55;
  pointer-events: none;
}

body.cl-app-frames_shop #fs-detail-modal .fs-act svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

body.cl-app-frames_shop #fs-detail-modal .fs-act svg path {
  fill: currentColor;
}

body.cl-app-frames_shop #fs-detail-modal .fs-act--primary {
  height: 52px;
  font-size: 16px;
  background: var(--sf-accent-gradient, var(--sf-accent));
  color: var(--sf-on-accent, #fff);
  box-shadow: var(--sf-accent-glow, none);
}

body.cl-app-frames_shop #fs-detail-modal .fs-act--soft {
  height: 52px;
  font-size: 16px;
  background: var(--sf-accent-subtle);
  color: var(--sf-accent-text, var(--sf-accent));
}

body.cl-app-frames_shop #fs-detail-modal .fs-act--ghost {
  background: var(--sf-surface, #fff);
  box-shadow: inset 0 0 0 1.5px var(--sf-hairline-strong, #d6dde6);
}

/* confirm sheet content */
body.cl-app-frames_shop #fs-confirm-modal .modal-body {
  padding-bottom: 8px !important;
  font-size: 14.5px;
  line-height: 1.5;
}

/* success dialog */
body.cl-app-frames_shop #sf-submit-success-modal .modal-content {
  border: 0;
  border-radius: 28px;
  background: var(--sf-surface, #fff);
  box-shadow: var(--sf-shadow-xl, none);
}

body.cl-app-frames_shop #sf-submit-success-modal .fs-submit-success-modal__title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.3px;
}

body.cl-app-frames_shop #sf-submit-success-modal .btn-custom {
  height: 50px;
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  background: var(--sf-accent-gradient, var(--sf-accent));
  color: var(--sf-on-accent, #fff);
  box-shadow: var(--sf-accent-glow, none);
}

/* ==========================================================================
   CUSTOM LIKE ICON PAGE
   ========================================================================== */
body.cl-app-premium_likes .timeline-body.plk-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px 120px;
}

body.cl-app-premium_likes .plk-hero {
  margin: 0;
  padding: 2px 2px 0;
  text-align: left;
  max-width: none;
}

body.cl-app-premium_likes .plk-hero__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sf-accent-soft, var(--sf-accent-subtle));
  color: var(--sf-accent-text, var(--sf-accent));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.cl-app-premium_likes .plk-hero__title {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.5px;
  text-align: left;
}

body.cl-app-premium_likes .plk-hero__lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--cl-secondary-text-color, #64748b);
  text-align: left;
}

body.cl-app-premium_likes .plk-panel {
  margin: 0;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color));
  background: var(--sf-surface, var(--cl-primary-bg-color));
  box-shadow: var(--sf-shadow-sm, none);
}

body.cl-app-premium_likes .plk-panel--active {
  border-color: var(--sf-accent-line, var(--sf-hairline));
  background: var(--sf-accent-gradient-soft, var(--sf-accent-subtle));
  box-shadow: none;
}

body.cl-app-premium_likes .plk-panel__head {
  margin: 0 0 12px;
}

body.cl-app-premium_likes .plk-panel__title {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.2px;
}

body.cl-app-premium_likes .plk-panel__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cl-secondary-text-color, #64748b);
}

/* preview */
body.cl-app-premium_likes .plk-preview-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.cl-app-premium_likes .plk-preview-demo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.cl-app-premium_likes .plk-preview-like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--sf-surface-raised, #fff);
  box-shadow: var(--sf-shadow-sm, none);
  font-size: 15px;
  font-weight: 700;
}

body.cl-app-premium_likes .plk-preview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--cl-secondary-text-color, #64748b);
}

body.cl-app-premium_likes .plk-preview-legend strong {
  color: var(--cl-primary-text-color, inherit);
}

/* request CTA */
body.cl-app-premium_likes .plk-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 22px;
  text-align: left;
  color: var(--sf-on-accent, #fff);
  background: var(--sf-accent-gradient, var(--sf-accent));
  box-shadow: var(--sf-accent-glow-lg, none);
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--sf-dur-fast, .12s);
}

body.cl-app-premium_likes .plk-cta:active {
  transform: scale(.98);
}

body.cl-app-premium_likes .plk-cta__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .24);
}

body.cl-app-premium_likes .plk-cta svg {
  width: 24px;
  height: 24px;
}

body.cl-app-premium_likes .plk-cta svg path {
  fill: currentColor;
}

body.cl-app-premium_likes .plk-cta__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.cl-app-premium_likes .plk-cta__text strong {
  font-size: 15.5px;
  font-weight: 800;
}

body.cl-app-premium_likes .plk-cta__text span {
  font-size: 12.5px;
  opacity: .92;
  line-height: 1.35;
}

body.cl-app-premium_likes .plk-cta__chev {
  flex: 0 0 auto;
  opacity: .85;
}

body.cl-app-premium_likes .plk-cta__chev svg {
  width: 22px;
  height: 22px;
}

/* library grid */
body.cl-app-premium_likes .plk-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.cl-app-premium_likes .plk-preset-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 108px;
  padding: 14px 6px 10px;
  border-radius: 20px;
  border: 1.5px solid var(--sf-hairline, var(--cl-primary-border-color));
  background: var(--sf-surface, var(--cl-primary-bg-color));
  color: inherit;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--sf-dur, .2s), background var(--sf-dur, .2s), box-shadow var(--sf-dur, .2s), transform var(--sf-dur-fast, .12s);
}

body.cl-app-premium_likes .plk-preset-btn:active:not(:disabled) {
  transform: scale(.97);
}

body.cl-app-premium_likes .plk-preset-btn.is-selected {
  border-color: var(--sf-accent);
  background: var(--sf-accent-subtle);
  box-shadow: 0 0 0 1px var(--sf-accent), var(--sf-accent-glow, none);
}

body.cl-app-premium_likes .plk-preset-btn.is-selected::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sf-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

body.cl-app-premium_likes .plk-preset-btn__thumb {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sf-surface-inset, #eef1f5);
}

body.cl-app-premium_likes .plk-preset-btn.is-selected .plk-preset-btn__thumb {
  background: var(--sf-surface-raised, #fff);
}

body.cl-app-premium_likes .plk-preset-btn__thumb img,
body.cl-app-premium_likes .plk-preset-btn__thumb svg {
  width: 28px;
  height: 28px;
}

body.cl-app-premium_likes .plk-preset-btn__label {
  max-width: 100%;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cl-secondary-text-color, #64748b);
  text-align: center;
  overflow-wrap: anywhere;
}

body.cl-app-premium_likes .plk-preset-btn.is-selected .plk-preset-btn__label {
  color: var(--sf-accent-text, var(--sf-accent));
}

body.cl-app-premium_likes .plk-preset-btn__label .badge {
  display: block;
  width: fit-content;
  margin: 5px auto 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sf-accent-soft, var(--sf-accent-subtle)) !important;
  color: var(--sf-accent-text, var(--sf-accent)) !important;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.3;
  white-space: normal;
}

body.cl-app-premium_likes .plk-preset-btn__price {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--sf-accent-soft, var(--sf-accent-subtle));
  color: var(--sf-accent-text, var(--sf-accent));
}

body.cl-app-premium_likes .plk-preset-btn--pending-custom {
  border-style: dashed;
  border-color: var(--sf-accent-line-strong, var(--sf-accent));
  background: var(--sf-surface-sunken, transparent);
  opacity: .9;
}

body.cl-app-premium_likes .plk-preset-btn__label-title {
  display: block;
  font-weight: 700;
  color: var(--cl-primary-text-color, inherit);
}

body.cl-app-premium_likes .plk-preset-btn__label-note {
  display: block;
  font-size: 11px;
  font-weight: 500;
}

body.cl-app-premium_likes .plk-footnote {
  margin: 0;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--cl-secondary-text-color, #64748b);
  text-align: center;
}

/* ==========================================================================
   REQUEST-YOUR-OWN-ICON MODAL
   ========================================================================== */
body #plk-custom-modal .modal-title {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  text-align: left;
}

body #plk-custom-modal .plk-request-modal__subtitle {
  font-size: 13px;
  color: var(--cl-secondary-text-color, #64748b);
  text-align: left;
}

body #plk-custom-modal .modal-body {
  padding: 4px 16px 12px !important;
}

body #plk-custom-modal .plk-request-modal__header-inner {
  align-items: center;
}

/* flatten the nested pane boxes so the whole sheet scrolls once */
body.cl-app-premium_likes #plk-custom-modal .plk-request-panes,
body.cl-app-premium_likes #plk-custom-modal .plk-request-panes.plk-request-panes--upload-step {
  min-height: 0;
  flex: 0 0 auto;
}

body.cl-app-premium_likes #plk-custom-modal .plk-request-pane,
body.cl-app-premium_likes #plk-custom-modal .plk-request-panes.plk-request-panes--upload-step .plk-request-pane {
  position: relative;
  inset: auto;
  min-height: 0;
  height: auto;
}

body.cl-app-premium_likes #plk-custom-modal .plk-request-pane__inner,
body.cl-app-premium_likes #plk-custom-modal .plk-request-pane__inner--upload {
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}

body.cl-app-premium_likes #plk-custom-modal .plk-request-pane__scroll,
body.cl-app-premium_likes #plk-custom-modal .plk-request-pane__inner--upload .plk-request-pane__scroll--upload,
body.cl-app-premium_likes #plk-custom-modal .plk-request-pane__inner--terms .plk-request-pane__scroll--terms {
  flex: 0 0 auto;
  overflow: visible;
  padding: 0;
}

body.cl-app-premium_likes #plk-custom-modal .plk-request-pane__scroll--terms .plk-request-agreements {
  padding-top: 0;
  border-top: 0;
  margin-top: 14px;
}

body.cl-app-premium_likes #plk-custom-modal .plk-request-terms__legal {
  padding: 0;
  border: 0;
  background: none;
}

/* stepper */
body #plk-custom-modal .plk-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 16px;
}

body #plk-custom-modal .plk-stepper__dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body #plk-custom-modal .plk-stepper__dot i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 800;
  background: var(--sf-surface-inset, #eef1f5);
  color: var(--cl-secondary-text-color, #64748b);
}

body #plk-custom-modal .plk-stepper__dot b {
  font-size: 13px;
  font-weight: 700;
  color: var(--cl-secondary-text-color, #64748b);
}

body #plk-custom-modal .plk-stepper__bar {
  flex: 1 1 auto;
  height: 3px;
  border-radius: 3px;
  background: var(--sf-surface-inset, #eef1f5);
}

body #plk-custom-modal .plk-stepper__dot--1 i {
  background: var(--sf-accent);
  color: var(--sf-on-accent, #fff);
  box-shadow: var(--sf-accent-ring);
}

body #plk-custom-modal .plk-stepper__dot--1 b {
  color: var(--cl-primary-text-color, inherit);
}

body #plk-custom-modal .modal-body:has(.plk-request-panes--upload-step) .plk-stepper__dot--1 i {
  box-shadow: none;
}

body #plk-custom-modal .modal-body:has(.plk-request-panes--upload-step) .plk-stepper__bar {
  background: var(--sf-accent);
}

body #plk-custom-modal .modal-body:has(.plk-request-panes--upload-step) .plk-stepper__dot--2 i {
  background: var(--sf-accent);
  color: var(--sf-on-accent, #fff);
  box-shadow: var(--sf-accent-ring);
}

body #plk-custom-modal .modal-body:has(.plk-request-panes--upload-step) .plk-stepper__dot--2 b {
  color: var(--cl-primary-text-color, inherit);
}

/* terms */
body #plk-custom-modal .plk-request-pane__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}

body #plk-custom-modal .plk-request-pane__intro {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cl-secondary-text-color, #64748b);
}

body #plk-custom-modal .plk-request-terms {
  padding: 4px 16px 6px;
  border-radius: 20px;
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color));
  background: var(--sf-surface-sunken, var(--cl-secondary-bg-color));
}

body #plk-custom-modal .plk-request-terms__h {
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sf-accent-text, var(--sf-accent));
}

body #plk-custom-modal .plk-request-details__list {
  margin: 0 0 6px;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
}

body #plk-custom-modal .plk-request-details__list li {
  margin: 3px 0;
}

body #plk-custom-modal .plk-request-terms__legal p {
  margin: 0 0 6px;
  font-size: 13.5px;
  line-height: 1.5;
}

body #plk-custom-modal .plk-request-agreements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

body #plk-custom-modal .plk-request-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1.5px solid var(--sf-hairline-strong, var(--cl-primary-border-color));
  background: var(--sf-surface, #fff);
  font-size: 13.5px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color var(--sf-dur, .2s), background var(--sf-dur, .2s);
}

body #plk-custom-modal .plk-request-check:has(input:checked) {
  border-color: var(--sf-accent);
  background: var(--sf-accent-subtle);
}

body #plk-custom-modal .plk-request-check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border-radius: 7px;
  border: 2px solid var(--sf-hairline-strong, #cbd5e1);
  background: var(--sf-surface, #fff) center / 14px no-repeat;
  transition: background-color var(--sf-dur-fast, .12s), border-color var(--sf-dur-fast, .12s);
}

body #plk-custom-modal .plk-request-check input[type="checkbox"]:checked {
  border-color: var(--sf-accent);
  background-color: var(--sf-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* upload step */
body #plk-custom-modal .plk-request-fee-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--sf-accent-subtle);
  font-size: 13.5px;
}

body #plk-custom-modal .plk-request-fee-banner__label {
  color: var(--cl-secondary-text-color, #64748b);
  font-weight: 600;
}

body #plk-custom-modal .plk-request-fee-banner__amount {
  font-weight: 800;
  color: var(--sf-accent-text, var(--sf-accent));
}

body #plk-custom-modal .plk-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 26px 16px;
  border-radius: 22px;
  border: 2px dashed var(--sf-accent-line-strong, var(--sf-accent));
  background: var(--sf-accent-wash, var(--sf-accent-subtle));
  text-align: center;
  cursor: pointer;
}

body #plk-custom-modal .plk-upload-zone__icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sf-accent);
  color: var(--sf-on-accent, #fff);
  box-shadow: var(--sf-accent-glow, none);
}

body #plk-custom-modal .plk-upload-zone__icon svg {
  width: 26px;
  height: 26px;
}

body #plk-custom-modal .plk-upload-zone__icon svg path {
  fill: currentColor;
}

body #plk-custom-modal .plk-upload-zone__label {
  font-size: 15px;
  font-weight: 700;
}

body #plk-custom-modal .plk-upload-zone__hint {
  font-size: 12.5px;
  color: var(--cl-secondary-text-color, #64748b);
}

body #plk-custom-modal .plk-modal-preview-demo {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body #plk-custom-modal .plk-modal-preview-pair {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

body #plk-custom-modal .plk-modal-preview-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cl-secondary-text-color, #64748b);
}

body #plk-custom-modal .plk-note-field__label {
  font-size: 13px;
  font-weight: 700;
}

body #plk-custom-modal .plk-note-field__textarea {
  border-radius: 16px;
  border: 1.5px solid var(--sf-hairline-strong, var(--cl-primary-border-color));
  background: var(--sf-surface, #fff);
  padding: 12px 14px;
}

body #plk-custom-modal .plk-note-field__textarea:focus {
  border-color: var(--sf-accent);
  box-shadow: var(--sf-accent-ring);
  outline: none;
}

body #plk-custom-modal .modal-footer {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  border: 0 !important;
  border-top: 1px solid var(--sf-hairline, var(--cl-primary-border-color)) !important;
  background: var(--sf-surface, var(--cl-primary-bg-color, #fff)) !important;
}

body #plk-custom-modal .modal-footer .ms-auto {
  margin-left: 0 !important;
  flex: 1.4 1 0;
}

/* manage-asset sheet */
body #plk-asset-manage-modal .modal-body {
  padding-bottom: 6px !important;
}

body #plk-asset-manage-modal .plk-asset-manage-modal__preview {
  padding: 18px;
  border-radius: 22px;
  background: var(--sf-accent-gradient-soft, var(--sf-accent-subtle));
  display: flex;
  justify-content: center;
}

body #plk-asset-manage-modal .plk-asset-manage-modal__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

body #plk-asset-manage-modal .plk-asset-manage-modal__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--sf-surface-sunken, var(--cl-secondary-bg-color));
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color));
}

body #plk-asset-manage-modal .plk-asset-manage-modal__stat--wide {
  grid-column: 1 / -1;
}

body #plk-asset-manage-modal .plk-asset-manage-modal__stat-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cl-secondary-text-color, #64748b);
}

body #plk-asset-manage-modal .plk-asset-manage-modal__stat-value {
  font-size: 16px;
  font-weight: 800;
}

body #plk-asset-manage-modal .plk-asset-manage-modal__autorenew {
  margin-top: 12px !important;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--sf-surface-sunken, var(--cl-secondary-bg-color));
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color));
}

body #plk-asset-manage-modal .modal-footer {
  flex-wrap: wrap !important;
}

body #plk-asset-manage-modal .modal-footer .btn-custom {
  flex: 1 1 calc(50% - 6px);
}

body #plk-asset-delete-password-modal .form-control {
  height: 48px;
  border-radius: 14px;
  border: 1.5px solid var(--sf-hairline-strong, var(--cl-primary-border-color));
  background: var(--sf-surface, #fff);
}

body #plk-asset-delete-password-modal .form-control:focus {
  border-color: var(--sf-accent);
  box-shadow: var(--sf-accent-ring);
}

/* like page polish */
body.cl-app-premium_likes .plk-preview-demo,
body.cl-app-premium_likes .js-plk-main-preview-root {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.cl-app-premium_likes .plk-preview-row {
  align-items: flex-start;
}

body.cl-app-premium_likes .plk-preset-btn.plk-preset-btn--custom.plk-preset-btn--pending-custom {
  border: 1.5px dashed var(--sf-accent-line-strong, var(--sf-accent));
  background: var(--sf-accent-wash, var(--sf-surface-sunken));
}

/* ==========================================================================
   SHARED-BOX FRAME ALIGNMENT & VISIBILITY (SELL FRAMES, DETAIL, GIFT)
   ========================================================================== */
body .fs-sell-item__thumb {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
}

body .fs-sell-item__thumb-avatar,
body .fs-sell-item__thumb-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  display: block;
}

body .fs-sell-item__thumb-avatar {
  border-radius: 50% !important;
  object-fit: cover !important;
  z-index: 1;
}

body .fs-sell-item__thumb-frame {
  object-fit: contain !important;
  pointer-events: none;
  z-index: 2;
}

body .fs-sell-preview {
  position: relative;
  width: 160px;
  height: 160px;
  aspect-ratio: 1;
  margin: 4px auto 0;
}

body .fs-sell-preview__photo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  z-index: 1;
}

body .fs-sell-preview__avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block;
}

body .fs-sell-preview__frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  pointer-events: none;
  z-index: 2;
}

body .cl-gift2__preview-avatar,
body .cl-gift2__preview-frame {
  position: absolute !important;
  inset: 8% !important;
  width: 84% !important;
  height: 84% !important;
  padding: 0 !important;
}

body .cl-gift2__preview-avatar {
  border-radius: 50% !important;
  object-fit: cover !important;
  z-index: 1;
}

body .cl-gift2__preview-frame {
  object-fit: contain !important;
  pointer-events: none;
  z-index: 2;
}

body img.fs-card__avatar,
body img.fs-card__frame,
body img.fs-detail-preview__avatar,
body img.fs-detail-preview__frame,
body img.fs-confirm-preview__avatar,
body img.fs-confirm-preview__frame,
body img.fs-sell-preview__avatar,
body img.fs-sell-preview__frame:not(.d-none),
body .fs-sell-item__photo img,
body img.fs-sell-item__frame,
body img.fs-sell-item__thumb-avatar,
body img.fs-sell-item__thumb-frame,
body img.fs-sell-upload-card__preview-img:not(.d-none),
body .fs-sell-hero__photo img,
body .fs-hero__photo img,
body img.cl-gift2__preview-avatar,
body img.cl-gift2__preview-frame,
body .cl-gift2__dd-thumb img {
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
}

body .fs-card__media.cl-img-wrap-loaded,
body .fs-card__media.cl-img-wrap-loading {
  background: var(--sf-accent-gradient-soft, var(--sf-accent-subtle)) !important;
}

/* ==========================================================================
   YOUR FRAMES — CREATOR STUDIO REDESIGN
   ========================================================================== */
body section.fs-sell-card.fs-sell-mine {
  padding: 18px 16px;
  border-radius: 24px;
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color, #e2e8f0));
  background: var(--sf-surface, var(--cl-primary-bg-color, #fff));
  box-shadow: var(--sf-shadow-sm, 0 4px 20px rgba(15, 23, 42, 0.04));
}

body .fs-sell-mine .fs-sell-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body .fs-sell-mine .fs-sell-card__heading {
  min-width: 0;
  flex: 1 1 auto;
}

body .fs-sell-mine .fs-sell-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--cl-primary-text-color, #0f172a);
}

body .fs-sell-mine .fs-sell-card__sub {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cl-secondary-text-color, #64748b);
}

body .fs-sell-mine #sf-mine-add-btn {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--sf-accent-subtle, rgba(16, 185, 129, 0.12));
  color: var(--sf-accent-text, var(--sf-accent, #10b981));
  border: 1px solid var(--sf-accent-line, rgba(16, 185, 129, 0.28));
  box-shadow: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

body .fs-sell-mine #sf-mine-add-btn:active {
  transform: scale(0.97);
}

/* Segmented filter bar — fits 100% width with zero clipping */
body .fs-sell-mine .fs-sell-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color, #e2e8f0));
  background: var(--sf-surface-inset, var(--cl-secondary-bg-color, #f1f5f9));
  overflow: hidden;
}

body .fs-sell-mine .fs-sell-filter__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px 4px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--cl-secondary-text-color, #64748b);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

body .fs-sell-mine .fs-sell-filter__btn.is-active {
  background: var(--sf-surface-raised, var(--cl-primary-bg-color, #fff));
  color: var(--cl-primary-text-color, #0f172a);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

body .fs-sell-mine .fs-sell-filter__count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 116, 139, 0.16);
  color: inherit;
  font-variant-numeric: tabular-nums;
}

body .fs-sell-mine .fs-sell-filter__btn.is-active .fs-sell-filter__count {
  background: var(--sf-accent, var(--cl-primary-color, #10b981));
  color: var(--sf-on-accent, #fff);
}

/* List container */
body #sf-mine-list.fs-sell-mine__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

@media (min-width: 680px) {
  body #sf-mine-list.fs-sell-mine__list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

body #sf-mine-list>.sf-mine-empty,
body #sf-mine-list>.fs-sell-state {
  grid-column: 1 / -1;
}

/* Redesigned Creator Frame Card */
body .sf-mine-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  border-radius: 18px;
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color, #e2e8f0));
  background: var(--sf-surface-sunken, var(--cl-secondary-bg-color, #f8fafc));
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

body .sf-mine-card:hover {
  border-color: var(--sf-accent-line-strong, var(--sf-accent, #10b981));
  box-shadow: 0 6px 20px -6px rgba(15, 23, 42, 0.1);
}

body .sf-mine-card:active {
  transform: scale(0.99);
}

body .sf-mine-card--active {
  border-color: var(--sf-accent, var(--cl-primary-color, #10b981));
  box-shadow: 0 0 0 1px var(--sf-accent, var(--cl-primary-color, #10b981));
}

body .sf-mine-card--declined {
  border-color: rgba(239, 68, 68, 0.35);
}

body .sf-mine-card__main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body .sf-mine-card__stage {
  position: relative;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sf-accent-gradient-soft, var(--sf-accent-subtle, rgba(16, 185, 129, 0.1)));
  border: 1px solid var(--sf-accent-line, var(--sf-hairline, rgba(16, 185, 129, 0.2)));
}

body .sf-mine-card__stage .fs-sell-item__thumb {
  width: 54px;
  height: 54px;
}

body .sf-mine-card__fmt {
  position: absolute;
  right: -5px;
  top: -5px;
  bottom: auto;
  z-index: 30;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  background: var(--sf-surface, var(--cl-primary-bg-color, #fff));
  color: var(--cl-secondary-text-color, #475569);
  border: 1px solid var(--sf-hairline-strong, var(--cl-primary-border-color, #cbd5e1));
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

body .cl-frames-shop .fs-sell-hero__chip--share {
  top: 2% !important;
  right: -12% !important;
  left: auto !important;
  z-index: 30 !important;
}

body .sf-mine-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 0%;
  min-width: 0;
}

body .sf-mine-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

body .sf-mine-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

body .sf-mine-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 6px;
}

body .sf-mine-badge--live {
  background: rgba(22, 163, 74, 0.13);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.26);
}

body[data-bg="dark"] .sf-mine-badge--live,
body.cl-dark-mode .sf-mine-badge--live {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

body .sf-mine-badge--review {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

body[data-bg="dark"] .sf-mine-badge--review,
body.cl-dark-mode .sf-mine-badge--review {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}

body .sf-mine-badge--declined {
  background: rgba(239, 68, 68, 0.13);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.26);
}

body[data-bg="dark"] .sf-mine-badge--declined,
body.cl-dark-mode .sf-mine-badge--declined {
  background: rgba(248, 113, 113, 0.18);
  color: #f87171;
}

body .sf-mine-chip {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--sf-surface, var(--cl-primary-bg-color, #fff));
  color: var(--cl-secondary-text-color, #64748b);
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color, #e2e8f0));
}

body .sf-mine-chip--active {
  background: var(--sf-accent-subtle, rgba(16, 185, 129, 0.12));
  color: var(--sf-accent-text, var(--sf-accent, #10b981));
  border-color: var(--sf-accent-line, rgba(16, 185, 129, 0.3));
  font-weight: 700;
}

body .sf-mine-card__title {
  margin: 1px 0 0;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--cl-primary-text-color, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body .sf-mine-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--cl-secondary-text-color, #64748b);
}

body .sf-mine-card__price {
  color: var(--cl-secondary-text-color, #64748b);
  font-weight: 500;
}

body .sf-mine-card__price strong {
  color: var(--sf-accent-text, var(--sf-accent, #10b981));
  font-weight: 800;
  font-size: 13.5px;
}

body .sf-mine-card__price--free {
  color: var(--cl-success-color, #16a34a);
  font-weight: 700;
}

body .sf-mine-card__dot {
  opacity: 0.55;
}

body .sf-mine-card__sold {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

body .sf-mine-card__reason {
  margin: 0 14px 12px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

body .sf-mine-card__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--sf-hairline, var(--cl-primary-border-color, #e2e8f0));
  background: var(--sf-surface, var(--cl-primary-bg-color, #fff));
}

body .sf-mine-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color, #e2e8f0));
  background: var(--sf-surface-sunken, var(--cl-secondary-bg-color, #f8fafc));
  color: var(--cl-primary-text-color, #0f172a);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body .sf-mine-card__btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

body .sf-mine-card__btn svg path {
  fill: currentColor;
}

body .sf-mine-card__btn--view {
  background: var(--sf-accent-subtle, rgba(16, 185, 129, 0.1));
  color: var(--sf-accent-text, var(--sf-accent, #10b981));
  border-color: var(--sf-accent-line, rgba(16, 185, 129, 0.25));
}

body .sf-mine-card__btn:hover {
  border-color: var(--sf-accent-line-strong, var(--sf-accent, #10b981));
}

/* Empty states inside Your frames */
body .sf-mine-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 18px;
  border-radius: 18px;
  border: 1.5px dashed var(--sf-hairline-strong, var(--cl-primary-border-color, #cbd5e1));
  background: var(--sf-surface-sunken, var(--cl-secondary-bg-color, #f8fafc));
}

body .sf-mine-empty__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sf-accent-subtle, rgba(16, 185, 129, 0.12));
  color: var(--sf-accent-text, var(--sf-accent, #10b981));
}

body .sf-mine-empty__icon svg {
  width: 22px;
  height: 22px;
}

body .sf-mine-empty__icon svg path {
  fill: currentColor;
}

body .sf-mine-empty__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--cl-primary-text-color, #0f172a);
}

body .sf-mine-empty__sub {
  margin: 0;
  max-width: 280px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--cl-secondary-text-color, #64748b);
}

body .sf-mine-empty__cta {
  margin-top: 12px;
  border-radius: 999px !important;
}

/* ==========================================================================
   UNIVERSAL CUSTOM SELECTOR (replaces native OS <select> popup everywhere)
   ========================================================================== */
select:not([multiple]):not([data-native-select="1"]) {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#sf-custom-select-overlay.sf-select-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, calc(max(var(--safe-top, 0px), env(safe-area-inset-top, 0px)) + 12px)) max(14px, env(safe-area-inset-right, 0px)) max(24px, calc(max(var(--safe-bottom, 0px), env(safe-area-inset-bottom, 0px)) + 12px)) max(14px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.52);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

#sf-custom-select-overlay.sf-select-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#sf-custom-select-overlay .sf-select-sheet {
  width: 100%;
  max-width: 390px;
  max-height: min(76vh, calc(100dvh - 56px));
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sf-surface, var(--cl-primary-bg-color, #ffffff));
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color, #e2e8f0));
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.34);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#sf-custom-select-overlay.sf-select-overlay.is-open .sf-select-sheet {
  transform: translateY(0) scale(1);
}

#sf-custom-select-overlay .sf-select-sheet__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px 18px;
  border-bottom: 1px solid var(--sf-hairline, var(--cl-primary-border-color, #e2e8f0));
  background: var(--sf-surface, var(--cl-primary-bg-color, #ffffff));
}

#sf-custom-select-overlay .sf-select-sheet__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--cl-primary-text-color, #0f172a);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sf-custom-select-overlay .sf-select-sheet__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color, #e2e8f0));
  background: var(--sf-surface-sunken, var(--cl-secondary-bg-color, #f1f5f9));
  color: var(--cl-secondary-text-color, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

#sf-custom-select-overlay .sf-select-sheet__close:active {
  transform: scale(0.94);
}

#sf-custom-select-overlay .sf-select-sheet__close svg {
  width: 16px;
  height: 16px;
}

#sf-custom-select-overlay .sf-select-sheet__close svg path {
  fill: currentColor;
}

#sf-custom-select-overlay .sf-select-sheet__search-wrap {
  flex: 0 0 auto;
  padding: 10px 14px 4px;
  background: var(--sf-surface, var(--cl-primary-bg-color, #ffffff));
}

#sf-custom-select-overlay .sf-select-sheet__search-Wrap-hidden {
  display: none !important;
}

#sf-custom-select-overlay .sf-select-sheet__search-box {
  position: relative;
  display: flex;
  align-items: center;
}

#sf-custom-select-overlay .sf-select-sheet__search-ico {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--cl-secondary-text-color, #64748b);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#sf-custom-select-overlay .sf-select-sheet__search-ico svg {
  width: 16px;
  height: 16px;
}

#sf-custom-select-overlay .sf-select-sheet__search {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border-radius: 12px;
  border: 1px solid var(--sf-hairline, var(--cl-primary-border-color, #e2e8f0));
  background: var(--sf-surface-sunken, var(--cl-secondary-bg-color, #f8fafc));
  color: var(--cl-primary-text-color, #0f172a);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
}

#sf-custom-select-overlay .sf-select-sheet__search:focus {
  border-color: var(--sf-accent, var(--cl-primary-color, #10b981));
  background: var(--sf-surface, var(--cl-primary-bg-color, #ffffff));
}

#sf-custom-select-overlay .sf-select-sheet__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#sf-custom-select-overlay .sf-select-opt {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--cl-primary-text-color, #0f172a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

#sf-custom-select-overlay .sf-select-opt:hover {
  background: var(--sf-surface-sunken, var(--cl-secondary-bg-color, #f8fafc));
}

#sf-custom-select-overlay .sf-select-opt:active {
  transform: scale(0.99);
}

#sf-custom-select-overlay .sf-select-opt.is-selected {
  background: var(--sf-accent-subtle, color-mix(in srgb, var(--cl-primary-color, #10b981) 12%, transparent));
  border-color: var(--sf-accent-line, color-mix(in srgb, var(--cl-primary-color, #10b981) 28%, transparent));
  color: var(--sf-accent-text, var(--cl-primary-color, #10b981));
  font-weight: 700;
}

#sf-custom-select-overlay .sf-select-opt.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

#sf-custom-select-overlay .sf-select-opt__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#sf-custom-select-overlay .sf-select-opt__radio {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--sf-hairline-strong, var(--cl-primary-border-color, #cbd5e1));
  background: var(--sf-surface-raised, var(--cl-primary-bg-color, #ffffff));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

#sf-custom-select-overlay .sf-select-opt.is-selected .sf-select-opt__radio {
  border-color: var(--sf-accent, var(--cl-primary-color, #10b981));
  background: var(--sf-accent, var(--cl-primary-color, #10b981));
  color: var(--sf-accent-fg, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--sf-accent, var(--cl-primary-color, #10b981)) 32%, transparent);
}

#sf-custom-select-overlay .sf-select-opt__radio svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#sf-custom-select-overlay .sf-select-opt.is-selected .sf-select-opt__radio svg {
  opacity: 1;
  transform: scale(1);
}

#sf-custom-select-overlay .sf-select-empty {
  padding: 20px 14px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cl-secondary-text-color, #64748b);
}

/* ==========================================================================
   Frame Shop Preview Stages — Show All Activated Profile Icons
   (Top-Left Crown + Bottom-Left Pinned Trophy + Bottom-Right Story Crest)
   ========================================================================== */
.fs-card__media>.cl-profile-last-trophy-badge,
.fs-detail-preview>.cl-profile-last-trophy-badge,
.fs-confirm-preview>.cl-profile-last-trophy-badge,
.fs-sell-preview>.cl-profile-last-trophy-badge,
.fs-sell-item__thumb>.cl-profile-last-trophy-badge,
.fs-sell-item__stage>.cl-profile-last-trophy-badge,
.fs-hero__art>.cl-profile-last-trophy-badge,
.fs-sell-hero__stage>.cl-profile-last-trophy-badge,
.cl-gift2__preview-media>.cl-profile-last-trophy-badge,
.cl-frames-shop__demo-avatar>.cl-profile-last-trophy-badge {
  display: inline-flex !important;
}

/* Preserve frame overlay object-fit: contain inside .cl-avatar-badge-host while clipping any opaque square corners */
html body .cl-avatar-badge-host>img.fs-card__frame,
html body .cl-avatar-badge-host>img.fs-detail-preview__frame,
html body .cl-avatar-badge-host>img.fs-confirm-preview__frame,
html body .cl-avatar-badge-host>img.fs-sell-preview__frame,
html body .cl-avatar-badge-host>img.fs-sell-item__thumb-frame,
html body .cl-avatar-badge-host>img.fs-sell-item__frame,
html body .cl-avatar-badge-host>img.cl-gift2__preview-frame {
  border-radius: 50% !important;
  object-fit: contain !important;
}

html body .fs-card__media,
html body .fs-detail-preview,
html body .fs-confirm-preview,
html body .fs-sell-preview,
html body .fs-sell-item__thumb,
html body .fs-sell-item__stage,
html body .fs-hero__art,
html body .fs-sell-hero__stage,
html body .cl-gift2__preview-media,
html body .cl-frames-shop__demo-avatar {
  overflow: visible !important;
}

/* Give card / confirm / gift stages comfortable breathing room so all 3 rim icons stay 100% inside the card */
html body.cl-app-frames_shop .cl-frames-shop img.fs-card__avatar,
html body.cl-app-frames_shop .cl-frames-shop img.fs-card__frame,
html body .cl-frames-shop img.fs-card__avatar,
html body .cl-frames-shop img.fs-card__frame,
html body img.fs-confirm-preview__avatar,
html body img.fs-confirm-preview__frame,
html body img.cl-gift2__preview-avatar,
html body img.cl-gift2__preview-frame {
  inset: 14% !important;
  width: 72% !important;
  height: 72% !important;
}

/* Active Story Medallion Crest on Frame Shop Previews (identical to .cl-avatar-story-ring--active) */
html body .fs-preview-story-arc {
  position: absolute !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 25 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  --cl-story-badge-accent: var(--cl-primary-color, var(--sf-accent, #10b981));
  --cl-story-arc-bg: conic-gradient(from 0deg at 50% 50%,
      var(--cl-story-badge-accent) 0deg,
      color-mix(in srgb, var(--cl-story-badge-accent) 76%, #0f172a) 74deg,
      var(--cl-story-badge-accent) 104deg,
      color-mix(in srgb, var(--cl-story-badge-accent) 36%, #ffffff) 132deg,
      var(--cl-story-badge-accent) 160deg,
      color-mix(in srgb, var(--cl-story-badge-accent) 76%, #0f172a) 190deg,
      var(--cl-story-badge-accent) 360deg);
  --cl-story-arc-fg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='rotate(42 50 50)'%3E%3Cpath d='M86.69 27.96A42.8 42.8 0 0 1 86.69 72.04' fill='none' stroke='white' stroke-width='1.2' stroke-linecap='round' opacity='.92'/%3E%3Cpath d='M79.73 19.21A42.8 42.8 0 0 1 81.55 21.08M81.55 78.92A42.8 42.8 0 0 1 79.73 80.79' fill='none' stroke='white' stroke-width='1.1' stroke-linecap='round' opacity='.92'/%3E%3Ccircle cx='75.16' cy='15.37' r='.9' fill='white' opacity='.95'/%3E%3Ccircle cx='75.16' cy='84.63' r='.9' fill='white' opacity='.95'/%3E%3C/g%3E%3C/svg%3E");
  --cl-story-arc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='rotate(42 50 50)'%3E%3Cg opacity='.3'%3E%3Cpath d='M85.9 26.69A42.8 42.8 0 0 1 85.9 73.31' fill='none' stroke='white' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M78.92 18.44A42.8 42.8 0 0 1 82.3 21.92M82.3 78.08A42.8 42.8 0 0 1 78.92 81.56' fill='none' stroke='white' stroke-width='6' stroke-linecap='round'/%3E%3Ccircle cx='75.16' cy='15.37' r='3.1' fill='white'/%3E%3Ccircle cx='75.16' cy='84.63' r='3.1' fill='white'/%3E%3C/g%3E%3Cpath d='M85.9 26.69A42.8 42.8 0 0 1 85.9 73.31' fill='none' stroke='white' stroke-width='4.6' stroke-linecap='round'/%3E%3Cpath d='M78.92 18.44A42.8 42.8 0 0 1 82.3 21.92M82.3 78.08A42.8 42.8 0 0 1 78.92 81.56' fill='none' stroke='white' stroke-width='3.9' stroke-linecap='round'/%3E%3Ccircle cx='75.16' cy='15.37' r='2.15' fill='white'/%3E%3Ccircle cx='75.16' cy='84.63' r='2.15' fill='white'/%3E%3C/g%3E%3C/svg%3E");
  background-color: var(--cl-story-badge-accent) !important;
  background-image: var(--cl-story-arc-fg), var(--cl-story-arc-bg) !important;
  background-size: 100% 100%, 100% 100% !important;
  background-position: center center, center center !important;
  background-repeat: no-repeat !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-mask-image: var(--cl-story-arc-mask) !important;
  mask-image: var(--cl-story-arc-mask) !important;
  -webkit-mask-size: 100% 100% !important;
  mask-size: 100% 100% !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center center !important;
  mask-position: center center !important;
  filter: none !important;
}

/* 1. Inset (14% inset, 72% circle) containers: Catalog Cards, Confirm Modal, Gift Preview */
html body .fs-card__media,
html body .fs-confirm-preview,
html body .cl-gift2__preview-media {
  --sf-badge-sz: 26.64% !important;
  --sf-badge-svg-sz: 100% !important;
  --sf-badge-left: 21.85% !important;
  --sf-badge-top: -1.43% !important;
}

html body .fs-card__media>.fs-preview-story-arc,
html body .fs-confirm-preview>.fs-preview-story-arc,
html body .cl-gift2__preview-media>.fs-preview-story-arc {
  inset: 7.52% !important;
  width: 84.96% !important;
  height: 84.96% !important;
}

html body .fs-card__media>.cl-profile-last-trophy-badge,
html body .fs-confirm-preview>.cl-profile-last-trophy-badge,
html body .cl-gift2__preview-media>.cl-profile-last-trophy-badge {
  left: 10.25% !important;
  bottom: 13.28% !important;
  top: auto !important;
  right: auto !important;
  width: 19.5% !important;
  height: 19.5% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 30% !important;
  border-width: 1.8px !important;
  z-index: 26 !important;
}

/* 2. Full-circle (0% inset, 100% circle) containers: Detail Modal, Live Sell Preview, Your Frames Thumbs */
html body .fs-detail-preview,
html body .fs-sell-preview,
html body .fs-sell-item__thumb,
html body .fs-sell-item__stage,
html body .cl-frames-shop__demo-avatar {
  --sf-badge-sz: 37% !important;
  --sf-badge-svg-sz: 100% !important;
  --sf-badge-left: 10.9% !important;
  --sf-badge-top: -21.43% !important;
}

html body .fs-detail-preview>.fs-preview-story-arc,
html body .fs-sell-preview>.fs-preview-story-arc,
html body .fs-sell-item__thumb>.fs-preview-story-arc,
html body .fs-sell-item__stage>.fs-preview-story-arc,
html body .cl-frames-shop__demo-avatar>.fs-preview-story-arc {
  inset: -9% !important;
  width: 118% !important;
  height: 118% !important;
}

html body .fs-detail-preview>.cl-profile-last-trophy-badge,
html body .fs-sell-preview>.cl-profile-last-trophy-badge,
html body .fs-sell-item__thumb>.cl-profile-last-trophy-badge,
html body .fs-sell-item__stage>.cl-profile-last-trophy-badge,
html body .cl-frames-shop__demo-avatar>.cl-profile-last-trophy-badge {
  left: -5.2% !important;
  bottom: -1% !important;
  top: auto !important;
  right: auto !important;
  width: 25% !important;
  height: 25% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 30% !important;
  border-width: 2px !important;
  z-index: 26 !important;
}

html body .fs-sell-item__thumb>.cl-profile-last-trophy-badge,
html body .fs-sell-item__stage>.cl-profile-last-trophy-badge,
html body .cl-frames-shop__demo-avatar>.cl-profile-last-trophy-badge {
  width: 30% !important;
  height: 30% !important;
  border-width: 1.5px !important;
}

/* 3. Browse Hero Stage (.fs-hero__art: 7% inset, 86% circle) */
html body .fs-hero__art {
  --sf-badge-sz: 34% !important;
  --sf-badge-svg-sz: 100% !important;
  --sf-badge-left: 15.28% !important;
  --sf-badge-top: -13.15% !important;
}

html body .fs-hero__art>.fs-preview-story-arc {
  inset: -0.74% !important;
  width: 101.48% !important;
  height: 101.48% !important;
}

html body .fs-hero__art>.cl-profile-last-trophy-badge {
  left: 2.5% !important;
  bottom: 6% !important;
  top: auto !important;
  right: auto !important;
  width: 27% !important;
  height: 27% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 30% !important;
  border-width: 1.6px !important;
  z-index: 26 !important;
}

/* 4. Creator Studio Hero Stage (.fs-sell-hero__stage: 6% inset, 88% circle) */
html body .fs-sell-hero__stage {
  --sf-badge-sz: 34% !important;
  --sf-badge-svg-sz: 100% !important;
  --sf-badge-left: 14.87% !important;
  --sf-badge-top: -14.0% !important;
}

html body .fs-sell-hero__stage>.fs-preview-story-arc {
  inset: -1.92% !important;
  width: 103.84% !important;
  height: 103.84% !important;
}

html body .fs-sell-hero__stage>.cl-profile-last-trophy-badge {
  left: 1.5% !important;
  bottom: 5% !important;
  top: auto !important;
  right: auto !important;
  width: 26% !important;
  height: 26% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 30% !important;
  border-width: 1.8px !important;
  z-index: 26 !important;
}

html body .cl-frames-shop .fs-sell-hero__chip--share {
  top: -2% !important;
  right: -12% !important;
  left: auto !important;
  z-index: 30 !important;
}

html body .cl-frames-shop .fs-sell-hero__chip--ok {
  bottom: -14% !important;
  right: -8% !important;
  z-index: 30 !important;
}

/* Scale inner SVG inside Frame Shop trophy badges proportionally */
html body .fs-card__media>.cl-profile-last-trophy-badge svg,
html body .fs-detail-preview>.cl-profile-last-trophy-badge svg,
html body .fs-confirm-preview>.cl-profile-last-trophy-badge svg,
html body .fs-sell-preview>.cl-profile-last-trophy-badge svg,
html body .fs-sell-item__thumb>.cl-profile-last-trophy-badge svg,
html body .fs-sell-item__stage>.cl-profile-last-trophy-badge svg,
html body .fs-hero__art>.cl-profile-last-trophy-badge svg,
html body .fs-sell-hero__stage>.cl-profile-last-trophy-badge svg,
html body .cl-gift2__preview-media>.cl-profile-last-trophy-badge svg,
html body .cl-frames-shop__demo-avatar>.cl-profile-last-trophy-badge svg {
  width: 60% !important;
  height: 60% !important;
  display: block !important;
}