/* My Subscription Page */

.bc-mysub *,
.bc-mysub *::before,
.bc-mysub *::after {
  box-sizing: border-box;
}

.bc-mysub {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 32px 80px;
  font-family: 'Outfit', var(--bc-font, sans-serif);
}

.bc-mysub h1,
.bc-mysub h2,
.bc-mysub h3 {
  font-family: 'Playfair Display', var(--bc-font-serif, Georgia), serif;
  line-height: 1.15;
  margin: 0;
}

/* ── Breadcrumbs ── */
.bc-mysub__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--bc-muted, #9CA3AF);
}

.bc-mysub__breadcrumbs a {
  color: var(--bc-muted, #9CA3AF);
  text-decoration: none;
  transition: color 0.2s;
}

.bc-mysub__breadcrumbs a:hover {
  color: var(--bc-text, #111827);
}

.bc-mysub__breadcrumbs span {
  color: var(--bc-text, #111827);
}

/* ── Title ── */
.bc-mysub__title {
  font-size: 30px;
  color: var(--bc-text, #111827);
  margin: 0 0 28px;
}

/* ── Loading ── */
.bc-mysub__loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--bc-muted, #9CA3AF);
  font-size: 14px;
}

.bc-mysub__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--bc-grey-200, #E5E7EB);
  border-top-color: var(--bc-navy, #0A1628);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: bcSpinner 0.7s linear infinite;
}

@keyframes bcSpinner {
  to { transform: rotate(360deg); }
}

/* ── Login prompt ── */
.bc-mysub__login {
  text-align: center;
  padding: 60px 20px;
}

.bc-mysub__login h2 {
  font-size: 22px;
  color: var(--bc-text, #111827);
  margin-bottom: 20px;
}

/* ── Card ── */
.bc-mysub__card {
  background: var(--bc-bg, #fff);
  border-radius: var(--bc-radius-xl, 16px);
  border: 1.5px solid var(--bc-grey-100, #F1F3F5);
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.bc-mysub__card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.bc-mysub__card-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bc-grey-100, #F1F3F5);
}

.bc-mysub__card-header h3 {
  font-family: 'Outfit', var(--bc-font, sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--bc-text, #111827);
}

.bc-mysub__card-body {
  padding: 20px 24px;
}

/* ── Tier Card ── */
.bc-mysub__tier-card {
  border-color: var(--bc-navy, #0A1628);
  border-width: 2px;
}

.bc-mysub__tier-card .bc-mysub__card-header {
  background: var(--bc-navy, #0A1628);
  border-bottom: none;
}

.bc-mysub__tier-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  letter-spacing: 0.3px;
}

.bc-mysub__tier-status {
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Stat Grid ── */
.bc-mysub__stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bc-mysub__stat {
  text-align: center;
}

.bc-mysub__stat-label {
  display: block;
  font-size: 12px;
  color: var(--bc-muted, #9CA3AF);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.bc-mysub__stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--bc-text, #111827);
}

/* ── Usage Bar ── */
.bc-mysub__usage-numbers {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--bc-text-secondary, #4B5563);
}

.bc-mysub__usage-numbers span:first-child {
  font-size: 28px;
  font-weight: 800;
  color: var(--bc-navy, #0A1628);
}

.bc-mysub__usage-bar {
  width: 100%;
  height: 10px;
  background: var(--bc-grey-100, #F1F3F5);
  border-radius: 100px;
  overflow: hidden;
}

.bc-mysub__usage-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--bc-navy, #0A1628);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bc-mysub__usage-fill.is-warning {
  background: #F59E0B;
}

.bc-mysub__usage-fill.is-danger {
  background: var(--bc-accent, #DC2626);
}

.bc-mysub__usage-period {
  font-size: 12px;
  color: var(--bc-muted, #9CA3AF);
  font-weight: 500;
}

/* ── Features ── */
.bc-mysub__features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bc-mysub__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--bc-text-secondary, #4B5563);
  border-bottom: 1px solid var(--bc-grey-100, #F1F3F5);
}

.bc-mysub__features li:last-child {
  border-bottom: none;
}

.bc-mysub__features li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8.5L6.5 12L13 4' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Actions ── */
.bc-mysub__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.bc-mysub__btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--bc-radius, 8px);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  font-family: 'Outfit', var(--bc-font, sans-serif);
}

.bc-mysub__btn--upgrade {
  background: var(--bc-navy, #0A1628);
  color: #fff;
  flex: 1;
}

.bc-mysub__btn--upgrade:hover {
  background: #162240;
  color: #fff;
}

.bc-mysub__btn--cancel {
  background: transparent;
  color: var(--bc-accent, #DC2626);
  border: 1.5px solid var(--bc-grey-200, #E5E7EB);
}

.bc-mysub__btn--cancel:hover {
  border-color: var(--bc-accent, #DC2626);
  background: var(--bc-accent-soft, #FEF2F2);
}

/* ── Cancel Modal ── */
.bc-mysub__modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bc-mysub__modal {
  background: var(--bc-bg, #fff);
  border-radius: var(--bc-radius-xl, 16px);
  width: 100%;
  max-width: 460px;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.bc-mysub__modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bc-grey-100, #F1F3F5);
  border: none;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--bc-text-secondary, #4B5563);
  transition: all 0.2s;
}

.bc-mysub__modal-close:hover {
  background: var(--bc-grey-200, #E5E7EB);
  color: var(--bc-text, #111827);
}

.bc-mysub__modal-title {
  font-size: 22px;
  color: var(--bc-text, #111827);
  margin: 0 0 12px;
}

.bc-mysub__modal-text {
  font-size: 14px;
  color: var(--bc-text-secondary, #4B5563);
  line-height: 1.6;
  margin: 0 0 12px;
}

.bc-mysub__modal-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.bc-mysub__modal-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--bc-text-secondary, #4B5563);
}

.bc-mysub__modal-list li::before {
  content: '\2717';
  color: var(--bc-accent, #DC2626);
  font-weight: 700;
  font-size: 13px;
}

.bc-mysub__modal-status {
  min-height: 20px;
  font-size: 14px;
  margin-bottom: 12px;
}

.bc-mysub__modal-status.is-error {
  color: var(--bc-accent, #DC2626);
}

.bc-mysub__modal-status.is-success {
  color: var(--bc-green, #059669);
}

.bc-mysub__modal-actions {
  display: flex;
  gap: 12px;
}

.bc-mysub__btn--keep {
  flex: 1;
  background: var(--bc-navy, #0A1628);
  color: #fff;
}

.bc-mysub__btn--keep:hover {
  background: #162240;
}

.bc-mysub__btn--confirm-cancel {
  flex: 1;
  background: transparent;
  color: var(--bc-accent, #DC2626);
  border: 1.5px solid var(--bc-accent, #DC2626);
}

.bc-mysub__btn--confirm-cancel:hover {
  background: var(--bc-accent, #DC2626);
  color: #fff;
}

.bc-mysub__btn--confirm-cancel:disabled,
.bc-mysub__btn--keep:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .bc-mysub {
    padding: 16px 20px 60px;
  }

  .bc-mysub__title {
    font-size: 24px;
  }

  .bc-mysub__stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .bc-mysub__actions {
    flex-direction: column;
  }

  .bc-mysub__modal-actions {
    flex-direction: column;
  }

  .bc-mysub__modal {
    padding: 24px;
  }
}
