:root {
  --gff-electric: #ffd84d;
  --gff-electric-strong: #f5b800;
  --gff-violet: #7b2fbe;
  --gff-violet-deep: #4b167d;
  --gff-ink: #1a0a30;
  --gff-muted: #7a5fa0;
  --gff-surface: #fff;
  --gff-layer: #f5f0fc;
  --gff-border: #ddd2f4;
  --gff-danger: #c82040;
  --gff-success: #08704d;
  --gff-action-text: #6a23a8;
}
html[data-theme="dark"] {
  --gff-ink: #f0f0f8;
  --gff-muted: #a88bcb;
  --gff-surface: #2b0060;
  --gff-layer: #350078;
  --gff-border: #5a2ca0;
  --gff-violet: #9b48ed;
  --gff-violet-deep: #c8a0f4;
  --gff-electric: #fbd34d;
  --gff-electric-strong: #fbbf24;
  --gff-danger: #ff6b85;
  --gff-success: #27e19d;
  --gff-action-text: #ddbfff;
}

.gff-stack {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 1002;
  font-family: Poppins, system-ui, -apple-system, sans-serif;
  color: var(--gff-ink);
}
.gff-fab {
  position: relative;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 15px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: linear-gradient(112deg, var(--gff-violet-deep), var(--gff-violet) 55%, #8d35d6);
  color: #fff;
  box-shadow: 0 14px 34px rgba(75,22,125,.34), inset 0 1px rgba(255,255,255,.2);
  font: 800 .87rem/1 Poppins, sans-serif;
  letter-spacing: -.01em;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gff-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 22%, rgba(255,216,77,.38) 47%, transparent 70%);
  transform: translateX(-115%);
}
.gff-fab.is-new::before { animation: gff-flash-pass .7s ease-out 1; }
.gff-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(75,22,125,.42); }
.gff-fab:focus-visible, .gff-panel button:focus-visible, .gff-panel a:focus-visible,
.gff-panel input:focus-visible, .gff-panel select:focus-visible, .gff-panel textarea:focus-visible {
  outline: 3px solid var(--gff-electric);
  outline-offset: 2px;
}
.gff-bolt {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--gff-electric);
  color: #43106e;
  box-shadow: 0 0 0 4px rgba(255,216,77,.13);
}
.gff-bolt svg { width: 20px; height: 20px; fill: currentColor; }
.gff-fab-copy { display: grid; gap: 2px; text-align: left; }
.gff-fab-copy small { font-size: .7rem; font-weight: 650; color: #f5edfc; }
.gff-count {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gff-electric);
  color: #43106e;
  font-size: .7rem;
  font-weight: 850;
}

