.rp-gc-page .rp-gc-tabs .nav-link {
  font-weight: 600;
  color: var(--rp-text-muted);
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}

.rp-gc-page .rp-gc-tabs .nav-link.active {
  color: var(--rp-brand);
  border-bottom-color: var(--rp-brand);
  background: transparent;
}

.rp-gc-card-row {
  border: 1px solid var(--rp-glass-border);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--rp-text);
  transition: box-shadow 0.15s ease;
}

.rp-gc-card-row:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.rp-gc-card-row + .rp-gc-card-row {
  margin-top: 0.75rem;
}

.rp-gc-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.rp-gc-rule {
  border-left: 3px solid var(--rp-brand);
  padding-left: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.rp-gc-created-box {
  background: rgba(var(--rp-brand-rgb), 0.1);
  border: 1px dashed rgba(var(--rp-brand-rgb), 0.4);
  border-radius: 10px;
  padding: 1rem;
  color: var(--rp-text);
}

.rp-gc-notify-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rp-glass-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  color: var(--rp-text);
}

html[data-theme="light"] .rp-gc-card-row {
  background: #fff;
  border-color: #e8ecf1;
  color: #1a1a1a;
}

html[data-theme="light"] .rp-gc-created-box {
  background: #fff8f0;
  border-color: #ffb366;
  color: #1a1a1a;
}

html[data-theme="light"] .rp-gc-notify-panel {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1a1a1a;
}

.rp-gc-mode-toggle .btn.active {
  background: var(--rp-brand);
  border-color: var(--rp-brand);
  color: #fff;
}

html[data-theme="dark"] .rp-gc-page .rp-gc-tabs .nav-link {
  color: var(--rp-text-muted);
}

