.powermatch-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.powermatch-container h2 {
    color: #e91e63;
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

.pm-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.pm-section legend {
    font-weight: 700;
    color: #333;
    font-size: 18px;
    padding: 0 10px;
}

.pm-section label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: #555;
}

.pm-section input,
.pm-section textarea {
    width: 100%;
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pm-section input:focus,
.pm-section textarea:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.1);
}

/* Accordions: initial-teasers, deep-dive-diagnostics, your-bio (default open) */
.pm-accordion {
    margin-bottom: 24px;
}
.pm-accordion-item {
    border: 2px solid #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    background: transparent;
    padding: 30px;
}
.pm-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}
.pm-accordion-header:hover {
    background: none !important;
}
.pm-accordion-header::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-135deg);
    transition: transform 0.2s ease;
}
.pm-accordion-item:not(.pm-accordion-open) .pm-accordion-header::after {
    transform: rotate(45deg);
}
.pm-accordion-content {
    display: block;
}
.pm-accordion-item:not(.pm-accordion-open) .pm-accordion-content {
    display: none;
}
.pm-accordion .pm-section {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    background: #fff;
}

/* Notifications (lower-right, fixed, always on top) */
.pm-notifications {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2147483647;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 360px;
    pointer-events: none;
}
.pm-notifications .pm-notification {
    pointer-events: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-left: 4px solid #e91e63;
    padding: 12px 40px 12px 14px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(12px);
    max-height: 280px;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.35s ease, padding 0.35s ease, margin 0.35s ease, box-shadow 0.2s ease;
}
.pm-notifications .pm-notification.pm-notification-visible {
    opacity: 1;
    transform: translateY(0);
}
.pm-notifications .pm-notification.pm-notification-dismissing {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
}
.pm-notification .pm-notification-title {
    font-weight: 600;
    margin-bottom: 4px;
}
.pm-notification .pm-notification-message {
    margin-bottom: 0;
}
.pm-notification .pm-notification-view-link {
    color: #e91e63;
    text-decoration: underline;
    font-weight: 600;
}
.pm-notification .pm-notification-view-link:hover {
    text-decoration: none;
}
.pm-notification .pm-notification-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    color: #666;
    border-radius: 4px;
}
.pm-notification .pm-notification-dismiss:hover {
    background: #f0f0f0;
    color: #333;
}

/* Progress bar (CTA area) */
.pm-generation-progress {
    text-align: center;
}
.pm-generation-progress.pm-generation-progress-visible {
    display: block !important;
}
.pm-generation-progress-text {
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
}
.pm-generation-progress-bar {
    height: 10px;
    background: #522e89;
    border-radius: 5px;
    overflow: hidden;
}
.pm-generation-progress-fill {
    height: 100%;
    background: #e91e63;
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Pro users: never show add-to-cart in CTA area */
.powermatch-pro-unlocked #powermatch-add-to-cart-button {
    display: none !important;
}

.pm-actions {
    text-align: center;
    margin: 30px 0;
}

.pm-actions button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pm-actions .button-primary {
    background: #e91e63;
    color: #fff;
    border: none;
}

.pm-actions .button-primary:hover {
    background: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.pm-actions .button-secondary {
    background: #fff;
    color: #e91e63;
    border: 2px solid #e91e63;
    margin: 10px 5px;
}

.pm-actions .button-secondary:hover {
    background: #e91e63;
    color: #fff;
}

.powermatch-feature-btn {
    margin: 10px 5px;
    padding: 12px 24px;
    font-size: 15px;
}

#pm-loading {
    margin-top: 15px;
    color: #e91e63;
    font-weight: 600;
    font-size: 16px;
}

.pm-result {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #e91e63;
    display: none;
}

.pm-result.active {
    display: block;
}

/* Reports only appear in modals; never show report content inside the card */
.pm-report-card .pm-result {
    display: none !important;
}

.pm-ai-report h2 {
    color: #e91e63;
    border-bottom: 2px solid #e91e63;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.pm-ai-report h3 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 20px;
}

.pm-ai-report h4 {
    color: #555;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 16px;
}

.pm-ai-report p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}
.pm-ai-report p:empty {
    display: none !important;
}

.pm-ai-report strong {
    color: #e91e63;
}

.pm-ai-report li {
    list-style: none;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.pm-ai-report li:before {
    content: "→";
    color: #e91e63;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pm-additional-features {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.pm-additional-features > h6,
.pm-additional-features > h3,
.pm-additional-features > p {
    text-align: center;
}

.pm-additional-features > div:first-of-type {
    text-align: center;
}

.pm-additional-features h3 {
    color: #333;
    margin-bottom: 10px;
}

.pm-report-cards-grid {
    margin-top: 0 !important;
}

.pm-report-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.pm-report-cards-row .pm-report-card {
    flex: 1;
    min-width: 280px;
}

/* Report card: description in card, 100 chars + … + tooltip icon for full text */
.pm-desc-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    margin-left: 4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
}
.pm-desc-trigger:hover,
.pm-desc-trigger:focus {
    outline: none;
    opacity: 0.85;
}
.pm-desc-tooltip {
    display: none;
    position: fixed;
    z-index: 2147483647;
    max-width: 320px;
    padding: 12px 14px;
    background: #333;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Pro Feature Locked State */
.powermatch-pro-locked .pm-additional-features button[id$="-submit"] {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    position: relative !important;
    filter: grayscale(90%) !important;
}

.powermatch-pro-locked .pm-additional-features button[id$="-submit"]::after {
    content: "Pro";
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 11px;
    font-weight: bold;
    color: #ff4444;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
}

.powermatch-pro-unlocked .pm-additional-features button[id$="-submit"] {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    filter: none !important;
}

.powermatch-pro-unlocked .pm-additional-features button[id$="-submit"]::after {
    display: none !important;
}

/* Queued/Generating: disabled report buttons look grey and non-clickable */
.pm-additional-features button[id$="-submit"]:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    filter: grayscale(50%) !important;
    pointer-events: none !important;
}

/* Pro Report Modal (z-index above site sticky header; top padding clears 78px header) */
.pm-report-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    align-items: center;
    justify-content: center;
    padding: 78px 20px 20px 20px;
    box-sizing: border-box;
}
.pm-report-modal.is-open {
    display: flex;
}
.pm-report-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}
.pm-report-modal-inner {
    position: relative;
    max-width: 720px;
    max-height: 66vh;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pm-report-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.pm-report-modal-close:hover {
    background: #e91e63;
    color: #fff;
}
.pm-report-modal-content {
    padding: 40px 30px 30px;
    overflow-y: auto;
    max-height: 66vh;
}
.pm-report-modal-content .pm-ai-report {
    padding: 0;
}
.pm-report-modal-content h2,
.pm-report-modal-content h3 {
    text-align: left;
}
.pm-report-modal-content .pm-ai-report h3:first-child,
.pm-report-modal-content .pm-ai-report h3:first-of-type {
    margin-top: 0;
}

@media (max-width: 768px) {
    .powermatch-container {
        padding: 15px;
        margin: 20px auto;
    }

    .pm-actions button {
        width: 100%;
        margin: 10px 0;
    }

    .pm-report-modal {
        padding: 78px 10px 10px 10px;
    }
    .pm-report-modal-content {
        padding: 36px 16px 16px;
    }
}
