/* ============================================================
   CanAction v4 — Monetization CSS
   Matches DirectoryPress dashboard design
   ============================================================ */

/* ── MEMBERSHIP BANNER ── */
.ca-mem-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.ca-mem-active {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
}
.ca-mem-upgrade {
    background: #fff;
    border: 2px solid #2563eb;
    color: #1e293b;
}
.ca-mem-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ca-mem-crown { font-size: 26px; }
.ca-mem-left strong { display: block; font-size: 15px; font-weight: 700; }
.ca-mem-left span { font-size: 13px; opacity: .85; }
.ca-mem-upgrade .ca-mem-left span { color: #64748b; opacity: 1; }
.ca-mem-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ca-mem-badge {
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}
.ca-trial-tag {
    background: rgba(255,255,255,.25);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
}
.ca-trial-pill {
    background: #fef9c3;
    color: #713f12;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}
.ca-upg-btn {
    padding: 8px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: #2563eb;
    color: #fff;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}
.ca-upg-btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.ca-upg-pp { background: #003087; }
.ca-upg-pp:hover { background: #002272; }

/* ── ALERTS ── */
.ca-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.ca-alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ca-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ── STAT CARDS — matches DP blue/green/red/orange ── */
.ca-stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.ca-stat-card {
    border-radius: 10px;
    padding: 20px 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ca-sc-blue   { background: #2563eb; }
.ca-sc-green  { background: #16a34a; }
.ca-sc-red    { background: #ef4444; }
.ca-sc-orange { background: #f97316; }
.ca-sc-num {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.ca-sc-label {
    font-size: 13px;
    font-weight: 500;
    opacity: .9;
}
.ca-sc-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    opacity: .25;
}

/* ── YOUR LISTINGS HEADER ── */
.ca-yl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ca-yl-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.ca-add-btn {
    background: #2563eb;
    color: #fff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background .15s;
}
.ca-add-btn:hover { background: #1d4ed8; color: #fff; }
.ca-add-locked { background: #64748b; }
.ca-add-locked:hover { background: #475569; }

/* ── LISTINGS TABLE ── */
.ca-listing-table-wrap {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8ecf0;
    overflow: hidden;
    margin-bottom: 20px;
}
.ca-listing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ca-listing-table thead tr {
    background: #f8f9fa;
    border-bottom: 1px solid #e8ecf0;
}
.ca-listing-table th {
    padding: 13px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}
.ca-listing-table tbody tr {
    border-bottom: 1px solid #f1f4f7;
    transition: background .12s;
}
.ca-listing-table tbody tr:last-child { border-bottom: none; }
.ca-listing-table tbody tr:hover { background: #f8fafc; }
.ca-lt-row.ca-lt-boosted { background: #fffdf0; }
.ca-lt-row.ca-lt-boosted:hover { background: #fef9e0; }

.ca-listing-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

/* Title cell */
.ca-td-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ca-lt-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ca-lt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ca-lt-thumb-placeholder { font-size: 22px; }
.ca-lt-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ca-lt-cat { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.ca-lt-name { font-size: 14px; font-weight: 600; color: #1e293b; }
.ca-lt-price { font-size: 13px; color: #16a34a; font-weight: 600; }
.ca-lt-reject { font-size: 11px; color: #dc2626; }

/* Expiry */
.ca-no-expiry { color: #94a3b8; font-size: 13px; }

/* Status badges — matches DP style */
.ca-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.ca-status-active   { background: #dcfce7; color: #16a34a; }
.ca-status-pending  { background: #fef9c3; color: #92400e; }
.ca-status-rejected { background: #fee2e2; color: #dc2626; }

/* Listing ID */
.ca-lt-id {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Boost cell */
.ca-td-boost { min-width: 110px; }
.ca-boost-btn {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, transform .1s;
}
.ca-boost-btn:hover { background: #ffedd5; transform: translateY(-1px); }
.ca-boost-active-cell { display: flex; flex-direction: column; gap: 3px; }
.ca-boosted-tag { font-size: 12px; font-weight: 700; color: #d97706; }
.ca-boost-mini-bar { height: 4px; background: #e2e8f0; border-radius: 99px; overflow: hidden; width: 80px; }
.ca-boost-mini-fill { height: 100%; background: linear-gradient(90deg,#f59e0b,#fbbf24); border-radius: 99px; }
.ca-boost-days-left { font-size: 11px; color: #94a3b8; }

/* Configure dropdown — matches DP "Configure ▾" */
.ca-configure-wrap { position: relative; display: inline-block; }
.ca-configure-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: background .12s;
}
.ca-configure-btn:hover { background: #e8eef4; }
.ca-caret { font-size: 10px; transition: transform .15s; }
.ca-configure-wrap.open .ca-caret { transform: rotate(180deg); }
.ca-configure-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 160px;
    z-index: 100;
    overflow: hidden;
}
.ca-configure-wrap.open .ca-configure-menu { display: block; }
.ca-configure-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: background .1s;
    border-bottom: 1px solid #f1f5f9;
}
.ca-configure-menu a:last-child { border-bottom: none; }
.ca-configure-menu a:hover { background: #f8fafc; color: #2563eb; }

/* ── EMPTY STATE ── */
.ca-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
    margin-bottom: 20px;
}
.ca-empty .ca-empty-icon { font-size: 44px; margin-bottom: 12px; }
.ca-empty h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.ca-empty p { font-size: 14px; color: #64748b; margin-bottom: 20px; }

/* ── LIMIT ROW ── */
.ca-limit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px 18px;
    gap: 12px;
    font-size: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.ca-limit-row div { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── BOOST MODAL ── */
.ca-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 9000;
    backdrop-filter: blur(2px);
}
.ca-overlay.active { display: block; }
.ca-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9001;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ca-modal.active { display: flex; }
.ca-modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
    animation: ca-pop .2s cubic-bezier(.34,1.56,.64,1);
}
@keyframes ca-pop {
    from { transform: scale(.88) translateY(16px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.ca-modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: #f1f5f9;
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 15px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s;
}
.ca-modal-close:hover { background: #e2e8f0; }
.ca-modal-icon { font-size: 44px; margin-bottom: 10px; }
.ca-modal-box h3 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.ca-modal-listing-name { font-size: 13px; color: #64748b; margin-bottom: 16px; }
.ca-boost-stats-row {
    display: flex;
    justify-content: space-around;
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 10px;
    margin-bottom: 16px;
}
.ca-boost-stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ca-boost-stat-item strong { font-size: 18px; color: #2563eb; font-weight: 800; }
.ca-boost-stat-item span { font-size: 11px; color: #94a3b8; }
.ca-modal-price {
    font-size: 36px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 18px;
}
.ca-modal-price small { font-size: 15px; font-weight: 400; color: #94a3b8; }
.ca-modal-pay-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.ca-pay-btn-full {
    width: 100%;
    padding: 13px 16px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ca-pay-btn-full:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.ca-pay-stripe.ca-pay-btn-full { background: #2563eb; color: #fff; }
.ca-pay-stripe.ca-pay-btn-full:hover { background: #1d4ed8; }
.ca-paypal-full { background: #003087; color: #fff; }
.ca-paypal-full:hover { background: #002272; }
.ca-modal-note { font-size: 12px; color: #94a3b8; margin: 0; }

/* Also style the upgrade buttons used outside modal */
.ca-pay-stripe:not(.ca-pay-btn-full):not(.ca-upg-btn):not(.ca-add-btn) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: #2563eb;
    color: #fff;
    transition: background .15s;
}
.ca-pay-paypal:not(.ca-pay-btn-full):not(.ca-upg-pp) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: #003087;
    color: #fff;
    transition: background .15s;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .ca-stat-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ca-th-id, .ca-td-id, .ca-th-expiry, .ca-td-expiry { display: none; }
    .ca-listing-table th, .ca-listing-table td { padding: 10px 10px; }
}
@media (max-width: 520px) {
    .ca-stat-cards { grid-template-columns: 1fr 1fr; }
    .ca-mem-banner { flex-direction: column; align-items: flex-start; }
    .ca-yl-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ca-th-boost, .ca-td-boost { display: none; }
}

/* ════════════════════════════════════
   PRICING PAGE — [ca_pricing]
════════════════════════════════════ */
.ca-pricing-page {
    max-width: 860px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Trial banner */
.ca-trial-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg,#fef9c3,#fef3c7);
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}
.ca-trial-banner strong { display:block; font-size:16px; color:#92400e; margin-bottom:3px; }
.ca-trial-banner span   { font-size:13px; color:#713f12; }
.ca-trial-slots-badge {
    background: #f59e0b;
    color: #fff;
    border-radius: 20px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}
.ca-trial-progress-wrap {
    background: #e5e7eb;
    border-radius: 99px;
    height: 8px;
    margin-bottom: 6px;
    overflow: hidden;
}
.ca-trial-bar {
    height: 100%;
    background: linear-gradient(90deg,#f59e0b,#fbbf24);
    border-radius: 99px;
    transition: width 1s;
}
.ca-trial-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 28px;
}

/* Plans grid */
.ca-plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
.ca-plan {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px 24px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
}
.ca-plan-premium {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,.15), 0 4px 20px rgba(37,99,235,.1);
}
.ca-plan-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    border-radius: 20px;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.ca-plan-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #64748b;
    margin-bottom: 10px;
}
.ca-plan-price {
    font-size: 38px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1;
}
.ca-plan-price span { font-size:15px; font-weight:400; color:#94a3b8; }
.ca-plan-sub { font-size:12px; color:#94a3b8; margin-bottom:18px; }
.ca-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ca-plan-features li {
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}
.ca-plan-features li.yes::before { content:'✓'; color:#16a34a; font-weight:700; font-size:14px; }
.ca-plan-features li.no  { color:#d1d5db; }
.ca-plan-features li.no::before  { content:'✗'; color:#d1d5db; font-weight:700; }
.ca-plan-current {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    padding: 12px;
    background: #f8fafc;
    border-radius: 9px;
    margin-top: auto;
}
.ca-plan-active {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 9px;
    margin-top: auto;
}
.ca-btn-plan {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: #f1f5f9;
    color: #475569;
    border: none;
    cursor: pointer;
    transition: background .15s;
    margin-top: auto;
}
.ca-btn-plan.ca-btn-primary { background:#2563eb; color:#fff; }
.ca-btn-plan:hover { opacity:.85; }

/* Pay buttons on pricing page */
.ca-plan .ca-pay-btn,
.ca-plan .ca-pay-stripe,
.ca-plan .ca-pay-paypal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.ca-plan .ca-pay-stripe { background:#2563eb; color:#fff; }
.ca-plan .ca-pay-stripe:hover { background:#1d4ed8; transform:translateY(-1px); }
.ca-plan .ca-pay-paypal { background:#003087; color:#fff; }
.ca-plan .ca-pay-paypal:hover { background:#002272; transform:translateY(-1px); }

/* Boost CTA box */
.ca-boost-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg,#0f172a,#1e3a8a);
    color: #fff;
    border-radius: 18px;
    padding: 28px 32px;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.ca-boost-cta-left h3 { font-size:22px; margin:0 0 8px; }
.ca-boost-cta-left p  { font-size:14px; opacity:.85; margin:0 0 16px; }
.ca-boost-cta-left a  { color:#93c5fd; }
.ca-boost-stats { display:flex; gap:24px; }
.ca-boost-stat  { display:flex; flex-direction:column; }
.ca-boost-stat strong { font-size:22px; color:#fbbf24; font-weight:800; }
.ca-boost-stat span   { font-size:12px; opacity:.75; }
.ca-boost-cta-right { text-align:center; flex-shrink:0; }
.ca-boost-price-big { font-size:52px; font-weight:900; line-height:1; }

/* FAQ */
.ca-faq { border-top:1px solid #e2e8f0; padding-top:24px; }
.ca-faq h2 { font-size:20px; font-weight:700; margin-bottom:16px; color:#1e293b; }
.ca-faq-item { border-bottom:1px solid #f1f5f9; padding:16px 0; }
.ca-faq-item:last-child { border-bottom:none; }
.ca-faq-q { font-size:15px; font-weight:600; margin-bottom:5px; color:#1e293b; }
.ca-faq-a { font-size:14px; color:#64748b; line-height:1.6; }

/* Responsive */
@media (max-width:600px) {
    .ca-plans-grid { grid-template-columns:1fr; }
    .ca-boost-cta-box { flex-direction:column; }
    .ca-boost-price-big { font-size:38px; }
    .ca-trial-banner { flex-direction:column; }
}
