/* ═══════════════════════════════════════════════════════════
   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 ── */
.rpgfy-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  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-dot { width: 28px; height: 28px; background: var(--coral); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; font-weight: 800; flex-shrink: 0; }
.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); }

/* ── 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-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 { padding: 0 2px 0 14px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #b8b4ac; white-space: nowrap; user-select: none; flex-shrink: 0; }
.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); }

/* ── 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; }
.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; }
.rpgfy-btn-primary:hover { background: var(--coral-h); }
.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; }

/* ═══════════════════════════════════════════════════════════
   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: 900px; 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-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; }
.rpgfy-pc-guarantee { font-size: 11px; color: #b0aba3; text-align: center; }
/* 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; }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════ */
.rpgfy-dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; padding-top: 56px; }

/* Sidebar */
.rpgfy-dash-sidebar { background: var(--white); border-right: 1px solid var(--border); padding: 24px 16px; display: flex; flex-direction: column; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.rpgfy-dash-user { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 24px; }
.rpgfy-dash-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.rpgfy-dash-user-name { font-size: 14px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.rpgfy-dash-user-email { font-size: 11px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.rpgfy-dash-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.rpgfy-dash-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--mid); text-decoration: none; transition: background .15s, color .15s; }
.rpgfy-dash-nav-item:hover { background: var(--faint2); color: var(--ink); }
.rpgfy-dash-nav-item.active { background: var(--coral-bg); color: var(--coral); font-weight: 600; }
.rpgfy-dash-nav-item svg { flex-shrink: 0; }
.rpgfy-dash-badge { margin-left: auto; background: var(--coral); color: #fff; border-radius: 100px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.rpgfy-dash-sidebar-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--faint); }
.rpgfy-dash-new-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 10px; background: var(--coral); color: #fff; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s; }
.rpgfy-dash-new-btn:hover { background: var(--coral-h); }

/* Main area */
.rpgfy-dash-main { padding: 32px; background: var(--bg); min-height: calc(100vh - 56px); }
.rpgfy-dash-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 32px; }
.rpgfy-stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 24px; }
.rpgfy-stat-num { font-size: 32px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 4px; color: var(--ink); }
.rpgfy-stat-label { font-size: 13px; color: var(--mid); font-weight: 500; }
.rpgfy-dash-section { }
.rpgfy-dash-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.rpgfy-dash-section-header h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.rpgfy-dash-action-btn { font-size: 13px; font-weight: 700; color: var(--coral); text-decoration: none; }
.rpgfy-dash-action-btn:hover { text-decoration: underline; }

