/* CardPlus CGC Grading — front-end styles (dark/gold, matches the storefront). */
.cpg-wrap{
  --cpg-bg:#0B0E13; --cpg-surface:#171C25; --cpg-surface2:#1E2430;
  --cpg-border:rgba(255,255,255,.08); --cpg-border2:rgba(255,255,255,.14);
  --cpg-text:#EAECF0; --cpg-muted:#8B93A1; --cpg-accent:#D4AF5A; --cpg-accent2:#E8C87A;
  --cpg-green:#2FBF71; --cpg-red:#E5484D; --cpg-purple:#9B6DD6;
  max-width:900px; margin:0 auto; font-family:'Inter',system-ui,sans-serif; color:var(--cpg-text);
}
.cpg-wrap *{ box-sizing:border-box; }
.cpg-badge{ display:inline-flex; align-items:center; gap:8px; background:#000; border:1px solid var(--cpg-red);
  border-radius:7px; padding:6px 14px; font-weight:800; font-size:13px; text-transform:uppercase; letter-spacing:.03em; margin-bottom:14px; }
.cpg-badge span{ color:var(--cpg-red); }
.cpg-title{ font-size:26px; font-weight:800; margin:0 0 4px; color:var(--cpg-text); letter-spacing:-.01em; }
.cpg-sub{ font-size:13.5px; color:var(--cpg-muted); margin:0 0 22px; }

.cpg-tabs{ display:flex; gap:4px; border-bottom:1px solid var(--cpg-border); margin-bottom:22px; flex-wrap:wrap; }
.cpg-tab{ padding:10px 16px; font-size:13.5px; font-weight:600; color:var(--cpg-muted); background:none; border:none;
  border-bottom:2px solid transparent; cursor:pointer; margin-bottom:-1px; display:flex; align-items:center; gap:7px; }
.cpg-tab.active{ color:var(--cpg-accent); border-color:var(--cpg-accent); }
.cpg-staff{ font-family:'JetBrains Mono',monospace; font-size:8.5px; letter-spacing:.05em; text-transform:uppercase;
  background:rgba(155,109,214,.15); color:var(--cpg-purple); border:1px solid rgba(155,109,214,.3); padding:2px 7px; border-radius:100px; }

.cpg-panel{ display:none; }
.cpg-panel.active{ display:block; animation:cpgfade .25s; }
@keyframes cpgfade{ from{opacity:0} to{opacity:1} }

.cpg-intro{ display:flex; gap:14px; align-items:flex-start; background:var(--cpg-surface); border:1px solid var(--cpg-border);
  border-radius:14px; padding:16px 18px; margin-bottom:18px; }
.cpg-ic{ font-size:24px; flex-shrink:0; }
.cpg-intro-sub{ font-size:12.5px; color:var(--cpg-muted); margin-top:4px; line-height:1.55; }

.cpg-card{ background:var(--cpg-surface); border:1px solid var(--cpg-border); border-radius:14px; padding:22px; margin-bottom:16px; }
.cpg-card h3{ font-size:15px; font-weight:700; margin:0 0 14px; color:var(--cpg-text); }
.cpg-card h3:not(:first-child){ margin-top:24px; }

.cpg-wrap label{ display:block; font-size:12.5px; color:var(--cpg-muted); margin-bottom:12px; font-weight:500; }
.cpg-wrap input[type=text],.cpg-wrap input[type=email],.cpg-wrap input[type=number],
.cpg-wrap input[type=file],.cpg-wrap select{
  width:100%; margin-top:5px; background:var(--cpg-bg); border:1px solid var(--cpg-border2); color:var(--cpg-text);
  border-radius:8px; padding:10px 12px; font-size:13.5px; font-family:inherit;
}
.cpg-wrap input:focus,.cpg-wrap select:focus{ outline:none; border-color:var(--cpg-accent); }
.cpg-wrap input[readonly]{ opacity:.6; }

.cpg-row2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cpg-row3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
.cpg-row4{ display:grid; grid-template-columns:1fr 1fr 1fr 1fr; gap:12px; }

