/* ═══════════════════════════════════════════════════════════════════════════
   Pawa TV Cloud — Billing CSS
   Thème sombre TV/streaming : profond, premium, moderne.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
  /* Palette TV */
  --ptcb-bg:          #0d1117;
  --ptcb-surface:     #161b22;
  --ptcb-surface-2:   #1c2230;
  --ptcb-border:      #30363d;
  --ptcb-border-soft: rgba(255,255,255,.06);

  /* Accent TV Streaming */
  --ptcb-primary:     #7c3aed;
  --ptcb-primary-h:   #6d28d9;
  --ptcb-accent:      #a78bfa;
  --ptcb-accent-glow: rgba(124,58,237,.35);

  /* États */
  --ptcb-success:     #22c55e;
  --ptcb-danger:      #ef4444;
  --ptcb-warning:     #f59e0b;
  --ptcb-info:        #3b82f6;

  /* Texte */
  --ptcb-text:        #e6edf3;
  --ptcb-muted:       #8b949e;
  --ptcb-white:       #ffffff;

  /* UI */
  --ptcb-radius:      12px;
  --ptcb-radius-sm:   8px;
  --ptcb-shadow:      0 2px 12px rgba(0,0,0,.4);
  --ptcb-shadow-lg:   0 8px 32px rgba(0,0,0,.6);
  --ptcb-transition:  .18s ease;
}

/* ── Reset wrapper ────────────────────────────────────────────────────────── */
.ptcb-wrap {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ptcb-text);
  background: transparent;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 0 48px;
}

.ptcb-wrap *, .ptcb-wrap *::before, .ptcb-wrap *::after {
  box-sizing: border-box;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.ptcb-card {
  background: var(--ptcb-surface);
  border: 1px solid var(--ptcb-border);
  border-radius: var(--ptcb-radius);
  box-shadow: var(--ptcb-shadow);
  padding: 24px 26px;
  transition: box-shadow var(--ptcb-transition);
}

.ptcb-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ptcb-border);
}

.ptcb-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ptcb-white);
}

.ptcb-total-count {
  font-size: 12px;
  color: var(--ptcb-muted);
  background: var(--ptcb-surface-2);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.ptcb-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--ptcb-radius-sm);
  font-size: 13px;
  margin-bottom: 18px;
  border-left: 4px solid transparent;
  animation: ptcbFadeIn .25s ease;
}

.ptcb-alert-ok  { background: rgba(34,197,94,.12);  border-color: var(--ptcb-success); color: #4ade80; }
.ptcb-alert-err { background: rgba(239,68,68,.12);   border-color: var(--ptcb-danger);  color: #f87171; }
.ptcb-alert-warn{ background: rgba(245,158,11,.12);  border-color: var(--ptcb-warning); color: #fbbf24; }

@keyframes ptcbFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Notices ──────────────────────────────────────────────────────────────── */
.ptcb-notice {
  background: var(--ptcb-surface);
  border: 1px solid var(--ptcb-border);
  border-radius: var(--ptcb-radius-sm);
  padding: 16px 20px;
  color: var(--ptcb-muted);
  font-size: 13px;
}

.ptcb-notice-warning {
  border-color: var(--ptcb-warning);
  background: rgba(245,158,11,.08);
  color: #fbbf24;
}

/* ── Section header ───────────────────────────────────────────────────────── */
.ptcb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.ptcb-section-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--ptcb-white);
  letter-spacing: -.3px;
}

.ptcb-current-plan-label {
  font-size: 13px;
  color: var(--ptcb-accent);
  background: rgba(124,58,237,.12);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(124,58,237,.3);
}

/* ── Plans Grid ───────────────────────────────────────────────────────────── */
.ptcb-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.ptcb-plan-card {
  background: var(--ptcb-surface);
  border: 2px solid var(--ptcb-border);
  border-radius: var(--ptcb-radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--ptcb-transition), box-shadow var(--ptcb-transition), transform var(--ptcb-transition);
  cursor: default;
}

.ptcb-plan-card:hover {
  border-color: var(--ptcb-primary);
  box-shadow: 0 0 0 1px var(--ptcb-primary), var(--ptcb-shadow-lg);
  transform: translateY(-3px);
}

.ptcb-plan-current {
  border-color: var(--ptcb-accent) !important;
  box-shadow: 0 0 0 1px var(--ptcb-accent-glow), var(--ptcb-shadow);
}

.ptcb-plan-tag {
  position: absolute;
  top: -12px;
  left: 14px;
  background: linear-gradient(135deg, var(--ptcb-primary), var(--ptcb-accent));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 12px;
  border-radius: 20px;
}

.ptcb-plan-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ptcb-white);
}

