/* ---------------------------------------------------------
 CLEAN + FIXED CSS (NO OVERRIDING, NO CONFLICTS)
 NEW CLASS NAMES ADDED TO AVOID OLD OVERRIDES
---------------------------------------------------------- */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

.upg-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif !important;
}

/* HEADER */
.upg-header {
    margin-top: 40px;
    margin-bottom: 50px;
    text-align: center;
    padding: 0 15px;
}

.upg-header h1 {
    font-size: 44px !important;
    font-weight: 600;
    color: #000;
    line-height: 1.2;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif !important;
}

.upg-header h2 {
    font-size: 33px !important;
    font-weight: 600;
    color: #4888E8;
    margin-top: 10px;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif !important;
}

.upg-header p {
    color: #333436;
    font-weight: 500;
    margin-top: 15px;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 19px;
    font-family: 'Poppins', sans-serif !important;
}

/* FLEX ROW */
.upg-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-family: 'Poppins', sans-serif !important;
}

/* CARD BASE */
.upg-card {
    width: 380px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e1e5ea;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: .3s ease;
    font-family: 'Poppins', sans-serif !important;
    position: relative;
}

.upg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.12);
}

/* PRO CARD SPECIFIC */
.pro-card {
    position: relative;
    overflow: visible;
    border: 2px solid #4888E8;
}

/* POPULAR BADGE - UPDATED SIZE & POSITION */
.upg-popular-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 10;
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.upg-popular-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(1deg);
}

/* CARD IMAGE */
.upg-card-image {
    text-align: center;
    margin-bottom: 20px;
}

.upg-card-image img {
    max-height: 140px;
    width: auto;
    object-fit: contain;
}

/* TITLE + SUBTITLE */
.upg-card-title h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #000000;
    font-family: 'Poppins', sans-serif !important;
}

.upg-card-title p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif !important;
    margin-bottom: 20px;
}

/* PRICE LINE */
.upg-line {
    width: 100%;
    height: 1px;
    background: #e1e5ea;
    margin: 20px 0;
}

/* FEATURES */
.upg-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.upg-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    font-family: 'Poppins', sans-serif !important;
}

.upg-features li img {
    width: 20px;
    height: 20px;
}

/* BUTTONS */
.upg-btn {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: .3s ease;
    font-family: 'Poppins', sans-serif !important;
}

/* PRO BUTTON */
.upg-btn-pro {
    background: #4888E8;
    color: #fff;
    font-weight: 600;
}

.upg-btn-pro:hover {
    background: #3a78d8;
}

.upg-btn-pro img {
    width: 22px;
    height: 22px;
}

.upg-pro-text {
    font-size: 18px;
    font-weight: 600;
}

/* PRICE SECTIONS */
.upg-price-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
    font-family: 'Poppins', sans-serif !important;
}

.upg-price-inline .old-price {
    font-size: 28px;
    color: #C2C2C7;
    text-decoration: line-through;
    font-weight: 600;
}

.upg-price-inline .new-price {
    font-size: 40px;
    color: #09B125;
    font-weight: 800;
}

.upg-price-inline .trial-text {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
    margin-left: 5px;
}

/* PRO PRICE */
.upg-price-inline-pro {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 15px 0;
    font-family: 'Poppins', sans-serif !important;
}

.upg-price-inline-pro .pro-amount {
    font-size: 40px;
    font-weight: 800;
    color: #4888E8;
}

.upg-price-inline-pro .pro-period {
    font-size: 18px;
    color: #000;
    font-weight: 600;
}

/* ---------------------------------------------------------
 FEATURE COMPARISON TABLE STYLES
---------------------------------------------------------- */

.upg-feature-comparison-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif !important;
}

/* Comparison Header */
.upg-comparison-header {
    text-align: center;
    margin-bottom: 40px;
}

.upg-comparison-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif !important;
}

.upg-comparison-header p {
    font-size: 19px;
    color: #000000;
    font-weight: 500;
    font-family: 'Poppins', sans-serif !important;
}

/* Comparison Table */
.upg-comparison-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif !important;
}

.upg-comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.upg-comparison-table th {
    background: #4888E8;
    color: #fff;
    font-weight: 600;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-family: 'Poppins', sans-serif !important;
}

.upg-comparison-table .upg-plan-column {
    width: 25%;
}

.upg-comparison-table td {
    padding: 18px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif !important;
}

.upg-comparison-table .upg-feature-name {
    text-align: left;
    padding-left: 30px;
    color: #333;
    font-weight: 600;
}