/* Empty state */
.rpgfy-dash-empty { text-align: center; padding: 60px 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.rpgfy-dash-empty-icon { font-size: 40px; margin-bottom: 16px; }
.rpgfy-dash-empty h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.rpgfy-dash-empty p { font-size: 14px; color: var(--mid); }

/* Designs grid */
.rpgfy-designs-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 20px; }
.rpgfy-design-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .15s; }
.rpgfy-design-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rpgfy-design-card-preview { position: relative; background: var(--faint2); padding: 16px; }
/* mini browser */
.rpgfy-mini-browser { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--white); }
.rpgfy-mini-bar { background: #f3f1ee; border-bottom: 1px solid var(--faint); padding: 6px 10px; display: flex; align-items: center; gap: 7px; }
.rpgfy-mini-dots { display: flex; gap: 4px; }
.rpgfy-mini-dots span { width: 7px; height: 7px; border-radius: 50%; }
.rpgfy-mini-url { flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpgfy-mini-content { padding: 10px; }
.rpgfy-mini-hero { display: flex; gap: 8px; align-items: flex-start; }
.rpgfy-mini-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.rpgfy-sk-accent { background: rgba(232,71,10,.14) !important; height: 6px; width: 50%; }
.rpgfy-sk { height: 8px; width: 100%; }
.rpgfy-mini-btn { display: block; width: 56px; height: 18px; background: var(--coral); opacity: .8; border-radius: 4px; margin-top: 4px; }
.rpgfy-mini-img { width: 44px; height: 44px; border-radius: 6px; background: linear-gradient(135deg,#fde8df,#fef3ec); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.rpgfy-design-type-pill { position: absolute; top: 20px; right: 20px; font-size: 10px; font-weight: 700; border-radius: 100px; padding: 3px 9px; }
.rpgfy-pill-coral  { background: var(--coral-bg); color: var(--coral); }
.rpgfy-pill-purple { background: var(--purple-bg); color: var(--purple); }
.rpgfy-design-card-body { padding: 14px 16px; flex: 1; }
.rpgfy-design-card-title  { font-size: 14px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpgfy-design-card-domain { font-size: 11px; color: var(--soft); font-family: 'JetBrains Mono', monospace; margin-bottom: 8px; }
.rpgfy-design-card-meta   { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.rpgfy-design-date { font-size: 11px; color: var(--soft); }
.rpgfy-design-card-plan   { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--green); font-weight: 500; }
/* status pills */
.rpgfy-status-pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; border-radius: 100px; padding: 2px 9px; }
.rpgfy-status-processing { background: rgba(245,166,35,.12); color: #8a6a1a; }
.rpgfy-status-ready      { background: rgba(37,99,235,.1);  color: var(--blue); }
.rpgfy-status-purchased  { background: var(--green-bg);     color: var(--green); }
.rpgfy-status-hosted     { background: var(--purple-bg);    color: var(--purple); }
.rpgfy-design-card-footer { padding: 10px 16px 14px; display: flex; gap: 8px; border-top: 1px solid var(--faint); }
.rpgfy-card-btn-primary  { flex: 1; text-align: center; background: var(--coral); color: #fff; border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s; }
.rpgfy-card-btn-primary:hover { background: var(--coral-h); }
.rpgfy-card-btn-outline  { flex: 1; text-align: center; border: 1.5px solid var(--border); color: var(--ink); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .15s; }
.rpgfy-card-btn-outline:hover { border-color: var(--mid); }
.rpgfy-card-btn-disabled { flex: 1; text-align: center; background: var(--faint); color: var(--soft); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; font-weight: 600; }

/* Billing */
.rpgfy-billing-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 28px; }
.rpgfy-billing-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.rpgfy-billing-card-label { font-size: 12px; font-weight: 600; color: var(--mid); margin-bottom: 6px; }
.rpgfy-billing-card-value { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.rpgfy-orders-table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; }
.rpgfy-orders-table { width: 100%; border-collapse: collapse; }
.rpgfy-orders-table th { padding: 12px 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-orders-table td { padding: 14px 16px; border-bottom: 1px solid var(--faint); vertical-align: middle; font-size: 14px; }
.rpgfy-orders-table tbody tr:last-child td { border-bottom: none; }
.rpgfy-orders-table tbody tr:hover td { background: var(--faint2); }
.rpgfy-order-title  { font-weight: 600; font-size: 13px; }
.rpgfy-order-domain { font-size: 11px; color: var(--soft); font-family: 'JetBrains Mono', monospace; }
.rpgfy-order-amount { font-weight: 700; font-size: 15px; }
.rpgfy-order-date   { font-size: 12px; color: var(--soft); }
.rpgfy-order-link   { font-size: 13px; font-weight: 600; color: var(--coral); text-decoration: none; }
.rpgfy-order-link:hover { text-decoration: underline; }
.rpgfy-plan-chip { background: var(--faint2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 600; color: var(--mid); }
.rpgfy-billing-notice { display: flex; align-items: flex-start; gap: 12px; background: var(--faint2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; font-size: 13px; line-height: 1.55; color: var(--mid); }
.rpgfy-billing-notice a { color: var(--coral); text-decoration: none; font-weight: 600; }
.rpgfy-billing-notice-icon { font-size: 20px; flex-shrink: 0; }
strong { color: var(--ink); }

/* Account */
.rpgfy-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.rpgfy-account-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.rpgfy-account-card-title { font-size: 15px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px; }
.rpgfy-danger-zone { background: var(--white); border: 1.5px solid #fca5a5; border-radius: var(--radius-lg); padding: 24px; }
.rpgfy-danger-zone h3 { font-size: 15px; font-weight: 700; color: #dc2626; margin-bottom: 8px; }
.rpgfy-danger-zone p { font-size: 13px; color: var(--mid); margin-bottom: 16px; }

/* Error page */
.rpgfy-error-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; padding: 40px; }
.rpgfy-error-screen h2 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.rpgfy-error-screen p { font-size: 15px; color: var(--mid); }
.rpgfy-error-screen a { color: var(--coral); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   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; }
  .rpgfy-dash-layout  { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
  .rpgfy-dash-layout   { grid-template-columns: 1fr; }
  .rpgfy-dash-sidebar  { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 12px 16px; border-right: none; border-bottom: 1px solid var(--border); gap: 8px; }
  .rpgfy-dash-user     { display: none; }
  .rpgfy-dash-nav      { flex-direction: row; flex-wrap: wrap; flex: none; gap: 4px; }
  .rpgfy-dash-nav-item { padding: 8px 12px; }
  .rpgfy-dash-sidebar-footer { margin-top: 0; padding-top: 0; border-top: none; }
  .rpgfy-dash-main     { padding: 20px 16px; }
  .rpgfy-dash-stats    { grid-template-columns: 1fr 1fr; }
  .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-account-grid  { grid-template-columns: 1fr; }
  .rpgfy-billing-summary { grid-template-columns: 1fr 1fr; }
  .rpgfy-trust-row     { gap: 14px; }
}
@media (max-width: 540px) {
  .rpgfy-nav           { padding: 0 16px; }
  .rpgfy-dash-stats    { grid-template-columns: 1fr; }
  .rpgfy-billing-summary { grid-template-columns: 1fr; }
  .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; }
}
