/* ═══════════════════════════════════════════
   MP-TV SaaS — Public Styles
═══════════════════════════════════════════ */
.mptv-pub { max-width: 900px; margin: 0 auto; font-family: 'Segoe UI', Arial, sans-serif; color: #1f2937; }
.mptv-pub-notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.mptv-pub-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.mptv-pub-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.mptv-pub-info    { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }

/* Header */
.mptv-pub-header { text-align: center; margin-bottom: 32px; }
.mptv-pub-logo { font-size: 48px; margin-bottom: 8px; }
.mptv-pub-title { font-size: 26px; font-weight: 800; color: #111; margin: 0 0 4px; }
.mptv-pub-subtitle { font-size: 15px; color: #6b7280; margin: 0 0 8px; }
.mptv-pub-channel-name { font-size: 20px; font-weight: 700; color: #e50000; margin: 4px 0; }

/* Plans */
.mptv-pub-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.mptv-pub-plan-card { cursor: pointer; position: relative; }
.mptv-pub-plan-card input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.mptv-pub-plan-inner {
  border: 2px solid #e5e7eb; border-radius: 12px; padding: 20px;
  transition: all .2s; background: #fff; position: relative;
}
.mptv-pub-plan-card.selected .mptv-pub-plan-inner { border-color: #e50000; box-shadow: 0 0 0 4px rgba(229,0,0,.1); }
.mptv-pub-plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #e50000; color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; white-space: nowrap;
}
.mptv-pub-plan-name { font-size: 16px; font-weight: 800; margin-bottom: 6px; color: #111; }
.mptv-pub-plan-price { font-size: 24px; font-weight: 900; color: #e50000; margin-bottom: 4px; }
.mptv-pub-plan-price span { font-size: 13px; font-weight: 400; color: #9ca3af; }
.mptv-pub-plan-desc { font-size: 12px; color: #6b7280; margin-bottom: 10px; }
.mptv-pub-plan-features { list-style: none; padding: 0; margin: 0; }
.mptv-pub-plan-features li { font-size: 12px; padding: 3px 0; color: #374151; }
.mptv-pub-plan-features li::before { content: '✓ '; color: #10b981; font-weight: 700; }

/* Form */
.mptv-pub-form { background: #f9fafb; border-radius: 12px; padding: 24px; }
.mptv-pub-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mptv-pub-form-group { display: flex; flex-direction: column; gap: 5px; }
.mptv-pub-label { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; }
.mptv-pub-input {
  padding: 10px 14px; border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: 14px; font-family: inherit; transition: border-color .15s; background: #fff;
}
.mptv-pub-input:focus { outline: none; border-color: #e50000; box-shadow: 0 0 0 3px rgba(229,0,0,.08); }
.mptv-pub-btn-submit {
  display: block; width: 100%; padding: 14px;
  background: #e50000; color: #fff; border: none; border-radius: 8px;
  font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 20px;
  transition: background .15s;
}
.mptv-pub-btn-submit:hover { background: #c00; }
.mptv-pub-form-note { text-align: center; font-size: 12px; color: #9ca3af; margin-top: 10px; }

/* Cards */
.mptv-pub-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mptv-pub-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.mptv-pub-card-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: #111; }
.mptv-pub-btn-access {
  display: inline-block; padding: 10px 18px;
  background: #e50000; color: #fff; border-radius: 6px;
  text-decoration: none; font-size: 13px; font-weight: 700;
  margin-bottom: 12px; transition: background .15s;
}
.mptv-pub-btn-access:hover { background: #c00; color: #fff; }
.mptv-pub-access-info { border: 1px solid #f0f0f0; border-radius: 6px; overflow: hidden; }
.mptv-pub-info-row {
  display: flex; gap: 12px; padding: 7px 10px; font-size: 12px;
  border-bottom: 1px solid #f0f0f0; align-items: baseline;
}
.mptv-pub-info-row:last-child { border-bottom: none; }
.mptv-pub-info-row span { color: #9ca3af; min-width: 110px; font-weight: 600; }
.mptv-pub-info-row code { background: #f8f9fa; padding: 2px 6px; border-radius: 4px; font-size: 11px; word-break: break-all; }

/* Status badges */
.mptv-pub-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.status-active   { background: #d1fae5; color: #065f46; }
.status-pending  { background: #fef3c7; color: #92400e; }
.status-suspended{ background: #fee2e2; color: #991b1b; }
.status-cancelled{ background: #f3f4f6; color: #6b7280; }
.status-paid     { background: #d1fae5; color: #065f46; }
.status-sent     { background: #dbeafe; color: #1e40af; }
.status-overdue  { background: #fee2e2; color: #991b1b; }

/* Table */
.mptv-pub-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.mptv-pub-table th { padding: 8px 10px; background: #f9fafb; border-bottom: 2px solid #e5e7eb; text-align: left; font-size: 11px; color: #6b7280; text-transform: uppercase; }
.mptv-pub-table td { padding: 10px; border-bottom: 1px solid #f0f0f0; }

@media (max-width: 700px) {
  .mptv-pub-plans { grid-template-columns: 1fr; }
  .mptv-pub-form-grid { grid-template-columns: 1fr; }
  .mptv-pub-cards { grid-template-columns: 1fr; }
}
