/* ═══════════════════════════════════════
   REWARDTACTIX — PREMIUM CTA SYSTEM
   Components: .premium-btn, .pcc-elite-strip__btn,
               .pcc-port-tab, .pcc-calc-btn, .pcc-crc-btn,
               .pcc-expiry-check-btn, .pcc-unlock-btn,
               .pcc-elite-cta-btn, .pcc-scroll-top
   v2.2 — 2026-05-30
═══════════════════════════════════════ */

/* ── Portfolio / Milestone card-tab strip ── */
.pcc-port-tab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border: 1px solid rgba(154,123,47,0.2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: rgba(36,27,20,0.52);
  text-align: left;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.pcc-port-tab--active {
  border-color: rgba(154,123,47,0.6);
  background: rgba(154,123,47,0.07);
  color: #9A7B2F;
}
.pcc-port-tab:hover:not(.pcc-port-tab--active) {
  border-color: rgba(154,123,47,0.35);
  background: rgba(154,123,47,0.03);
  color: rgba(36,27,20,0.75);
}

/* ── Reward Calculator buttons ── */
.pcc-calc-btn {
  flex: 1 1 auto;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg,#A07820,#C9A84C);
  color: #fff8ee;
  font: 900 0.9rem/1 'DM Sans',sans-serif;
  cursor: pointer;
}
.pcc-calc-btn.pcc-calc-btn--pulse {
  animation: pccGoldPulse 0.55s ease-out;
}
@keyframes pccGoldPulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,168,76,0.0); transform: translateY(0) scale(1); }
  35%  { box-shadow: 0 0 0 10px rgba(201,168,76,0.18); transform: translateY(-1px) scale(1.01); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.0); transform: translateY(0) scale(1); }
}
.pcc-calc-btn--ghost {
  flex: 0 0 auto;
  background: transparent;
  color: #A07820;
  border: 1px solid rgba(160,120,32,0.28);
  font: 900 0.86rem/1 'DM Sans',sans-serif;
  padding: 12px 14px;
}

/* ── Credit Readiness Checker button ── */
.pcc-crc-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg,#8a6618,#C9A84C);
  box-shadow: 0 4px 14px rgba(160,120,32,0.35);
  font: 700 0.92rem/1 'DM Sans',sans-serif;
  letter-spacing: 0.02em;
  color: #fff8ee;
  cursor: pointer;
  transition: opacity 180ms ease;
}
.pcc-crc-btn:hover { opacity: 0.88; }

/* ── Expiry check pill links ── */
.pcc-expiry-check-btn {
  display: inline-block;
  margin: 8px 8px 0 0;
  padding: 6px 14px;
  border: 1px solid rgba(154,123,47,0.3);
  border-radius: 20px;
  font-size: 0.72rem;
  color: #9A7B2F;
  text-decoration: none;
  letter-spacing: 0.06em;
  font-family: 'JetBrains Mono',monospace;
  transition: border-color 0.2s, background 0.2s;
}
.pcc-expiry-check-btn:hover {
  background: rgba(154,123,47,0.08);
  border-color: rgba(154,123,47,0.5);
}

/* ── Unlock / plan link button ── */
.pcc-unlock-btn {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid rgba(160,120,32,0.35);
  border-radius: 999px;
  background: transparent;
  color: #9A7B2F;
  font: 700 0.8rem/1 'DM Sans',sans-serif;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.pcc-unlock-btn:hover,
.pcc-unlock-btn:visited {
  background: rgba(154,123,47,0.08);
  border-color: rgba(160,120,32,0.6);
}

/* ── Elite CTA inline button ── */
.pcc-elite-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg,#A07820,#C9A84C);
  color: #fff8ee;
  font: 700 0.85rem/1 'DM Sans',sans-serif;
  cursor: pointer;
  transition: opacity 0.18s;
}
.pcc-elite-cta-btn:hover { opacity: 0.88; }

/* ── Scroll-to-top FAB ── */
.pcc-scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(160,120,32,0.4);
  background: #fff8ee;
  color: #9A7B2F;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s, border-color 0.18s;
  z-index: 999;
}
.pcc-scroll-top:hover { border-color: rgba(201,168,76,0.9); }
.pcc-scroll-top--visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 980px) { .pcc-scroll-top { right: 16px; bottom: 16px; } }

