/* ═══════════════════════════════════════════════════════════
   Repagify Theme — main.css
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:         #f8f7f4;
  --white:      #ffffff;
  --ink:        #111110;
  --mid:        #6b6b68;
  --soft:       #9a9894;
  --faint:      #e8e6e0;
  --faint2:     #f0eeea;
  --border:     #e2e0da;
  --coral:      #e8470a;
  --coral-h:    #cf3f08;
  --coral-bg:   rgba(232,71,10,0.08);
  --coral-ring: rgba(232,71,10,0.15);
  --amber:      #f5a623;
  --green:      #16a34a;
  --green-bg:   #f0fdf4;
  --blue:       #2563eb;
  --blue-bg:    rgba(37,99,235,0.08);
  --purple:     #7c3aed;
  --purple-bg:  rgba(124,58,237,0.08);
  --red:        #ef4444;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.10), 0 4px 14px rgba(0,0,0,.06);
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  22px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--ink); font-family: 'Outfit', sans-serif; font-weight: 400; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font-family: 'Outfit', sans-serif; }
.rpgfy-hidden { display: none !important; }

/* ── NAV ── */
/* ── Sticky nav wrapper — nav + optional token notice bar ─────────────────── */
.rpgfy-nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
  display: flex; flex-direction: column;
}
/* WP admin bar pushes html down by 32px (46px on mobile) — match it */
.admin-bar .rpgfy-nav-wrap { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .rpgfy-nav-wrap { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .rpgfy-nav-wrap { top: 0; } }
.rpgfy-nav {
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(248,247,244,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.rpgfy-nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.rpgfy-nav-brand { display: flex; align-items: center; gap: 10px; }
.rpgfy-logo-img  { height: 32px; width: auto; display: block; }
.rpgfy-auth-logo .rpgfy-logo-img { height: 40px; margin: 0 auto 8px; }
.rpgfy-nav-tagline { font-size: 11px; font-weight: 400; color: var(--soft); letter-spacing: 0; white-space: nowrap; }
.rpgfy-nav-tagline-link { color: var(--soft); text-decoration: none; }
.rpgfy-nav-tagline-link:hover { color: var(--coral); }
.rpgfy-nav-right { display: flex; align-items: center; gap: 16px; }
.rpgfy-nav-user { font-size: 13px; color: var(--mid); font-weight: 500; }
.rpgfy-nav-link { font-size: 13px; color: var(--mid); text-decoration: none; font-weight: 500; transition: color .15s; }
.rpgfy-nav-link:hover { color: var(--ink); }
.rpgfy-nav-btn-outline { background: none; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--mid); cursor: pointer; transition: all .15s; }
.rpgfy-nav-btn-outline:hover { border-color: var(--ink); color: var(--ink); }
/* ── Token notification bars (below nav) ─────────────────────────────────── */
.rpgfy-token-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.rpgfy-token-notice-empty {
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: #991b1b;
}
.rpgfy-token-notice-low {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #78350f;
}
.rpgfy-token-notice-icon { flex-shrink: 0; font-size: 14px; }
.rpgfy-token-notice-text { flex: 1; }
.rpgfy-token-notice-btn {
  flex-shrink: 0;
  background: #dc2626;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .15s;
}
.rpgfy-token-notice-btn:hover { background: #b91c1c; }
.rpgfy-token-notice-link {
  flex-shrink: 0;
  color: #92400e;
  text-decoration: underline;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s;
}
.rpgfy-token-notice-link:hover { color: #78350f; }
@media (max-width: 600px) {
  .rpgfy-token-notice { flex-wrap: wrap; padding: 10px 16px; }
  .rpgfy-token-notice-text { flex-basis: 100%; }
}

/* ── FOOTER ── */
.rpgfy-footer { border-top: 1px solid var(--border); padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--mid); margin-top: auto; }
.rpgfy-footer-links { display: flex; gap: 20px; }
.rpgfy-footer-links a { color: var(--mid); text-decoration: none; transition: color .15s; }
.rpgfy-footer-links a:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   HOME / CAPTURE
   ═══════════════════════════════════════════════════════════ */
.rpgfy-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 88px 24px 72px; text-align: center;
}
.rpgfy-gen-screen, .rpgfy-confirm-screen {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 24px 60px; text-align: center;
}

.rpgfy-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 14px 5px 10px;
  font-size: 12px; font-weight: 600; color: var(--mid);
  margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.rpgfy-kicker-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: rpgfy-blink 2s ease infinite; flex-shrink: 0; }
@keyframes rpgfy-blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.rpgfy-h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; max-width: 660px; margin-bottom: 16px; }
.rpgfy-h1 em { font-style: normal; color: var(--coral); }
.rpgfy-hero-sub { font-size: 17px; color: var(--mid); max-width: 420px; line-height: 1.65; margin-bottom: 44px; }

/* ── CARD ── */
.rpgfy-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; width: 100%; max-width: 500px; box-shadow: var(--shadow-lg); text-align: left; }

/* ── SECTION LABEL ── */
.rpgfy-section-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.rpgfy-section-label::after { content: ''; flex: 1; height: 1px; background: var(--faint); }

/* ── FIELDS ── */
.rpgfy-field { margin-bottom: 14px; }
.rpgfy-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--mid); margin-bottom: 6px; }
.rpgfy-req { color: var(--coral); }
.rpgfy-optional { font-weight: 400; color: var(--soft); font-size: 11px; }
.rpgfy-label-link { font-size: 12px; font-weight: 500; color: var(--coral); text-decoration: none; }
.rpgfy-required { color: var(--coral); margin-left: 2px; }
.rpgfy-label-link:hover { text-decoration: underline; }
.rpgfy-field-hint { font-size: 11px; color: var(--soft); margin-top: 5px; display: block; }

.rpgfy-input-wrap { display: flex; align-items: center; background: var(--faint2); border: 1.5px solid var(--faint); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .15s, box-shadow .15s, background .15s; }
.rpgfy-input-wrap:focus-within { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-ring); background: var(--white); }
.rpgfy-input-wrap.rpgfy-err-wrap { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important; }
.rpgfy-input-wrap-disabled { opacity: .6; cursor: not-allowed; }
.rpgfy-input-wrap-disabled input { cursor: not-allowed; }

/* .rpgfy-prefix removed — URL input now uses type=url with full URL placeholder */
.rpgfy-input { flex: 1; background: transparent; border: none; outline: none; padding: 13px 14px; font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; color: var(--ink); caret-color: var(--coral); width: 100%; }
.rpgfy-input::placeholder { color: #c5c1b9; font-weight: 400; }
.rpgfy-mono { font-family: 'JetBrains Mono', monospace; }
/* non-mono inputs */
input[type=email].rpgfy-input,
input.rpgfy-input:not(.rpgfy-mono) { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 400; }

.rpgfy-textarea { width: 100%; background: var(--faint2); border: 1.5px solid var(--faint); border-radius: var(--radius-sm); padding: 13px 14px; font-family: 'Outfit', sans-serif; font-size: 14px; color: var(--ink); outline: none; resize: vertical; min-height: 90px; line-height: 1.6; transition: border-color .15s, box-shadow .15s, background .15s; caret-color: var(--coral); }
.rpgfy-textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-ring); background: var(--white); }
.rpgfy-textarea::placeholder { color: #c5c1b9; }
.rpgfy-textarea.rpgfy-err-wrap { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important; }

.rpgfy-err { font-size: 11px; color: var(--red); font-weight: 500; margin-top: 5px; display: none; }
.rpgfy-err.show { display: block; }

/* password toggle */
.rpgfy-pw-wrap { position: relative; }
.rpgfy-pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--soft); padding: 4px; display: flex; align-items: center; }
.rpgfy-pw-toggle:hover { color: var(--mid); }

/* ── PATH TOGGLE ── */
.rpgfy-path-toggle { display: flex; background: var(--faint2); border: 1.5px solid var(--faint); border-radius: var(--radius-sm); overflow: hidden; }
.rpgfy-path-btn { flex: 1; padding: 11px 12px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--mid); cursor: pointer; border: none; background: transparent; transition: background .2s, color .2s; border-right: 1.5px solid var(--faint); }
.rpgfy-path-btn:last-child { border-right: none; }
.rpgfy-path-btn.active { background: var(--white); color: var(--coral); box-shadow: inset 0 1px 3px rgba(0,0,0,.05); }

/* ── EXPAND ── */
.rpgfy-expand { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .3s ease, margin .3s ease; margin-top: 0; }
.rpgfy-expand.open { max-height: 640px; opacity: 1; margin-top: 14px; }
.rpgfy-expand-inner { display: flex; flex-direction: column; gap: 14px; }
.rpgfy-divider { display: flex; align-items: center; gap: 10px; }
.rpgfy-divider-line { flex: 1; height: 1px; background: var(--faint); }
.rpgfy-divider-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #c5c1b9; }

