/* Custom overrides — ported from PHP production build */

/* ── Brand Yastubo: forzar Prime Purple en todos los "primary" del admin ───
   Brand Playbook: Prime Purple #8251F9 (no azul Bootstrap). Aplica a botones,
   links, fondos primary, badges, alerts, etc. heredados de Metronic.
   ──────────────────────────────────────────────────────────────────────── */
:root {
  --bs-primary: #8251F9 !important;
  --bs-primary-rgb: 130, 81, 249 !important;
  --kt-primary: #8251F9 !important;
  --kt-primary-active: #6D3AE8 !important;
  --kt-primary-light: #F3EDFF !important;
  --kt-primary-inverse: #FFFFFF !important;
}

/* Botón primary */
.btn-primary,
.btn.btn-primary {
  background-color: #8251F9 !important;
  border-color: #8251F9 !important;
  color: #FFFFFF !important;
}
.btn-primary:hover,
.btn.btn-primary:hover,
.btn-primary:focus,
.btn.btn-primary:focus,
.btn-primary:active,
.btn.btn-primary:active,
.btn-primary.active {
  background-color: #6D3AE8 !important;
  border-color: #6D3AE8 !important;
  color: #FFFFFF !important;
}
.btn-primary:disabled,
.btn.btn-primary:disabled {
  background-color: #8251F9 !important;
  border-color: #8251F9 !important;
  opacity: 0.55;
}

/* Botón "light primary" (variante claro de Metronic) */
.btn-light-primary,
.btn.btn-light-primary {
  background-color: #F3EDFF !important;
  border-color: #F3EDFF !important;
  color: #6D3AE8 !important;
}
.btn-light-primary:hover,
.btn.btn-light-primary:hover {
  background-color: #8251F9 !important;
  color: #FFFFFF !important;
}

/* Fondos / textos / bordes */
.bg-primary { background-color: #8251F9 !important; }
.text-primary { color: #8251F9 !important; }
.border-primary { border-color: #8251F9 !important; }
.text-hover-primary:hover { color: #8251F9 !important; }

/* Form controls focus ring */
.form-control:focus,
.form-select:focus {
  border-color: #C9AEFF !important;
  box-shadow: 0 0 0 0.25rem rgba(130, 81, 249, 0.18) !important;
}

/* Links primary */
a.text-primary:hover { color: #6D3AE8 !important; }

/* Menu Metronic active state */
.menu-state-primary .menu-item.show > .menu-link.active,
.menu-state-primary .menu-link.active {
  color: #8251F9 !important;
}

table .handle { cursor: grabbing; }
.tipo-subscripcion .badge { font-size: 10pt !important; padding: 6pt; margin: 0 0 0 6pt; }
.btn i.bi { padding-right: 0 !important; padding-left: 0 !important; }
h1 .badge { font-size: 12px; }
.input-group .btn { border: solid 1px var(--bs-gray-300) !important; }

.table thead th {
  font-size: .9rem !important;
  font-weight: 700 !important;
  color: #999 !important;
  text-transform: uppercase !important;
  vertical-align: middle;
  border-bottom-color: var(--bs-gray-300) !important;
  padding: 1rem;
}
.table tbody tr td {
  font-size: 1rem !important;
  color: #666 !important;
  vertical-align: middle;
  border-bottom-color: var(--bs-gray-300) !important;
  padding: 1rem;
}
.table tbody tr.border_color_darker td {
  border-top: solid 1pt var(--bs-gray-300) !important;
}
.table tbody tr .main {
  color: #333 !important;
  font-weight: 700;
}
.table tr td:first-child, .table tr th:first-child {
  padding-left: 20px !important;
}
.table tr td:last-child, .table tr th:last-child {
  padding-right: 20px !important;
}
.table-condensed td, .table-condensed th {
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
}
.table-condensed .btn-sm {
  padding: calc(.2rem + 1px) calc(.4rem + 1px) !important;
  font-size: .9rem;
  border-radius: .425rem;
  font-weight: 400;
}
.drag-handle .fa-solid { font-size: 1.2rem !important; }
.drag-handle { padding: 3px 10px !important; cursor: move; user-select: none; }
.drag-handle:hover { background-color: #ffc; }
.table-active { transition: background-color .15s ease; }
.row-move { transition: transform .15s ease; }
.header { z-index: 10; }
.text-bg-primary, .text-bg-secondary, .text-bg-success, .text-bg-danger, .text-bg-dark {
  color: #fff !important;
}

/* ============================================================
   CUSTOMER PORTAL — Yastubo Design System
   Colors: Purple #7c3aed, Green #22c55e, Dark #1e293b
   ============================================================ */

/* --- Wrapper & Layout --- */
.cp-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f4f6fa;
}

/* --- Sidebar --- */
.cp-sidebar {
  display: flex;
  flex-direction: column;
  width: 220px;
  min-width: 220px;
  padding: 28px 20px 20px;
  background: linear-gradient(180deg, #f8f9ff 0%, #e8f5e9 100%);
  border-right: 1px solid #e8eaf0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.cp-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding-left: 4px;
}
.cp-sidebar-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.5px;
}
.cp-sidebar-logo-text sup {
  font-size: 0.55em;
  font-weight: 600;
  color: #94a3b8;
}

.cp-sidebar-avatar {
  text-align: center;
  margin-bottom: 28px;
}
.cp-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.12);
}
.cp-avatar-circle span {
  font-size: 1.6rem;
  font-weight: 700;
  color: #7c3aed;
}
.cp-avatar-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.cp-avatar-link {
  font-size: 0.78rem;
  color: #94a3b8;
  text-decoration: none;
}
.cp-avatar-link:hover {
  color: #7c3aed;
}

/* --- Sidebar Menu --- */
.cp-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cp-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}
.cp-menu-item:hover {
  background: rgba(124, 58, 237, 0.06);
  color: #7c3aed;
}
.cp-menu-item.active {
  background: #fff;
  color: #7c3aed;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cp-menu-item.active i {
  color: #7c3aed !important;
}
.cp-menu-item i {
  color: #94a3b8;
  font-size: 1.15rem;
}

.cp-sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
}

/* --- Main Content --- */
.cp-main {
  flex: 1;
  padding: 32px 36px;
  overflow-y: auto;
  background: #f4f6fa;
}

/* --- Page Header --- */
.cp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.cp-page-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.3px;
}

