:root{
  --pf-bg-card:#fff;
  --pf-bg-soft:#f9fafb;
  --pf-text-main:#0f172a;
  --pf-text-muted:#6b7280;
  --pf-border-subtle:#e5e7eb;
  --pf-accent-start:#22d3ee;
  --pf-accent-end:#6366f1;
  --pf-accent-dark:#111827;
  --pf-radius-card:20px;
  --pf-shadow-card:0 18px 40px rgba(15,23,42,.08);
}

.wp-block-pfc-prop-firm-card.pf-block{
  max-width:1120px;
  margin:0 auto 32px;
}

.pf-card *{
  box-sizing:border-box;
  margin:0;
  line-height:1.4;
}

.pf-card{
  background:var(--pf-bg-card);
  border-radius:var(--pf-radius-card);
  box-shadow:var(--pf-shadow-card);
  padding:24px 28px;
  display:flex;
  flex-direction:column;
  gap:24px;
  color:var(--pf-text-main);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Inter",sans-serif;
}

.pf-card__top{
  display:grid;
  grid-template-columns:minmax(0,2.1fr) minmax(0,2.8fr) minmax(0,2.1fr);
  gap:20px;
  align-items:center;
}

.pf-card__left{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.pf-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border-radius:999px;
  padding:6px 16px;
  background:#fff;
  border:1px solid transparent;
  background-origin:border-box;
  background-clip:padding-box,border-box;
  font-size:12px;
  font-weight:500;
  color:var(--pf-text-main);
  box-shadow:0 8px 20px rgba(15,23,42,.15);
  white-space:nowrap;
}

.pf-badge__rank{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:rgba(15,23,42,.04);
  font-size:12px;
  font-weight:600;
}

.pf-title{
  font-size:24px;
  line-height:1.3;
  font-weight:600;
}

.pf-firm-name{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  color:var(--pf-text-muted);
  font-weight:500;
}

.pf-logo{
  width:26px;
  height:26px;
  border-radius:999px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#e5e7eb;
}

.pf-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.pf-card__metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(130px,1fr));
  gap:16px;
  align-items:stretch;
}

.pf-metric{
  background:var(--pf-bg-soft);
  border-radius:18px;
  padding:12px 14px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:110px;
}

.pf-metric__label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--pf-text-muted);
  font-weight:600;
  margin-bottom:6px;
  white-space:nowrap;
}

.pf-metric__value{
  font-size:14px;
  font-weight:500;
}

.pf-score-main{
  display:grid;
  grid-template-columns:auto auto;
  align-items:center;
  column-gap:8px;
}

.pf-stars{
  display:inline-flex;
  gap:2px;
  font-size:14px;
  color:#f97316;
}

.pf-score-number{
  font-size:22px;
  font-weight:600;
}

.pf-card__cta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}

.pf-coupon{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px;
  border-radius:999px;
  color:#fff;
  font-size:13px;
  font-weight:500;
  white-space:nowrap;
  background:#4b5563;
}

.pf-coupon__code{
  padding:4px 12px;
  border-radius:999px;
  background:rgba(15,23,42,.16);
}

.pf-coupon__copy{
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.7);
  background:transparent;
  color:inherit;
  font-size:11px;
  line-height:1;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.pf-coupon__copy-icon{
  font-size:12px;
}

/* state ตอน Copied! */
.pf-coupon__copy--copied{
  background:rgba(34,197,94,.12);
  border-color:rgba(22,163,74,.9);
}

.pf-btn-cta{
  padding:10px 20px;
  border-radius:999px;
  border:none;
  background:var(--pf-accent-dark);
  color:#fff;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  box-shadow:0 12px 36px rgba(15,23,42,.45);
  text-decoration:none;
  transition:transform .16s ease-out,box-shadow .16s ease-out,background .16s ease-out;
}

.pf-btn-cta span{
  display:inline-flex;
  align-items:center;
}

.pf-btn-cta:hover{
  transform:translateY(-1px) scale(1.02);
  box-shadow:0 18px 40px rgba(15,23,42,.55);
}

.pf-btn-cta:active{
  transform:translateY(0) scale(.97);
  box-shadow:0 10px 28px rgba(15,23,42,.4);
}

.pf-divider{
  border:none;
  border-top:1px solid var(--pf-border-subtle);
  margin:0;
}

.pf-why{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.pf-section-title{
  font-size:14px;
  font-weight:600;
}

.pf-why__text{
  font-size:14px;
  color:var(--pf-text-muted);
}

.pf-pros-cons{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}

.pf-list-title{
  font-size:14px;
  font-weight:600;
  margin-bottom:8px;
}

.pf-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.pf-list__item{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:14px;
  color:var(--pf-text-main);
}

.pf-list__icon{
  width:18px;
  height:18px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  margin-top:2px;
}

.pf-list__icon--pro{
  background:rgba(16,185,129,.12);
  color:#059669;
}

.pf-list__icon--con{
  background:rgba(248,113,113,.14);
  color:#dc2626;
}

@media (max-width:1200px){
  .pf-card{padding:22px;}
  .pf-card__metrics{gap:14px;}
}

@media (max-width:1024px){
  .pf-card__top{
    grid-template-columns:minmax(0,1.7fr) minmax(0,2.3fr);
  }
  .pf-card__cta{
    grid-column:1/-1;
    align-items:flex-start;
  }
}

@media (max-width:768px){
  .pf-card{
    padding:18px 16px;
    gap:20px;
  }
  .pf-card__top{
    grid-template-columns:minmax(0,1fr);
  }
  .pf-card__metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .pf-card__cta{
    align-items:stretch;
  }
  .pf-card__cta>*{
    width:100%;
    justify-content:center;
  }
  .pf-pros-cons{
    grid-template-columns:minmax(0,1fr);
  }
  .pf-title{
    font-size:20px;
  }
}

@media (max-width:480px){
  .pf-card{
    padding:16px 14px;
  }
  .pf-card__metrics{
    grid-template-columns:minmax(0,1fr);
  }
  .pf-badge{
    font-size:11px;
    padding-inline:12px;
  }
}