.ptcb-plan-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--ptcb-accent);
  margin-bottom: 16px;
  line-height: 1;
}

.ptcb-plan-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--ptcb-muted);
  margin-left: 4px;
}

.ptcb-plan-desc {
  font-size: 12px;
  color: var(--ptcb-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.ptcb-plan-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ptcb-plan-feats li {
  font-size: 12px;
  color: var(--ptcb-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── Checkout grid ────────────────────────────────────────────────────────── */
.ptcb-checkout-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  align-items: start;
}

/* Récapitulatif */
.ptcb-order-summary h3,
.ptcb-payment-panel h3 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ptcb-white);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ptcb-border);
}

.ptcb-summary-plan {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--ptcb-border);
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--ptcb-white);
}

.ptcb-summary-desc {
  font-size: 12px;
  color: var(--ptcb-muted);
  margin: 0 0 14px;
}

.ptcb-summary-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ptcb-summary-feats li {
  font-size: 12px;
  color: var(--ptcb-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ptcb-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 2px solid var(--ptcb-border);
  margin-top: 4px;
  font-size: 15px;
  color: var(--ptcb-muted);
}

.ptcb-summary-total strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--ptcb-accent);
}

.ptcb-summary-renewal {
  font-size: 11px;
  color: var(--ptcb-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ptcb-border);
}

/* ── Gateway tabs ─────────────────────────────────────────────────────────── */
.ptcb-gw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ptcb-gw-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: var(--ptcb-surface-2);
  border: 2px solid var(--ptcb-border);
  border-radius: var(--ptcb-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ptcb-muted);
  cursor: pointer;
  transition: border-color var(--ptcb-transition), color var(--ptcb-transition), background var(--ptcb-transition);
}

.ptcb-gw-tab:hover {
  border-color: var(--ptcb-primary);
  color: var(--ptcb-accent);
  background: rgba(124,58,237,.08);
}

.ptcb-gw-tab-active {
  border-color: var(--ptcb-primary) !important;
  color: var(--ptcb-accent) !important;
  background: rgba(124,58,237,.14) !important;
  box-shadow: 0 0 0 1px var(--ptcb-accent-glow);
}

.ptcb-gw-tab-icon { font-size: 18px; }

/* ── Gateway panes ────────────────────────────────────────────────────────── */
.ptcb-gw-pane { }
.ptcb-hidden  { display: none !important; }

/* ── Mobile Money Form ────────────────────────────────────────────────────── */
.ptcb-gateway-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ptcb-mm-instructions {
  background: var(--ptcb-surface-2);
  border: 1px solid var(--ptcb-border);
  border-radius: var(--ptcb-radius-sm);
  padding: 16px 18px;
}

.ptcb-mm-instructions h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ptcb-white);
}

.ptcb-mm-steps {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--ptcb-muted);
  font-size: 12px;
  line-height: 1.8;
}

.ptcb-mm-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ptcb-mm-number-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--ptcb-surface);
  border: 1px solid var(--ptcb-border);
  border-radius: 8px;
  font-size: 12px;
}