/* --- Status Badge (Protegido / Sin cobertura) --- */
.cp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}
.cp-status-active {
  background: #dcfce7;
  color: #16a34a;
}
.cp-status-inactive {
  background: #fef9c3;
  color: #a16207;
}

/* --- Header Buttons --- */
.cp-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s;
}
.cp-icon-btn:hover {
  border-color: #cbd5e1;
  color: #1e293b;
}

.cp-btn-soporte {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s;
}
.cp-btn-soporte:hover {
  border-color: #7c3aed;
  color: #7c3aed;
}

.cp-btn-report-sm {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.cp-btn-report-sm:hover {
  opacity: 0.9;
}

/* ============================================================
   DASHBOARD CARDS
   ============================================================ */

/* --- Top Cards Grid (4 cols) --- */
.cp-cards-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* --- Purple Beneficiarios Card --- */
.cp-card-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  border-radius: 18px;
  padding: 26px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.cp-card-purple-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.cp-card-purple-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 18px;
}
.cp-card-purple-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.cp-btn-add-benef {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  background: #22c55e;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cp-btn-add-benef:hover {
  background: #16a34a;
  color: #fff;
}

.cp-benef-avatars {
  display: flex;
  gap: 16px;
  margin-top: auto;
}
.cp-benef-avatar-item {
  text-align: center;
}
.cp-benef-avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  border: 2px solid rgba(255,255,255,.3);
}
.cp-benef-avatar-name {
  font-size: 0.72rem;
  color: rgba(255,255,255,.8);
}

/* --- Standard White Card --- */
.cp-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px;
  border: 1px solid #e8eaf0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cp-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.cp-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.cp-card-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 16px;
}
.cp-card-sm {
  align-items: flex-start;
  text-align: left;
}
.cp-card-title-sm {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* --- Passbook preview inside card --- */
.cp-passbook-preview {
  background: #fafbfc;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  margin-bottom: 14px;
}
.cp-passbook-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}
.cp-passbook-logo sup {
  font-size: 0.55em;
  color: #94a3b8;
}
.cp-passbook-plan {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

/* --- Card Buttons --- */
.cp-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 10px;
  background: #1e293b;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.cp-btn-dark:hover {
  background: #334155;
  color: #fff;
}

.cp-btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 10px;
  background: #fff;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s;
}
.cp-btn-outline-dark:hover {
  border-color: #1e293b;
}

.cp-btn-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 10px;
  background: #22c55e;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cp-btn-success:hover {
  background: #16a34a;
}
.cp-btn-success:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* --- Bottom Grid (pago + telemedicina + historial) --- */
.cp-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2.5fr;
  gap: 20px;
  margin-bottom: 20px;
}

.cp-card-payments {
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  border: 1px solid #e8eaf0;
}

