/* PropInsider Intelligence Platform - Public Styles */

/* ===== LAYOUT ===== */
.pi-single-firm,
.pi-archive-firm,
.pi-single-radar-event,
.pi-archive-radar-event,
.pi-discounts-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* ===== BREADCRUMB ===== */
.pi-breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}
.pi-breadcrumb a { color: #0073aa; text-decoration: none; }
.pi-breadcrumb a:hover { text-decoration: underline; }

/* ===== DISCLOSURE BANNER ===== */
.pi-disclosure-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

/* ===== SINGLE FIRM ===== */
.pi-firm-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.pi-firm-header__logo { flex-shrink: 0; }
.pi-firm-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 8px;
    background: #fff;
}
.pi-firm-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}
.pi-trustpilot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.pi-tp-stars { color: #00b67a; font-size: 18px; letter-spacing: 1px; }
.pi-tp-rating { font-weight: 600; font-size: 16px; }
.pi-tp-link {
    font-size: 13px;
    color: #00b67a;
    text-decoration: none;
    border-bottom: 1px dotted #00b67a;
}
.pi-firm-meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: #555;
}

/* ===== FACT CARDS ===== */
.pi-firm-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.pi-fact-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.pi-fact-card__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 6px;
}
.pi-fact-card__value {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

/* ===== BADGES ===== */
.pi-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.pi-badge--region { background: #e3f2fd; color: #1565c0; }
.pi-badge--platform { background: #f3e5f5; color: #7b1fa2; }
.pi-badge--market { background: #e8f5e9; color: #2e7d32; }
.pi-badge--trust { background: #e8f5e9; color: #2e7d32; }
.pi-badge--trust.pi-badge--negative_press { background: #ffebee; color: #c62828; }
.pi-badge--event-type { background: #fff3e0; color: #e65100; }
.pi-badge--urgency { font-weight: 700; text-transform: uppercase; font-size: 11px; }
.pi-badge--high { background: #f44336; color: #fff; }
.pi-badge--medium { background: #ff9800; color: #fff; }
.pi-badge--low { background: #4caf50; color: #fff; }
.pi-badge--sentiment-positive { background: #e8f5e9; color: #2e7d32; }
.pi-badge--sentiment-neutral { background: #f5f5f5; color: #616161; }
.pi-badge--sentiment-negative { background: #ffebee; color: #c62828; }

.pi-trust-flags,
.pi-taxonomy-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

/* ===== CONTENT ===== */
.pi-firm-content {
    margin-bottom: 40px;
    line-height: 1.7;
}
.pi-firm-content h2 {
    font-size: 22px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #222;
}

/* ===== CTA BUTTONS ===== */
.pi-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}
.pi-btn--primary {
    background: #222;
    color: #fff;
    border-color: #222;
}
.pi-btn--primary:hover { background: #444; border-color: #444; color: #fff; }
.pi-btn--secondary {
    background: #fff;
    color: #222;
    border-color: #ddd;
}
.pi-btn--secondary:hover { border-color: #222; }
.pi-btn--outline {
    background: transparent;
    color: #222;
    border-color: #ccc;
}
.pi-btn--outline:hover { border-color: #222; }
.pi-btn--sm { padding: 6px 16px; font-size: 13px; }
.pi-btn--promo {
    background: #00b67a;
    color: #fff;
    border-color: #00b67a;
}
.pi-btn--promo:hover { background: #009e6a; }

.pi-firm-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

/* ===== PROMOTIONS SECTION ===== */
.pi-firm-promotions,
.pi-firm-radar-events,
.pi-firm-review-link {
    margin-bottom: 40px;
}
.pi-firm-promotions h2,
.pi-firm-radar-events h2,
.pi-firm-review-link h2 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #222;
}
.pi-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.pi-promo-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}
.pi-promo-card h3 { font-size: 16px; margin: 0 0 8px; }
.pi-promo-code {
    background: #fff;
    border: 1px dashed #ccc;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}
.pi-promo-expiry { font-size: 13px; color: #666; margin-bottom: 12px; }

/* ===== EVENT CARDS ===== */
.pi-events-list { display: flex; flex-direction: column; gap: 12px; }
.pi-event-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px 20px;
}
.pi-event-card__meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.pi-event-date { font-size: 13px; color: #888; }
.pi-event-card h3 { font-size: 16px; margin: 0 0 6px; }
.pi-event-card h3 a { color: #222; text-decoration: none; }
.pi-event-card h3 a:hover { color: #0073aa; }
.pi-event-card p { font-size: 14px; color: #555; margin: 0; }

/* ===== ARCHIVE: FIRM DIRECTORY ===== */
.pi-archive-header {
    text-align: center;
    margin-bottom: 30px;
}
.pi-archive-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}
.pi-archive-desc {
    font-size: 16px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== FILTERS ===== */
.pi-filters {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}
.pi-filters__row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.pi-filter-group {
    flex: 1;
    min-width: 150px;
}
.pi-filter-group--search { min-width: 200px; }
.pi-filter-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 600;
}
.pi-filter-select,
.pi-filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

/* ===== FIRM CARD GRID ===== */
.pi-firm-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pi-firm-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s;
}
.pi-firm-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.pi-firm-card__logo { flex-shrink: 0; }
.pi-firm-card-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 4px;
}
.pi-firm-card-placeholder {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
}
.pi-firm-card__body { flex: 1; }
.pi-firm-card__title { font-size: 18px; margin: 0 0 6px; }
.pi-firm-card__title a { color: #222; text-decoration: none; }
.pi-firm-card__title a:hover { color: #0073aa; }
.pi-firm-card__excerpt { font-size: 14px; color: #666; margin: 0 0 8px; }
.pi-firm-card__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}
.pi-tp-inline { color: #00b67a; font-weight: 600; }
.pi-tp-stars-sm { font-size: 14px; }
.pi-firm-card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.pi-firm-card__action { flex-shrink: 0; }

/* ===== PAGINATION ===== */
.pi-pagination {
    margin-top: 30px;
    text-align: center;
}

/* ===== NO RESULTS ===== */
.pi-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* ===== LOADING SPINNER ===== */
.pi-loading {
    display: none;
    text-align: center;
    padding: 40px;
}
.pi-loading.active { display: block; }
.pi-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: #222;
    border-radius: 50%;
    animation: pi-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes pi-spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .pi-firm-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pi-firm-card {
        flex-direction: column;
        text-align: center;
    }
    .pi-firm-card__meta { justify-content: center; }
    .pi-firm-card__badges { justify-content: center; }
    .pi-filters__row { flex-direction: column; }
    .pi-filter-group { min-width: 100%; }
    .pi-firm-cta { justify-content: center; }
    .pi-firm-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== RADAR FEED ===== */
.pi-radar-feed {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e9ecef;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}
.pi-radar-item {
    background: #fff;
    padding: 20px 24px;
    transition: background 0.15s;
}
.pi-radar-item:hover { background: #fafbfc; }
.pi-radar-item__badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.pi-radar-item__title { font-size: 17px; margin: 0 0 6px; line-height: 1.4; }
.pi-radar-item__title a { color: #222; text-decoration: none; }
.pi-radar-item__title a:hover { color: #0073aa; }
.pi-radar-item__summary { font-size: 14px; color: #555; margin: 0 0 10px; line-height: 1.6; }
.pi-radar-item__firms { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.pi-firm-chip {
    display: inline-block;
    padding: 2px 10px;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}
.pi-firm-chip:hover { background: #e9ecef; border-color: #adb5bd; }
.pi-radar-item__source { font-size: 12px; color: #999; }

/* ===== SINGLE RADAR EVENT ===== */
.pi-radar-header { margin-bottom: 30px; }
.pi-radar-header__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.pi-radar-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}
.pi-radar-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #555;
}
.pi-radar-summary {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #222;
    border-radius: 0 8px 8px 0;
}
.pi-radar-summary h2 { font-size: 18px; margin: 0 0 8px; }
.pi-radar-summary p { margin: 0; font-size: 16px; line-height: 1.6; }
.pi-radar-what-changed { margin-bottom: 30px; }
.pi-radar-what-changed h2 {
    font-size: 20px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #222;
}
.pi-what-changed-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    line-height: 1.7;
}
.pi-radar-content { margin-bottom: 30px; line-height: 1.7; }
.pi-radar-linked-firms { margin-bottom: 30px; }
.pi-radar-linked-firms h2 {
    font-size: 20px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #222;
}
.pi-linked-firms-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.pi-linked-firm-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    transition: box-shadow 0.2s;
}
.pi-linked-firm-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.pi-linked-firm-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
}
.pi-firm-card-placeholder--sm {
    width: 40px;
    height: 40px;
    font-size: 16px;
}
.pi-linked-firm-meta { display: block; font-size: 12px; color: #888; }
.pi-radar-source { margin-top: 30px; padding-top: 24px; border-top: 1px solid #eee; }

/* ===== DISCOUNTS PAGE ===== */
.pi-discounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.pi-discount-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.pi-discount-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.pi-discount-card--active { border-left: 4px solid #00b67a; }
.pi-discount-card--expired { opacity: 0.6; }
.pi-discount-card__header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}
.pi-discount-firm-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
}
.pi-discount-card__title { font-size: 18px; margin: 0; line-height: 1.3; }
.pi-discount-card__firm { font-size: 13px; color: #0073aa; }
.pi-discount-card__firm a { color: inherit; text-decoration: none; }
.pi-discount-card__firm a:hover { text-decoration: underline; }
.pi-discount-card__desc { font-size: 14px; color: #555; line-height: 1.5; margin: 0 0 14px; flex: 1; }
.pi-coupon-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.pi-coupon-label { font-size: 12px; color: #666; text-transform: uppercase; }
.pi-coupon-code {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    letter-spacing: 1px;
    font-family: monospace;
}
.pi-discount-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.pi-discount-expiry { font-size: 12px; color: #888; }

@media (max-width: 768px) {
    .pi-discounts-grid { grid-template-columns: 1fr; }
    .pi-radar-title { font-size: 24px; }
    .pi-radar-meta { flex-direction: column; gap: 4px; }
}

/* ===== ELEMENTOR WIDGET — NEEON-MATCHED ===== */
/* Matches Neeon theme: Spartan headings, Roboto body, #2962ff accent, 4px radius */

/* --- Firm Grid Widget --- */
.pi-ew-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.pi-ew-grid .pi-firm-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}
.pi-ew-grid .pi-firm-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.pi-ew-grid .pi-firm-card__logo {
    padding: 20px 20px 0;
    flex-shrink: 0;
}
.pi-ew-grid .pi-firm-card-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    padding: 4px;
}
.pi-ew-grid .pi-firm-card-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2962ff;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Spartan', sans-serif;
}
.pi-ew-grid .pi-firm-card__body {
    padding: 15px 20px;
    flex: 1;
}
.pi-ew-grid .pi-firm-card__title {
    font-family: 'Spartan', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}
.pi-ew-grid .pi-firm-card__title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}
.pi-ew-grid .pi-firm-card__title a:hover { color: #2962ff; }
.pi-ew-grid .pi-firm-card__excerpt {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #6c6f72;
    line-height: 1.6;
    margin: 0 0 10px;
}
.pi-ew-grid .pi-firm-card__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 500;
    color: #a5a6aa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}
.pi-ew-grid .pi-tp-inline { color: #00b67a; font-weight: 600; text-transform: none; letter-spacing: 0; }
.pi-ew-grid .pi-tp-stars-sm { font-size: 13px; }
.pi-ew-grid .pi-firm-card__badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.pi-ew-grid .pi-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px 3px;
    border-radius: 2px;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.pi-ew-grid .pi-badge--region { background: #e3f2fd; color: #1565c0; }
.pi-ew-grid .pi-badge--platform { background: #f3e5f5; color: #7b1fa2; }
.pi-ew-grid .pi-badge--market { background: #e8f5e9; color: #2e7d32; }
.pi-ew-grid .pi-firm-card__action {
    padding: 0 20px 20px;
    margin-top: auto;
}
.pi-ew-grid .pi-btn--sm {
    display: inline-block;
    background: #2962ff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 10px 16px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
}
.pi-ew-grid .pi-btn--sm:hover { background: #0034c2; color: #fff; }

/* List layout */
.pi-ew-grid--list { grid-template-columns: 1fr; gap: 15px; }
.pi-ew-grid--list .pi-firm-card {
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    border: 1px solid #e5e5e5;
}
.pi-ew-grid--list .pi-firm-card__logo { padding: 15px; }
.pi-ew-grid--list .pi-firm-card__body { padding: 15px 0; }
.pi-ew-grid--list .pi-firm-card__action { padding: 15px; }

/* Compact layout */
.pi-ew-grid--compact { gap: 0; }
.pi-ew-grid--compact .pi-firm-card {
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    border-radius: 0;
    border-bottom: 1px solid #e5e5e5;
    border-left: none;
    border-right: none;
    border-top: none;
}
.pi-ew-grid--compact .pi-firm-card:first-child { border-top: 1px solid #e5e5e5; }
.pi-ew-grid--compact .pi-firm-card__logo { padding: 0; }
.pi-ew-grid--compact .pi-firm-card-img,
.pi-ew-grid--compact .pi-firm-card-placeholder { width: 36px; height: 36px; font-size: 14px; }
.pi-ew-grid--compact .pi-firm-card__body { padding: 0; }
.pi-ew-grid--compact .pi-firm-card__title { font-size: 15px; margin: 0; }
.pi-ew-grid--compact .pi-firm-card__action { padding: 0; }

/* --- Radar Feed Widget --- */
.pi-ew-radar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.pi-ew-radar-grid .pi-radar-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    transition: all 0.4s ease;
}
.pi-ew-radar-grid .pi-radar-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Radar badges - Neeon matched */
.pi-ew-radar-grid .pi-badge,
.pi-radar-feed .pi-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px 3px;
    border-radius: 2px;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.pi-radar-item__title {
    font-family: 'Spartan', sans-serif;
}
.pi-radar-item__summary {
    font-family: 'Roboto', sans-serif;
}

/* --- Promotions Grid Widget --- */
.pi-ew-promos-grid {
    display: grid;
    gap: 20px;
}

/* --- Pagination (Neeon-matched) --- */
.pi-ew-pagination { margin-top: 30px; text-align: center; }
.pi-ew-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px 6px;
    margin: 0 3px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    color: #000;
    font-family: 'Spartan', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}
.pi-ew-pagination .page-numbers:hover { border-color: #2962ff; color: #2962ff; }
.pi-ew-pagination .page-numbers.current {
    background: #2962ff;
    color: #fff;
    border-color: #2962ff;
}
.pi-ew-load-more { margin-top: 30px; text-align: center; }
.pi-load-more-btn {
    background: #fff;
    color: #000;
    font-family: 'Spartan', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 14px 28px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.pi-load-more-btn:hover { background: #2962ff; color: #fff; border-color: #2962ff; }

/* --- Compare Table (Neeon-matched) --- */
.pi-compare-table {
    font-family: 'Roboto', sans-serif;
    border-color: #e5e5e5;
}
.pi-compare-header { background: #f7f7f7 !important; }
.pi-compare-row { border-color: #e5e5e5 !important; }

/* --- Single Firm Card (Neeon-matched) --- */
.pi-sf-card {
    font-family: 'Roboto', sans-serif;
    border-color: #e5e5e5 !important;
}
.pi-sf-title {
    font-family: 'Spartan', sans-serif !important;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .pi-ew-grid { grid-template-columns: repeat(2, 1fr); }
    .pi-ew-radar-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .pi-ew-grid { grid-template-columns: 1fr; }
}

/* --- Dark Mode (Neeon-matched) --- */
[data-theme="dark-mode"] .pi-ew-grid .pi-firm-card {
    background: #101213;
    border-color: #222121;
}
[data-theme="dark-mode"] .pi-ew-grid .pi-firm-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
[data-theme="dark-mode"] .pi-ew-grid .pi-firm-card__title a { color: #fff; }
[data-theme="dark-mode"] .pi-ew-grid .pi-firm-card__title a:hover { color: #2962ff; }
[data-theme="dark-mode"] .pi-ew-grid .pi-firm-card__excerpt { color: #d7d7d7; }
[data-theme="dark-mode"] .pi-ew-grid .pi-firm-card__meta { color: #afafaf; }
[data-theme="dark-mode"] .pi-ew-grid .pi-firm-card-img { border-color: #222121; }
[data-theme="dark-mode"] .pi-ew-grid .pi-firm-card--compact { border-color: #222121; }
[data-theme="dark-mode"] .pi-ew-radar-grid .pi-radar-item {
    background: #101213;
    border-color: #222121;
}
[data-theme="dark-mode"] .pi-ew-pagination .page-numbers {
    border-color: #222121;
    color: #fff;
}
[data-theme="dark-mode"] .pi-ew-pagination .page-numbers:hover { color: #2962ff; }
[data-theme="dark-mode"] .pi-load-more-btn {
    background: #101213;
    color: #fff;
    border-color: #222121;
}
[data-theme="dark-mode"] .pi-compare-table { border-color: #222121 !important; }
[data-theme="dark-mode"] .pi-compare-header { background: #101213 !important; }
[data-theme="dark-mode"] .pi-compare-row { border-color: #222121 !important; }
[data-theme="dark-mode"] .pi-sf-card { background: #101213 !important; border-color: #222121 !important; }
[data-theme="dark-mode"] .pi-sf-title { color: #fff !important; }

/* ===== DARK MODE ===== */
/* Matches Neeon theme convention: [data-theme="dark-mode"] on <html> */

[data-theme="dark-mode"] .pi-single-firm,
[data-theme="dark-mode"] .pi-archive-firm,
[data-theme="dark-mode"] .pi-single-radar-event,
[data-theme="dark-mode"] .pi-archive-radar-event,
[data-theme="dark-mode"] .pi-discounts-page {
    color: #e0e0e0;
}

/* Cards & Panels */
[data-theme="dark-mode"] .pi-fact-card,
[data-theme="dark-mode"] .pi-firm-card,
[data-theme="dark-mode"] .pi-promo-card,
[data-theme="dark-mode"] .pi-event-card,
[data-theme="dark-mode"] .pi-discount-card,
[data-theme="dark-mode"] .pi-linked-firm-card,
[data-theme="dark-mode"] .pi-filters,
[data-theme="dark-mode"] .pi-radar-summary,
[data-theme="dark-mode"] .pi-what-changed-box,
[data-theme="dark-mode"] .pi-coupon-box {
    background: #171818;
    border-color: #2a2d2e;
}
[data-theme="dark-mode"] .pi-radar-item {
    background: #171818;
}
[data-theme="dark-mode"] .pi-radar-feed {
    background: #2a2d2e;
    border-color: #2a2d2e;
}
[data-theme="dark-mode"] .pi-radar-item:hover,
[data-theme="dark-mode"] .pi-firm-card:hover,
[data-theme="dark-mode"] .pi-discount-card:hover,
[data-theme="dark-mode"] .pi-linked-firm-card:hover {
    background: #1e2021;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Text Colors */
[data-theme="dark-mode"] .pi-firm-title,
[data-theme="dark-mode"] .pi-archive-title,
[data-theme="dark-mode"] .pi-radar-title,
[data-theme="dark-mode"] .pi-fact-card__value,
[data-theme="dark-mode"] .pi-firm-card__title a,
[data-theme="dark-mode"] .pi-event-card h3 a,
[data-theme="dark-mode"] .pi-radar-item__title a,
[data-theme="dark-mode"] .pi-discount-card__title,
[data-theme="dark-mode"] .pi-coupon-code {
    color: #e0e0e0;
}
[data-theme="dark-mode"] .pi-archive-desc,
[data-theme="dark-mode"] .pi-firm-meta-inline,
[data-theme="dark-mode"] .pi-firm-card__excerpt,
[data-theme="dark-mode"] .pi-firm-card__meta,
[data-theme="dark-mode"] .pi-event-card p,
[data-theme="dark-mode"] .pi-radar-item__summary,
[data-theme="dark-mode"] .pi-discount-card__desc,
[data-theme="dark-mode"] .pi-radar-meta {
    color: #aaa;
}
[data-theme="dark-mode"] .pi-fact-card__label,
[data-theme="dark-mode"] .pi-filter-group label,
[data-theme="dark-mode"] .pi-promo-expiry,
[data-theme="dark-mode"] .pi-discount-expiry,
[data-theme="dark-mode"] .pi-event-date,
[data-theme="dark-mode"] .pi-coupon-label,
[data-theme="dark-mode"] .pi-radar-item__source,
[data-theme="dark-mode"] .pi-breadcrumb,
[data-theme="dark-mode"] .pi-linked-firm-meta {
    color: #888;
}
[data-theme="dark-mode"] .pi-breadcrumb a,
[data-theme="dark-mode"] .pi-tp-link {
    color: #4db8ff;
}

/* Borders */
[data-theme="dark-mode"] .pi-firm-header,
[data-theme="dark-mode"] .pi-firm-content h2,
[data-theme="dark-mode"] .pi-firm-cta,
[data-theme="dark-mode"] .pi-radar-source,
[data-theme="dark-mode"] .pi-firm-promotions h2,
[data-theme="dark-mode"] .pi-firm-radar-events h2,
[data-theme="dark-mode"] .pi-firm-review-link h2,
[data-theme="dark-mode"] .pi-radar-what-changed h2,
[data-theme="dark-mode"] .pi-radar-linked-firms h2 {
    border-color: #2a2d2e;
}
[data-theme="dark-mode"] .pi-firm-logo,
[data-theme="dark-mode"] .pi-firm-card-img,
[data-theme="dark-mode"] .pi-discount-firm-logo,
[data-theme="dark-mode"] .pi-linked-firm-img {
    border-color: #2a2d2e;
}
[data-theme="dark-mode"] .pi-firm-logo {
    background: #1e2021;
}

/* Form Inputs */
[data-theme="dark-mode"] .pi-filter-select,
[data-theme="dark-mode"] .pi-filter-input {
    background: #1e2021;
    border-color: #2a2d2e;
    color: #e0e0e0;
}

/* Buttons */
[data-theme="dark-mode"] .pi-btn--secondary {
    background: #1e2021;
    color: #e0e0e0;
    border-color: #2a2d2e;
}
[data-theme="dark-mode"] .pi-btn--secondary:hover {
    border-color: #e0e0e0;
}
[data-theme="dark-mode"] .pi-btn--outline {
    color: #e0e0e0;
    border-color: #2a2d2e;
}
[data-theme="dark-mode"] .pi-btn--outline:hover {
    border-color: #e0e0e0;
}

/* Firm Chip */
[data-theme="dark-mode"] .pi-firm-chip {
    background: #1e2021;
    border-color: #2a2d2e;
    color: #e0e0e0;
}
[data-theme="dark-mode"] .pi-firm-chip:hover {
    background: #2a2d2e;
}

/* Disclosure Banner */
[data-theme="dark-mode"] .pi-disclosure-banner {
    background: #332b00;
    border-color: #665500;
    color: #ffd54f;
}

/* Coupon Box */
[data-theme="dark-mode"] .pi-coupon-box {
    border-color: #2a2d2e;
    border-style: dashed;
}

/* Discount Card Active Border */
[data-theme="dark-mode"] .pi-discount-card--active {
    border-left-color: #00b67a;
}

/* No Results */
[data-theme="dark-mode"] .pi-no-results {
    color: #888;
}

/* Spinner */
[data-theme="dark-mode"] .pi-spinner {
    border-color: #2a2d2e;
    border-top-color: #e0e0e0;
}

/* Radar Summary */
[data-theme="dark-mode"] .pi-radar-summary {
    border-left-color: #e0e0e0;
}

/* Badges remain visible on dark — slight adjustments */
[data-theme="dark-mode"] .pi-badge--region { background: #1a3a5c; color: #90caf9; }
[data-theme="dark-mode"] .pi-badge--platform { background: #3a1a4e; color: #ce93d8; }
[data-theme="dark-mode"] .pi-badge--market { background: #1a3a1a; color: #a5d6a7; }
[data-theme="dark-mode"] .pi-badge--event-type { background: #3a2a00; color: #ffb74d; }
[data-theme="dark-mode"] .pi-badge--sentiment-positive { background: #1a3a1a; color: #a5d6a7; }
[data-theme="dark-mode"] .pi-badge--sentiment-neutral { background: #2a2d2e; color: #aaa; }
[data-theme="dark-mode"] .pi-badge--sentiment-negative { background: #3a1a1a; color: #ef9a9a; }