.pcc-elite-strip__btn {
  background: linear-gradient(135deg, #A07820, #C9A84C);
  color: #fff8ee;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

:root {
  --pb-bg-1: #2A1408;
  --pb-bg-2: #4A240F;
  --pb-bg-3: #1B0D05;
  --pb-gold: #D6B36A;
  --pb-gold-hi: #F0D99B;
  --pb-text: #F5D48A;
  --pb-sub: rgba(255, 245, 220, 0.82);
  --pb-shadow: 0 18px 40px rgba(60, 20, 0, 0.28);
  --pb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.premium-btn {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  border: 1px solid rgba(214, 179, 106, 0.88);
  background:
    radial-gradient(120% 140% at 18% 15%, rgba(245, 212, 138, 0.16) 0%, rgba(245, 212, 138, 0) 42%),
    radial-gradient(120% 140% at 80% 115%, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 55%),
    linear-gradient(135deg, var(--pb-bg-1) 0%, var(--pb-bg-2) 45%, var(--pb-bg-3) 100%);
  color: var(--pb-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 66px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, filter 0.28s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -10px 28px rgba(0, 0, 0, 0.35),
    0 10px 22px rgba(0, 0, 0, 0.18),
    var(--pb-shadow);
}

.premium-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.06) 36%, rgba(255, 255, 255, 0) 62%);
  opacity: 0.62;
  pointer-events: none;
}

.premium-btn__innerStroke {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(245, 212, 138, 0.22);
}

.premium-btn::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -60%;
  width: 42%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.14) 42%,
    rgba(245, 212, 138, 0.18) 50%,
    rgba(255, 255, 255, 0.10) 58%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-20%) rotate(12deg);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s var(--pb-ease), opacity 0.35s ease;
}

.premium-btn__grid {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  position: relative;
}

.premium-btn__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  min-width: 0;
  width: 100%;
  padding-left: 18px;
  padding-right: 130px;
}

.premium-btn__label {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.premium-btn__sub { display: none; }

.premium-btn__brand {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 78px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(90% 90% at 30% 25%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #F1D892 0%, #D6B36A 58%, #BF9751 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.premium-btn__r {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 18px;
  color: #0B0B0B;
  letter-spacing: -0.02em;
  transform: translateY(0);
  text-shadow: none;
}

.premium-btn__arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 16px;
  border: 1px solid rgba(240, 217, 155, 0.44);
  background:
    radial-gradient(120% 120% at 30% 25%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%),
    rgba(0, 0, 0, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.20);
}

.premium-btn__arrowGlyph {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  color: var(--pb-gold-hi);
  transform: translateX(0);
  transition: transform 0.28s var(--pb-ease), filter 0.28s ease;
}

.premium-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 217, 155, 0.98);
  filter: brightness(1.065);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -10px 30px rgba(0, 0, 0, 0.33),
    0 0 0 1px rgba(245, 212, 138, 0.10),
    0 22px 52px rgba(60, 20, 0, 0.34),
    0 0 34px rgba(214, 179, 106, 0.10);
}

.premium-btn:hover::after {
  opacity: 0.95;
  transform: translateX(290%) rotate(12deg);
}

.premium-btn:hover .premium-btn__arrowGlyph {
  transform: translateX(4px);
  filter: drop-shadow(0 0 14px rgba(214, 179, 106, 0.34));
}

.premium-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -10px 30px rgba(0, 0, 0, 0.40),
    0 14px 34px rgba(60, 20, 0, 0.26);
}

.premium-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(214, 179, 106, 0.22),
    0 0 0 1px rgba(240, 217, 155, 0.70),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -10px 30px rgba(0, 0, 0, 0.35),
    var(--pb-shadow);
}

@media (max-width: 980px) {
  .premium-btn { height: 62px; padding: 0 18px; }
  .premium-btn__label { font-size: 17px; }
  .premium-btn__brand { width: 38px; height: 38px; }
  .premium-btn__arrow { width: 38px; height: 38px; }
  .premium-btn__text { padding-right: 124px; }
}

@media (max-width: 600px) {
  .premium-btn {
    height: 60px;
    width: 100%;
    padding: 0 16px;
  }
  .premium-btn__grid { gap: 14px; }
  .premium-btn__label { font-size: 16px; }
  .premium-btn__brand { width: 36px; height: 36px; }
  .premium-btn__r { font-size: 17px; }
  .premium-btn__arrow { width: 36px; height: 36px; }
  .premium-btn__arrowGlyph { font-size: 20px; }
  .premium-btn__text { padding-left: 14px; padding-right: 120px; }
  .premium-btn__brand { right: 74px; }
  .premium-btn__arrow { right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .premium-btn,
  .premium-btn::after,
  .premium-btn__arrowGlyph {
    transition: none !important;
  }
}