.upg-comparison-table .upg-free-plan {
    color: #666;
    background: #fafafa;
}

.upg-comparison-table .upg-pro-plan {
    color: #09B125;
    font-weight: 900;
    background: #f8faff;
}

.upg-comparison-table tr:last-child td {
    border-bottom: none;
}

.upg-comparison-table tr:hover td {
    background: #f9f9f9;
}

.upg-comparison-table tr:hover .upg-free-plan {
    background: #f5f5f5;
}

.upg-comparison-table tr:hover .upg-pro-plan {
    background: #f0f5ff;
}

/* Icons */
.upg-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* COMPREHENSIVE MOBILE RESPONSIVENESS */
@media (max-width: 1200px) {
    .upg-options {
        gap: 20px;
    }
    
    .upg-card {
        width: 350px;
    }
}

@media (max-width: 992px) {
    .upg-header h1 {
        font-size: 36px !important;
    }
    
    .upg-header h2 {
        font-size: 28px !important;
    }
    
    .upg-options {
        gap: 25px;
    }
    
    .upg-card {
        width: 320px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .upg-page-wrapper {
        padding: 15px;
    }
    
    .upg-header {
        margin-top: 30px;
        margin-bottom: 40px;
    }
    
    .upg-header h1 {
        font-size: 32px !important;
        line-height: 1.3;
    }
    
    .upg-header h2 {
        font-size: 24px !important;
        line-height: 1.3;
    }
    
    .upg-header p {
        font-size: 17px;
        padding: 0 10px;
    }
    
    .upg-options {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .upg-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
    
    /* Mobile badge positioning - smaller and better placed */
    .upg-popular-badge {
        position: absolute;
        top: -15px;
        right: -15px !important;
        width: 85px;
        height: 85px;
    }
    
    .upg-popular-badge img {
        transform: rotate(15deg);
    }
    
    .upg-card-title h3 {
        font-size: 24px;
    }
    
    .upg-card-title p {
        font-size: 15px;
    }
    
    .upg-price-inline .new-price,
    .upg-price-inline-pro .pro-amount {
        font-size: 36px;
    }
    
    .upg-price-inline .old-price {
        font-size: 24px;
    }
    
    .upg-btn-pro {
        padding: 15px;
    }
    
    .upg-pro-text {
        font-size: 17px;
    }
    
    /* Feature Comparison Mobile */
    .upg-feature-comparison-wrapper {
        padding: 20px 10px;
    }
    
    .upg-comparison-header h2 {
        font-size: 28px;
    }
    
    .upg-comparison-header p {
        font-size: 16px;
    }
    
    .upg-comparison-table {
        overflow-x: auto;
    }
    
    .upg-comparison-table table {
        min-width: 700px;
    }
}

@media (max-width: 576px) {
    .upg-header h1 {
        font-size: 28px !important;
    }
    
    .upg-header h2 {
        font-size: 22px !important;
    }
    
    .upg-header p {
        font-size: 16px;
    }
    
    .upg-card {
        padding: 20px;
    }
    
    .upg-card-title h3 {
        font-size: 22px;
    }
    
    .upg-price-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .upg-price-inline .trial-text {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .upg-price-inline-pro {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    /* Even smaller badge on mobile */
    .upg-popular-badge {
        top: -12px;
        right: -12px !important;
        width: 75px;
        height: 75px;
    }
    
    .upg-features li {
        font-size: 15px;
        padding: 8px 0;
    }
    
    .upg-btn {
        padding: 14px;
    }
    
    .upg-pro-text {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .upg-header h1 {
        font-size: 26px !important;
    }
    
    .upg-header h2 {
        font-size: 20px !important;
    }
    
    .upg-header p {
        font-size: 15px;
    }
    
    .upg-card {
        padding: 18px;
    }
    
    .upg-card-title h3 {
        font-size: 20px;
    }
    
    .upg-card-title p {
        font-size: 14px;
    }
    
    .upg-price-inline .new-price,
    .upg-price-inline-pro .pro-amount {
        font-size: 32px;
    }
    
    .upg-price-inline .old-price {
        font-size: 22px;
    }
    
    /* Smallest badge for very small screens */
    .upg-popular-badge {
        top: -10px;
        right: -10px !important;
        width: 65px;
        height: 65px;
    }
    
    .upg-btn-pro {
        font-size: 16px;
        padding: 12px;
    }
}

/* EXTRA SMALL DEVICES */
@media (max-width: 350px) {
    .upg-popular-badge {
        top: -8px;
        right: -8px !important;
        width: 60px;
        height: 60px;
    }
}