.gff-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: grid;
  width: min(448px, calc(100vw - 32px));
  height: min(690px, calc(100vh - 130px));
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--gff-border);
  border-radius: 18px;
  background: var(--gff-surface);
  box-shadow: 0 24px 48px rgba(31,0,70,.26);
}
.gff-panel[hidden] { display: none; }
body.gff-open .gff-fab,
body.gff-open .gfc-stack,
body.gff-open .gf-push-banner { display: none !important; }
.gff-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  overflow: hidden;
  background: linear-gradient(115deg, #35105c, #6f24ae 68%, #8d35d6);
  color: #fff;
  width: 100%;
}
.gff-head::after {
  content: "";
  position: absolute;
  top: -28px;
  right: 74px;
  width: 58px;
  height: 140px;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,216,77,.18), transparent);
  pointer-events: none;
}
.gff-head-back { position: relative; z-index: 1; flex: 0 0 auto; }
.gff-brand { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 11px; }
.gff-brand > div { min-width: 0; }
.gff-brand .gff-bolt { width: 38px; height: 38px; flex: 0 0 auto; }
.gff-brand h2 { margin: 0; overflow: hidden; color: #fff; font-size: 1.05rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.gff-brand p { margin: 3px 0 0; overflow: hidden; color: #f0e6fa; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.gff-head-actions { position: relative; z-index: 1; display: flex; flex: 0 0 auto; gap: 6px; }
.gff-icon-btn {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}
.gff-icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.gff-body { overflow-y: auto; overscroll-behavior: contain; background: var(--gff-layer); }
.gff-loading .gff-head::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gff-electric), transparent);
  animation: gff-loading-pass 1s ease-in-out infinite;
}
.gff-screen { min-height: 100%; padding: 14px; background: var(--gff-layer); }
.gff-view-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--gff-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--gff-border) 42%, var(--gff-layer));
}
.gff-view-switch button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gff-muted);
  font: 750 .75rem/1 Poppins, sans-serif;
  cursor: pointer;
}
.gff-view-switch button.is-active { background: var(--gff-surface); color: var(--gff-violet); box-shadow: 0 2px 8px rgba(31,0,70,.08); }
.gff-view-switch button span { display: inline-grid; min-width: 20px; height: 20px; margin-left: 4px; place-items: center; border-radius: 999px; background: var(--gff-electric); color: #43106e; font-size: .63rem; }
.gff-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gff-toolbar h3 { margin: 0; font-size: 1rem; color: var(--gff-ink); }
.gff-toolbar p { margin: 3px 0 0; color: var(--gff-muted); font-size: .72rem; }
.gff-primary, .gff-secondary, .gff-danger, .gff-ghost {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  font: 700 .79rem/1.2 Poppins, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.gff-primary { border: 1px solid var(--gff-violet); background: var(--gff-violet); color: #fff; }
.gff-primary--flash { border-color: var(--gff-electric-strong); background: var(--gff-electric); color: #43106e; }
.gff-secondary { border: 1px solid var(--gff-border); background: var(--gff-surface); color: var(--gff-ink); }
.gff-danger { border: 1px solid color-mix(in srgb, var(--gff-danger) 35%, var(--gff-border)); background: color-mix(in srgb, var(--gff-danger) 10%, var(--gff-surface)); color: var(--gff-danger); }
.gff-ghost { border: 0; background: transparent; color: var(--gff-violet); padding-inline: 8px; }
.gff-primary:disabled, .gff-secondary:disabled, .gff-danger:disabled { opacity: .55; cursor: wait; }
.gff-intro {
  position: relative;
  margin-bottom: 12px;
  padding: 14px 14px 14px 16px;
  border: 1px solid color-mix(in srgb, var(--gff-electric-strong) 40%, var(--gff-border));
  border-left: 4px solid var(--gff-electric-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--gff-electric) 15%, var(--gff-surface));
}
.gff-intro strong { display: block; margin-bottom: 4px; font-size: .84rem; }
.gff-intro p { margin: 0; color: var(--gff-muted); font-size: .73rem; line-height: 1.5; }
.gff-intro .gff-ghost { margin-top: 7px; min-height: 34px; }
.gff-feed { display: grid; gap: 9px; }
.gff-card {
  display: grid;
  gap: 9px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--gff-border);
  border-radius: 13px;
  background: var(--gff-surface);
  color: var(--gff-ink);
  text-align: left;
  box-shadow: 0 1px 2px rgba(31,0,70,.04);
}
button.gff-card { cursor: pointer; }
button.gff-card:hover { border-color: color-mix(in srgb, var(--gff-violet) 45%, var(--gff-border)); }
.gff-history-card { gap: 10px; }
.gff-history-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gff-muted) 12%, var(--gff-surface));
  color: var(--gff-muted);
  font-size: .64rem;
  font-weight: 800;
}
.gff-history-status.is-cancelled { background: color-mix(in srgb, var(--gff-danger) 10%, var(--gff-surface)); color: var(--gff-danger); }
.gff-history-status.is-expired { background: color-mix(in srgb, var(--gff-electric) 18%, var(--gff-surface)); color: color-mix(in srgb, var(--gff-electric-strong) 72%, var(--gff-ink)); }
.gff-detail-hero .gff-history-status { background: rgba(255,255,255,.14); color: #fff; }
.gff-history-date { color: var(--gff-muted); font-size: .66rem; }
.gff-history-action { display: inline-flex; align-items: center; gap: 6px; color: var(--gff-action-text); font-size: .69rem; font-weight: 800; }
.gff-history-action svg, .gff-history-guide svg, .gff-history-mark svg, .gff-reactivation-meta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.gff-card-top, .gff-card-meta, .gff-price-row, .gff-actions { display: flex; align-items: center; gap: 8px; }
.gff-card-top { justify-content: space-between; }
.gff-card strong { display: block; font-size: .86rem; line-height: 1.3; }
.gff-card-description { display: -webkit-box; margin-top: 3px; overflow: hidden; color: var(--gff-muted); font-size: .74rem; font-weight: 400; line-height: 1.48; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.gff-product-row { display: flex; min-width: 0; align-items: center; gap: 11px; }
.gff-product-row > span:last-child { min-width: 0; }
.gff-product-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  color: var(--gff-violet);
}
.gff-product-icon img { display: block; width: 100%; max-width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.gff-product-icon img[hidden], .gff-bank-logo img[hidden] { display: none; }
.gff-product-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.gff-product-fallback { display: grid; width: 100%; height: 100%; place-items: center; }
.gff-product-fallback[hidden] { display: none; }
.gff-card-meta { flex-wrap: wrap; color: var(--gff-muted); font-size: .67rem; }
.gff-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.gff-card-meta .gff-buyer-role { color: var(--gff-violet); font-weight: 750; }
.gff-kind {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gff-violet) 10%, var(--gff-surface));
  color: var(--gff-violet);
  font-size: .64rem;
  font-weight: 750;
}
.gff-detail-hero .gff-kind { background: rgba(255,255,255,.14); color: #fff; }
.gff-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gff-violet) 9%, var(--gff-surface));
  color: var(--gff-violet-deep);
  font: 800 .69rem/1 ui-monospace, SFMono-Regular, monospace;
  white-space: nowrap;
}
.gff-timer.is-warning { background: rgba(245,184,0,.16); color: #9a6500; }
.gff-timer.is-critical { background: color-mix(in srgb, var(--gff-danger) 12%, var(--gff-surface)); color: var(--gff-danger); }
html[data-theme="dark"] .gff-timer.is-warning { color: #fbd34d; }
.gff-empty { display: grid; place-items: center; gap: 8px; padding: 42px 24px; text-align: center; color: var(--gff-muted); }
.gff-empty .gff-bolt { width: 44px; height: 44px; }
.gff-empty strong { color: var(--gff-ink); font-size: .9rem; }
.gff-empty p { max-width: 31ch; margin: 0; font-size: .74rem; }
.gff-history-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--gff-violet) 11%, var(--gff-surface)); color: var(--gff-violet); }
.gff-history-guide { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; padding: 11px 12px; border-radius: 11px; background: color-mix(in srgb, var(--gff-violet) 8%, var(--gff-surface)); color: var(--gff-muted); }
.gff-history-guide > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; color: var(--gff-violet); }
.gff-history-guide p { margin: 0; font-size: .7rem; line-height: 1.5; }
.gff-history-guide strong { color: var(--gff-ink); }
.gff-history-loading { padding: 40px 16px; color: var(--gff-muted); font-size: .76rem; text-align: center; }
.gff-load-more { width: 100%; margin-top: 12px; }
.gff-detail-hero {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #35105c, #6f24ae);
  color: #fff;
}
.gff-detail-hero h3 { margin: 7px 0 5px; color: #fff; font-size: 1.03rem; }
.gff-detail-hero p { margin: 0; color: #e5d6f3; font-size: .74rem; line-height: 1.5; }
.gff-detail-hero .gff-card-meta { margin-top: 11px; color: #e5d6f3; }
.gff-detail-product { display: flex; min-width: 0; align-items: center; gap: 12px; margin-top: 9px; }
.gff-detail-product > div { min-width: 0; }
.gff-detail-product h3 { margin-top: 0; }
.gff-product-icon--hero { width: 46px; height: 46px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.94); }
.gff-product-icon--hero svg { color: #4b167d; }
.gff-section { margin-top: 12px; padding: 14px; border: 1px solid var(--gff-border); border-radius: 13px; background: var(--gff-surface); }
.gff-section h4 { margin: 0 0 9px; font-size: .84rem; color: var(--gff-ink); }
.gff-section > p { margin: 0 0 10px; color: var(--gff-muted); font-size: .73rem; line-height: 1.5; }
.gff-form { display: grid; gap: 11px; }
.gff-form label { display: grid; gap: 5px; color: var(--gff-ink); font-size: .7rem; font-weight: 650; }
.gff-field-label { color: var(--gff-ink); font-size: .7rem; font-weight: 650; }
.gff-field-help { color: var(--gff-muted); font-size: .66rem; font-weight: 400; line-height: 1.4; }
.gff-field-error { color: var(--gff-danger); font-size: .67rem; font-weight: 650; }
.gff-form input, .gff-form select, .gff-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 11px;
  border: 1px solid var(--gff-border);
  border-radius: 10px;
  background: var(--gff-surface);
  color: var(--gff-ink);
  font: 400 .78rem/1.45 Poppins, sans-serif;
}
.gff-form textarea { min-height: 92px; resize: vertical; }
.gff-product-picker { position: relative; display: grid; gap: 5px; }
.gff-product-trigger {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid var(--gff-border);
  border-radius: 10px;
  background: var(--gff-surface);
  color: var(--gff-ink);
  text-align: left;
  cursor: pointer;
}
.gff-product-trigger:hover { border-color: color-mix(in srgb, var(--gff-violet) 45%, var(--gff-border)); }
.gff-product-trigger[aria-expanded="true"] { border-color: var(--gff-violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gff-violet) 15%, transparent); }
.gff-product-trigger[aria-invalid="true"] { border-color: var(--gff-danger); }
.gff-product-trigger-main { display: flex; min-width: 0; align-items: center; gap: 10px; }
.gff-product-trigger-main > span:last-child { display: grid; min-width: 0; gap: 2px; }
.gff-product-trigger-main strong { overflow: hidden; font-size: .79rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.gff-product-trigger-main small { overflow: hidden; color: var(--gff-muted); font-size: .65rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.gff-product-chevron { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; color: var(--gff-muted); transition: transform .16s ease; }
.gff-product-chevron svg, .gff-product-search > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.gff-product-picker.is-open .gff-product-chevron { transform: rotate(180deg); }
.gff-product-popover {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  left: 0;
  z-index: 8;
  display: grid;
  padding: 8px;
  border: 1px solid var(--gff-border);
  border-radius: 12px;
  background: var(--gff-surface);
  box-shadow: 0 18px 42px rgba(31,0,70,.22);
}
.gff-product-popover[hidden], .gff-product-option[hidden], .gff-product-empty[hidden], .gff-field-error[hidden] { display: none; }
.gff-product-popover-head { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 6px; }
.gff-product-search { position: relative; display: flex !important; align-items: center; }
.gff-product-search > svg { position: absolute; left: 12px; z-index: 1; color: var(--gff-muted); pointer-events: none; }
.gff-product-search input { min-height: 44px; padding-left: 38px; }
.gff-product-close { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--gff-border); border-radius: 10px; background: var(--gff-surface); color: var(--gff-action-text); cursor: pointer; }
.gff-product-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.gff-product-options { display: grid; max-height: min(310px, 42dvh); margin-top: 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.gff-product-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gff-ink);
  text-align: left;
  cursor: pointer;
}
.gff-product-option:hover, .gff-product-option:focus-visible { background: var(--gff-layer); }
.gff-product-option[aria-selected="true"] { background: color-mix(in srgb, var(--gff-violet) 11%, var(--gff-surface)); color: var(--gff-violet); }
.gff-product-option > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.gff-product-option strong { overflow: hidden; font-size: .76rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.gff-product-option small { color: var(--gff-muted); font-size: .63rem; }
.gff-product-check { display: grid; width: 22px; height: 22px; place-items: center; color: var(--gff-violet); opacity: 0; }
.gff-product-check svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.gff-product-option[aria-selected="true"] .gff-product-check { opacity: 1; }
.gff-product-empty { margin: 6px 4px 2px; padding: 12px; color: var(--gff-muted); font-size: .7rem; text-align: center; }
.gff-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gff-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gff-segment button { min-height: 44px; border: 1px solid var(--gff-border); border-radius: 10px; background: var(--gff-surface); color: var(--gff-ink); font-weight: 700; cursor: pointer; }
.gff-segment button.is-active { border-color: var(--gff-violet); background: color-mix(in srgb, var(--gff-violet) 12%, var(--gff-surface)); color: var(--gff-violet); }
.gff-actions { flex-wrap: wrap; margin-top: 11px; }
.gff-actions > * { flex: 1 1 130px; }
.gff-offer { padding: 12px 0; border-top: 1px solid var(--gff-border); }
.gff-offer:first-of-type { border-top: 0; padding-top: 0; }
.gff-offer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gff-seller { display: flex; min-width: 0; align-items: center; gap: 10px; }
.gff-seller > div { min-width: 0; }
.gff-seller p { margin: 3px 0 0; color: var(--gff-muted); font-size: .75rem; }
.gff-seller-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gff-seller-name strong, .gff-seller-name a { overflow: hidden; max-width: 17ch; color: var(--gff-ink); font-size: .84rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.gff-seller-name a { color: var(--gff-action-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gff-action-text) 45%, transparent); text-underline-offset: 3px; }
.gff-seller-name small { display: inline-flex; align-items: center; gap: 4px; color: var(--gff-success); font-size: .72rem; font-weight: 750; }
.gff-seller-name small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gff-seller-name small.is-offline { color: var(--gff-muted); }
.gff-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; overflow: hidden; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--gff-violet) 14%, var(--gff-surface)); color: var(--gff-violet); font-size: .82rem; font-weight: 850; }
.gff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gff-avatar.is-chat { width: 38px; height: 38px; }
.gff-offer-price { display: grid; flex: 0 0 auto; justify-items: end; gap: 1px; text-align: right; }
.gff-offer-price > span { padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--gff-success) 12%, var(--gff-surface)); color: var(--gff-success); font-size: .7rem; font-weight: 800; }
.gff-offer-price strong { color: var(--gff-ink); font-size: 1rem; }
.gff-offer-price small { color: var(--gff-muted); font-size: .7rem; }
.gff-offer-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.gff-offer-facts > span { display: inline-flex; min-height: 32px; align-items: center; padding: 5px 8px; border-radius: 8px; background: var(--gff-layer); color: var(--gff-muted); font-size: .73rem; }
.gff-offer-facts .gff-payment-method { gap: 6px; padding-block: 3px; }
.gff-offer-notes { margin-top: 9px; padding: 10px 11px; border-radius: 10px; background: color-mix(in srgb, var(--gff-violet) 6%, var(--gff-surface)); }
.gff-offer-notes strong { color: var(--gff-ink); font-size: .74rem; }
.gff-offer-notes p { margin: 3px 0 0; color: var(--gff-muted); font-size: .75rem; line-height: 1.5; white-space: pre-wrap; }
.gff-offer-notes.is-empty { opacity: .78; }
.gff-offer-warning { margin: 9px 0 0; color: var(--gff-muted); font-size: .73rem; line-height: 1.45; }
.gff-bank-logo { display: grid; width: 34px; height: 34px; flex: 0 0 auto; overflow: hidden; place-items: center; padding: 4px; border: 1px solid #e7e2ec; border-radius: 9px; background: #fff; color: #4b167d; font-size: .72rem; font-weight: 850; }
.gff-bank-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gff-bank-fallback { display: grid; width: 100%; height: 100%; place-items: center; }
.gff-bank-fallback[hidden] { display: none; }
.gff-bank-logo.is-small { width: 24px; height: 24px; padding: 2px; border-radius: 6px; }
.gff-payment-options { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; }
.gff-payment-options legend { margin-bottom: 5px; color: var(--gff-ink); font-size: .75rem; font-weight: 650; }
.gff-payment-option { position: relative; display: grid !important; grid-template-columns: 34px minmax(0, 1fr) 24px; min-height: 54px; align-items: center; gap: 9px !important; padding: 8px 10px; border: 1px solid var(--gff-border); border-radius: 10px; background: var(--gff-surface); cursor: pointer; }
.gff-payment-option input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.gff-payment-option > span:nth-of-type(2) { display: grid; gap: 2px; }
.gff-payment-option strong { font-size: .8rem; }
.gff-payment-option small { color: var(--gff-muted); font-size: .72rem; font-weight: 400; }
.gff-payment-check { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid var(--gff-border); border-radius: 50%; color: transparent; }
.gff-payment-check svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.gff-payment-option:has(input:checked) { border-color: var(--gff-violet); background: color-mix(in srgb, var(--gff-violet) 7%, var(--gff-surface)); }
.gff-payment-option:has(input:checked) .gff-payment-check { border-color: var(--gff-violet); background: var(--gff-violet); color: #fff; }
.gff-payment-option:has(input:focus-visible) { outline: 3px solid var(--gff-electric); outline-offset: 2px; }
.gff-price-row { justify-content: space-between; align-items: flex-start; }
.gff-price { font-size: 1rem; font-weight: 800; color: var(--gff-ink); }
.gff-reactivation-meta, .gff-reactivation-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gff-reactivation-meta { margin: 8px 0; }
.gff-reactivation-meta > span:first-child { display: inline-flex; align-items: center; gap: 5px; color: var(--gff-action-text); font-size: .68rem; font-weight: 800; }
.gff-reactivation-summary { margin-bottom: 8px; }
.gff-reactivation-summary > strong { font-size: 1rem; }
.gff-history-wait { padding: 14px; border-radius: 11px; background: var(--gff-layer); text-align: center; }
.gff-history-wait strong { font-size: .77rem; }
.gff-history-wait p { margin: 4px 0 0; color: var(--gff-muted); font-size: .69rem; line-height: 1.45; }
.gff-note { padding: 10px; border-radius: 10px; background: var(--gff-layer); color: var(--gff-muted); font-size: .75rem; line-height: 1.48; }
.gff-role-notice { margin-bottom: 12px; padding: 12px; border: 1px solid color-mix(in srgb, var(--gff-violet) 30%, var(--gff-border)); border-radius: 12px; background: color-mix(in srgb, var(--gff-violet) 8%, var(--gff-surface)); }
.gff-role-notice strong { display: block; color: var(--gff-violet); font-size: .78rem; }
.gff-role-notice p { margin: 4px 0 0; color: var(--gff-muted); font-size: .72rem; line-height: 1.5; }
.gff-gem-note p { margin: 0; }
.gff-gem-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gff-gem-actions a, .gff-gem-actions button { min-height: 40px; align-content: center; padding: 7px 10px; border: 1px solid var(--gff-border); border-radius: 8px; background: var(--gff-surface); color: var(--gff-action-text); font: 750 .69rem/1.2 Poppins, sans-serif; text-decoration: none; cursor: pointer; }
.gff-inline-api-error { margin: 7px 0 0; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--gff-danger) 45%, var(--gff-border)); border-radius: 9px; background: color-mix(in srgb, var(--gff-danger) 9%, var(--gff-surface)); color: var(--gff-danger); font-size: .72rem; font-weight: 700; line-height: 1.45; }
.gff-gem-note .gff-inline-api-error { margin: 8px 0 0; }
.gff-price-equivalent { color: var(--gff-ink) !important; font-weight: 700; }
.gff-payment { display: grid; gap: 7px; padding: 12px; border: 1px dashed var(--gff-electric-strong); border-radius: 11px; background: color-mix(in srgb, var(--gff-electric) 10%, var(--gff-surface)); }
.gff-payment-head { display: flex; align-items: center; gap: 10px; }
.gff-payment-head > span { display: grid; gap: 1px; }
.gff-payment-head small { color: var(--gff-muted); font-size: .72rem; }
.gff-payment strong { font-size: .9rem; }
.gff-payment span { color: var(--gff-muted); font-size: .76rem; overflow-wrap: anywhere; }
.gff-payment-number { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gff-payment-number > span { color: var(--gff-ink); font-weight: 700; }
.gff-payment-number button { min-height: 44px; padding: 7px 10px; border: 1px solid var(--gff-border); border-radius: 8px; background: var(--gff-surface); color: var(--gff-violet); font: 700 .67rem/1 Poppins, sans-serif; cursor: pointer; }
.gff-seller-payment { margin-bottom: 9px; }
.gff-payment-confirmation { margin: 0 0 10px !important; padding: 10px 11px; border-radius: 10px; background: color-mix(in srgb, var(--gff-electric) 13%, var(--gff-surface)); color: var(--gff-muted) !important; }
.gff-payment-confirmation strong { color: var(--gff-ink); }
.gff-order-status { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 10px; }
.gff-order-status-mark { display: grid; width: 38px; height: 38px; grid-row: span 2; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--gff-success) 13%, var(--gff-surface)); color: var(--gff-success); }
.gff-order-status-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.gff-order-status h4 { margin-bottom: 3px; }
.gff-order-status p { margin: 0; color: var(--gff-muted); font-size: .72rem; line-height: 1.5; }
.gff-order-status > a { grid-column: 2; justify-self: start; }
.gff-order-chat { display: grid; grid-template-rows: auto auto minmax(116px, 220px) auto; margin-top: 12px; overflow: clip; border: 1px solid var(--gff-border); border-radius: 14px; background: var(--gff-surface); }
.gff-order-chat-head { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 12px; border-bottom: 1px solid var(--gff-border); }
.gff-order-chat-head h4 { margin: 0; color: var(--gff-ink); font-size: .8rem; }
.gff-order-chat-head p { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; color: var(--gff-muted); font-size: .72rem; }
.gff-order-chat-head > a { min-height: 40px; align-content: center; color: var(--gff-action-text); font-size: .72rem; font-weight: 750; text-decoration: none; }
.gff-presence { width: 7px; height: 7px; border-radius: 50%; background: var(--gff-muted); }
.gff-presence.is-online { background: var(--gff-success); }
.gff-chat-thread { display: flex; min-height: 0; max-height: 220px; flex-direction: column; gap: 7px; padding: 12px; overflow-y: auto; overscroll-behavior: contain; background: var(--gff-layer); }
.gff-chat-empty { margin: auto; max-width: 31ch; color: var(--gff-muted); font-size: .74rem; line-height: 1.5; text-align: center; }
.gff-chat-message { align-self: flex-start; max-width: 82%; padding: 8px 10px; border-radius: 12px 12px 12px 4px; background: var(--gff-surface); color: var(--gff-ink); box-shadow: 0 2px 8px rgba(31,0,70,.07); }
.gff-chat-message.is-mine { align-self: flex-end; border-radius: 12px 12px 4px; background: var(--gff-violet); color: #fff; }
.gff-chat-message.is-staff { align-self: center; background: color-mix(in srgb, var(--gff-electric) 17%, var(--gff-surface)); color: var(--gff-ink); }
.gff-chat-message > span { display: block; font-size: .78rem; line-height: 1.45; overflow-wrap: anywhere; }
.gff-chat-message small { display: block; margin-top: 3px; color: inherit; font-size: .68rem; opacity: .78; text-align: right; }
.gff-chat-system { align-self: center; display: grid; max-width: 90%; justify-items: center; gap: 2px; padding: 7px 10px; color: var(--gff-muted); font-size: .72rem; line-height: 1.4; text-align: center; }
.gff-chat-system strong { color: var(--gff-violet); font-size: .7rem; text-transform: uppercase; }
.gff-chat-system small { font-size: .68rem; }
.gff-chat-error { padding: 8px 12px; background: color-mix(in srgb, var(--gff-danger) 9%, var(--gff-surface)); color: var(--gff-danger); font-size: .68rem; }
.gff-chat-error[hidden] { display: none; }
.gff-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: end; gap: 8px; padding: 10px; border-top: 1px solid var(--gff-border); background: var(--gff-surface); }
.gff-chat-form textarea { width: 100%; min-height: 46px; max-height: 110px; resize: vertical; padding: 10px 11px; border: 1px solid var(--gff-border); border-radius: 11px; background: var(--gff-surface); color: var(--gff-ink); font: 400 .74rem/1.4 Poppins, sans-serif; }
.gff-chat-form button { display: grid; width: 46px; height: 46px; place-items: center; border: 0; border-radius: 12px; background: var(--gff-violet); color: #fff; cursor: pointer; }
.gff-chat-form button:disabled { opacity: .55; cursor: wait; }
.gff-chat-form svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.gff-alert { margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--gff-danger) 9%, var(--gff-surface)); color: var(--gff-danger); font-size: .72rem; line-height: 1.45; }
.gff-status { margin: 8px 14px 0; color: var(--gff-danger); font-size: .72rem; }
.gff-status:empty { display: none; }
.gff-file {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--gff-border);
  border-radius: 10px;
  background: var(--gff-surface);
  color: var(--gff-muted);
  cursor: pointer;
}
.gff-file-action {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  padding: 7px 10px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--gff-violet) 11%, var(--gff-surface));
  color: var(--gff-violet);
  font-weight: 750;
}
.gff-file-name { overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.gff-file-input { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; overflow: hidden; clip: rect(0,0,0,0); }
.gff-trust-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--gff-border); border-radius: 10px; background: var(--gff-surface); color: var(--gff-muted); font-size: .69rem; line-height: 1.45; }
.gff-trust-note strong { flex: 0 0 auto; color: var(--gff-ink); font-size: .69rem; }
.gff-disclosure { margin-top: 10px; border: 1px solid var(--gff-border); border-radius: 11px; background: var(--gff-surface); }
.gff-disclosure summary { min-height: 44px; padding: 13px 14px; color: var(--gff-muted); font-size: .72rem; font-weight: 650; cursor: pointer; }
.gff-disclosure[open] summary { border-bottom: 1px solid var(--gff-border); color: var(--gff-ink); }
.gff-disclosure > div { padding: 13px; }
.gff-disclosure p { margin: 0 0 10px; color: var(--gff-muted); font-size: .7rem; line-height: 1.45; }
.gff-penalty { border-color: color-mix(in srgb, var(--gff-danger) 35%, var(--gff-border)); }
.gff-penalty .gff-timer { margin-bottom: 9px; }
.gff-penalty-help { font-size: .72rem !important; }
.gff-loading .gff-body { pointer-events: none; cursor: progress; }
.gff-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@keyframes gff-flash-pass { to { transform: translateX(115%); } }
@keyframes gff-loading-pass { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .gff-fab, .gff-fab::before, .gff-loading .gff-head::before, .gff-directory-card { animation: none !important; transition: none !important; }
}
@media (max-width: 900px) {
  .gff-stack { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .gff-fab { min-height: 56px; }
}
@media (max-width: 720px) {
  .gff-stack { right: 12px; }
  .gff-panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .gff-head { min-height: calc(72px + env(safe-area-inset-top)); padding-top: calc(12px + env(safe-area-inset-top)); }
  .gff-screen { padding: 12px 12px calc(20px + env(safe-area-inset-bottom)); }
  .gff-fab-copy small { display: none; }
  body.gff-open { overflow: hidden; }
  .gff-product-options { max-height: min(290px, 38dvh); }
}
@media (max-width: 430px) {
  .gff-grid-2 { grid-template-columns: 1fr; }
  .gff-fab { padding-right: 14px; }
  .gff-fab-copy { display: none; }
  .gff-head { gap: 8px; padding-inline: 12px; }
  .gff-brand { gap: 9px; }
  .gff-brand .gff-bolt { width: 36px; height: 36px; }
  .gff-brand h2 { font-size: .94rem; }
  .gff-brand p { max-width: 190px; font-size: .7rem; }
  .gff-icon-btn { width: 44px; height: 44px; }
  .gff-offer-head { align-items: center; }
  .gff-offer-price strong { font-size: .9rem; }
  .gff-order-chat-head { grid-template-columns: 38px minmax(0, 1fr); }
  .gff-order-chat-head > a { grid-column: 2; min-height: 32px; }
}
@media print { .gff-stack { display: none !important; } }

/* Directorio público: extensión del shell del Marketplace. */
.gff-directory { width: min(1180px, 100%); margin: 0 auto; padding: 6px 0 48px; color: var(--gff-ink); }
.gff-directory-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--gff-border);
  border-radius: 18px;
  background: linear-gradient(118deg, var(--gff-surface) 0 72%, color-mix(in srgb, var(--gff-electric) 18%, var(--gff-surface)) 100%);
  box-shadow: 0 12px 32px rgba(49, 8, 91, .08);
}
.gff-directory-mark { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 16px; background: var(--gff-electric); color: #43106e; box-shadow: 0 0 0 6px rgba(255,216,77,.16); }
.gff-directory-mark svg { width: 30px; height: 30px; fill: currentColor; }
.gff-directory-head h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.35rem); letter-spacing: -.04em; }
.gff-directory-head p { margin: 5px 0 0; color: var(--gff-muted); font-size: .86rem; }
.gff-directory-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 28px; }
.gff-directory-steps article { display: flex; gap: 11px; padding: 14px; border: 1px solid var(--gff-border); border-radius: 13px; background: var(--gff-surface); }
.gff-directory-steps article > span { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--gff-violet) 11%, var(--gff-surface)); color: var(--gff-violet); font-size: .72rem; font-weight: 850; }
.gff-directory-steps strong { display: block; font-size: .78rem; }
.gff-directory-steps p { margin: 2px 0 0; color: var(--gff-muted); font-size: .68rem; line-height: 1.45; }
.gff-directory-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.gff-directory-title h2 { margin: 0; font-size: 1.2rem; }
.gff-directory-title p { margin: 3px 0 0; color: var(--gff-muted); font-size: .75rem; }
.gff-live { display: inline-flex; align-items: center; gap: 7px; color: var(--gff-success); font-size: .7rem; font-weight: 750; }
.gff-live i { width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.gff-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gff-directory-card { display: grid; align-content: start; gap: 10px; min-height: 156px; padding: 16px; border: 1px solid var(--gff-border); border-radius: 14px; background: var(--gff-surface); color: var(--gff-ink); text-align: left; cursor: pointer; box-shadow: 0 3px 12px rgba(49,8,91,.04); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.gff-directory-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--gff-violet) 42%, var(--gff-border)); box-shadow: 0 10px 24px rgba(49,8,91,.1); }
.gff-directory-card:focus-visible { outline: 3px solid var(--gff-electric); outline-offset: 2px; }
.gff-directory-card .gff-product-row strong { display: block; font-size: .92rem; line-height: 1.35; }
.gff-directory-card-action { margin-top: auto; color: var(--gff-violet); font-size: .7rem; font-weight: 800; }
.gff-directory-empty { display: grid; justify-items: center; gap: 9px; padding: 56px 20px; border: 1px dashed var(--gff-border); border-radius: 16px; background: var(--gff-surface); text-align: center; }
.gff-directory-empty h2 { margin: 8px 0 0; font-size: 1.05rem; }
.gff-directory-empty p { max-width: 46ch; margin: 0 0 8px; color: var(--gff-muted); font-size: .78rem; }
.gff-directory-trust { margin-top: 16px; padding: 16px 18px; border-left: 4px solid var(--gff-electric-strong); border-radius: 11px; background: color-mix(in srgb, var(--gff-electric) 11%, var(--gff-surface)); }
.gff-directory-trust strong { font-size: .8rem; }
.gff-directory-trust p { margin: 3px 0 0; color: var(--gff-muted); font-size: .72rem; line-height: 1.5; }
@media (max-width: 900px) {
  .gff-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gff-directory { padding-top: 0; }
  .gff-directory-head { grid-template-columns: auto minmax(0, 1fr); padding: 18px 16px; }
  .gff-directory-head > .gff-primary { grid-column: 1 / -1; width: 100%; }
  .gff-directory-mark { width: 48px; height: 48px; border-radius: 14px; }
  .gff-directory-mark svg { width: 25px; height: 25px; }
  .gff-directory-steps { grid-template-columns: 1fr; margin-bottom: 24px; }
  .gff-directory-grid { grid-template-columns: 1fr; }
  .gff-directory-title { align-items: start; }
}
