/* ============================================================
 *  SUBSCRIPTION SYSTEM — premium AMOLED styling
 * ============================================================ */

/* ---------- Tier badge on video cards ---------- */
.v-card-tier {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.v-card-tier.tier-full {
  width: 36px; height: 36px;
  animation: tierPulse 2.4s ease-in-out infinite;
}
@keyframes tierPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 0 rgba(123,97,255,0.5); }
  50%      { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 8px rgba(123,97,255,0); }
}

/* ---------- Locked video player overlay ---------- */
.player-wrap.locked {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}
.video-lock-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 5;
}
.video-lock-overlay .lock-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(0.35);
  z-index: 0;
}
.video-lock-overlay .lock-badge {
  position: relative; z-index: 1;
  text-align: center;
  padding: 26px 32px;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.video-lock-overlay .lock-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.video-lock-overlay .lock-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.video-lock-overlay .lock-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}
.video-lock-overlay .lock-cta {
  background: #fff;
  color: #000;
  border: none;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.video-lock-overlay .lock-cta:active { transform: scale(0.96); }
.video-lock-overlay .lock-cta:hover  { box-shadow: 0 8px 24px rgba(255,255,255,0.3); }

/* ============================================================
 *  TIERS PICKER MODAL
 * ============================================================ */
.sub-modal {
  padding: 4px 4px 8px;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sub-hero {
  text-align: center;
  padding: 8px 8px 18px;
}
.sub-hero-badge {
  display: inline-block;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(0,212,255,.15), rgba(123,97,255,.15));
  border: 1px solid rgba(123,97,255,.3);
  color: #00D4FF;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.sub-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1, #fff);
  margin: 12px 0 6px;
  line-height: 1.2;
}
.sub-hero-sub {
  font-size: 13px;
  color: var(--text-2, #aaa);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Tier cards ---------- */
.sub-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
  margin-bottom: 16px;
}
.sub-tier {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.sub-tier::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tier-gradient);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 0;
}
.sub-tier > * { position: relative; z-index: 1; }
.sub-tier:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.sub-tier.selected {
  border-color: var(--tier-color, #00D4FF);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 0 1px var(--tier-color, #00D4FF);
}
.sub-tier.selected::before { opacity: 0.12; }
.sub-tier-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sub-tier-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  background: var(--tier-gradient);
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.sub-tier-body { flex: 1; min-width: 0; }
.sub-tier-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px; gap: 8px;
}
.sub-tier-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .2px;
}
.sub-tier-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--tier-color, #fff);
  white-space: nowrap;
}
.sub-tier-price small { font-size: 10px; font-weight: 500; opacity: .7; }
.sub-tier-perks {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 3px;
}
.sub-tier-perks li {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.sub-tier-perks li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--tier-color, #00D4FF);
  font-weight: 800;
}
.sub-tier-tick {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .2s ease;
}
.sub-tier-tick svg { width: 14px; height: 14px; color: transparent; }
.sub-tier.selected .sub-tier-tick {
  background: var(--tier-color, #00D4FF);
  border-color: var(--tier-color, #00D4FF);
}
.sub-tier.selected .sub-tier-tick svg { color: #000; }

/* ---------- Summary footer ---------- */
.sub-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  margin: 4px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,212,255,.06), rgba(123,97,255,.06));
  border: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  bottom: 4px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.sub-summary-label {
  font-size: 11px;
  color: var(--text-2, #aaa);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.sub-summary-amount {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-top: 2px;
  letter-spacing: -.5px;
}
.sub-cur { font-size: 13px; font-weight: 600; color: var(--text-2, #aaa); }
.sub-buy-btn {
  background: linear-gradient(135deg, #00D4FF 0%, #7B61FF 100%);
  border: none;
  color: #fff;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(123,97,255,0.4);
  transition: all .2s ease;
}
.sub-buy-btn svg { width: 18px; height: 18px; }
.sub-buy-btn:not(:disabled):active { transform: scale(0.96); }
.sub-buy-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ============================================================
 *  PAYMENT MODAL
 * ============================================================ */
.pay-modal {
  padding: 4px;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pay-hero {
  text-align: center;
  padding: 12px 8px 16px;
}
.pay-amount-label {
  font-size: 11px;
  color: var(--text-2, #aaa);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 4px;
}
.pay-amount-value {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #00D4FF, #7B61FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pay-amount-value span {
  font-size: 18px;
  font-weight: 700;
  -webkit-text-fill-color: var(--text-2, #aaa);
  background: none;
  margin-left: 4px;
}
.pay-tier-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}
.pay-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ---------- Card visual ---------- */
.pay-card-wrap {
  padding: 6px 4px 0;
}
.pay-card {
  position: relative;
  aspect-ratio: 1.586 / 1;
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  color: #fff;
  overflow: hidden;
  margin-bottom: 12px;
}
.pay-card-shine {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(0,212,255,0.25), transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(123,97,255,0.2), transparent 50%);
  pointer-events: none;
}
.pay-card-top {
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1;
}
.pay-card-chip {
  width: 42px; height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #b8860b 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), inset 0 -1px 1px rgba(0,0,0,0.3);
  position: relative;
}
.pay-card-chip::before, .pay-card-chip::after {
  content: '';
  position: absolute;
  background: rgba(0,0,0,0.3);
  border-radius: 1px;
}
.pay-card-chip::before {
  inset: 4px 12px 4px 4px;
  border-right: 1px solid rgba(0,0,0,0.3);
}
.pay-card-chip::after {
  inset: 14px 4px;
  height: 1px;
  background: rgba(0,0,0,0.3);
}
.pay-card-brand {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.pay-card-number {
  font-family: 'Inter', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  position: relative; z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  user-select: all;
  -webkit-user-select: all;
}
.pay-card-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  position: relative; z-index: 1;
}
.pay-card-label {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2px;
}
.pay-card-holder {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.pay-card-logo {
  font-size: 16px;
  font-weight: 900;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
  font-style: italic;
}

/* ---------- Copy button ---------- */
.pay-copy-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px dashed rgba(0,212,255,0.5);
  background: rgba(0,212,255,0.06);
  color: #00D4FF;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.pay-copy-btn svg { width: 18px; height: 18px; }
.pay-copy-btn:active { transform: scale(0.98); }
.pay-copy-btn:hover  { background: rgba(0,212,255,0.12); }
.pay-copy-btn.copied {
  border-color: #00C781;
  background: rgba(0,199,129,0.12);
  color: #00C781;
  border-style: solid;
}

/* ---------- Instructions ---------- */
.pay-instructions {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 8px 12px;
}
.pay-step {
  display: flex; gap: 12px; align-items: flex-start;
}
.pay-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00D4FF, #7B61FF);
  color: #fff;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 4px 12px rgba(123,97,255,0.4);
}
.pay-step-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-1, #fff);
}
.pay-step-text b { color: #00D4FF; font-weight: 800; }

/* ---------- Admin button ---------- */
.pay-admin-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px;
  margin: 4px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #229ED9 0%, #1e8bc3 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(34,158,217,0.4);
  transition: all .2s ease;
}
.pay-admin-btn svg { width: 22px; height: 22px; }
.pay-admin-btn:active { transform: scale(0.98); }
.pay-admin-btn:hover { box-shadow: 0 12px 32px rgba(34,158,217,0.5); }
.pay-back-btn {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-2, #aaa);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pay-back-btn:hover { color: #fff; }

/* ---------- Subscription card in profile ---------- */
.subscription-card.active,
.subscription-card.expired {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}
.subscription-card.active {
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(123,97,255,0.08));
  border-color: rgba(0,212,255,0.25);
}
.subscription-card.expired {
  background: rgba(255,80,80,0.06);
  border-color: rgba(255,80,80,0.25);
}
.subscription-card .sub-card-icon.active-icon {
  font-size: 22px;
  background: var(--tier-gradient, linear-gradient(135deg,#00D4FF,#7B61FF));
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.subscription-card .sub-card-chip.chip-active {
  background: linear-gradient(135deg, #00C781, #007a4f);
  color: #fff;
  font-weight: 800;
}
.subscription-card .sub-card-chip.chip-expired {
  background: linear-gradient(135deg, #FF5050, #c92e2e);
  color: #fff;
  font-weight: 800;
}

/* ---------- Responsive ---------- */
@media (max-width: 380px) {
  .pay-card-number { font-size: 18px; letter-spacing: 2px; }
  .pay-amount-value { font-size: 32px; }
  .sub-tier-icon { width: 46px; height: 46px; font-size: 24px; }
  .sub-summary-amount { font-size: 18px; }
}