.ptcb-mm-orange { border-left: 3px solid #f97316; }
.ptcb-mm-mtn    { border-left: 3px solid #eab308; }
.ptcb-mm-wave   { border-left: 3px solid var(--ptcb-info); }

.ptcb-mm-op-logo  { font-size: 18px; }
.ptcb-mm-op-name  { color: var(--ptcb-muted); font-size: 11px; }
.ptcb-mm-op-num   { font-weight: 700; color: var(--ptcb-text); font-family: monospace; }

.ptcb-mm-amount-recap {
  background: rgba(124,58,237,.10);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ptcb-muted);
  text-align: center;
}

.ptcb-mm-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--ptcb-accent);
  margin-left: 6px;
}

/* ── Virement Form ────────────────────────────────────────────────────────── */
.ptcb-virt-instructions {
  background: var(--ptcb-surface-2);
  border: 1px solid var(--ptcb-border);
  border-radius: var(--ptcb-radius-sm);
  padding: 16px 18px;
}

.ptcb-virt-instructions h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ptcb-white);
}

.ptcb-bank-coords {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.ptcb-bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--ptcb-border-soft);
  font-size: 13px;
  gap: 12px;
}

.ptcb-bank-row:last-child { border-bottom: none; }

.ptcb-bank-label { color: var(--ptcb-muted); flex-shrink: 0; }
.ptcb-bank-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ptcb-text);
  text-align: right;
  word-break: break-all;
}

.ptcb-bank-row-amount .ptcb-bank-value {
  font-size: 18px;
  color: var(--ptcb-accent);
  font-weight: 900;
}

.ptcb-bank-row-ref .ptcb-bank-value {
  color: var(--ptcb-warning);
}

.ptcb-mono { font-family: 'Courier New', Courier, monospace; font-size: 12px; }
.ptcb-ref-highlight {
  background: rgba(245,158,11,.12);
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(245,158,11,.3);
}

.ptcb-virt-warning {
  background: rgba(245,158,11,.10);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #fbbf24;
  margin-top: 12px;
}

.ptcb-virt-delay-notice {
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #93c5fd;
}

/* ── Form fields ──────────────────────────────────────────────────────────── */
.ptcb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ptcb-form-full { grid-column: 1 / -1; }

.ptcb-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ptcb-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ptcb-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ptcb-req { color: var(--ptcb-danger); margin-left: 2px; }

.ptcb-input {
  width: 100%;
  background: var(--ptcb-surface-2);
  border: 1px solid var(--ptcb-border);
  border-radius: var(--ptcb-radius-sm);
  padding: 10px 13px;
  font-size: 13px;
  color: var(--ptcb-text);
  transition: border-color var(--ptcb-transition), box-shadow var(--ptcb-transition);
  outline: none;
}

.ptcb-input:focus {
  border-color: var(--ptcb-primary);
  box-shadow: 0 0 0 3px var(--ptcb-accent-glow);
}

.ptcb-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ptcb-input-prefix {
  position: absolute;
  left: 11px;
  font-size: 15px;
  pointer-events: none;
}

.ptcb-input-wrap .ptcb-input { padding-left: 36px; }

.ptcb-form-group small {
  font-size: 11px;
  color: var(--ptcb-muted);
  margin-top: 2px;
}

select.ptcb-input option { background: var(--ptcb-surface-2); }

textarea.ptcb-input {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

/* ── Copy button ──────────────────────────────────────────────────────────── */
.ptcb-copy-btn {
  background: var(--ptcb-surface-2);
  border: 1px solid var(--ptcb-border);
  border-radius: 5px;
  padding: 4px 9px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ptcb-muted);
  flex-shrink: 0;
  transition: background var(--ptcb-transition), color var(--ptcb-transition);
}

.ptcb-copy-btn:hover {
  background: rgba(124,58,237,.12);
  color: var(--ptcb-accent);
  border-color: var(--ptcb-primary);
}

/* ── Form footer ──────────────────────────────────────────────────────────── */
.ptcb-form-footer {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ptcb-back-link {
  font-size: 12px;
  color: var(--ptcb-muted);
  text-decoration: none;
  transition: color var(--ptcb-transition);
}

.ptcb-back-link:hover { color: var(--ptcb-accent); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.ptcb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--ptcb-radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ptcb-transition), box-shadow var(--ptcb-transition), transform var(--ptcb-transition);
  letter-spacing: .01em;
}