/* ── TONE CHIPS ── */
.rpgfy-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rpgfy-chip { padding: 4px 11px; border-radius: 100px; font-size: 12px; font-weight: 600; border: 1.5px solid var(--border); cursor: pointer; color: var(--mid); transition: all .15s; user-select: none; background: var(--white); }
.rpgfy-chip:hover { border-color: var(--coral); color: var(--coral); }
.rpgfy-chip.on { background: var(--coral-bg); border-color: var(--coral); color: var(--coral); }
.rpgfy-tone-groups { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.rpgfy-tone-group { display: flex; flex-direction: column; gap: 4px; }
.rpgfy-tone-group-label { font-size: 11px; font-weight: 700; color: var(--mid); letter-spacing: .04em; text-transform: uppercase; }

/* ── CTA BUTTON ── */
.rpgfy-cta { width: 100%; background: var(--coral); color: #fff; border: none; border-radius: var(--radius-sm); padding: 15px 20px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: background .15s, transform .1s; margin-top: 6px; text-decoration: none; margin-left: auto; margin-right: auto; }
.rpgfy-cta:hover { background: var(--coral-h); }
.rpgfy-cta:active { transform: scale(.99); }
.rpgfy-cta-text { flex: 1; text-align: center; }
.rpgfy-cta-arrow { width: 30px; height: 30px; background: rgba(255,255,255,.18); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; transition: transform .2s; }
.rpgfy-cta:hover .rpgfy-cta-arrow { transform: translateX(3px); }
.rpgfy-cta-sm { width: auto; padding: 12px 24px; margin-top: 12px; display: inline-flex; }
.rpgfy-footnote { margin-top: 14px; font-size: 12px; color: var(--mid); text-align: center; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* ── BUTTONS (generic) ── */
.rpgfy-btn-primary { background: var(--coral); color: #fff; border: none; border-radius: var(--radius-sm); padding: 12px 20px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s; text-decoration: none; display: inline-flex; align-items: center; }
.rpgfy-btn-primary:hover { background: var(--coral-h); color: #fff; }
.rpgfy-btn-danger { background: none; border: 1.5px solid #fca5a5; color: #dc2626; border-radius: var(--radius-sm); padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; }
.rpgfy-btn-danger:hover { background: #fef2f2; border-color: #dc2626; }

/* ── NOTICES ── */
.rpgfy-notice { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.rpgfy-notice-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(22,163,74,.2); }
.rpgfy-notice-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }

/* ═══════════════════════════════════════════════════════════
   GENERATING
   ═══════════════════════════════════════════════════════════ */
.rpgfy-gen-label { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--mid); background: var(--white); border: 1px solid var(--border); padding: 7px 18px; border-radius: var(--radius-sm); margin-bottom: 44px; }
.rpgfy-gen-label span { color: var(--coral); }
.rpgfy-spinner { width: 88px; height: 88px; position: relative; margin: 0 auto 40px; }
.rpgfy-spinner-ring { width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(var(--coral) 0%, var(--amber) 50%, var(--coral) 100%); animation: rpgfy-rot 1.1s linear infinite; }
@keyframes rpgfy-rot { to { transform: rotate(360deg); } }
.rpgfy-spinner-center { position: absolute; inset: 9px; background: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.rpgfy-gen-title { font-size: 24px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
.rpgfy-gen-sub { font-size: 14px; color: var(--mid); margin-bottom: 40px; }
.rpgfy-gen-list { display: flex; flex-direction: column; gap: 10px; max-width: 300px; margin: 0 auto; text-align: left; }
.rpgfy-gen-item { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--mid); opacity: 0; transition: opacity .35s; }
.rpgfy-gen-item.done { opacity: 1; color: var(--ink); }
.rpgfy-gen-item.active { opacity: 1; color: var(--coral); }
.rpgfy-gen-icon { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.rpgfy-gen-item:not(.done):not(.active) .rpgfy-gen-icon { background: var(--faint); color: var(--mid); }
.rpgfy-gen-item.done   .rpgfy-gen-icon { background: var(--green-bg); color: var(--green); }
.rpgfy-gen-item.active .rpgfy-gen-icon { background: var(--coral-bg); color: var(--coral); animation: rpgfy-rot 1s linear infinite; }

/* ── Activity ticker ── */
.rpgfy-gen-activity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px auto 0;
  padding: 11px 22px;
  max-width: 360px;
  background: var(--faint);
  border: 1px solid var(--border);
  border-radius: 50px;
  min-height: 42px;
}
.rpgfy-gen-activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
  animation: rpgfy-pulse-dot 1.4s ease-in-out infinite;
}
@keyframes rpgfy-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}
.rpgfy-gen-activity-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -.01em;
  transition: opacity .3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rpgfy-activity-fade {
  opacity: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   CONFIRMATION
   ═══════════════════════════════════════════════════════════ */
.rpgfy-confirm-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green-bg); border: 1.5px solid rgba(22,163,74,.2); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 28px; animation: rpgfy-pop .5s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes rpgfy-pop { from{opacity:0;transform:scale(.6)} to{opacity:1;transform:scale(1)} }
.rpgfy-confirm-title { font-size: clamp(26px,4vw,42px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 14px; max-width: 520px; }
.rpgfy-confirm-title em { font-style: normal; color: var(--coral); }
.rpgfy-confirm-sub { font-size: 16px; color: var(--mid); max-width: 420px; line-height: 1.65; margin-bottom: 40px; }
/* email card */
.rpgfy-email-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); margin-bottom: 32px; text-align: left; }
.rpgfy-email-topbar { background: #f3f1ee; border-bottom: 1px solid var(--border); padding: 9px 14px; display: flex; gap: 6px; align-items: center; }
.rpgfy-edot { width: 9px; height: 9px; border-radius: 50%; }
.rpgfy-email-header { padding: 16px 18px 14px; border-bottom: 1px solid var(--faint); }
.rpgfy-email-from { font-size: 11px; color: var(--mid); margin-bottom: 4px; }
.rpgfy-email-subject { font-size: 14px; font-weight: 700; color: var(--ink); }
.rpgfy-email-body { padding: 14px 18px 18px; }
.rpgfy-email-greeting { font-size: 13px; color: var(--mid); margin-bottom: 12px; line-height: 1.5; }
.rpgfy-email-thumb { background: var(--faint2); border: 1px solid var(--faint); border-radius: 9px; overflow: hidden; margin-bottom: 12px; }
.rpgfy-email-thumb-bar { background: #eceae5; border-bottom: 1px solid var(--faint); padding: 6px 10px; display: flex; align-items: center; gap: 5px; }
.rpgfy-eb-dot { width: 7px; height: 7px; border-radius: 50%; }
.rpgfy-eb-url { flex: 1; background: var(--white); border-radius: 3px; height: 14px; margin: 0 6px; }
.rpgfy-email-thumb-content { padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.rpgfy-esk { display: block; border-radius: 2px; background: var(--faint); animation: rpgfy-sk 2s ease infinite; }
@keyframes rpgfy-sk { 0%,100%{opacity:.6} 50%{opacity:1} }
.rpgfy-email-cta-row { display: flex; gap: 10px; align-items: center; }
.rpgfy-email-btn { background: var(--coral); color: #fff; border: none; border-radius: 7px; padding: 9px 16px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rpgfy-email-btn:hover { background: var(--coral-h); }
.rpgfy-email-note { font-size: 11px; color: var(--soft); line-height: 1.4; }
/* next steps */
.rpgfy-next-steps { width: 100%; max-width: 400px; }
.rpgfy-next-step { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--faint); }
.rpgfy-next-step:last-child { border-bottom: none; }
.rpgfy-next-num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.rpgfy-next-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; letter-spacing: -.01em; }
.rpgfy-next-text p { font-size: 13px; color: var(--mid); line-height: 1.5; }
.rpgfy-next-text strong { color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   PREVIEW PAGE
   ═══════════════════════════════════════════════════════════ */
.rpgfy-preview-screen { display: flex; flex-direction: column; align-items: center; padding: 88px 24px 80px; }
.rpgfy-prev-header { text-align: center; max-width: 640px; margin-bottom: 40px; }
.rpgfy-prev-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--green-bg); border: 1px solid rgba(22,163,74,.2); border-radius: 100px; padding: 5px 14px; font-size: 12px; font-weight: 600; color: var(--green); margin-bottom: 16px; }
.rpgfy-prev-title { font-size: clamp(26px,4vw,42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.rpgfy-prev-title em { font-style: normal; color: var(--coral); }
.rpgfy-prev-sub { font-size: 15px; color: var(--mid); line-height: 1.6; }
/* browser */
.rpgfy-browser { width: 100%; max-width: 1200px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 40px; }
.rpgfy-browser-bar { background: #f3f1ee; border-bottom: 1px solid var(--border); padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.rpgfy-b-dots { display: flex; gap: 5px; }
.rpgfy-b-dot { width: 10px; height: 10px; border-radius: 50%; }
.rpgfy-b-url { flex: 1; background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--mid); max-width: 360px; margin: 0 auto; }
.rpgfy-b-url strong { color: var(--ink); font-weight: 500; }
.rpgfy-mock { background: var(--white); min-height: 320px; }
.rpgfy-preview-iframe { display: block; width: 100%; height: 85vh; min-height: 600px; border: none; background: var(--white); }
.rpgfy-mock-placeholder { display: flex; align-items: center; justify-content: center; min-height: 320px; color: var(--mid); font-size: 14px; }
.rpgfy-browser-open-tab { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--mid); text-decoration: none; padding: 4px 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--white); transition: color .15s, border-color .15s; white-space: nowrap; }
.rpgfy-browser-open-tab:hover { color: var(--coral); border-color: var(--coral); }
.rpgfy-browser-open-tab svg { flex-shrink: 0; }
.rpgfy-redesign-nudge { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 900px; background: #fdf6ee; border: 1px solid #f5dfc0; border-radius: 12px; padding: 16px 20px; margin-bottom: 40px; }
.rpgfy-redesign-nudge-icon { font-size: 18px; color: var(--coral); flex-shrink: 0; }
.rpgfy-redesign-nudge-text { flex: 1; font-size: 14px; line-height: 1.5; color: var(--dark); }
.rpgfy-redesign-nudge-text strong { font-weight: 700; }
.rpgfy-redesign-nudge-cta { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--coral); text-decoration: none; white-space: nowrap; padding: 8px 14px; border: 1.5px solid var(--coral); border-radius: 8px; transition: background .15s, color .15s; }
.rpgfy-redesign-nudge-cta:hover { background: var(--coral); color: #fff; }
@media (max-width: 600px) { .rpgfy-preview-iframe { height: 70vh; min-height: 400px; } }
.rpgfy-m-nav { display: flex; align-items: center; justify-content: space-between; padding: 13px 24px; border-bottom: 1px solid var(--faint); }
.rpgfy-m-logo { display: flex; align-items: center; gap: 9px; }
.rpgfy-m-logo-sq { width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg,var(--coral),var(--amber)); flex-shrink: 0; }
.rpgfy-m-logo-text { display: flex; flex-direction: column; gap: 3px; }
.rpgfy-m-links { display: flex; gap: 14px; }
.rpgfy-sk { background: var(--faint); border-radius: 3px; display: block; animation: rpgfy-sk 2s ease infinite; }
.rpgfy-m-hero { padding: 36px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.rpgfy-m-hero-l { display: flex; flex-direction: column; gap: 9px; }
.rpgfy-m-hero-r { background: linear-gradient(135deg,#fde8df,#fef3ec); border-radius: 11px; height: 130px; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.rpgfy-m-fake-btn { width: 100px; height: 32px; border-radius: 7px; background: var(--coral); opacity: .9; display: block; }
.rpgfy-m-cards { padding: 22px 24px; border-top: 1px solid var(--faint); display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.rpgfy-m-card { background: var(--faint2); border-radius: 9px; padding: 13px; display: flex; flex-direction: column; gap: 7px; }
.rpgfy-m-card-icon { width: 26px; height: 26px; border-radius: 6px; }
/* pricing */
.rpgfy-pricing { width: 100%; max-width: 900px; }
.rpgfy-pricing-header { text-align: center; margin-bottom: 28px; }
.rpgfy-pricing-header h3 { font-size: clamp(22px,3vw,32px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.rpgfy-pricing-header p { font-size: 15px; color: var(--mid); }
.rpgfy-price-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.rpgfy-price-grid-2 { grid-template-columns: 1fr 1fr; }
.rpgfy-price-grid-3 { grid-template-columns: repeat(3,1fr); }
.rpgfy-price-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.rpgfy-price-card:hover { box-shadow: var(--shadow-md); }
.rpgfy-price-card-featured { border-color: var(--coral); box-shadow: var(--shadow-md); }
.rpgfy-pc-header { padding: 22px 22px 18px; border-bottom: 1px solid var(--faint); }
.rpgfy-pc-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 3px 9px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.rpgfy-badge-coral   { background: var(--coral-bg); color: var(--coral); }
.rpgfy-badge-purple  { background: var(--purple-bg); color: var(--purple); }
.rpgfy-badge-blue    { background: var(--blue-bg); color: var(--blue); }
.rpgfy-pc-name { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 5px; }
.rpgfy-pc-desc { font-size: 13px; color: var(--mid); line-height: 1.5; }
.rpgfy-pc-pricing { padding: 18px 22px; border-bottom: 1px solid var(--faint); }
.rpgfy-pc-price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 3px; }
.rpgfy-pc-amt { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.rpgfy-pc-per { font-size: 13px; color: var(--mid); }
.rpgfy-pc-orig { font-size: 12px; color: #b0aba3; text-decoration: line-through; margin-bottom: 10px; }
.rpgfy-pc-urgency { display: flex; align-items: center; gap: 6px; background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.2); border-radius: 7px; padding: 7px 10px; font-size: 11px; font-weight: 500; color: #8a6a1a; }
.rpgfy-urgency-purple { background: var(--purple-bg); border-color: rgba(124,58,237,.2); color: var(--purple); }
.rpgfy-urgency-blue   { background: var(--blue-bg); border-color: rgba(37,99,235,.2); color: var(--blue); }
.rpgfy-pc-feats { padding: 18px 22px; flex: 1; }
.rpgfy-pc-feat { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--mid); margin-bottom: 9px; line-height: 1.4; }
.rpgfy-pc-feat:last-child { margin-bottom: 0; }
.rpgfy-pc-check { width: 16px; height: 16px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 8px; flex-shrink: 0; margin-top: 1px; }
.rpgfy-pc-footer { padding: 14px 22px 22px; }
.rpgfy-pc-btn { width: 100%; border: none; border-radius: var(--radius-sm); padding: 13px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: background .15s, transform .1s; margin-bottom: 8px; }
.rpgfy-pc-btn:active { transform: scale(.99); }
.rpgfy-pc-btn-coral  { background: var(--coral); color: #fff; } .rpgfy-pc-btn-coral:hover  { background: var(--coral-h); }
.rpgfy-pc-btn-purple { background: var(--purple); color: #fff; } .rpgfy-pc-btn-purple:hover { background: #6d28d9; }
.rpgfy-pc-btn-blue   { background: var(--blue); color: #fff; }  .rpgfy-pc-btn-blue:hover   { background: #1d4ed8; }

/* trust row */
.rpgfy-trust-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.rpgfy-trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mid); }

/* ═══════════════════════════════════════════════════════════
   AUTH (LOGIN)
   ═══════════════════════════════════════════════════════════ */
.rpgfy-auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px; }
.rpgfy-auth-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.rpgfy-auth-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; margin-bottom: 32px; }
.rpgfy-auth-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.rpgfy-auth-sub { font-size: 14px; color: var(--mid); line-height: 1.6; margin-bottom: 28px; }
.rpgfy-auth-footer-note { margin-top: 20px; font-size: 13px; color: var(--mid); text-align: center; }
.rpgfy-auth-footer-note a { color: var(--coral); text-decoration: none; font-weight: 600; }
.rpgfy-auth-footer-note a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes rpgfy-fadein { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
.rpgfy-fadein { animation: rpgfy-fadein .4s ease both; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .rpgfy-price-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .rpgfy-price-grid-2, .rpgfy-price-grid-3 { grid-template-columns: 1fr; }
  .rpgfy-m-hero        { grid-template-columns: 1fr; }
  .rpgfy-m-hero-r      { display: none; }
  .rpgfy-m-cards       { grid-template-columns: 1fr 1fr; }
  .rpgfy-trust-row     { gap: 14px; }
}
@media (max-width: 540px) {
  .rpgfy-nav           { padding: 0 16px; }
  .rpgfy-orders-table th:nth-child(5),
  .rpgfy-orders-table td:nth-child(5) { display: none; }
  .rpgfy-footer { flex-direction: column; gap: 12px; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   PAGE TEMPLATE
   ═══════════════════════════════════════════════════════════ */
.rpgfy-page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 80px;
  min-height: 100vh;
}
.rpgfy-page-article {
  padding-top: 32px;
}
.rpgfy-page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.rpgfy-page-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.rpgfy-page-meta {
  font-size: 13px;
  color: var(--soft);
}

/* Prose content — the_content() output */
.rpgfy-page-content {
  font-size: 16px;
  line-height: 1.75;
  color: #2a2a28;
}
.rpgfy-page-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 40px 0 14px;
  color: var(--ink);
}
.rpgfy-page-content h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 28px 0 10px;
  color: var(--ink);
}
.rpgfy-page-content p {
  margin-bottom: 18px;
}
.rpgfy-page-content ul,
.rpgfy-page-content ol {
  margin: 0 0 18px 24px;
}
.rpgfy-page-content li {
  margin-bottom: 6px;
}
.rpgfy-page-content a {
  color: var(--coral);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.rpgfy-page-content a:hover {
  color: var(--coral-h);
}
.rpgfy-page-content strong {
  font-weight: 700;
  color: var(--ink);
}
.rpgfy-page-content em {
  font-style: italic;
}
.rpgfy-page-content blockquote {
  border-left: 3px solid var(--coral);
  margin: 24px 0;
  padding: 12px 20px;
  background: var(--faint2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--mid);
}
.rpgfy-page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}
.rpgfy-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 14px;
}
.rpgfy-page-content th {
  background: var(--faint2);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
}
.rpgfy-page-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.rpgfy-page-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--faint2);
  border: 1px solid var(--faint);
  border-radius: 4px;
  padding: 2px 6px;
}
.rpgfy-page-content pre {
  background: var(--ink);
  color: #f0eeea;
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 18px;
}
.rpgfy-page-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 13px;
}
.rpgfy-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════
   404 TEMPLATE
   ═══════════════════════════════════════════════════════════ */
.rpgfy-404-wrap {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}
.rpgfy-404-inner {
  max-width: 420px;
}
.rpgfy-404-code {
  font-size: clamp(80px, 18vw, 140px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--faint);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.rpgfy-404-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 12px;
}
.rpgfy-404-sub {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 36px;
}
.rpgfy-404-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rpgfy-404-actions .rpgfy-cta-sm {
  width: 100%;
  max-width: 280px;
}
.rpgfy-404-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  transition: color .15s;
}
.rpgfy-404-link:hover {
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   WORDPRESS ADMIN BAR OFFSET
   When an administrator is logged in, WP adds .admin-bar to
   <body> and renders a 32px toolbar (46px on mobile ≤782px).
   Push the fixed nav down so it sits below the toolbar.
   ═══════════════════════════════════════════════════════════ */
.admin-bar .rpgfy-nav {
  top: 32px;
}

.admin-bar .rpgfy-dash-sidebar {
  top: calc(56px + 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .rpgfy-nav {
    top: 46px;
  }

  .admin-bar .rpgfy-dash-sidebar {
    top: calc(56px + 46px);
  }
}

/* ── Submissions modal ─────────────────────────────────── */
.rpgfy-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:9999; display:flex; align-items:center; justify-content:center; padding:20px; }
.rpgfy-modal-box { background:#fff; border-radius:16px; width:100%; max-width:740px; max-height:88vh; display:flex; flex-direction:column; box-shadow:0 24px 64px rgba(0,0,0,.18); overflow:hidden; }
.rpgfy-modal-header { display:flex; align-items:flex-start; justify-content:space-between; padding:24px 28px 16px; border-bottom:1px solid var(--border); flex-shrink:0; }
.rpgfy-modal-title { margin:0 0 4px; font-size:18px; font-weight:800; color:var(--ink); }
.rpgfy-modal-sub { margin:0; font-size:13px; color:var(--mid); }
.rpgfy-modal-close { background:none; border:none; font-size:18px; color:var(--mid); cursor:pointer; padding:0; line-height:1; margin-top:2px; }
.rpgfy-modal-close:hover { color:var(--ink); }
.rpgfy-modal-toolbar { display:flex; align-items:center; justify-content:space-between; padding:12px 28px; border-bottom:1px solid var(--border); flex-shrink:0; }
.rpgfy-subs-count { font-size:13px; font-weight:600; color:var(--mid); }
.rpgfy-btn-outline-sm { font-size:12px; font-weight:600; color:var(--coral); border:1.5px solid var(--coral); border-radius:6px; padding:5px 12px; text-decoration:none; transition:background .15s,color .15s; }
.rpgfy-btn-outline-sm:hover { background:var(--coral); color:#fff; }
.rpgfy-subs-loading, .rpgfy-subs-empty, .rpgfy-subs-error { padding:40px 28px; text-align:center; font-size:14px; color:var(--mid); }
.rpgfy-subs-error { color:#dc2626; }
.rpgfy-subs-table-wrap { overflow:auto; flex:1; padding:0 28px 24px; }
.rpgfy-subs-table { width:100%; border-collapse:collapse; font-size:13px; }
.rpgfy-subs-table th { text-align:left; padding:10px 12px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--mid); border-bottom:1px solid var(--border); white-space:nowrap; }
.rpgfy-subs-table td { padding:10px 12px; border-bottom:1px solid #f3f1ee; vertical-align:top; color:var(--ink); }
.rpgfy-subs-table tr:last-child td { border-bottom:none; }
.rpgfy-subs-table tr:hover td { background:#fafaf9; }
.rpgfy-subs-msg { max-width:220px; white-space:pre-wrap; word-break:break-word; }
@media (max-width:600px) {
  .rpgfy-modal-box { max-height:95vh; border-radius:12px; }
  .rpgfy-modal-header, .rpgfy-modal-toolbar, .rpgfy-subs-table-wrap { padding-left:16px; padding-right:16px; }
}

/* ── Page name / slug field ────────────────────────────── */
.rpgfy-input-slug { display: flex; align-items: center; padding: 0; overflow: hidden; }
.rpgfy-slug-prefix { padding: 0 8px 0 14px; font-size: 12px; font-weight: 600; color: var(--mid); white-space: nowrap; font-family: var(--mono, monospace); flex-shrink: 0; }
.rpgfy-input-slug .rpgfy-input { border: none; padding-left: 4px; flex: 1; min-width: 0; box-shadow: none; }
.rpgfy-input-slug .rpgfy-input:focus { outline: none; box-shadow: none; }

/* ── Billing tab ────────────────────────────────────────── */
.rpgfy-billing-success-banner { display:flex; align-items:flex-start; gap:12px; background:#f0fdf4; border:1.5px solid #bbf7d0; border-radius:12px; padding:16px 20px; margin-bottom:24px; font-size:14px; }
.rpgfy-billing-error-banner { display:flex; align-items:flex-start; gap:12px; background:#fef2f2; border:1.5px solid #fecaca; border-radius:12px; padding:16px 20px; margin-bottom:24px; font-size:14px; }
.rpgfy-billing-error-banner span { font-size:22px; flex-shrink:0; }
.rpgfy-billing-error-banner strong { display:block; font-weight:700; color:#b91c1c; margin-bottom:2px; }
.rpgfy-billing-success-banner span { font-size:22px; flex-shrink:0; }
.rpgfy-billing-success-banner strong { font-weight:700; color:#15803d; margin-bottom:2px; }
.rpgfy-billing-block { background:#fff; border:1.5px solid var(--border); border-radius:12px; padding:24px; margin-bottom:20px; }
.rpgfy-billing-block-title { font-size:15px; font-weight:700; color:var(--ink); margin:0 0 16px; }
.rpgfy-billing-block-footer { margin-top:16px; padding-top:16px; border-top:1px solid var(--border); }
.rpgfy-billing-loading { font-size:13px; color:var(--mid); padding:8px 0; }
.rpgfy-billing-empty-row { font-size:13px; color:var(--mid); padding:12px 0; }
/* Subscription rows */
/* ── Billing block header ── */
.rpgfy-billing-block-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.rpgfy-billing-err { color:#dc2626; font-size:13px; margin:8px 0 0; }
.rpgfy-billing-empty-row { padding:20px 0; font-size:14px; color:var(--mid); }

/* ── Subscriptions ── */
.rpgfy-sub-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; border-bottom:1px solid #f3f1ee; }
.rpgfy-sub-row:last-child { border-bottom:none; }
.rpgfy-sub-info { flex:1; min-width:0; }
.rpgfy-sub-name { font-size:14px; font-weight:700; color:var(--ink); }
.rpgfy-sub-renew { font-size:12px; color:var(--mid); margin-top:3px; }
.rpgfy-sub-right { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.rpgfy-sub-price { font-size:13px; font-weight:700; color:var(--ink); white-space:nowrap; }
.rpgfy-sub-badge { font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; text-transform:capitalize; letter-spacing:.03em; white-space:nowrap; }
.rpgfy-badge-active    { background:#dcfce7; color:#15803d; }
.rpgfy-badge-canceled  { background:#fee2e2; color:#b91c1c; }
.rpgfy-badge-canceling { background:#fef9c3; color:#854d0e; }
.rpgfy-badge-other     { background:#f1f5f9; color:#64748b; }
.rpgfy-sub-action-btn { font-size:12px; font-weight:600; border:none; border-radius:6px; padding:5px 12px; cursor:pointer; transition:background .15s; white-space:nowrap; }
.rpgfy-sub-cancel-btn { background:#fee2e2; color:#b91c1c; }
.rpgfy-sub-cancel-btn:hover:not(:disabled) { background:#fecaca; }
.rpgfy-sub-reactivate-btn { background:#dcfce7; color:#15803d; }
.rpgfy-sub-reactivate-btn:hover:not(:disabled) { background:#bbf7d0; }
.rpgfy-sub-action-btn:disabled { opacity:.5; cursor:not-allowed; }

/* ── Payment methods ── */
.rpgfy-pm-row { display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid #f3f1ee; }
.rpgfy-pm-row:last-child { border-bottom:none; }
.rpgfy-pm-brand { display:inline-flex; align-items:center; justify-content:center; width:44px; height:28px; border-radius:5px; font-size:10px; font-weight:800; color:#fff; letter-spacing:.02em; flex-shrink:0; }
.rpgfy-pm-info { flex:1; min-width:0; }
.rpgfy-pm-name { font-size:14px; font-weight:700; color:var(--ink); }
.rpgfy-pm-meta { font-size:12px; color:var(--mid); margin-top:3px; }
.rpgfy-pm-default-tag { display:inline-block; font-size:10px; font-weight:700; background:#dbeafe; color:#1d4ed8; border-radius:10px; padding:1px 7px; margin-left:6px; vertical-align:middle; letter-spacing:.03em; }
.rpgfy-pm-actions { display:flex; gap:8px; flex-shrink:0; }
.rpgfy-pm-btn { font-size:12px; font-weight:600; border:none; border-radius:6px; padding:5px 12px; cursor:pointer; transition:background .15s; white-space:nowrap; }
.rpgfy-pm-default-btn { background:#f1f5f9; color:var(--ink); }
.rpgfy-pm-default-btn:hover:not(:disabled) { background:#e2e8f0; }
.rpgfy-pm-remove-btn { background:#fee2e2; color:#b91c1c; }
.rpgfy-pm-remove-btn:hover:not(:disabled) { background:#fecaca; }
.rpgfy-pm-btn:disabled { opacity:.5; cursor:not-allowed; }

/* ── Add card button & form ── */
.rpgfy-bm-add-btn { font-size:13px; font-weight:700; color:var(--coral); background:none; border:1.5px solid var(--coral); border-radius:8px; padding:6px 14px; cursor:pointer; transition:background .15s,color .15s; }
.rpgfy-bm-add-btn:hover:not(:disabled) { background:var(--coral); color:#fff; }
.rpgfy-bm-add-btn:disabled { opacity:.5; cursor:not-allowed; }
.rpgfy-add-pm-form { margin-top:20px; border-top:1.5px solid #f0ece7; padding-top:20px; }
.rpgfy-add-pm-inner { max-width:460px; }
.rpgfy-add-pm-label { font-size:12px; font-weight:700; color:var(--mid); text-transform:uppercase; letter-spacing:.06em; margin:0 0 10px; }
.rpgfy-setup-element-wrap { min-height:80px; }
.rpgfy-add-pm-status { font-size:13px; color:var(--mid); margin:8px 0 0; }
.rpgfy-add-pm-error  { font-size:13px; color:#dc2626; margin:8px 0 0; }
.rpgfy-add-pm-actions { display:flex; gap:10px; margin-top:16px; }
.rpgfy-bm-save-btn { font-size:14px; font-weight:800; background:var(--coral); color:#fff; border:none; border-radius:10px; padding:10px 22px; cursor:pointer; transition:opacity .15s; }
.rpgfy-bm-save-btn:hover:not(:disabled) { opacity:.88; }
.rpgfy-bm-save-btn:disabled { opacity:.5; cursor:not-allowed; }
.rpgfy-bm-cancel-btn { font-size:14px; font-weight:600; background:#f1f5f9; color:var(--ink); border:none; border-radius:10px; padding:10px 18px; cursor:pointer; transition:background .15s; }
.rpgfy-bm-cancel-btn:hover { background:#e2e8f0; }

/* ── Cancel confirmation dialog ── */
.rpgfy-dialog-overlay { position:fixed; inset:0; background:rgba(15,15,15,.6); z-index:99999; display:flex; align-items:center; justify-content:center; padding:20px; backdrop-filter:blur(3px); }
.rpgfy-dialog-overlay.rpgfy-hidden { display:none; }
.rpgfy-dialog-box { background:#fff; border-radius:16px; padding:32px; max-width:420px; width:100%; box-shadow:0 24px 60px rgba(0,0,0,.18); }
.rpgfy-dialog-title { font-size:18px; font-weight:800; color:var(--ink); margin:0 0 10px; }
.rpgfy-dialog-body { font-size:14px; color:var(--mid); line-height:1.6; margin:0 0 24px; }
.rpgfy-dialog-actions { display:flex; gap:10px; flex-wrap:wrap; }
.rpgfy-dialog-confirm { font-size:14px; font-weight:700; background:#fee2e2; color:#b91c1c; border:none; border-radius:10px; padding:10px 20px; cursor:pointer; transition:background .15s; }
.rpgfy-dialog-confirm:hover:not(:disabled) { background:#fecaca; }
.rpgfy-dialog-confirm:disabled { opacity:.5; cursor:not-allowed; }
.rpgfy-dialog-dismiss { font-size:14px; font-weight:600; background:#f1f5f9; color:var(--ink); border:none; border-radius:10px; padding:10px 20px; cursor:pointer; transition:background .15s; }
.rpgfy-dialog-dismiss:hover { background:#e2e8f0; }

/* ── Checkout modal ─────────────────────────────────────── */
.rpgfy-co-overlay { position:fixed; inset:0; background:rgba(15,15,15,.65); z-index:99999; display:flex; align-items:center; justify-content:center; padding:16px; backdrop-filter:blur(4px); animation:rpgfy-fade-in .18s ease; }
.rpgfy-co-overlay.rpgfy-hidden { display:none; }
@keyframes rpgfy-fade-in { from{opacity:0} to{opacity:1} }
.rpgfy-co-box { background:#fff; border-radius:20px; width:100%; max-width:820px; display:flex; overflow:hidden; box-shadow:0 32px 80px rgba(0,0,0,.22); height:min(680px,92vh); position:relative; animation:rpgfy-slide-up .22s ease; }
@keyframes rpgfy-slide-up { from{transform:translateY(24px);opacity:0} to{transform:translateY(0);opacity:1} }
.rpgfy-co-close { position:absolute; top:16px; right:18px; background:none; border:none; font-size:22px; color:#94a3b8; cursor:pointer; z-index:2; line-height:1; padding:4px 6px; border-radius:6px; }
.rpgfy-co-close:hover { background:#f1f5f9; color:#1e293b; }
/* Left panel */
.rpgfy-co-left { flex:0 0 280px; padding:40px 28px 40px 36px; background:#1a1a1a; border-right:none; display:flex; flex-direction:column; overflow-y:auto; }
.rpgfy-co-plan-badge { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#e8604c; background:rgba(232,96,76,0.15); border-radius:20px; padding:4px 12px; margin-bottom:14px; width:fit-content; }
.rpgfy-co-plan-name { font-size:20px; font-weight:800; color:#ffffff; line-height:1.2; margin-bottom:10px; }
.rpgfy-co-price-row { display:flex; align-items:baseline; gap:4px; margin-bottom:20px; }
.rpgfy-co-price { font-size:38px; font-weight:900; color:#ffffff; letter-spacing:-.02em; }
.rpgfy-co-per { font-size:15px; color:rgba(255,255,255,0.5); font-weight:500; }
.rpgfy-co-feats { list-style:none; margin:0 0 auto; padding:0; display:flex; flex-direction:column; gap:9px; }
.rpgfy-co-feats li { display:flex; align-items:flex-start; gap:9px; font-size:13px; color:rgba(255,255,255,0.7); line-height:1.45; }
.rpgfy-co-check { color:#e8604c; font-weight:800; font-size:13px; flex-shrink:0; margin-top:1px; }

/* Right panel */
.rpgfy-co-right { flex:1; padding:0; display:flex; flex-direction:column; min-width:0; overflow:hidden; }
.rpgfy-co-right-header { padding:28px 32px 0; flex-shrink:0; }
.rpgfy-co-right-title { font-size:15px; font-weight:700; color:#0f172a; margin-bottom:14px; }
.rpgfy-co-right-summary { padding:0 32px 16px; flex-shrink:0; }
.rpgfy-co-right-footer { padding:16px 32px 24px; flex-shrink:0; border-top:1.5px solid #f0ece7; display:flex; flex-direction:column; gap:12px; background:#fff; }
#rpgfy-co-element-label { padding:0 32px 10px; flex-shrink:0; font-size:12px; font-weight:600; color:#64748b; text-transform:uppercase; letter-spacing:.06em; }
.rpgfy-co-summary { background:#f8f9fa; border:1.5px solid #e8e8e3; border-radius:12px; padding:14px 16px; }
.rpgfy-co-sum-row { display:flex; justify-content:space-between; align-items:baseline; font-size:14px; font-weight:600; color:#0f172a; gap:8px; }
.rpgfy-co-sum-price { white-space:nowrap; }
.rpgfy-co-sum-price small { font-size:11px; font-weight:500; color:#64748b; margin-left:1px; }
.rpgfy-co-sum-note { margin-top:6px; font-size:12px; color:#94a3b8; }
/* Stripe Element container */
#rpgfy-co-element-wrap { flex:1; overflow-y:auto; padding:0 32px; min-height:0; }
.rpgfy-co-element-status { font-size:13px; color:#94a3b8; margin:0; }
.rpgfy-co-element-status.rpgfy-hidden { display:none; }
/* Pay button */
.rpgfy-co-pay-btn { width:100%; padding:15px; border:none; border-radius:12px; color:#fff; font-size:16px; font-weight:800; cursor:pointer; letter-spacing:-.01em; transition:opacity .15s,transform .1s; }
.rpgfy-co-pay-btn:hover:not(:disabled) { opacity:.9; transform:translateY(-1px); }
.rpgfy-co-pay-btn:disabled { opacity:.5; cursor:not-allowed; transform:none; }
.rpgfy-co-secure { font-size:11px; color:#b0b8c4; display:flex; align-items:flex-start; gap:6px; line-height:1.5; margin:0; }
.rpgfy-co-error { color:#dc2626; font-size:13px; margin:0; }
.rpgfy-co-error.rpgfy-hidden { display:none; }
/* Post-purchase success banner on preview page */
.rpgfy-purchase-success-banner { display:flex; align-items:flex-start; gap:14px; background:#f0fdf4; border:1.5px solid #bbf7d0; border-radius:14px; padding:20px 24px; margin-bottom:28px; }
.rpgfy-psb-icon { font-size:28px; flex-shrink:0; }
.rpgfy-psb-body strong { display:block; font-size:16px; font-weight:800; color:#15803d; margin-bottom:4px; }
.rpgfy-psb-body p { font-size:14px; color:#334155; margin:0 0 10px; }
.rpgfy-psb-link { font-size:13px; font-weight:700; color:#15803d; text-decoration:none; }
.rpgfy-psb-link:hover { text-decoration:underline; }
@media (max-width: 640px) {
  .rpgfy-co-overlay { align-items:flex-end; padding:0; }
  .rpgfy-co-box { flex-direction:column; height:auto; max-height:92vh; border-radius:16px 16px 0 0; overflow-y:auto; }
  .rpgfy-co-left { flex:none; overflow-y:visible; padding:24px 20px 16px; border-right:none; border-bottom:1.5px solid rgba(255,255,255,0.1); }
  .rpgfy-co-right { flex:none; overflow:visible; }
  #rpgfy-co-element-wrap { flex:none; overflow-y:visible; padding:0 20px; }
  .rpgfy-co-right-header { padding:20px 20px 0; }
  .rpgfy-co-right-summary { padding:0 20px 12px; }
  #rpgfy-co-element-label { padding:0 20px 8px; }
  .rpgfy-co-right-footer { padding:12px 20px 20px; }
}

/* ── Domains tab ───────────────────────────────────────── */
.rpgfy-domains-loading { display:flex; align-items:center; gap:10px; color:var(--mid); font-size:14px; padding:32px 0; }
.rpgfy-domains-empty, .rpgfy-domains-error { font-size:14px; color:var(--mid); padding:32px 0; }
.rpgfy-domains-error { color:#dc2626; }
.rpgfy-domains-wrap { }
.rpgfy-domains-table { width:100%; border-collapse:collapse; background:var(--white); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.rpgfy-domains-table th { padding:11px 16px; text-align:left; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--soft); background:var(--faint2); border-bottom:1px solid var(--border); }
.rpgfy-domains-table td { padding:13px 16px; border-bottom:1px solid var(--faint); vertical-align:middle; font-size:13.5px; }
.rpgfy-domains-table tbody tr:last-child td { border-bottom:none; }
.rpgfy-domains-table tbody tr:hover td { background:var(--faint2); }
.rpgfy-domain-name a { font-weight:600; color:var(--ink); text-decoration:none; }
.rpgfy-domain-name a:hover { color:var(--coral); text-decoration:underline; }
.rpgfy-domain-badge { display:inline-block; margin-left:8px; padding:2px 7px; border-radius:20px; font-size:10px; font-weight:700; letter-spacing:.04em; vertical-align:middle; }
.rpgfy-domain-badge-live    { background:#dcfce7; color:#15803d; }
.rpgfy-domain-badge-pending { background:#fef9c3; color:#a16207; }
.rpgfy-provider-chip { display:inline-block; padding:3px 10px; background:var(--faint2); border:1px solid var(--border); border-radius:20px; font-size:12px; font-weight:600; color:var(--ink); }
.rpgfy-domain-ns { font-size:12px; color:var(--mid); font-family:'JetBrains Mono', monospace; }
.rpgfy-domain-checked { font-size:12px; color:var(--soft); white-space:nowrap; }
.rpgfy-domain-refresh { background:none; border:1px solid var(--border); border-radius:6px; padding:5px 7px; cursor:pointer; color:var(--mid); display:flex; align-items:center; transition:border-color .15s,color .15s; }
.rpgfy-domain-refresh:hover { border-color:var(--coral); color:var(--coral); }
.rpgfy-domain-refresh:disabled { opacity:.5; cursor:not-allowed; }

/* ── GoDaddy integration card ──────────────────────────── */
.rpgfy-gd-card { grid-column: 1 / -1; }
.rpgfy-gd-card-header { display:flex; align-items:flex-start; gap:12px; margin-bottom:20px; }
.rpgfy-gd-logo { width:36px; height:36px; flex-shrink:0; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:8px; display:flex; align-items:center; justify-content:center; }
.rpgfy-gd-sub { font-size:13px; color:var(--mid); margin:3px 0 0; }
.rpgfy-gd-sub code { background:var(--faint2); padding:1px 5px; border-radius:4px; font-size:12px; }
.rpgfy-gd-badge { margin-left:auto; flex-shrink:0; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700; white-space:nowrap; }
.rpgfy-gd-badge-connected    { background:#dcfce7; color:#15803d; }
.rpgfy-gd-badge-disconnected { background:#f1f5f9; color:#64748b; }
.rpgfy-gd-instructions { font-size:13px; color:var(--mid); margin:0 0 16px; }
.rpgfy-gd-instructions a { color:var(--coral); }
.rpgfy-gd-instructions code { background:var(--faint2); padding:1px 5px; border-radius:4px; font-size:12px; }
/* API Token card */
.rpgfy-api-token-row { display:flex; gap:8px; align-items:center; }
.rpgfy-api-token-input { font-family:monospace; font-size:12px; letter-spacing:.02em; color:var(--mid); background:var(--faint2); flex:1; min-width:0; }
/* Domains table — CNAME column */
.rpgfy-domain-cname { font-size:13px; }
.rpgfy-lp-url { color:var(--coral); text-decoration:none; font-weight:600; font-size:12px; }
.rpgfy-lp-url:hover { text-decoration:underline; }
.rpgfy-cname-url { font-size:12px; color:var(--mid); font-family:'JetBrains Mono', monospace; }
.rpgfy-cname-pending { color:#a16207; }
.rpgfy-cname-error { font-size:12px; color:#dc2626; }
.rpgfy-btn-link { background:none; border:none; padding:0; cursor:pointer; color:var(--coral); font-size:12px; font-weight:600; text-decoration:underline; }
.rpgfy-btn-link:hover { color:var(--coral-h); }
.rpgfy-btn-secondary { background:var(--white); border:1.5px solid var(--border); color:var(--ink); padding:8px 16px; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; transition:border-color .15s, color .15s; text-decoration: none; display: inline-flex; align-items: center; }
.rpgfy-btn-secondary:hover { border-color:var(--ink); color: var(--ink); }
.rpgfy-btn-sm { padding:6px 12px; font-size:12px; }

/* ── Inline GoDaddy status in DNS Provider cell ─────────── */
.rpgfy-domain-provider { white-space: nowrap; }
.rpgfy-gd-status { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; margin-left:7px; vertical-align:middle; white-space:nowrap; }
.rpgfy-gd-status-ok   { color:#16a34a; }
.rpgfy-gd-status-warn { color:#d97706; text-decoration:none; cursor:pointer; }
.rpgfy-gd-status-warn:hover { text-decoration:underline; }

/* ── Revision modal ──────────────────────────────────────── */
.rpgfy-modal-overlay { position:fixed; inset:0; background:rgba(17,17,16,.55); z-index:1100; display:flex; align-items:center; justify-content:center; padding:16px; backdrop-filter:blur(2px); }
.rpgfy-modal { background:var(--white); border-radius:16px; width:100%; max-width:520px; box-shadow:0 24px 64px rgba(0,0,0,.18); display:flex; flex-direction:column; max-height:90vh; overflow:hidden; }
.rpgfy-modal-header { display:flex; align-items:center; justify-content:space-between; padding:20px 24px 16px; border-bottom:1px solid var(--border); flex-shrink:0; }
.rpgfy-modal-title { font-size:16px; font-weight:700; color:var(--ink); margin:0; }
.rpgfy-modal-close { background:none; border:none; font-size:20px; line-height:1; color:var(--mid); cursor:pointer; padding:4px 6px; border-radius:6px; }
.rpgfy-modal-close:hover { background:var(--faint2); color:var(--ink); }
.rpgfy-modal-body { padding:20px 24px; overflow-y:auto; flex:1; }
.rpgfy-modal-footer { display:flex; gap:10px; justify-content:flex-end; padding:16px 24px; border-top:1px solid var(--border); flex-shrink:0; }
.rpgfy-revise-subtitle { font-size:13px; color:var(--mid); margin:0 0 16px; }
.rpgfy-revise-details { margin-top:16px; }
.rpgfy-revise-summary { font-size:13px; font-weight:600; color:var(--mid); cursor:pointer; user-select:none; list-style:none; display:flex; align-items:center; gap:6px; }
.rpgfy-revise-summary::before { content:'›'; font-size:16px; display:inline-block; transition:transform .15s; }
details[open] .rpgfy-revise-summary::before { transform:rotate(90deg); }
.rpgfy-revise-summary::-webkit-details-marker { display:none; }
.rpgfy-revise-advanced-fields { padding-top:14px; display:flex; flex-direction:column; gap:12px; }
.rpgfy-textarea { resize:vertical; min-height:80px; font-family:inherit; }

/* ══════════════════════════════════════════════════════════
   REDESIGN STUDIO — full-screen split layout
   ══════════════════════════════════════════════════════════ */

/* Studio is full viewport, sits under fixed nav */
.rpgfy-studio {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px); /* subtract nav height */
  margin-top: 60px;
  overflow: hidden;
}

/* ── Top bar ────────────────────────────────────────────── */
.rpgfy-studio-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: 52px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.rpgfy-studio-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  transition: color .15s;
  flex-shrink: 0;
}
.rpgfy-studio-back:hover { color: var(--ink); }

.rpgfy-studio-topbar-center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rpgfy-studio-topbar-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rpgfy-studio-topbar-revs {
  font-size: 11px;
  font-weight: 600;
  color: var(--mid);
  background: var(--faint2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px 9px;
  flex-shrink: 0;
}
.rpgfy-studio-tone-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--coral);
  background: var(--coral-bg);
  border: 1px solid var(--coral);
  border-radius: 99px;
  padding: 2px 9px;
  flex-shrink: 0;
  text-transform: capitalize;
}

.rpgfy-studio-type-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  flex-shrink: 0;
}

.rpgfy-studio-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rpgfy-studio-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: color .15s, border-color .15s;
}
.rpgfy-studio-btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

.rpgfy-studio-btn-coral {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  padding: 6px 14px;
  background: var(--coral);
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.rpgfy-studio-btn-coral:hover { background: var(--coral-h); }

/* ── Body split ─────────────────────────────────────────── */
.rpgfy-studio-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Left: canvas ───────────────────────────────────────── */
.rpgfy-studio-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--faint2);
  border-right: 1px solid var(--border);
}

.rpgfy-studio-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #f3f1ee;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.rpgfy-studio-iframe-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.rpgfy-studio-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  background: var(--white);
}

.rpgfy-studio-generating {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--faint2);
}

.rpgfy-studio-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: rpgfy-spin 0.8s linear infinite;
}
@keyframes rpgfy-spin { to { transform: rotate(360deg); } }

.rpgfy-studio-gen-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.rpgfy-studio-gen-sub {
  font-size: 13px;
  color: var(--mid);
}

/* ── Right: panel ───────────────────────────────────────── */
.rpgfy-studio-panel {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--white);
}

.rpgfy-studio-panel-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.rpgfy-studio-poll-msg {
  font-size: 11px;
  color: var(--mid);
  font-style: italic;
}

.rpgfy-studio-panel-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.rpgfy-studio-form-section { border-bottom: none; }
.rpgfy-studio-history-section {
  border-top: 1px solid var(--border);
  border-bottom: none;
  padding-top: 14px;
}

.rpgfy-studio-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 14px;
}

/* ── Collapsible panel sections ──────────────────────────────────────────── */
.rpgfy-studio-collapsible {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 2px;
}
.rpgfy-studio-collapsible:first-of-type { border-top: none; }
.rpgfy-studio-collapsible-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.rpgfy-studio-collapsible-summary::-webkit-details-marker { display: none; }
.rpgfy-studio-collapsible-summary .rpgfy-studio-section-label { margin-bottom: 0; }
.rpgfy-studio-collapsible-summary::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--soft);
  border-bottom: 1.5px solid var(--soft);
  transform: rotate(45deg);
  transition: transform .2s;
  flex-shrink: 0;
  margin-right: 2px;
}
details.rpgfy-studio-collapsible[open] > .rpgfy-studio-collapsible-summary::after {
  transform: rotate(-135deg);
}
details.rpgfy-studio-collapsible[open] > .rpgfy-studio-collapsible-summary { margin-bottom: 12px; }

/* ── Token history panel ─────────────────────────────────────────────────── */
.rpgfy-studio-th-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.rpgfy-studio-th-row:last-child { border-bottom: none; }
.rpgfy-studio-th-label {
  color: var(--ink);
  flex: 1;
  line-height: 1.4;
}
.rpgfy-studio-th-cost {
  color: var(--coral);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.rpgfy-studio-th-empty {
  font-size: 12px;
  color: var(--soft);
  padding: 6px 0;
}

/* ── Timeline ───────────────────────────────────────────── */
.rpgfy-studio-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rpgfy-studio-tl-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-radius: 6px;
  transition: background .12s;
}
.rpgfy-studio-tl-item[data-version] { cursor: pointer; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.rpgfy-studio-tl-item[data-version]:hover { background: var(--faint); }
.rpgfy-studio-tl-item:last-child { padding-bottom: 0; }

.rpgfy-studio-tl-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 2px;
}

.rpgfy-studio-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: background .15s;
}
.rpgfy-studio-tl-dot-active {
  background: var(--coral);
  border-color: var(--coral);
}
.rpgfy-studio-tl-dot-spinning {
  background: transparent;
  border: 2px solid var(--border);
  border-top-color: var(--coral);
  animation: rpgfy-spin .7s linear infinite;
}

.rpgfy-studio-tl-line {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
  min-height: 12px;
}
.rpgfy-studio-tl-item:last-child .rpgfy-studio-tl-line { display: none; }

.rpgfy-studio-tl-body {
  flex: 1;
  min-width: 0;
  padding-bottom: 4px;
}

.rpgfy-studio-tl-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.rpgfy-studio-tl-current .rpgfy-studio-tl-label { color: var(--ink); }

.rpgfy-studio-tl-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(22,163,74,.2);
}
.rpgfy-studio-tl-badge-gen {
  background: #fffbeb;
  color: #92400e;
  border-color: rgba(245,166,35,.3);
}

.rpgfy-studio-tl-time {
  font-size: 11px;
  color: var(--soft);
  margin-top: 2px;
}

.rpgfy-studio-tl-note {
  font-size: 12px;
  color: var(--mid);
  margin-top: 4px;
  line-height: 1.5;
  font-style: italic;
  overflow: hidden;
  max-height: 200px;
  transition: max-height .25s ease, opacity .2s ease, margin-top .2s ease;
  opacity: 1;
}
.rpgfy-studio-tl-note-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

/* ── Form fields ────────────────────────────────────────── */
.rpgfy-studio-field {
  margin-bottom: 14px;
}
.rpgfy-studio-field:last-child { margin-bottom: 0; }

.rpgfy-studio-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 6px;
}

.rpgfy-studio-field-textarea {
  width: 100%;
  box-sizing: border-box;
}
.rpgfy-studio-field-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--faint2);
  border: 1.5px solid var(--faint);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.rpgfy-studio-field-input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-ring);
  background: var(--white);
}

/* Advanced details */
.rpgfy-studio-advanced {
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.rpgfy-studio-advanced-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  background: var(--faint2);
  transition: background .15s;
}
.rpgfy-studio-advanced-summary:hover { background: var(--faint); }
.rpgfy-studio-advanced-summary::-webkit-details-marker { display: none; }
.rpgfy-studio-advanced-summary::before {
  content: '›';
  font-size: 15px;
  transition: transform .15s;
  color: var(--soft);
}
details[open].rpgfy-studio-advanced .rpgfy-studio-advanced-summary::before { transform: rotate(90deg); }

.rpgfy-studio-advanced-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Submit button */
.rpgfy-studio-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  margin-top: 4px;
}
.rpgfy-studio-submit-btn:hover:not(:disabled) { background: var(--coral-h); }
.rpgfy-studio-submit-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Pending tl item animation */
.rpgfy-studio-tl-pending .rpgfy-studio-tl-label { color: var(--mid); }

/* Loading indicator while revisions fetch from server */
.rpgfy-studio-tl-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}
.rpgfy-studio-tl-loading-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  animation: rpgfy-tl-pulse 1.2s ease-in-out infinite;
}
@keyframes rpgfy-tl-pulse {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50%       { opacity: 1;  transform: scale(1.2); }
}

/* "viewing" badge — shown when a non-latest revision is selected */
.rpgfy-studio-tl-badge-viewing {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Responsive */
@media (max-width: 900px) {
  .rpgfy-studio { height: auto; overflow: visible; }
  .rpgfy-studio-body { flex-direction: column; overflow: visible; }
  .rpgfy-studio-canvas { height: 70vh; min-height: 400px; border-right: none; border-bottom: 1px solid var(--border); }
  .rpgfy-studio-panel { width: 100%; overflow-y: visible; }
}

/* ── Before / After comparison (preview page) ─────────────────── */
.rpgfy-compare-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.rpgfy-compare-label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.rpgfy-compare-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}
.rpgfy-compare-label-before {
  background: var(--faint);
  color: var(--soft);
}
.rpgfy-compare-label-after {
  background: rgba(232,71,10,.1);
  color: var(--coral);
}
.rpgfy-compare-arrow {
  font-size: 18px;
  color: var(--mid);
}
.rpgfy-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.rpgfy-compare-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.rpgfy-compare-frame-after {
  border-color: var(--coral);
  box-shadow: 0 4px 24px rgba(232,71,10,.15);
}
.rpgfy-compare-bar {
  background: #f3f1ee;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rpgfy-compare-bar-after {
  background: #fff5f2;
  border-bottom-color: rgba(232,71,10,.2);
}
.rpgfy-compare-url {
  font-size: 11px;
  color: var(--soft);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rpgfy-compare-new-badge {
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: .04em;
}
.rpgfy-compare-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--faint);
  position: relative;
}
.rpgfy-compare-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .4s ease;
}
.rpgfy-compare-frame:hover .rpgfy-compare-img-wrap img {
  transform: translateY(-5%);
}
@media (max-width: 700px) {
  .rpgfy-compare-grid { grid-template-columns: 1fr; }
  .rpgfy-compare-arrow { transform: rotate(90deg); }
}

/* ── Dashboard card thumbnail ──────────────────────────────────── */
.rpgfy-design-card-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--faint);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.rpgfy-design-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .35s ease;
}
.rpgfy-design-card:hover .rpgfy-design-card-thumb img {
  transform: scale(1.04);
}
.rpgfy-design-card-thumb-empty { display: flex; align-items: center; justify-content: center; background: var(--faint); }
.rpgfy-design-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.rpgfy-design-card-thumb-overlay span {
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s;
}
.rpgfy-design-card:hover .rpgfy-design-card-thumb-overlay {
  background: rgba(0,0,0,.25);
}
.rpgfy-design-card:hover .rpgfy-design-card-thumb-overlay span {
  opacity: 1;
  transform: translateY(0);
}

/* ── Multi-page: sitemap panel in redesign studio ──────────────────────────── */

.rpgfy-studio-pages-section {
  border-bottom: none;
}

.rpgfy-studio-pages-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rpgfy-studio-pages-loading {
  padding: 4px 0 6px;
}

.rpgfy-studio-page-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  transition: background .1s;
  cursor: default;
}

.rpgfy-studio-page-row:hover {
  background: var(--faint2);
}

.rpgfy-studio-page-row-active {
  background: var(--coral-bg);
}

.rpgfy-studio-page-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rpgfy-studio-page-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rpgfy-studio-page-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 2px 7px;
  border-radius: 99px;
}

.rpgfy-studio-page-badge-ready {
  background: var(--green-bg);
  color: var(--green);
}

.rpgfy-studio-page-badge-processing {
  background: var(--faint2);
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 5px;
}

.rpgfy-studio-page-btn {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}

.rpgfy-studio-page-btn:hover {
  border-color: var(--ink);
}

.rpgfy-studio-page-btn:disabled {
  opacity: .5;
  cursor: default;
}

.rpgfy-studio-page-btn-redesign {
  border-color: var(--coral-ring);
  color: var(--coral);
  background: var(--coral-bg);
}

.rpgfy-studio-page-btn-redesign:hover {
  border-color: var(--coral);
  background: rgba(232,71,10,.14);
}

/* ── Dashboard: multi-page badge on design cards ────────────────────────────── */

.rpgfy-design-card-pages-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--coral-bg);
  color: var(--coral);
  border: 1px solid var(--coral-ring);
  white-space: nowrap;
}

/* ── Dashboard: child pages list inside project card ───────────────────────── */

.rpgfy-design-card-pages {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rpgfy-design-card-page-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 0;
}

.rpgfy-design-card-page-label {
  font-size: 11.5px;
  color: var(--mid);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rpgfy-design-card-page-label::before {
  content: '↳ ';
  color: var(--soft);
}

.rpgfy-design-card-page-btn {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid var(--coral-ring);
  border-radius: var(--radius-sm);
  background: var(--coral-bg);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}

.rpgfy-design-card-page-btn:hover {
  border-color: var(--coral);
  background: rgba(232,71,10,.14);
}

.rpgfy-design-card-page-status {
  font-size: 10.5px;
  color: var(--mid);
  font-style: italic;
  flex-shrink: 0;
}

.rpgfy-design-card-page-status-failed {
  color: var(--red, #dc2626);
}

/* ── Pages section header with + Add page button ─────────────────────────── */
.rpgfy-studio-pages-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.rpgfy-studio-pages-header .rpgfy-studio-section-label { margin-bottom: 0; }

.rpgfy-studio-add-page-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--coral);
  background: none;
  border: 1px solid var(--coral-ring);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}
.rpgfy-studio-add-page-btn:hover {
  background: var(--coral-bg);
  border-color: var(--coral);
}

/* ── New page inline form ─────────────────────────────────────────────────── */
.rpgfy-studio-new-page-form {
  background: var(--faint2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rpgfy-studio-new-page-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.rpgfy-studio-new-page-cancel { font-size: 12px; padding: 6px 12px; }
.rpgfy-studio-new-page-submit { font-size: 12px; padding: 6px 14px; }

/* Plugin download nav link */
.rpgfy-nav-plugin-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--coral) !important; border: 1.5px solid var(--coral); border-radius: 6px; padding: 5px 11px; text-decoration: none; transition: background .15s, color .15s; }
.rpgfy-nav-plugin-link:hover { background: var(--coral); color: #fff !important; }

/* Inline link-style button (resend email etc) */
.rpgfy-link-btn { background: none; border: none; padding: 0; font: inherit; font-size: inherit; color: var(--coral); font-weight: 600; cursor: pointer; text-decoration: underline; }
.rpgfy-link-btn:hover { opacity: .8; }

/* ═══════════════════════════════════════════════════════════
   GLOBAL MOBILE — repagify.com
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Nav */
  .rpgfy-nav { padding: 0 12px; }
  .rpgfy-nav-brand .rpgfy-nav-tagline { display: none; }
  .rpgfy-nav-user { display: none; }
  .rpgfy-nav-link { display: none; }
  .rpgfy-nav-btn-outline { display: none; }
  .rpgfy-nav-plugin-link { font-size: 11px; padding: 4px 8px; }
  .rpgfy-logo-img { height: 26px; }

  /* Footer */
  .rpgfy-footer { flex-direction: column; gap: 10px; text-align: center; padding: 20px 16px; }
  .rpgfy-footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }

  /* Capture / hero */
  .rpgfy-hero { padding: 60px 16px 32px; }
  .rpgfy-hero h1 { font-size: clamp(28px, 8vw, 42px); }
  .rpgfy-hero-sub { font-size: 15px; margin-bottom: 28px; }
  .rpgfy-card { padding: 20px 16px; border-radius: 16px; max-width: 100%; }
  .rpgfy-footnote { font-size: 11px; }

  /* Trust row */
  .rpgfy-trust-row { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .rpgfy-trust-item { font-size: 12px; }

  /* Auth pages */
  .rpgfy-auth-screen { padding: 16px; }
  .rpgfy-auth-card { padding: 24px 16px; border-radius: 16px; }
  .rpgfy-auth-title { font-size: 20px; }
  .rpgfy-auth-sub { font-size: 13px; }

  /* Preview pricing */
  .rpgfy-price-grid-3 { grid-template-columns: 1fr; }
  .rpgfy-price-card { padding: 20px 16px; }
}

/* ── Stripe checkout modal — saved card bar ────────────────────────────────── */
.rpgfy-saved-card-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: #f8f7f4; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px;
}
.rpgfy-co-right .rpgfy-saved-card-bar { margin-left: 32px; margin-right: 32px; }
.rpgfy-saved-card-info { display: flex; flex-direction: column; gap: 2px; }
.rpgfy-saved-card-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.rpgfy-saved-card-exp   { font-size: 12px; color: var(--soft); }
.rpgfy-saved-card-change {
  background: none; border: 1.5px solid var(--border); border-radius: 7px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--mid);
  cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s;
}
.rpgfy-saved-card-change:hover { border-color: var(--coral); color: var(--coral); }

/* ── Stripe checkout modal — card input fields ──────────────────────────────── */
.rpgfy-card-field {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 12px 14px; background: #fff; transition: border-color .15s;
}
.rpgfy-card-field.StripeElement--focus { border-color: var(--coral); }
.rpgfy-card-field.StripeElement--invalid { border-color: #dc2626; }

/* ── Checkout modal plan card ───────────────────────────────────────────────── */
.rpgfy-checkout-plan-card {
  background: #f8f7f4; border-radius: 10px; padding: 16px;
  margin-bottom: 16px; font-size: 14px; color: var(--ink);
}
.rpgfy-checkout-plan-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.rpgfy-checkout-plan-price { color: var(--coral); font-weight: 700; }
.rpgfy-checkout-plan-desc  { font-size: 13px; color: var(--soft); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════
   BLOG — shared card component
   Used on archive.php and single.php (related posts)
   ═══════════════════════════════════════════════════════════ */

.rpgfy-blog-wrap {
  min-height: 60vh;
}

/* ── Blog card ── */
.rpgfy-blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.rpgfy-blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.rpgfy-blog-card-img-wrap {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--faint2);
}
.rpgfy-blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.rpgfy-blog-card:hover .rpgfy-blog-card-img { transform: scale(1.03); }
.rpgfy-blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.rpgfy-blog-card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--coral);
  text-decoration: none;
}
.rpgfy-blog-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.rpgfy-blog-card-title a { text-decoration: none; color: inherit; }
.rpgfy-blog-card-title a:hover { color: var(--coral); }
.rpgfy-blog-card-excerpt {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.rpgfy-blog-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--soft);
  margin-top: 4px;
}
.rpgfy-blog-card-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}
.rpgfy-blog-card-author { color: var(--mid); font-weight: 500; }
.rpgfy-blog-card-sep { color: var(--faint); }
.rpgfy-blog-card-read {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .15s;
}
.rpgfy-blog-card-read:hover { gap: 8px; }

/* ═══════════════════════════════════════════════════════════
   ARCHIVE — blog listing page
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.rpgfy-blog-hero {
  background: var(--ink);
  padding: 100px 24px 64px;
  text-align: center;
}
.rpgfy-blog-hero-inner { max-width: 640px; margin: 0 auto; }
.rpgfy-blog-hero-inner .rpgfy-section-label { color: var(--coral); margin-bottom: 12px; }
.rpgfy-blog-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.rpgfy-blog-hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
}

/* Category filter bar */
.rpgfy-blog-cats-bar {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 60px;
  z-index: 10;
}
.rpgfy-blog-cats-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rpgfy-blog-cats-inner::-webkit-scrollbar { display: none; }
.rpgfy-blog-cat-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.rpgfy-blog-cat-filter:hover { color: var(--ink); }
.rpgfy-blog-cat-filter.active { color: var(--coral); border-bottom-color: var(--coral); }
.rpgfy-blog-cat-count {
  font-size: 10px;
  font-weight: 700;
  background: var(--faint2);
  border-radius: 20px;
  padding: 1px 7px;
  color: var(--soft);
}

/* Post grid */
.rpgfy-blog-grid-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.rpgfy-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .rpgfy-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rpgfy-blog-grid { grid-template-columns: 1fr; } }

.rpgfy-blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--mid);
  font-size: 15px;
}

/* Pagination */
.rpgfy-blog-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rpgfy-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.rpgfy-blog-pagination .page-numbers:hover { border-color: var(--coral); color: var(--coral); }
.rpgfy-blog-pagination .page-numbers.current { background: var(--coral); border-color: var(--coral); color: #fff; }
.rpgfy-blog-pagination .page-numbers.dots { border: none; color: var(--soft); }

/* ═══════════════════════════════════════════════════════════
   SINGLE — individual post page
   ═══════════════════════════════════════════════════════════ */

.rpgfy-single-wrap { }

/* Hero */
.rpgfy-single-hero {
  background: var(--ink);
  padding: 100px 24px 56px;
}
.rpgfy-single-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Breadcrumbs */
.rpgfy-single-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.rpgfy-single-breadcrumbs a { color: rgba(255,255,255,.45); text-decoration: none; }
.rpgfy-single-breadcrumbs a:hover { color: rgba(255,255,255,.8); }
.rpgfy-single-breadcrumbs span:last-child { color: rgba(255,255,255,.7); }

/* Category badges */
.rpgfy-single-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.rpgfy-single-cat-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: rgba(232,71,10,.18);
  color: var(--coral);
  text-decoration: none;
  transition: background .15s;
}
.rpgfy-single-cat-badge:hover { background: rgba(232,71,10,.3); }

/* Title */
.rpgfy-single-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0;
}

/* Meta row */
.rpgfy-single-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.rpgfy-single-meta-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.1);
}
.rpgfy-single-meta-author { color: rgba(255,255,255,.8); font-weight: 600; }
.rpgfy-single-meta-sep { color: rgba(255,255,255,.2); }

/* Featured image */
.rpgfy-single-featured {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  background: var(--faint2);
}
.rpgfy-single-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article content */
.rpgfy-single-content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 24px 72px;
}
.rpgfy-single-content {
  font-size: 18px;
  line-height: 1.78;
  color: var(--ink);
}
.rpgfy-single-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2em 0 .6em; line-height: 1.25; }
.rpgfy-single-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.75em 0 .5em; }
.rpgfy-single-content h4 { font-size: 1rem; font-weight: 700; margin: 1.5em 0 .4em; }
.rpgfy-single-content p { margin-bottom: 1.5em; }
.rpgfy-single-content ul, .rpgfy-single-content ol { padding-left: 1.6em; margin-bottom: 1.5em; }
.rpgfy-single-content li { margin-bottom: .5em; }
.rpgfy-single-content a { color: var(--coral); text-underline-offset: 3px; }
.rpgfy-single-content a:hover { color: var(--coral-h); }
.rpgfy-single-content blockquote {
  border-left: 3px solid var(--coral);
  margin: 2em 0;
  padding: .75em 0 .75em 1.5em;
  font-size: 1.15em;
  font-style: italic;
  color: var(--mid);
}
.rpgfy-single-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: .85em;
  background: var(--faint2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--coral);
}
.rpgfy-single-content pre {
  background: var(--ink);
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.65;
  margin: 1.5em 0;
}
.rpgfy-single-content pre code { background: none; color: inherit; padding: 0; }
.rpgfy-single-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 1.5em 0; }
.rpgfy-single-content figure { margin: 2em 0; }
.rpgfy-single-content figcaption { font-size: 13px; color: var(--soft); text-align: center; margin-top: 8px; }
.rpgfy-single-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }
.rpgfy-single-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.5em 0; }
.rpgfy-single-content th { background: var(--faint2); padding: 10px 14px; text-align: left; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--border); }
.rpgfy-single-content td { padding: 10px 14px; border-bottom: 1px solid var(--faint); }

/* Tags */
.rpgfy-single-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.rpgfy-single-tags-label { font-size: 12px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.rpgfy-single-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--mid);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.rpgfy-single-tag:hover { border-color: var(--coral); color: var(--coral); }

/* Author card */
.rpgfy-single-author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--faint2);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 40px;
}
.rpgfy-single-author-avatar { border-radius: 50%; flex-shrink: 0; }
.rpgfy-single-author-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin-bottom: 2px; }
.rpgfy-single-author-name { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.rpgfy-single-author-bio { font-size: 14px; color: var(--mid); line-height: 1.6; margin: 0; }

/* Prev/Next nav */
.rpgfy-single-postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.rpgfy-single-postnav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color .15s, box-shadow .15s;
}
.rpgfy-single-postnav-item:hover { border-color: var(--coral); box-shadow: 0 2px 12px rgba(232,71,10,.08); }
.rpgfy-single-postnav-next { text-align: right; }
.rpgfy-single-postnav-dir { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--coral); }
.rpgfy-single-postnav-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
@media (max-width: 600px) { .rpgfy-single-postnav { grid-template-columns: 1fr; } }

/* Related posts */
.rpgfy-single-related {
  background: var(--faint2);
  padding: 64px 24px;
}
.rpgfy-single-related-inner { max-width: 1100px; margin: 0 auto; }
.rpgfy-single-related-title { font-size: 1.4rem; font-weight: 700; color: var(--ink); margin-bottom: 28px; }
.rpgfy-single-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .rpgfy-single-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .rpgfy-single-related-grid { grid-template-columns: 1fr; } }

/* Comments */
.rpgfy-single-comments { border-top: 1px solid var(--border); background: var(--white); }
.rpgfy-single-comments-inner { max-width: 760px; margin: 0 auto; padding: 52px 24px 72px; }

/* ── 404 page ───────────────────────────────────────────────────────────── */
.rpgfy-404-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.rpgfy-404-inner { max-width: 480px; }
.rpgfy-404-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 900;
  color: var(--faint2);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 8px;
}
.rpgfy-404-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.rpgfy-404-desc {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 32px;
}
.rpgfy-404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   DOWNLOAD PLUGIN PAGE
   ═══════════════════════════════════════════════════════════ */

.rpgfy-dlp-wrap { }

.rpgfy-dlp-hero {
  background: var(--ink);
  padding: 100px 24px 72px;
  text-align: center;
}
.rpgfy-dlp-hero-inner { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rpgfy-dlp-hero-inner .rpgfy-section-label { color: var(--coral); }
.rpgfy-dlp-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: #fff; letter-spacing: -.02em; margin: 0; }
.rpgfy-dlp-subtitle { font-size: 17px; color: rgba(255,255,255,.65); line-height: 1.6; margin: 0; }
.rpgfy-dlp-hero-btn { margin-top: 4px; }
.rpgfy-dlp-meta { font-size: 12px; color: rgba(255,255,255,.35); margin-top: -4px; }

.rpgfy-dlp-body { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }

.rpgfy-dlp-section { padding: 52px 0; border-bottom: 1px solid var(--border); }
.rpgfy-dlp-section:last-of-type { border-bottom: none; }
.rpgfy-dlp-section-alt { background: none; }
.rpgfy-dlp-section-title { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 28px; }

/* Features */
.rpgfy-dlp-features { display: flex; flex-direction: column; gap: 24px; }
.rpgfy-dlp-feature { display: flex; gap: 16px; align-items: flex-start; }
.rpgfy-dlp-feature-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.rpgfy-dlp-feature-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.rpgfy-dlp-feature-desc { font-size: 14px; color: var(--mid); line-height: 1.65; }

/* Requirements */
.rpgfy-dlp-req-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rpgfy-dlp-req-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mid); }
.rpgfy-dlp-check { color: var(--green, #16a34a); font-weight: 700; flex-shrink: 0; }

/* Install steps */
.rpgfy-dlp-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 32px; }
.rpgfy-dlp-step { display: flex; gap: 20px; align-items: flex-start; }
.rpgfy-dlp-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.rpgfy-dlp-step-body { flex: 1; }
.rpgfy-dlp-step-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.rpgfy-dlp-step-desc { font-size: 14px; color: var(--mid); line-height: 1.65; margin-bottom: 12px; }
.rpgfy-dlp-step-desc a { color: var(--coral); text-decoration: underline; }
.rpgfy-dlp-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--coral);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.rpgfy-dlp-step-btn:hover { background: var(--coral); color: #fff; }

/* API key box */
.rpgfy-dlp-apikey-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--faint2);
  border-radius: var(--radius-md);
  padding: 24px;
}
.rpgfy-dlp-apikey-icon { font-size: 1.5rem; flex-shrink: 0; }
.rpgfy-dlp-apikey-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.rpgfy-dlp-apikey-desc { font-size: 14px; color: var(--mid); line-height: 1.65; }

/* Bottom CTA */
.rpgfy-dlp-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 48px 0 0;
  flex-wrap: wrap;
}
