/**
 * Upgrade Page Styles
 *
 * Styles for the Instant Popup Builder Upgrade page
 *
 * @package    Instant_Popup_Builder
 * @subpackage Instant_Popup_Builder/admin/css
 */

.ipb-upgrade-wrap {
    background: #f6f7f7;
    margin: 0;
    padding: 0;
}

.ipb-upgrade-container {
    max-width: 1120px;
    margin: 28px auto 0 auto;
    padding: 0 20px 24px 20px;
}

.ipb-upgrade-header {
    margin: 0 0 22px 0;
}

.ipb-upgrade-title {
    font-size: 26px;
    line-height: 1.25;
    color: #1d2327;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.ipb-upgrade-subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #50575e;
    margin: 0;
    max-width: 70ch;
}

.ipb-upgrade-hero {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 18px;
}

.ipb-upgrade-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #50575e;
    margin-bottom: 10px;
}

.ipb-upgrade-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2271b1;
}

.ipb-upgrade-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.ipb-upgrade-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f1;
    color: #646970;
    font-size: 12px;
}

.ipb-upgrade-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ipb-upgrade-trust-item::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #f0f6fc;
    border: 1px solid #d0e3f4;
    position: relative;
}

.ipb-upgrade-trust-item span {
    position: relative;
    top: 0;
}

.ipb-pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin: 18px 0 28px 0;
}

.ipb-plan-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #dcdcde;
    box-shadow: none;
    text-align: left;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ipb-plan-card:hover {
    border-color: #c3c4c7;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

.ipb-plan-popular {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px rgba(34,113,177,0.08);
}

.ipb-plan-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    left: auto;
    transform: none;
    background: #f0f6fc;
    color: #1d2327;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #d0e3f4;
    font-size: 12px;
    font-weight: 600;
}

.ipb-plan-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ipb-plan-name {
    font-size: 16px;
    color: #1d2327;
    margin: 0;
    font-weight: 700;
}

.ipb-plan-websites {
    color: #50575e;
    font-size: 13px;
    margin: 0;
}

.ipb-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px 0;
    text-align: left;
}

.ipb-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
    color: #1d2327;
    font-size: 13px;
    line-height: 1.45;
}

.ipb-plan-features li:last-child {
    border-bottom: none;
}

.ipb-check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 6px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    position: relative;
    top: 1px;
}

.ipb-check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 6px;
    height: 9px;
    border-right: 2px solid #1a7f37;
    border-bottom: 2px solid #1a7f37;
    transform: rotate(40deg);
}

.ipb-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.2;
}

.ipb-btn-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.ipb-btn-featured {
    background: #1f6feb;
    border-color: #1f6feb;
    color: #fff;
}

.ipb-btn-business {
    background: #fff;
    border-color: #2271b1;
    color: #2271b1;
}

.ipb-btn-cta {
    background: #fff;
    border-color: rgba(255,255,255,0.65);
    color: #fff;
}

.ipb-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.ipb-section-title {
    text-align: left;
    font-size: 16px;
    color: #1d2327;
    margin: 22px 0 12px 0;
    font-weight: 700;
}

.ipb-extensions-section {
    margin-bottom: 22px;
}

.ipb-extensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.ipb-extension-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ipb-extension-link:hover .ipb-extension-item {
    transform: translateY(-3px);
}

.ipb-extension-item {
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #dcdcde;
    box-shadow: none;
    text-align: left;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.ipb-extension-item:hover {
    transform: translateY(-3px);
}

.ipb-extension-icon {
    font-size: 18px;
    margin-bottom: 10px;
}

.ipb-extension-item h4 {
    color: #1d2327;
    margin: 0 0 6px 0;
    font-size: 13px;
}

.ipb-extension-item p {
    color: #50575e;
    margin: 0;
    line-height: 1.55;
    font-size: 12px;
}

.ipb-benefits-section {
    margin-bottom: 22px;
}

.ipb-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ipb-benefit-item {
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #dcdcde;
    box-shadow: none;
    text-align: left;
}

.ipb-benefit-icon {
    font-size: 18px;
    margin-bottom: 10px;
}

.ipb-benefit-item h4 {
    color: #1d2327;
    margin: 0 0 6px 0;
    font-size: 13px;
}

.ipb-benefit-item p {
    color: #50575e;
    margin: 0;
    line-height: 1.55;
    font-size: 12px;
}

.ipb-faq-section {
    margin-bottom: 22px;
}

.ipb-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.ipb-faq-item {
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #dcdcde;
    box-shadow: none;
}

.ipb-faq-item h4 {
    color: #1d2327;
    margin: 0 0 6px 0;
    font-size: 13px;
}

.ipb-faq-item p {
    color: #50575e;
    margin: 0;
    line-height: 1.6;
    font-size: 12px;
}

.ipb-cta-section {
    text-align: left;
    background: #2271b1;
    color: #fff;
    padding: 18px;
    border-radius: 12px;
    margin-top: 18px;
}

.ipb-cta-section h2 {
    font-size: 16px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.ipb-cta-section p {
    font-size: 13px;
    margin: 0 0 12px 0;
    opacity: 0.92;
}

@media (max-width: 768px) {
    .ipb-upgrade-title {
        font-size: 22px;
    }

    .ipb-pricing-plans {
        grid-template-columns: 1fr;
    }

    .ipb-plan-popular {
        transform: none;
    }

    .ipb-extensions-grid,
    .ipb-benefits-grid {
        grid-template-columns: 1fr;
    }
}