.ptcb-btn:hover    { transform: translateY(-1px); }
.ptcb-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.ptcb-btn-primary {
  background: linear-gradient(135deg, var(--ptcb-primary), #9333ea);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,.4);
}

.ptcb-btn-primary:hover {
  background: linear-gradient(135deg, var(--ptcb-primary-h), #7e22ce);
  box-shadow: 0 6px 20px rgba(124,58,237,.55);
}

.ptcb-btn-outline {
  background: transparent;
  color: var(--ptcb-accent);
  border: 2px solid var(--ptcb-primary);
}

.ptcb-btn-outline:hover {
  background: rgba(124,58,237,.12);
}

.ptcb-btn-full { width: 100%; }
.ptcb-btn-lg   { padding: 14px 26px; font-size: 15px; }
.ptcb-btn-xs   { padding: 4px 12px;  font-size: 11px; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.ptcb-badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}

.ptcb-badge-green  { background: rgba(34,197,94,.15);  color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.ptcb-badge-blue   { background: rgba(59,130,246,.15);  color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.ptcb-badge-yellow { background: rgba(245,158,11,.15);  color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.ptcb-badge-red    { background: rgba(239,68,68,.15);   color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.ptcb-badge-grey   { background: rgba(139,148,158,.12); color: var(--ptcb-muted); border: 1px solid var(--ptcb-border); }

/* ── Subscription Banner ──────────────────────────────────────────────────── */
.ptcb-sub-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--ptcb-surface);
  border: 1px solid var(--ptcb-border);
  border-radius: var(--ptcb-radius);
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: var(--ptcb-shadow);
}

.ptcb-sub-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ptcb-sub-plan {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ptcb-white);
}

.ptcb-sub-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ptcb-muted);
  flex-wrap: wrap;
}

/* ── Subscription Widget ──────────────────────────────────────────────────── */
.ptcb-sub-card { position: relative; overflow: hidden; }

.ptcb-sub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ptcb-primary), var(--ptcb-accent));
}

.ptcb-sub-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ptcb-sub-card-header h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ptcb-white);
}

.ptcb-days-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--ptcb-primary);
  background: rgba(124,58,237,.12);
  flex-shrink: 0;
}

.ptcb-days-urgent {
  border-color: var(--ptcb-danger);
  background: rgba(239,68,68,.1);
  animation: ptcbPulse 2s infinite;
}

@keyframes ptcbPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

.ptcb-days-count {
  font-size: 22px;
  font-weight: 900;
  color: var(--ptcb-accent);
  line-height: 1;
}

.ptcb-days-urgent .ptcb-days-count { color: var(--ptcb-danger); }
.ptcb-days-label { font-size: 10px; color: var(--ptcb-muted); text-transform: uppercase; }

.ptcb-sub-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--ptcb-surface-2);
  border-radius: var(--ptcb-radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.ptcb-sub-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.ptcb-sub-meta-row span { color: var(--ptcb-muted); }
.ptcb-sub-meta-row strong { color: var(--ptcb-text); }

.ptcb-sub-urgency-notice {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #f87171;
  margin-bottom: 14px;
}

.ptcb-sub-urgent { border-color: rgba(239,68,68,.4) !important; }

.ptcb-sub-inactive {
  text-align: center;
  padding: 32px 26px;
}

.ptcb-sub-inactive-icon {
  font-size: 48px;
  margin-bottom: 14px;
  display: block;
  filter: grayscale(1);
  opacity: .5;
}

.ptcb-sub-inactive h3 {
  margin: 0 0 10px;
  color: var(--ptcb-muted);
}

.ptcb-sub-inactive p {
  color: var(--ptcb-muted);
  font-size: 13px;
  margin-bottom: 18px;
}

/* ── Table ────────────────────────────────────────────────────────────────── */
.ptcb-table-wrap { overflow-x: auto; }

.ptcb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ptcb-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ptcb-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--ptcb-border);
  white-space: nowrap;
  background: var(--ptcb-surface-2);
}