.rp-gc-create-preview {
  width: min(100%, 620px);
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.rp-gc-design-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.rp-gc-design-option {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 68px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--rp-border, #e5e7eb);
  border-radius: 14px;
  background: var(--rp-surface, #fff);
  color: var(--rp-text, #172033);
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rp-gc-design-option:hover { transform: translateY(-1px); border-color: rgba(var(--rp-brand-rgb, 249, 115, 22), .55); }
.rp-gc-design-option.is-active { border-color: var(--rp-brand, #f97316); box-shadow: 0 0 0 3px rgba(var(--rp-brand-rgb, 249, 115, 22), .12); }
.rp-gc-design-option strong,.rp-gc-design-option small { display: block; }
.rp-gc-design-option strong { font-size: .86rem; }
.rp-gc-design-option small { margin-top: .12rem; color: var(--rp-muted, #667085); font-size: .71rem; line-height: 1.25; }
.rp-gc-design-check { color: var(--rp-brand, #f97316); opacity: 0; }
.rp-gc-design-option.is-active .rp-gc-design-check { opacity: 1; }
.rp-gc-design-swatch { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.rp-gc-design-swatch.is-signature { background: linear-gradient(135deg,#f97316,#78b84a); }
.rp-gc-design-swatch.is-birthday { background: linear-gradient(135deg,#7c3aed,#ec4899,#f59e0b); }
.rp-gc-design-swatch.is-valentine { background: linear-gradient(135deg,#7f1d1d,#e11d48,#fbcfe8); }
.rp-gc-design-swatch.is-graduation { background: linear-gradient(135deg,#111827,#1e3a8a,#d4af37); }
.rp-gc-design-swatch.is-christmas { background: linear-gradient(135deg,#991b1b,#dc2626,#166534); }
.rp-gc-design-swatch.is-ecommerce { background: linear-gradient(135deg,#f97316,#166534); }
.rp-gc-design-swatch.is-professional { background: linear-gradient(135deg,#071426,#172554,#b58a28); }

.rp-gc-preview-card,
.rp-gc-created-preview-card {
  width: min(100%, 560px);
  margin-inline: auto;
}

.rp-gc-created-preview-card {
  max-width: 560px;
}

.rp-gc-export-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.rp-gc-export-card {
  width: 480px;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.24), transparent 11rem),
    linear-gradient(135deg, #f97316 0%, #d99a22 46%, #78b84a 100%);
  color: var(--rp-gc-text, #fff);
  box-shadow: 0 22px 46px rgba(113, 63, 18, 0.28);
  position: relative;
  aspect-ratio: 1.58 / 1;
}

.rp-gc-export-offscreen .rp-gc-export-card {
  width: 480px;
  max-width: none;
}

.rp-gc-export-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 36%),
    radial-gradient(circle at 82% 78%, rgba(0, 0, 0, 0.12), transparent 38%);
  pointer-events: none;
}

.rp-gc-export-card::after {
  content: "";
  position: absolute;
  right: -3.5rem;
  bottom: -5rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  border: 1.6rem solid rgba(255, 255, 255, 0.11);
  pointer-events: none;
}

.rp-gc-theme-decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.rp-gc-theme-decoration::before,
.rp-gc-theme-decoration::after { content: ""; position: absolute; pointer-events: none; }
.rp-gc-theme--signature .rp-gc-theme-decoration::before { width: 120px; height: 120px; right: 24px; top: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; transform: rotate(18deg); }
.rp-gc-theme--birthday .rp-gc-theme-decoration::before { width: 9px; height: 9px; top: 35px; left: 48%; border-radius: 50%; background:#fde047; box-shadow: 45px 21px #67e8f9,92px -8px #fda4af,142px 34px #86efac,188px -2px #fff,225px 44px #fde047,-160px 15px #fda4af,-112px 51px #67e8f9; }
.rp-gc-theme--birthday .rp-gc-theme-decoration::after { content:"🎁"; right: 22px; top: 78px; font-size: 58px; line-height:1; transform: rotate(7deg); filter: drop-shadow(0 12px 10px rgba(47,15,68,.34)); }
.rp-gc-theme--valentine .rp-gc-theme-decoration::before { content:"♥"; right: 18px; bottom: -22px; color:rgba(255,255,255,.20); font-size:180px; line-height:1; transform:rotate(-10deg); }
.rp-gc-theme--valentine .rp-gc-theme-decoration::after { content:"💝"; right: 28px; top: 72px; font-size:66px; line-height:1; transform:rotate(8deg); filter:drop-shadow(0 12px 10px rgba(76,5,25,.36)); }
.rp-gc-theme--graduation .rp-gc-theme-decoration::before { content:""; width:220px; height:220px; right:-82px; bottom:-105px; border:20px solid rgba(212,175,55,.16); border-radius:50%; }
.rp-gc-theme--graduation .rp-gc-theme-decoration::after { content:"🎓"; right:24px; top:70px; font-size:72px; line-height:1; transform:rotate(-7deg); filter:drop-shadow(0 12px 10px rgba(2,8,23,.48)); }
.rp-gc-theme--christmas .rp-gc-theme-decoration::before { content:"✦  ❄  ✦"; right: 22px; top: 62px; color: rgba(255,255,255,.3); font-size: 24px; letter-spacing: 12px; transform: rotate(-8deg); }
.rp-gc-theme--christmas .rp-gc-theme-decoration::after { content:"🎄"; right:20px; top:72px; font-size:62px; line-height:1; filter:drop-shadow(0 12px 10px rgba(20,83,45,.42)); }
.rp-gc-theme--ecommerce .rp-gc-theme-decoration::before { width: 112px; height: 62px; right: 14px; top: 72px; border: 7px solid rgba(255,255,255,.10); border-top: 0; border-radius: 0 0 22px 22px; transform: skew(-10deg); }
.rp-gc-theme--ecommerce .rp-gc-theme-decoration::after { content:"🛒"; right:20px; top:76px; font-size:58px; line-height:1; transform:rotate(-5deg); filter:drop-shadow(0 12px 10px rgba(20,83,45,.38)); }
.rp-gc-theme--professional { border: 1px solid rgba(212,175,55,.66); box-shadow: 0 24px 52px rgba(3,10,24,.38); }
.rp-gc-theme--professional .rp-gc-theme-decoration::before { inset: 12px; border: 1px solid rgba(212,175,55,.42); border-radius: 12px; }
.rp-gc-theme--professional .rp-gc-theme-decoration::after { width: 180px; height: 1px; right: 28px; top: 82px; background: linear-gradient(90deg,transparent,#d4af37); }
.rp-gc-theme--professional .rp-gc-export-brand > span:not(.rp-gc-export-brand-lockup) { background: linear-gradient(135deg,#d4af37,#8c6819); color:#071426; }

.rp-gc-brand-theme-tabs { display:flex; flex-wrap:wrap; gap:.45rem; }

.rp-gc-export-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 1.1rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  text-align: left;
}

.rp-gc-export-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rp-gc-export-brand-lockup,
.rp-gift-card-art__brand {
  width: max-content;
  max-width: min(60%, 300px);
  min-height: 39px;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #111827;
  overflow: hidden;
}

.rp-gc-export-brand-lockup img,
.rp-gift-card-art__brand img {
  width: 46px;
  max-width: 42%;
  height: auto;
  max-height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.rp-gc-export-brand-lockup strong,
.rp-gift-card-art__brand strong {
  min-width: 0;
  color: #111827;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rp-gc-export-brand > span:not(.rp-gc-export-brand-lockup) {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  color: var(--rp-gc-text, #fff);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rp-gc-export-value {
  align-self: start;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.48rem;
  row-gap: 0.28rem;
  padding-top: 0.42rem;
  transform: translateY(-0.42rem);
}

.rp-gc-export-value span,
.rp-gc-export-codes span,
.rp-gc-export-footer span {
  display: block;
  color: var(--rp-gc-text, #fff);
  opacity: 0.84;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.rp-gc-export-value strong {
  display: inline-block;
  margin-top: 0;
  color: var(--rp-gc-text, #fff);
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rp-gc-export-recipient {
  display: block;
  grid-column: 1 / -1;
  justify-self: start;
  width: max-content;
  max-width: min(72%, 19rem);
  margin-top: 0.08rem;
  padding: 0.24rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
  color: var(--rp-gc-text, #fff);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

.rp-gc-export-recipient--standalone {
  position: absolute;
  left: 1.1rem;
  top: 5.75rem;
  z-index: 2;
}

.rp-gc-export-value > span {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rp-gc-export-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  align-self: end;
  gap: 0.55rem;
  margin: 0.4rem 0 0;
}

.rp-gc-export-codes > div {
  min-width: 0;
  padding: 0.48rem 0.62rem;
  border-radius: 8px;
  background: linear-gradient(rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.28)), rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.rp-gc-export-code-wide {
  grid-column: 1 / -1;
}

.rp-gc-export-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.rp-gc-export-codes > .rp-gc-export-meta {
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.rp-gc-export-codes > .rp-gc-export-scan {
  padding: 0.46rem 0.55rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.rp-gc-export-scan-copy {
  min-width: 0;
}

.rp-gc-export-scan img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #fff;
  padding: 0.25rem;
  object-fit: contain;
}

.rp-gc-preview-qr {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='white'/%3E%3Cpath fill='%23111827' d='M4 4h18v18H4zM42 4h18v18H42zM4 42h18v18H4z'/%3E%3Cpath fill='white' d='M8 8h10v10H8zM46 8h10v10H46zM8 46h10v10H8z'/%3E%3Cpath fill='%23111827' d='M11 11h4v4h-4zM49 11h4v4h-4zM11 49h4v4h-4zM28 4h4v4h-4zM34 4h4v8h-4zM26 14h10v4H26zM30 24h4v4h-4zM38 24h4v4h-4zM46 28h4v4h-4zM54 28h6v4h-6zM24 32h8v4h-8zM36 32h4v8h-4zM44 36h4v4h-4zM52 36h8v4h-8zM28 42h4v4h-4zM34 44h10v4H34zM48 46h4v4h-4zM56 48h4v4h-4zM24 52h8v4h-8zM36 54h4v6h-4zM44 56h12v4H44zM28 60h4v4h-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 46px 46px;
  color: #111827;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.rp-gc-preview-qr i {
  display: none;
}

.rp-gc-export-codes > .rp-gc-export-details {
  display: grid;
  align-content: center;
  gap: 0.24rem;
  padding: 0.46rem 0.58rem;
}

.rp-gc-export-details > div {
  min-width: 0;
  padding-bottom: 0.22rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.rp-gc-export-details > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rp-gc-export-meta > div {
  min-width: 0;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.rp-gc-export-codes strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--rp-gc-text, #fff);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rp-gc-export-scan strong {
  font-size: 0.66rem;
  line-height: 1.15;
}

.rp-gc-export-details strong {
  margin-top: 0.12rem;
  font-size: 0.66rem;
  line-height: 1.12;
}

.rp-gc-export-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.14rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  line-height: 1.12;
}

.rp-gc-export-footer span {
  font-size: 0.56rem;
  letter-spacing: 0.01em;
}

.rp-gc-export-footer span:last-child {
  text-align: right;
}

.rp-gc-export-message {
  max-height: 42px;
  overflow: hidden;
  padding: 0.45rem 0.6rem;
  background: rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  font-size: 0.8rem;
  font-style: italic;
  text-align: left;
}

.rp-gc-page .rp-gift-card-art {
  width: min(100%, 560px);
  aspect-ratio: 1.58 / 1;
  min-height: auto;
  border-radius: 18px;
  padding: 1.35rem;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 0.9rem;
}

.rp-gc-page .rp-gift-card-art::after {
  right: -3.2rem;
  bottom: -4.6rem;
  width: 12rem;
  height: 12rem;
  border-width: 1.8rem;
}

.rp-gc-page .rp-gift-card-art__top > span:not(.rp-gift-card-art__brand) {
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
}

.rp-gc-page .rp-gift-card-art__brand {
  width: min(42%, 180px);
  min-height: 56px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  text-transform: none;
}

.rp-gc-page .rp-gift-card-art__brand img {
  width: 58px;
  max-height: 34px;
}

.rp-gc-page .rp-gift-card-art__brand strong {
  font-size: 0.72rem;
}

.rp-gc-page .rp-gift-card-art__value strong {
  font-size: 2.35rem;
}

.rp-gc-page .rp-gift-card-art__codes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rp-gc-page .rp-gift-card-art__codes > div {
  padding: 0.85rem 0.9rem;
}

.rp-gc-page .rp-gift-card-art__meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.rp-gc-page .rp-gift-card-art__codes > .rp-gift-card-art__meta {
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.rp-gc-page .rp-gift-card-art__meta > div {
  min-width: 0;
  padding: 0.85rem 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.rp-gc-page .rp-gift-card-art__codes strong {
  font-size: 0.82rem;
}

.rp-gc-page .rp-gift-card-art__foot {
  flex-direction: row;
}

.rp-gc-page .rp-gift-card-art__foot span:last-child {
  text-align: right;
}

.rp-gc-bulk-table {
  font-size: 0.88rem;
}

.rp-gc-bulk-table .rp-gc-code {
  font-size: 0.8rem;
}

.rp-gc-history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.rp-gc-history-summary > div {
  border: 1px solid var(--rp-border, #e5e7eb);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 247, 237, 0.55);
}

.rp-gc-history-summary span {
  display: block;
  color: var(--rp-muted, #667085);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rp-gc-history-summary strong {
  display: block;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.rp-gc-history-table {
  font-size: 0.9rem;
}

.rp-gc-history-table td {
  vertical-align: top;
}

.rp-gc-history-amount {
  font-weight: 800;
  white-space: nowrap;
}

.rp-gc-history-amount.credit {
  color: #15803d;
}

.rp-gc-history-amount.debit {
  color: #dc2626;
}

.rp-gc-history-amount.refund {
  color: #d97706;
}

.rp-gc-history-amount.neutral {
  color: var(--rp-muted, #667085);
}

@media print {
  .d-print-none,
  [data-rp-sidebar],
  [data-rp-topnav],
  [data-rp-bottomnav],
  .admin-footer {
    display: none !important;
  }

  .rp-gc-export-offscreen {
    position: static !important;
    left: auto !important;
  }
}

@media (max-width: 575.98px) {
  .rp-gc-design-picker { grid-template-columns: 1fr; }
  .rp-gc-history-summary {
    grid-template-columns: 1fr;
  }

  .rp-gc-history-table,
  .rp-gc-history-table thead,
  .rp-gc-history-table tbody,
  .rp-gc-history-table tr,
  .rp-gc-history-table td {
    display: block;
    width: 100%;
  }

  .rp-gc-history-table thead {
    display: none;
  }

  .rp-gc-history-table {
    border-collapse: separate;
    border-spacing: 0 0.7rem;
  }

  .rp-gc-history-table tr {
    border: 1px solid var(--rp-border, #e5e7eb);
    border-radius: 8px;
    padding: 0.65rem;
    background: var(--rp-surface, #fff);
  }

  .rp-gc-history-table td {
    border: 0 !important;
    padding: 0.45rem 0 !important;
    text-align: left !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .rp-gc-history-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.12rem;
    color: var(--rp-muted, #667085);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .rp-gc-page .rp-gc-create-preview {
    width: 100%;
    overflow-x: visible;
  }

  .rp-gc-page .rp-gc-preview-card,
  .rp-gc-page .rp-gc-created-preview-card {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(113, 63, 18, 0.18);
  }

  .rp-gc-page .rp-gc-preview-card::after,
  .rp-gc-page .rp-gc-created-preview-card::after {
    right: -2.7rem;
    bottom: -3.9rem;
    width: 9.5rem;
    height: 9.5rem;
    border-width: 1.25rem;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-inner,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-inner {
    padding: clamp(0.54rem, 2.8vw, 0.78rem);
    gap: clamp(0.28rem, 1.6vw, 0.46rem);
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-brand,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-brand {
    gap: 0.38rem;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-brand-lockup,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-brand-lockup {
    width: max-content;
    max-width: min(60%, 190px);
    min-height: 30px;
    padding: 0.16rem 0.28rem;
    border-radius: 7px;
    gap: 0.22rem;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-brand-lockup img,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-brand-lockup img {
    width: 34px;
    max-height: 21px;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-brand-lockup strong,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-brand-lockup strong {
    font-size: clamp(0.42rem, 1.9vw, 0.54rem);
    line-height: 1.05;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-brand > span:not(.rp-gc-export-brand-lockup),
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-brand > span:not(.rp-gc-export-brand-lockup) {
    padding: 0.22rem 0.42rem;
    font-size: clamp(0.52rem, 2.4vw, 0.66rem);
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-value,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-value {
    align-self: start;
    padding-top: clamp(0.2rem, 1.2vw, 0.34rem);
    transform: translateY(clamp(-0.32rem, -1.2vw, -0.18rem));
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-value span,
  .rp-gc-page .rp-gc-preview-card .rp-gc-export-codes span,
  .rp-gc-page .rp-gc-preview-card .rp-gc-export-footer span,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-value span,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-codes span,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-footer span {
    font-size: clamp(0.48rem, 2vw, 0.56rem);
    line-height: 1.14;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-value strong,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-value strong {
    margin-top: 0;
    font-size: clamp(1.28rem, 8.2vw, 1.68rem);
    line-height: 0.98;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-codes,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-codes {
    gap: 0.34rem;
    margin-top: 0.05rem;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-codes > div,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-codes > div {
    padding: 0.34rem 0.38rem;
    border-radius: 7px;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-codes > .rp-gc-export-scan,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-codes > .rp-gc-export-scan {
    padding: 0.34rem 0.38rem;
    gap: 0.3rem;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-scan img,
  .rp-gc-page .rp-gc-preview-card .rp-gc-preview-qr,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-scan img,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-preview-qr {
    width: clamp(34px, 12vw, 44px);
    height: clamp(34px, 12vw, 44px);
    border-radius: 7px;
    padding: 0.16rem;
    background-size: clamp(28px, 10vw, 38px) clamp(28px, 10vw, 38px);
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-codes strong,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-codes strong {
    margin-top: 0.08rem;
    font-size: clamp(0.48rem, 2.05vw, 0.58rem);
    line-height: 1.08;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-details,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-details {
    gap: 0.1rem;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-details > div,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-details > div {
    padding-bottom: 0.1rem;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-footer,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-footer {
    gap: 0.42rem;
    padding-top: 0.08rem;
    line-height: 1.05;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-footer span,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-footer span {
    font-size: clamp(0.4rem, 1.65vw, 0.48rem);
  }

  .rp-gc-page .rp-gift-card-art {
    width: 100%;
    padding: 0.8rem;
    gap: 0.42rem;
    border-radius: 16px;
  }

  .rp-gc-page .rp-gift-card-art::after {
    right: -2.6rem;
    bottom: -4.1rem;
    width: 9rem;
    height: 9rem;
    border-width: 1.35rem;
  }

  .rp-gc-page .rp-gift-card-art__brand {
    width: min(44%, 128px);
    min-height: 40px;
    padding: 0.18rem 0.3rem;
    gap: 0.25rem;
    border-radius: 8px;
  }

  .rp-gc-page .rp-gift-card-art__brand img {
    width: 38px;
    max-height: 25px;
  }

  .rp-gc-page .rp-gift-card-art__brand strong {
    font-size: 0.56rem;
    line-height: 1.05;
  }

  .rp-gc-page .rp-gift-card-art__top > span:not(.rp-gift-card-art__brand) {
    font-size: 0.74rem;
    padding: 0.3rem 0.6rem;
  }

  .rp-gc-page .rp-gift-card-art__value span,
  .rp-gc-page .rp-gift-card-art__codes span,
  .rp-gc-page .rp-gift-card-art__foot span {
    font-size: 0.54rem;
  }

  .rp-gc-page .rp-gift-card-art__value strong {
    font-size: 1.78rem;
    line-height: 0.98;
  }

  .rp-gc-page .rp-gift-card-art__codes {
    gap: 0.4rem;
  }

  .rp-gc-page .rp-gift-card-art__codes > div {
    padding: 0.5rem;
    border-radius: 8px;
  }

  .rp-gc-page .rp-gift-card-art__meta {
    gap: 0.4rem;
  }

  .rp-gc-page .rp-gift-card-art__meta > div {
    padding: 0.5rem;
    border-radius: 8px;
  }

  .rp-gc-page .rp-gift-card-art__codes strong {
    font-size: 0.58rem;
    line-height: 1.12;
  }

  .rp-gc-page .rp-gift-card-art__foot {
    padding-top: 0.15rem;
    gap: 0.35rem;
  }

  .rp-gc-export-offscreen .rp-gc-export-card {
    width: 480px;
    max-width: none;
    aspect-ratio: 1.58 / 1;
  }

  .rp-gc-export-inner {
    min-height: 0;
  }

  .rp-gc-export-codes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rp-gc-export-footer {
    flex-direction: row;
    gap: 1rem;
  }

  .rp-gc-export-footer span:last-child {
    text-align: right;
  }
}

@media (max-width: 380px) {
  .rp-gc-page .rp-gc-preview-card .rp-gc-export-brand-lockup,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-brand-lockup {
    width: max-content;
    max-width: min(60%, 150px);
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-brand-lockup strong,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-brand-lockup strong {
    -webkit-line-clamp: 1;
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-value strong,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-value strong {
    font-size: clamp(1.08rem, 7.4vw, 1.32rem);
  }

  .rp-gc-page .rp-gc-preview-card .rp-gc-export-codes strong,
  .rp-gc-page .rp-gc-created-preview-card .rp-gc-export-codes strong {
    font-size: 0.45rem;
  }
}

/* Keep the real card composition intact and scale the whole canvas on narrow screens. */
.rp-gc-page .rp-gc-responsive-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-width: 0;
  margin-inline: auto;
  overflow: hidden;
}

.rp-gc-page .rp-gc-responsive-frame > .rp-gc-export-card {
  position: absolute;
  inset: 0 auto auto 0;
  width: 480px !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 18px !important;
  transform: scale(var(--rp-gc-preview-scale, 1));
  transform-origin: left top;
}

.rp-gc-page .rp-gc-responsive-frame > .rp-gc-export-card::after {
  right: -3.5rem;
  bottom: -5rem;
  width: 13rem;
  height: 13rem;
  border-width: 1.6rem;
}

.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-inner {
  padding: 1.1rem;
  gap: 0.75rem;
}

.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-brand { gap: 0.75rem; }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-brand-lockup {
  width: max-content;
  max-width: min(60%, 300px);
  min-height: 39px;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  gap: 0.35rem;
}
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-brand-lockup img { width: 46px; max-height: 28px; }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-brand-lockup strong { font-size: 0.62rem; line-height: 1.12; -webkit-line-clamp: 2; }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-brand > span:not(.rp-gc-export-brand-lockup) { padding: 0.35rem 0.65rem; font-size: 0.78rem; }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-value { padding-top: 0.42rem; transform: translateY(-0.42rem); }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-value span,
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-codes span { font-size: 0.72rem; line-height: normal; }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-value strong { font-size: 2rem; line-height: 1.05; }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-codes { gap: 0.55rem; margin: 0.4rem 0 0; }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-codes > div { padding: 0.48rem 0.62rem; border-radius: 8px; }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-codes > .rp-gc-export-scan { padding: 0.46rem 0.55rem; gap: 0.5rem; }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-scan img,
.rp-gc-page .rp-gc-responsive-frame .rp-gc-preview-qr { width: 54px; height: 54px; border-radius: 8px; padding: 0.25rem; background-size: 46px 46px; }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-codes strong { margin-top: 0.2rem; font-size: 0.82rem; line-height: 1.25; }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-scan strong,
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-details strong { font-size: 0.66rem; line-height: 1.12; }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-footer { gap: 0.6rem; padding-top: 0.14rem; line-height: 1.12; }
.rp-gc-page .rp-gc-responsive-frame .rp-gc-export-footer span { font-size: 0.56rem; }
