#uaeppm-calculator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 900px;
    margin: 20px auto;
    color: #333;
}

/* User Form Container */
.uaeppm-form-container {
    background: #f9f9f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.uaeppm-slider-group {
    margin-bottom: 20px;
}

.uaeppm-slider-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
}

.uaeppm-lbl-focus {
    color: #2b6cb0;
    font-size: 1.2em;
    font-weight: 800;
    background: #ebf8ff;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.uaeppm-slider-group input[type="range"] {
    width: 100%;
    margin: 4px 0;
}

/* Lower Section Configurations Row Layout */
.uaeppm-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    border-top: 1px solid #edf2f7;
    padding-top: 20px;
    align-items: center;
}

.uaeppm-control-item {
    display: flex;
    flex-direction: column;
}

.uaeppm-control-item label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
    font-size: 14px;
}

.uaeppm-control-item select {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    background: #fff;
    font-size: 14px;
    height: 42px;
    width: 100%;
}

.uaeppm-checkbox-alignment label {
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Result Card Layout Styles */
#uaeppm-loading {
    text-align: center;
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 15px;
}

.uaeppm-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
}

.uaeppm-card:hover {
    transform: translateY(-2px);
}

.uaeppm-featured-deal {
    border: 2px solid #319795;
    background: #fafdfd;
}

.uaeppm-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #319795;
    color: white;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 20px;
}

.uaeppm-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.uaeppm-logo-link {
    display: inline-block;
}

.uaeppm-logo-link:hover {
    opacity: 0.8;
}

.uaeppm-network-logo {
    max-height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
}

.uaeppm-title-area {
    flex: 1;
    min-width: 200px;
}

.uaeppm-title-area h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #1a202c;
}

.uaeppm-network-subtext {
    margin: 0;
    font-size: 13px;
    color: #718096;
}

.uaeppm-price-area {
    text-align: right;
}

.uaeppm-main-price {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #2b6cb0;
}

.uaeppm-main-price small {
    font-size: 14px;
    font-weight: normal;
    color: #4a5568;
}

.uaeppm-total-price {
    display: block;
    font-size: 12px;
    color: #718096;
}

.uaeppm-specs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: #edf2f7;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.uaeppm-highlight-spec {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.uaeppm-highlight-spec strong {
    font-size: 12px;
    text-transform: uppercase;
    color: #718096;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.uaeppm-spec-val {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
}

/* Tooltip Rules Styling */
.uaeppm-tooltip-container {
    position: relative;
    cursor: help;
    display: inline-block;
}

.uaeppm-tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #2d3748;
    color: #fff;
    text-transform: none;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 99;
    bottom: 130%; 
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-weight: normal;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.uaeppm-tooltip-container:hover .uaeppm-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.uaeppm-benefits-section ul {
    margin: 5px 0 15px 0;
    padding-left: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 4px 20px;
}

.uaeppm-benefits-section li {
    font-size: 13px;
    color: #4a5568;
}

.uaeppm-notes {
    font-size: 12px;
    font-style: italic;
    color: #718096;
    background: #fffaf0;
    border-left: 3px solid #dd6b20;
    padding: 6px 10px;
    margin-bottom: 15px;
}

.uaeppm-action-area {
    text-align: right;
}

.uaeppm-affiliate-btn {
    display: inline-block;
    background: #e53e3e;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 28px;
    font-weight: bold;
    font-size: 15px;
    border-radius: 6px;
    transition: background 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.uaeppm-affiliate-btn:hover {
    background: #c53030;
}

.uaeppm-no-results {
    text-align: center;
    padding: 30px;
    background: #fffaf0;
    border: 1px dashed #dd6b20;
    border-radius: 8px;
    color: #c05621;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .uaeppm-card-header {
        flex-direction: column;
        text-align: center;
    }
    .uaeppm-price-area {
        text-align: center;
    }
    .uaeppm-action-area {
        text-align: center;
    }
    .uaeppm-affiliate-btn {
        width: 100%;
        box-sizing: border-box;
    }
}