/* --- Payment History Table --- */
.cp-table {
  width: 100%;
  border-collapse: collapse;
}
.cp-table thead th {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: none;
  padding: 0 12px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.cp-table tbody td {
  font-size: 0.85rem;
  color: #64748b;
  padding: 14px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

/* --- Status Badges --- */
.cp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
}
.cp-badge-success {
  background: #dcfce7;
  color: #16a34a;
}
.cp-badge-success::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}
.cp-badge-warning {
  background: #fef3c7;
  color: #d97706;
}
.cp-badge-warning::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}
.cp-badge-danger {
  background: #fee2e2;
  color: #dc2626;
}

/* --- Report Fallecimiento Card --- */
.cp-report-card {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  border-radius: 18px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.cp-report-content {
  position: relative;
  z-index: 1;
}
.cp-report-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.cp-report-link {
  font-size: 0.9rem;
  color: rgba(255,255,255,.8);
  font-weight: 600;
  text-decoration: none;
}
.cp-report-link:hover {
  color: #fff;
}
.cp-report-logo {
  opacity: 0.4;
}

/* ============================================================
   BENEFICIARIES PAGE
   ============================================================ */

.cp-benef-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  min-height: calc(100vh - 160px);
}

/* --- Left: Beneficiary List --- */
.cp-benef-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-benef-add {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 2px dashed #a78bfa;
  background: transparent;
  color: #7c3aed;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.cp-benef-add:hover {
  background: rgba(124, 58, 237, 0.04);
  border-color: #7c3aed;
}
.cp-benef-add-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ede9fe;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.cp-benef-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8eaf0;
  cursor: pointer;
  transition: all 0.15s;
}
.cp-benef-item:hover {
  border-color: #c4b5fd;
}
.cp-benef-item.active {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  border-color: transparent;
}
.cp-benef-item.active .cp-benef-item-name,
.cp-benef-item.active .cp-benef-item-rel {
  color: #fff;
}
.cp-benef-item.active .cp-benef-item-avatar {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.3);
}
.cp-benef-item.active .cp-benef-item-avatar i {
  color: #fff !important;
}
.cp-benef-item.active .ms-auto {
  color: rgba(255,255,255,.6) !important;
}

.cp-benef-item-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ede9fe;
  border: 2px solid #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cp-benef-item-avatar i {
  color: #7c3aed;
}

.cp-benef-item-info {
  flex: 1;
  min-width: 0;
}
.cp-benef-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-benef-item-rel {
  font-size: 0.78rem;
  color: #94a3b8;
}

.cp-benef-empty {
  text-align: center;
  padding: 40px 20px;
}

/* --- Right: Detail Panel --- */
.cp-benef-detail {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e8eaf0;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.cp-benef-detail-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 30px 0 20px;
  background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
  border-radius: 14px;
}
.cp-benef-detail-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  position: relative;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
}
.cp-benef-detail-check {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.cp-benef-detail-status {
  font-size: 1.1rem;
  font-weight: 800;
  color: #7c3aed;
  font-style: italic;
}

/* --- Document Cards Row --- */
.cp-benef-docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.cp-benef-doc-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 90px;
  justify-content: center;
}
.cp-benef-doc-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #94a3b8;
  background: #334155;
  padding: 2px 6px;
  border-radius: 4px;
}
.cp-benef-doc-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

/* --- Beneficiary Form --- */
.cp-benef-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.cp-benef-form-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}
.cp-benef-form-label {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  min-width: 160px;
  margin: 0;
}
.cp-benef-form-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
  padding: 6px 0;
  outline: none;
}
.cp-benef-form-input:focus {
  color: #1e293b;
}
select.cp-benef-form-input {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 20px;
}

/* --- Beneficiary Action Buttons --- */
.cp-benef-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}
.cp-btn-success-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  background: #22c55e;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cp-btn-success-lg:hover {
  background: #16a34a;
}
.cp-btn-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #fee2e2;
  color: #ef4444;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.cp-btn-delete:hover {
  background: #fecaca;
}

.cp-benef-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 60px 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .cp-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cp-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cp-benef-layout {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 768px) {
  .cp-sidebar {
    display: none;
  }
  .cp-main {
    padding: 20px 16px;
  }
  .cp-cards-grid {
    grid-template-columns: 1fr;
  }
  .cp-bottom-grid {
    grid-template-columns: 1fr;
  }
  .cp-benef-layout {
    grid-template-columns: 1fr;
  }
  .cp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ── Coverages Modal ──────────────────────────────────────────────── */
.cp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cp-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}
.cp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}
.cp-modal-body {
  padding: 24px;
  overflow-y: auto;
}
.cp-coverage-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-coverage-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
}

/* ── Toast notification ───────────────────────────────────────────── */
.cp-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: cp-toast-in 0.3s ease;
}
@keyframes cp-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