.cpg-checks,.cpg-radios{ display:flex; flex-direction:column; gap:6px; padding-top:6px; }
.cpg-radios{ flex-direction:row; gap:18px; flex-wrap:wrap; }
.cpg-checks label,.cpg-radios label{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--cpg-text); margin:0; cursor:pointer; }
.cpg-checks input,.cpg-radios input{ width:auto; margin:0; accent-color:var(--cpg-accent); }

.cpg-consent{ display:flex; align-items:flex-start; gap:10px; background:var(--cpg-bg); border:1px solid var(--cpg-border);
  border-radius:9px; padding:12px 14px; margin-bottom:9px; font-size:13px; line-height:1.5; color:var(--cpg-text); cursor:pointer; }
.cpg-consent input{ width:auto; margin:2px 0 0; accent-color:var(--cpg-accent); flex-shrink:0; }

.cpg-sig{ border:1px solid var(--cpg-border2); border-radius:10px; overflow:hidden; background:var(--cpg-bg); }
.cpg-canvas{ display:block; width:100%; height:150px; touch-action:none; cursor:crosshair; }
.cpg-sig-actions{ display:flex; justify-content:space-between; align-items:center; padding:8px 14px; border-top:1px solid var(--cpg-border); }
.cpg-sig-actions span{ font-size:11.5px; color:var(--cpg-muted); }
.cpg-clear{ font-size:12px; color:var(--cpg-accent); font-weight:600; background:none; border:none; cursor:pointer; }

.cpg-btn{ background:var(--cpg-accent); color:#14100a; border:none; border-radius:8px; font-weight:700; font-size:13.5px;
  padding:11px 18px; cursor:pointer; transition:background .15s, transform .15s; width:100%; }
.cpg-btn:hover{ background:var(--cpg-accent2); transform:translateY(-1px); }
.cpg-btn:disabled{ opacity:.5; cursor:default; transform:none; }
.cpg-submit-wrap{ display:flex; align-items:flex-end; }

.cpg-cardrow,.cpg-result{ display:flex; align-items:center; gap:12px; background:var(--cpg-bg); border:1px solid var(--cpg-border);
  border-radius:10px; padding:12px 14px; margin-top:10px; }
.cpg-cardrow img,.cpg-result img{ width:40px; height:54px; border-radius:6px; object-fit:cover; flex-shrink:0; }
.cpg-thumb,.cpg-slab{ width:40px; height:54px; border-radius:6px; background:var(--cpg-surface2); flex-shrink:0;
  display:flex; align-items:center; justify-content:center; color:var(--cpg-muted); }
.cpg-note{ font-size:12px; color:var(--cpg-muted); }
.cpg-pill{ font-family:'JetBrains Mono',monospace; font-size:9px; letter-spacing:.04em; text-transform:uppercase;
  padding:4px 9px; border-radius:100px; white-space:nowrap; background:var(--cpg-surface2); color:var(--cpg-muted); }
.cpg-pill.done{ background:rgba(47,191,113,.14); color:var(--cpg-green); }

.cpg-track-row{ display:flex; gap:8px; }
.cpg-track-row input{ flex:1; font-family:'JetBrains Mono',monospace; }
.cpg-track-row .cpg-btn{ width:auto; padding:11px 22px; }
.cpg-track-none{ color:var(--cpg-muted); font-size:13.5px; margin-top:16px; }
.cpg-id{ font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--cpg-accent); }
.cpg-track-status{ font-weight:800; font-size:17px; margin-top:2px; }

/* mini step pipeline */
.cpg-steps{ display:flex; flex-wrap:wrap; gap:6px; margin:16px 0; }
.cpg-mini{ flex:1; min-width:110px; text-align:center; position:relative; }
.cpg-mini span{ display:block; font-size:10.5px; color:var(--cpg-muted); padding:8px 6px; border-top:2px solid var(--cpg-border2); }
.cpg-mini.done span{ color:var(--cpg-green); border-color:var(--cpg-green); }
.cpg-mini.now span{ color:var(--cpg-accent); border-color:var(--cpg-accent); font-weight:700; }