.ptcb-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--ptcb-border-soft);
  vertical-align: middle;
  color: var(--ptcb-text);
}

.ptcb-table tbody tr:hover { background: rgba(124,58,237,.04); }
.ptcb-table tbody tr:last-child td { border-bottom: none; }
.ptcb-table code {
  background: var(--ptcb-surface-2);
  border: 1px solid var(--ptcb-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-family: monospace;
  color: var(--ptcb-accent);
}

.ptcb-muted { color: var(--ptcb-muted); }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.ptcb-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding-top: 18px;
  flex-wrap: wrap;
}

.ptcb-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--ptcb-border);
  font-size: 13px;
  text-decoration: none;
  color: var(--ptcb-text);
  background: var(--ptcb-surface-2);
  transition: background var(--ptcb-transition), border-color var(--ptcb-transition);
}

.ptcb-page-btn:hover { background: rgba(124,58,237,.12); border-color: var(--ptcb-primary); }
.ptcb-page-active { background: var(--ptcb-primary) !important; color: #fff !important; border-color: var(--ptcb-primary) !important; }

/* ── Instructions inline (post-soumission) ────────────────────────────────── */
.ptcb-instructions-inline {
  margin: 18px 0;
  animation: ptcbFadeIn .3s ease;
}

.ptcb-instr-box {
  border-radius: var(--ptcb-radius-sm);
  padding: 18px 20px;
}

.ptcb-instr-pending {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.25);
}

.ptcb-instr-pending h4 {
  margin: 0 0 10px;
  color: #fbbf24;
  font-size: 15px;
}

.ptcb-instr-pending p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ptcb-muted);
}

.ptcb-instr-pending p:last-child { margin-bottom: 0; }

/* ── Login required ───────────────────────────────────────────────────────── */
.ptcb-login-required {
  text-align: center;
  padding: 64px 24px;
}

.ptcb-lock-icon {
  font-size: 52px;
  display: block;
  margin-bottom: 16px;
  filter: grayscale(1);
  opacity: .5;
}

.ptcb-login-required h3 {
  margin: 0 0 10px;
  color: var(--ptcb-muted);
}

.ptcb-login-required p {
  color: var(--ptcb-muted);
  font-size: 14px;
}

.ptcb-login-required a { color: var(--ptcb-accent); text-decoration: none; }

.ptcb-empty {
  text-align: center;
  padding: 40px;
  color: var(--ptcb-muted);
  font-size: 13px;
}

.ptcb-empty a { color: var(--ptcb-accent); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .ptcb-checkout-grid { grid-template-columns: 1fr; }
  .ptcb-plans-grid    { grid-template-columns: 1fr; }
  .ptcb-form-grid     { grid-template-columns: 1fr; }
  .ptcb-sub-banner    { flex-direction: column; align-items: flex-start; }
  .ptcb-mm-numbers    { flex-direction: column; }
}

@media (max-width: 540px) {
  .ptcb-wrap        { padding: 14px 0 32px; }
  .ptcb-card        { padding: 16px 14px; }
  .ptcb-sub-card-header { flex-direction: column; align-items: flex-start; }
  .ptcb-days-circle { width: 56px; height: 56px; }
  .ptcb-days-count  { font-size: 18px; }
  .ptcb-gw-tabs     { flex-direction: column; }
  .ptcb-gw-tab      { width: 100%; }
}


/* ── Titres de groupes de fonctionnalités (plan cards) ───────────────────── */
.ptcb-plan-feats .ptcb-feat-group-title,
.ptcb-summary-feats .ptcb-feat-group-title {
    list-style: none;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ptcb-accent, #1a56db);
    margin: 12px 0 4px;
    padding: 0;
    opacity: .85;
}

.ptcb-plan-feats .ptcb-feat-group-title:first-child,
.ptcb-summary-feats .ptcb-feat-group-title:first-child {
    margin-top: 4px;
}