@media(max-width:760px){
  .cpg-row2,.cpg-row3,.cpg-row4{ grid-template-columns:1fr; }
  .cpg-radios{ gap:12px; }
}

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE — respect the site's body.cp-light toggle.
   Re-map the CGC design tokens to light values so labels/text
   stay readable when the visitor switches to light mode.
   ═══════════════════════════════════════════════════════════ */
body.cp-light .cpg-wrap{
  --cpg-bg:#FFFFFF; --cpg-surface:#F5F5F7; --cpg-surface2:#EEEEF0;
  --cpg-border:rgba(0,0,0,.10); --cpg-border2:rgba(0,0,0,.16);
  --cpg-text:#1A1A1E; --cpg-muted:#5C6069; --cpg-accent:#B8941F; --cpg-accent2:#9A7A0A;
}
body.cp-light .cpg-badge{ background:#1A1A1E; }
body.cp-light .cpg-wrap input[type=text],
body.cp-light .cpg-wrap input[type=email],
body.cp-light .cpg-wrap input[type=number],
body.cp-light .cpg-wrap input[type=file],
body.cp-light .cpg-wrap select{
  background:#FFFFFF; border-color:rgba(0,0,0,.16); color:#1A1A1E;
}
body.cp-light .cpg-consent,
body.cp-light .cpg-sig{ background:#FFFFFF; }
body.cp-light .cpg-canvas{ background:#FFFFFF; }
body.cp-light .cpg-btn{ color:#FFFFFF; }
body.cp-light .cpg-cardrow,
body.cp-light .cpg-result{ background:#FFFFFF; }

/* photo record grid in tracking view */
.cpg-photos{ display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; margin-top:8px; }
.cpg-photo{ background:var(--cpg-bg); border:1px solid var(--cpg-border); border-radius:8px; overflow:hidden; }
.cpg-photo img{ width:100%; aspect-ratio:3/4; object-fit:cover; display:block; background:#fff; }
.cpg-photo span{ display:block; font-size:10.5px; color:var(--cpg-muted); padding:6px 8px; text-align:center; }

/* ═══ PRICING / LANDING tab ═══ */
.cpg-price-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px; }
.cpg-price-card{ position:relative; background:var(--cpg-surface); border:1px solid var(--cpg-border);
  border-radius:14px; padding:20px 16px; display:flex; flex-direction:column; text-align:center; }
.cpg-price-card.best{ border-color:var(--cpg-accent); box-shadow:0 0 0 1px var(--cpg-accent) inset; }
.cpg-price-flag{ position:absolute; top:-10px; left:50%; transform:translateX(-50%); white-space:nowrap;
  font-family:'JetBrains Mono',monospace; font-size:9px; letter-spacing:.06em; text-transform:uppercase;
  background:var(--cpg-accent); color:#14100a; font-weight:700; padding:3px 10px; border-radius:100px; }
.cpg-price-name{ font-size:13.5px; font-weight:700; color:var(--cpg-text); margin-bottom:6px; }
.cpg-price-amt{ font-size:30px; font-weight:800; color:var(--cpg-text); line-height:1; margin-bottom:10px; }
.cpg-price-amt span{ font-size:16px; font-weight:700; vertical-align:top; margin-right:1px; }
.cpg-price-amt small{ display:block; font-size:11px; font-weight:500; color:var(--cpg-muted); margin-top:6px; }
.cpg-price-best{ font-size:12px; color:var(--cpg-muted); line-height:1.45; margin-bottom:16px; min-height:34px; }
.cpg-price-cta{ margin-top:auto; }
@media(max-width:760px){ .cpg-price-grid{ grid-template-columns:1fr 1fr; row-gap:20px; } }
@media(max-width:420px){ .cpg-price-grid{ grid-template-columns:1fr; } }

/* Pay Online tab — visually distinct */
.cpg-tab-pay{ color:var(--cpg-accent) !important; position:relative; }
.cpg-tab-pay::after{ content:"NEW"; position:absolute; top:2px; right:-2px; font-size:9px; background:#EF4444; color:#fff; padding:1px 6px; border-radius:8px; font-weight:800; letter-spacing:.03em; }
.cpg-tab-pay.active::after{ background:var(--cpg-accent); color:#14100a; }
