/**
 * iEM Ads Manager BG v1.0.16
 * Scoped frontend styles. Designed to avoid conflicts with ReHub, Elementor and other plugins.
 */

.iem-ads-wrap,
.iem-ads-wrap * {
    box-sizing: border-box;
}

.iem-ads-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 24px auto;
    font-family: Arial, sans-serif;
    color: #152033;
}

.iem-ads-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.iem-ads-card {
    background: #ffffff;
    border: 1px solid rgba(20, 35, 60, 0.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 20, 40, 0.06);
}

.iem-ads-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f5f7fb, #e9eef8);
    overflow: hidden;
    text-decoration: none;
}

.iem-ads-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iem-ads-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #52627a;
    font-weight: 700;
}

.iem-ads-card-body {
    padding: 16px;
}

.iem-ads-card h3 {
    margin: 10px 0 10px;
    font-size: 18px;
    line-height: 1.25;
}

.iem-ads-card h3 a {
    color: #162033;
    text-decoration: none;
}

.iem-ads-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1b4f9c;
    font-size: 12px;
    font-weight: 700;
}

.iem-ads-price {
    color: #0f7b4f;
    font-size: 18px;
    font-weight: 800;
    margin: 8px 0;
}

.iem-ads-price-large {
    font-size: 28px;
}

.iem-ads-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #52627a;
    font-size: 14px;
    margin: 8px 0;
}

.iem-ads-meta span {
    background: #f5f7fb;
    padding: 5px 8px;
    border-radius: 8px;
}

.iem-ads-expires {
    color: #6d7788;
    font-size: 13px;
    margin-top: 8px;
}

.iem-ads-link,
.iem-ads-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #152033;
    color: #ffffff !important;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.2;
}

.iem-ads-link {
    margin-top: 12px;
    min-height: 36px;
    font-size: 14px;
}

.iem-ads-form {
    background: #ffffff;
    border: 1px solid rgba(20, 35, 60, 0.12);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(10, 20, 40, 0.06);
}

.iem-ads-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.iem-ads-form p {
    margin: 0 0 14px;
}

.iem-ads-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.iem-ads-form input[type="text"],
.iem-ads-form input[type="email"],
.iem-ads-form input[type="password"],
.iem-ads-form input[type="file"],
.iem-ads-form select,
.iem-ads-form textarea {
    width: 100%;
    border: 1px solid rgba(20, 35, 60, 0.18);
    border-radius: 12px;
    padding: 10px 12px;
    background: #ffffff;
    color: #152033;
    font-size: 15px;
}

.iem-ads-form textarea {
    resize: vertical;
}

.iem-ads-help {
    display: block;
    color: #6d7788;
    font-size: 13px;
    margin-top: 6px;
}

.iem-ads-rules label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: 400;
}

.iem-ads-hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.iem-ads-notice {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.iem-ads-notice p {
    margin: 0 0 6px;
}

.iem-ads-notice p:last-child {
    margin-bottom: 0;
}

.iem-ads-notice-success {
    background: #eefaf3;
    border-color: #b8ebcc;
    color: #0d5b34;
}

.iem-ads-notice-error {
    background: #fff2f1;
    border-color: #ffd0cc;
    color: #8a1f17;
}

.iem-ads-empty,
.iem-ads-login-required {
    background: #ffffff;
    border: 1px solid rgba(20, 35, 60, 0.12);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(10, 20, 40, 0.06);
}

.iem-ads-pagination {
    margin-top: 24px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.iem-ads-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f5f7fb;
    color: #152033;
    text-decoration: none;
}

.iem-ads-pagination .current {
    background: #152033;
    color: #ffffff;
}

.iem-ads-my-list {
    display: grid;
    gap: 10px;
}

.iem-ads-my-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #ffffff;
    border: 1px solid rgba(20, 35, 60, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
}

.iem-ads-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 22px;
    align-items: start;
}

.iem-ads-single-media,
.iem-ads-single-details,
.iem-ads-single-description {
    background: #ffffff;
    border: 1px solid rgba(20, 35, 60, 0.12);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(10, 20, 40, 0.06);
}

.iem-ads-single-media img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.iem-ads-gallery {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.iem-ads-gallery img {
    width: 78px;
    height: 78px;
    object-fit: cover;
}

.iem-ads-detail-list {
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.iem-ads-detail-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(20, 35, 60, 0.08);
}

.iem-ads-report {
    display: inline-block;
    color: #8a1f17;
    font-size: 14px;
    text-decoration: underline;
}

.iem-ads-single-description {
    margin-top: 22px;
}

@media (max-width: 920px) {
    .iem-ads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .iem-ads-single-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .iem-ads-wrap {
        margin: 18px auto;
    }

    .iem-ads-grid,
    .iem-ads-form-grid {
        grid-template-columns: 1fr;
    }

    .iem-ads-form,
    .iem-ads-single-media,
    .iem-ads-single-details,
    .iem-ads-single-description {
        padding: 16px;
    }
}

/* v1.0.1 auth, admin-flow and page-section improvements */
.iem-ads-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(20, 35, 60, 0.10);
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #f7f9fd);
    box-shadow: 0 10px 30px rgba(10, 20, 40, 0.05);
}

.iem-ads-section-head h2 {
    margin: 4px 0 6px;
    font-size: 26px;
    line-height: 1.2;
    color: #152033;
}

.iem-ads-section-head p {
    margin: 0;
    color: #5d6a7e;
}

.iem-ads-kicker {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1b4f9c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.iem-ads-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.iem-ads-btn-light {
    background: #f4f6fb;
    color: #152033 !important;
    border: 1px solid rgba(20, 35, 60, 0.12);
}

.iem-ads-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.iem-ads-auth-panel {
    background: #ffffff;
    border: 1px solid rgba(20, 35, 60, 0.12);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(10, 20, 40, 0.06);
}

.iem-ads-auth-panel h2,
.iem-ads-auth-panel h3 {
    margin: 0 0 10px;
    color: #152033;
}

.iem-ads-auth-panel p {
    color: #5d6a7e;
}

.iem-ads-auth-panel .login-username,
.iem-ads-auth-panel .login-password,
.iem-ads-auth-panel .login-remember,
.iem-ads-auth-panel .login-submit {
    margin: 0 0 14px;
}

.iem-ads-auth-panel label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.iem-ads-auth-panel input[type="text"],
.iem-ads-auth-panel input[type="email"],
.iem-ads-auth-panel input[type="password"],
.iem-ads-form input[type="password"] {
    width: 100%;
    border: 1px solid rgba(20, 35, 60, 0.18);
    border-radius: 12px;
    padding: 10px 12px;
    background: #ffffff;
    color: #152033;
    font-size: 15px;
}

.iem-ads-auth-panel input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #152033;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.iem-ads-auth-callout h3 {
    margin: 0 0 8px;
}

.iem-ads-small-link {
    font-weight: 700;
    color: #1b4f9c;
    text-decoration: none;
}

.iem-ads-muted {
    color: #6d7788;
    font-size: 13px;
}

.iem-ads-my-status {
    display: block;
    margin-top: 4px;
    color: #52627a;
    font-size: 13px;
}

@media (max-width: 760px) {
    .iem-ads-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .iem-ads-auth-grid {
        grid-template-columns: 1fr;
    }
}

.iem-ads-selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
    color: #52627a;
}

.iem-ads-selected-files strong {
    color: #152033;
}

.iem-ads-selected-files span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(20, 35, 60, 0.12);
    border-radius: 999px;
    padding: 4px 8px;
    background: #f7f9fc;
}

.iem-ads-preview-head {
    margin-bottom: 18px;
}

.iem-ads-owner-preview .iem-ads-single-description {
    margin-top: 18px;
}

.iem-ads-my-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.iem-ads-my-meta {
    color: #6d7788;
    font-size: 13px;
}

.iem-ads-my-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.iem-ads-status-pending {
    color: #9a6300;
    font-weight: 700;
}

.iem-ads-status-publish {
    color: #137333;
    font-weight: 700;
}

.iem-ads-status-draft {
    color: #9b1c1c;
    font-weight: 700;
}

@media (max-width: 760px) {
    .iem-ads-my-actions {
        align-items: flex-start;
    }
}

/* v1.0.4 professional gallery, image preview and lightbox improvements */
.iem-ads-gallery-viewer {
    width: 100%;
}

.iem-ads-gallery-main-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #f4f6fb;
    border: 1px solid rgba(20, 35, 60, 0.10);
}

.iem-ads-gallery-main-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    display: block;
    background: #f4f6fb;
    cursor: zoom-in;
}

.iem-ads-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(21, 32, 51, 0.76);
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(10, 20, 40, 0.18);
}

.iem-ads-gallery-prev {
    left: 12px;
}

.iem-ads-gallery-next {
    right: 12px;
}

.iem-ads-gallery-open {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(21, 32, 51, 0.82);
    color: #ffffff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.iem-ads-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.iem-ads-gallery-thumb {
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 0;
    background: #f4f6fb;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    box-shadow: 0 6px 16px rgba(10, 20, 40, 0.06);
}

.iem-ads-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.iem-ads-gallery-thumb.is-active {
    border-color: #1b4f9c;
    box-shadow: 0 0 0 3px rgba(27, 79, 156, 0.14);
}

.iem-ads-gallery-empty {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #f5f7fb, #e9eef8);
    color: #52627a;
    font-weight: 700;
    text-align: center;
    padding: 22px;
}

.iem-ads-selected-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

.iem-ads-selected-file {
    position: relative;
    border: 1px solid rgba(20, 35, 60, 0.12);
    border-radius: 14px;
    padding: 8px;
    background: #f7f9fc;
    min-width: 0;
}

.iem-ads-selected-file img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 6px;
}

.iem-ads-selected-file span {
    display: block;
    border: none;
    background: transparent;
    padding: 0 26px 0 0;
    border-radius: 0;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iem-ads-selected-file button {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(20, 35, 60, 0.15);
    background: #ffffff;
    color: #8a1f17;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.iem-ads-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 26px;
}

.iem-ads-lightbox.is-open {
    display: flex;
}

.iem-ads-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 13, 24, 0.88);
}

.iem-ads-lightbox-inner {
    position: relative;
    z-index: 2;
    max-width: min(1100px, 96vw);
    max-height: 92vh;
}

.iem-ads-lightbox-image {
    max-width: 100%;
    max-height: 92vh;
    display: block;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.iem-ads-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: #ffffff;
    color: #152033;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.iem-ads-lightbox-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .iem-ads-gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 25px;
    }

    .iem-ads-gallery-open {
        font-size: 12px;
        padding: 7px 10px;
    }

    .iem-ads-gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
        gap: 8px;
    }
}

/* v1.0.4 owner edit, safer withdraw flow and existing-image management */
.iem-ads-actions-row-right {
    justify-content: flex-end;
}

.iem-ads-danger-link {
    color: #9b1c1c !important;
}

.iem-ads-edit-panel .iem-ads-form {
    margin-top: 0;
}

.iem-ads-existing-images {
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid rgba(20, 35, 60, 0.12);
    border-radius: 16px;
    background: #f7f9fc;
}

.iem-ads-existing-images > strong {
    display: block;
    margin-bottom: 6px;
    color: #152033;
}

.iem-ads-existing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.iem-ads-existing-image {
    display: block !important;
    margin: 0 !important;
    padding: 8px;
    border: 1px solid rgba(20, 35, 60, 0.12);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
}

.iem-ads-existing-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    margin-bottom: 7px;
}

.iem-ads-existing-image span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #52627a;
    font-size: 13px;
    font-weight: 600;
}

.iem-ads-existing-image input[type="checkbox"] {
    width: auto;
}

@media (max-width: 760px) {
    .iem-ads-actions-row-right {
        justify-content: flex-start;
    }
}

/* v1.0.6 public filters and searchable listing */
.iem-ads-search-wrap {
    margin-bottom: 18px;
}

.iem-ads-section-head-compact {
    margin-bottom: 12px;
}

.iem-ads-filter {
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid rgba(20, 35, 60, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    box-shadow: 0 12px 32px rgba(20, 35, 60, 0.06);
}

.iem-ads-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.iem-ads-filter-grid p {
    margin: 0;
}

.iem-ads-filter-wide {
    grid-column: span 2;
}

.iem-ads-filter label {
    display: block;
    margin: 0 0 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.iem-ads-filter input,
.iem-ads-filter select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(20, 35, 60, 0.16);
    border-radius: 12px;
    background: #ffffff;
    color: #172033;
    font-size: 14px;
    box-shadow: none;
}

.iem-ads-filter input:focus,
.iem-ads-filter select:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.72);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.iem-ads-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.iem-ads-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 10px 2px;
    color: #52627a;
    font-size: 14px;
}

.iem-ads-results-head strong {
    color: #172033;
}

.iem-ads-reset-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.iem-ads-reset-link:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .iem-ads-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .iem-ads-filter {
        padding: 14px;
        border-radius: 18px;
    }

    .iem-ads-filter-grid {
        grid-template-columns: 1fr;
    }

    .iem-ads-filter-wide {
        grid-column: span 1;
    }

    .iem-ads-results-head {
        display: block;
    }

    .iem-ads-reset-link {
        display: inline-block;
        margin-top: 8px;
    }
}

/* v1.0.7 cleaner header, larger price filters and ad intent type */
.iem-ads-section-head .iem-ads-kicker {
    display: none !important;
}

.iem-ads-filter .iem-ads-filter-price input[type="number"],
.iem-ads-filter input[type="number"] {
    width: 100% !important;
    min-width: 160px !important;
    max-width: none !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    -moz-appearance: textfield;
}

.iem-ads-filter input[type="number"]::-webkit-outer-spin-button,
.iem-ads-filter input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.iem-ads-filter-price {
    min-width: 160px;
}

.iem-ads-form select[name="iem_ad_intent"],
.iem-ads-filter select[name="iem_ads_intent"] {
    font-weight: 600;
}

@media (max-width: 980px) {
    .iem-ads-filter .iem-ads-filter-price input[type="number"],
    .iem-ads-filter input[type="number"] {
        min-width: 0 !important;
    }
}


/* v1.0.8 professional hero, counters, category chips and mobile filter polish */
.iem-ads-hero {
    margin: 0 0 22px;
    border: 1px solid rgba(20, 35, 60, 0.10);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: 0 16px 42px rgba(10, 20, 40, 0.07);
    overflow: hidden;
}

.iem-ads-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
    gap: 22px;
    align-items: stretch;
    padding: 24px;
}

.iem-ads-hero-copy h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.06;
    color: #111827;
    letter-spacing: -0.03em;
}

.iem-ads-hero-copy p {
    max-width: 760px;
    margin: 0;
    color: #536174;
    font-size: 15px;
    line-height: 1.65;
}

.iem-ads-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.iem-ads-hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.iem-ads-stat-card {
    padding: 14px 16px;
    border: 1px solid rgba(20, 35, 60, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 22px rgba(10, 20, 40, 0.05);
}

.iem-ads-stat-card strong {
    display: block;
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
}

.iem-ads-stat-card span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.iem-ads-hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 0 24px 24px;
}

.iem-ads-hero-categories > span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.iem-ads-hero-categories a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(20, 35, 60, 0.12);
    color: #152033;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(10, 20, 40, 0.04);
}

.iem-ads-hero-categories a:hover {
    border-color: rgba(37, 99, 235, 0.45);
    color: #1d4ed8;
}

.iem-ads-hero-categories em {
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1b4f9c;
    font-style: normal;
    text-align: center;
    font-size: 12px;
}

.iem-ads-list-wrap .iem-ads-filter {
    position: relative;
}

.iem-ads-filter-grid {
    grid-template-columns: minmax(220px, 1.35fr) minmax(210px, 1fr) minmax(190px, 0.95fr) minmax(190px, 0.95fr);
    align-items: end;
}

.iem-ads-filter .iem-ads-filter-price input[type="number"] {
    min-width: 0 !important;
}

.iem-ads-filter-actions .iem-ads-btn,
.iem-ads-hero-actions .iem-ads-btn {
    white-space: nowrap;
}

@media (max-width: 1040px) {
    .iem-ads-hero-main {
        grid-template-columns: 1fr;
    }

    .iem-ads-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .iem-ads-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .iem-ads-hero-main {
        padding: 18px;
    }

    .iem-ads-hero-stats {
        grid-template-columns: 1fr;
    }

    .iem-ads-hero-categories {
        padding: 0 18px 18px;
    }

    .iem-ads-hero-actions .iem-ads-btn,
    .iem-ads-filter-actions .iem-ads-btn,
    .iem-ads-filter-actions .iem-ads-btn-light {
        width: 100%;
    }
}

/* v1.0.9 full-width page mode, safer admin/test layout and filter overflow hardening */
body.iem-ads-page.iem-ads-layout-full .iem-ads-wrap {
    width: min(100%, 1280px);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 18px;
    padding-right: 18px;
}

body.iem-ads-page.iem-ads-layout-full .iem-ads-list-wrap,
body.iem-ads-page.iem-ads-layout-full .iem-ads-submit-wrap,
body.iem-ads-page.iem-ads-layout-full .iem-ads-my-wrap,
body.iem-ads-page.iem-ads-layout-full .iem-ads-auth-wrap,
body.iem-ads-page.iem-ads-layout-full .iem-ads-single-wrap {
    max-width: 1280px;
}

.iem-ads-filter,
.iem-ads-hero,
.iem-ads-grid,
.iem-ads-card,
.iem-ads-single-layout {
    max-width: 100%;
}

.iem-ads-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    align-items: end;
}

.iem-ads-filter-wide {
    grid-column: span 2;
    min-width: 0;
}

.iem-ads-filter-grid p,
.iem-ads-filter input,
.iem-ads-filter select {
    min-width: 0 !important;
    max-width: 100% !important;
}

.iem-ads-filter .iem-ads-filter-price input[type="number"],
.iem-ads-filter input[type="number"] {
    min-width: 0 !important;
    width: 100% !important;
}

@media (min-width: 1180px) {
    body.iem-ads-page.iem-ads-layout-full .iem-ads-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.iem-ads-page.iem-ads-layout-full .iem-ads-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }
    .iem-ads-filter-wide {
        grid-column: span 1;
    }
}


/* v1.0.10 internal navigation and stronger full-width cleanup for OceanWP/ReHub test pages */
.iem-ads-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 18px;
    padding: 10px;
    border: 1px solid rgba(20, 35, 60, 0.10);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(10, 20, 40, 0.045);
}

.iem-ads-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 12px;
    color: #152033 !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 14px;
    background: #f4f6fb;
    border: 1px solid rgba(20, 35, 60, 0.10);
}

.iem-ads-nav-link:hover,
.iem-ads-nav-link.is-active {
    background: #152033;
    color: #ffffff !important;
    border-color: #152033;
}

body.iem-ads-page.iem-ads-layout-full #right-sidebar,
body.iem-ads-page.iem-ads-layout-full #left-sidebar,
body.iem-ads-page.iem-ads-layout-full .sidebar-primary,
body.iem-ads-page.iem-ads-layout-full .sidebar-secondary,
body.iem-ads-page.iem-ads-layout-full .content-sidebar-wrap > aside,
body.iem-ads-page.iem-ads-layout-full .oceanwp-row .widget-area,
body.iem-ads-page.iem-ads-layout-full .widget-area.sidebar-primary,
body.iem-ads-page.iem-ads-layout-full aside#right-sidebar,
body.iem-ads-page.iem-ads-layout-full aside#left-sidebar {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

body.iem-ads-page.iem-ads-layout-full #primary,
body.iem-ads-page.iem-ads-layout-full .content-area,
body.iem-ads-page.iem-ads-layout-full .site-content,
body.iem-ads-page.iem-ads-layout-full #content-wrap,
body.iem-ads-page.iem-ads-layout-full .container,
body.iem-ads-page.iem-ads-layout-full .content-wrap,
body.iem-ads-page.iem-ads-layout-full .entry-content,
body.iem-ads-page.iem-ads-layout-full article,
body.iem-ads-page.iem-ads-layout-full .single-page-article {
    border-right: 0 !important;
    border-left: 0 !important;
    box-shadow: none !important;
}

body.iem-ads-page.iem-ads-layout-full.content-right-sidebar .content-area,
body.iem-ads-page.iem-ads-layout-full.content-left-sidebar .content-area,
body.iem-ads-page.iem-ads-layout-full.has-sidebar .content-area,
body.iem-ads-page.iem-ads-layout-full .content-area {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
}

body.iem-ads-page.iem-ads-layout-full .iem-ads-filter {
    overflow: visible;
}

@media (max-width: 640px) {
    .iem-ads-nav {
        padding: 8px;
    }

    .iem-ads-nav-link {
        width: 100%;
    }
}

/* v1.0.11 VIP / Featured visual layer */
.iem-ads-card-promoted {
    position: relative;
    border-color: rgba(245, 158, 11, 0.55) !important;
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.12), 0 12px 30px rgba(10, 20, 40, 0.06) !important;
}

.iem-ads-card-promoted::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.iem-ads-thumb {
    position: relative;
}

.iem-ads-promo-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.iem-ads-promo-badges-card {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
}

.iem-ads-promo-badges-single {
    margin: 0 0 12px;
}

.iem-ads-promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 22px rgba(10, 20, 40, 0.16);
}

.iem-ads-promo-vip {
    background: #111827;
    color: #ffffff;
}

.iem-ads-promo-featured {
    background: #f59e0b;
    color: #111827;
}

.iem-ads-single-details .iem-ads-promo-badge {
    box-shadow: none;
}

/* stronger right-border/sidebar cleanup for theme wrappers observed in FPB.App */
body.iem-ads-page.iem-ads-layout-full .site-main,
body.iem-ads-page.iem-ads-layout-full .content-area,
body.iem-ads-page.iem-ads-layout-full .entry-content,
body.iem-ads-page.iem-ads-layout-full .page-content,
body.iem-ads-page.iem-ads-layout-full .oceanwp-row,
body.iem-ads-page.iem-ads-layout-full .content-left-sidebar,
body.iem-ads-page.iem-ads-layout-full .content-right-sidebar,
body.iem-ads-page.iem-ads-layout-full .has-sidebar,
body.iem-ads-page.iem-ads-layout-full .primary-content-area,
body.iem-ads-page.iem-ads-layout-full .main-content-area {
    border-right-color: transparent !important;
    border-right-width: 0 !important;
    background-image: none !important;
}

@media (max-width: 640px) {
    .iem-ads-promo-badges-card {
        top: 8px;
        left: 8px;
    }

    .iem-ads-promo-badge {
        font-size: 11px;
        min-height: 24px;
        padding: 4px 8px;
    }
}


/* v1.0.12 card alignment, clean titles and date rows */
.iem-ads-grid {
    align-items: stretch;
}

.iem-ads-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.iem-ads-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.iem-ads-card h3 {
    min-height: 46px;
}

.iem-ads-card h3 a,
.iem-ads-card h3 a:visited,
.iem-ads-card h3 a:hover,
.iem-ads-card h3 a:focus,
.iem-ads-card a,
.iem-ads-card a:hover,
.iem-ads-card a:focus,
.iem-ads-card a:visited {
    text-decoration: none !important;
}

.iem-ads-card h3 a:hover,
.iem-ads-card h3 a:focus {
    color: #0f3f8c;
}

.iem-ads-card-dates {
    display: grid;
    gap: 4px;
    margin: 12px 0 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

.iem-ads-card .iem-ads-link {
    margin-top: auto;
    align-self: flex-start;
}

.iem-ads-my-meta:empty {
    display: none;
}

@media (max-width: 720px) {
    .iem-ads-card h3 {
        min-height: 0;
    }
}

/* v1.0.14 - clearer validation UX */
.iem-ads-validation-info {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #18375f;
    border-radius: 16px;
    padding: 14px 16px;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
}

.iem-ads-validation-info ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.iem-ads-validation-summary {
    display: none;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #7f1d1d;
    border-radius: 16px;
    padding: 14px 16px;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
}

.iem-ads-validation-summary.is-visible {
    display: block;
}

.iem-ads-validation-summary ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.iem-ads-field-help {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.iem-ads-field-error {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.iem-ads-form input.iem-ads-field-invalid,
.iem-ads-form select.iem-ads-field-invalid,
.iem-ads-form textarea.iem-ads-field-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.iem-ads-register-form .iem-ads-rules .iem-ads-field-error,
.iem-ads-submit-form .iem-ads-rules .iem-ads-field-error {
    margin-left: 0;
}

/* v1.0.15 - professional price formatting and input UX */
.iem-ads-price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    line-height: 1.1;
    white-space: normal;
}

.iem-ads-price-amount {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.iem-ads-price-currency {
    font-size: 0.68em;
    font-weight: 800;
    letter-spacing: 0.04em;
    opacity: 0.78;
    text-transform: uppercase;
}

.iem-ads-price-negotiable {
    color: #475569;
    font-size: 15px;
    font-weight: 800;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 7px 10px;
}

.iem-ads-price-large .iem-ads-price-amount {
    font-size: 1em;
}

.iem-ads-price-input-wrap {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border: 1px solid #d7dfec;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.iem-ads-price-input-wrap input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    font-variant-numeric: tabular-nums;
}

.iem-ads-price-input-wrap input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.iem-ads-price-input-wrap:focus-within {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.iem-ads-price-input-wrap span {
    flex: 0 0 auto;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-left: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.iem-ads-filter .iem-ads-price-input-wrap input[type="text"],
.iem-ads-form .iem-ads-price-input-wrap input[type="text"] {
    max-width: none !important;
}

@media (max-width: 720px) {
    .iem-ads-price-large {
        font-size: 24px;
    }

    .iem-ads-price-input-wrap {
        min-height: 46px;
    }
}

/* v1.0.16 - Clean UI Reset / cleaner marketplace layout */
.iem-ads-wrap {
    max-width: 1180px;
    color: #152033;
}

body.iem-ads-page.iem-ads-layout-full .iem-ads-wrap {
    width: min(100%, 1180px);
    max-width: 1180px;
}

.iem-ads-nav {
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 14px;
    box-shadow: none;
}

.iem-ads-nav-link {
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.iem-ads-hero,
.iem-ads-hero.iem-ads-hero-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 16px;
    padding: 18px 20px;
    border: 1px solid rgba(20, 35, 60, 0.10);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
    overflow: visible;
}

.iem-ads-hero-main,
.iem-ads-hero-stats,
.iem-ads-hero-categories,
.iem-ads-stat-card {
    display: none !important;
}

.iem-ads-hero-copy {
    min-width: 0;
}

.iem-ads-hero-copy h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.iem-ads-hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #536174;
    font-size: 14px;
    line-height: 1.55;
}

.iem-ads-hero-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 0;
}

.iem-ads-btn,
.iem-ads-link {
    min-height: 38px;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 14px;
}

.iem-ads-filter {
    margin: 0 0 18px;
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
}

.iem-ads-filter-grid,
.iem-ads-list-wrap .iem-ads-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px;
    align-items: end;
}

.iem-ads-filter-wide {
    grid-column: span 2;
}

.iem-ads-filter label {
    margin-bottom: 5px;
    color: #263449;
    font-size: 13px;
}

.iem-ads-filter input,
.iem-ads-filter select {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
}

.iem-ads-filter-actions {
    margin-top: 12px;
}

.iem-ads-price-input-wrap {
    display: contents !important;
    min-height: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.iem-ads-price-input-wrap span {
    display: none !important;
}

.iem-ads-price-input-wrap input,
.iem-ads-form input[name="iem_ad_price"],
.iem-ads-filter #iem_ads_min_price,
.iem-ads-filter #iem_ads_max_price {
    width: 100% !important;
    min-height: 40px !important;
    border: 1px solid rgba(20, 35, 60, 0.18) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    padding: 8px 10px !important;
    box-shadow: none !important;
}

.iem-ads-results-head {
    margin-bottom: 12px;
    padding: 0 2px;
}

.iem-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
    align-items: stretch;
}

body.iem-ads-page.iem-ads-layout-full .iem-ads-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.iem-ads-card {
    border-radius: 16px;
    box-shadow: none;
    transition: border-color .18s ease, transform .18s ease;
}

.iem-ads-card:hover {
    border-color: rgba(20, 35, 60, 0.22);
    transform: translateY(-1px);
}

.iem-ads-thumb {
    aspect-ratio: 4 / 3;
}

.iem-ads-card-body {
    padding: 14px;
}

.iem-ads-card h3 {
    min-height: 44px;
    margin: 10px 0 8px;
    font-size: 17px;
    line-height: 1.25;
}

.iem-ads-card h3 a,
.iem-ads-card h3 a:visited,
.iem-ads-card h3 a:hover,
.iem-ads-card h3 a:focus {
    color: #111827 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
}

.iem-ads-badge,
.iem-ads-meta span {
    border-radius: 8px;
    box-shadow: none;
}

.iem-ads-price {
    display: block;
    width: auto;
    margin: 8px 0;
    color: #087247;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;
    white-space: normal;
}

.iem-ads-price-amount,
.iem-ads-price-currency {
    display: inline;
    letter-spacing: 0;
}

.iem-ads-price-currency {
    margin-left: 5px;
    font-size: .82em;
    opacity: .9;
}

.iem-ads-card-dates {
    margin: 10px 0 12px;
}

.iem-ads-card .iem-ads-link {
    margin-top: auto;
}

.iem-ads-card-promoted {
    box-shadow: none !important;
}

.iem-ads-promo-badge {
    box-shadow: none;
}

@media (max-width: 980px) {
    .iem-ads-filter-grid,
    .iem-ads-list-wrap .iem-ads-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    .iem-ads-hero,
    .iem-ads-hero.iem-ads-hero-clean {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .iem-ads-hero-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .iem-ads-hero-actions .iem-ads-btn {
        width: auto;
    }

    .iem-ads-filter-grid,
    .iem-ads-list-wrap .iem-ads-filter-grid {
        grid-template-columns: 1fr !important;
    }

    .iem-ads-filter-wide {
        grid-column: span 1;
    }

    .iem-ads-grid,
    body.iem-ads-page.iem-ads-layout-full .iem-ads-grid {
        grid-template-columns: 1fr;
    }

    .iem-ads-card h3 {
        min-height: 0;
    }
}

/* v1.0.17 admin moderation helpers */
.iem-ads-admin-wrap .button-small{margin:2px 3px 2px 0;}

/* v1.0.19 SEO single helpers */
.iem-ads-breadcrumbs{font-size:13px;color:#64748b;margin:0 0 14px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}.iem-ads-breadcrumbs a{text-decoration:none;color:#1d4ed8}.iem-ads-breadcrumb-sep{color:#94a3b8}.iem-ads-single-seo-info{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;padding:12px 14px;border:1px solid #e5e7eb;border-radius:14px;background:#f8fafc;color:#475569;font-size:13px}

/* v1.1.0 packages */
.iem-ads-packages-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.iem-ads-package-card{border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:18px;box-shadow:0 10px 26px rgba(15,23,42,.06)}.iem-ads-package-card h3{margin:0 0 8px}.iem-ads-package-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:16px;color:#475569}.iem-ads-package-meta strong{color:#0f172a}


/* v1.1.2 Stability, packages & UX cleanup */
.iem-ads-packages-wrap .iem-ads-section-head-clean{align-items:center;gap:16px}.iem-ads-test-mode-badge{display:inline-flex;align-items:center;border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.iem-ads-package-context{margin:14px 0 18px;padding:16px 18px;border:1px solid #dbeafe;background:#eff6ff;border-radius:16px;color:#1e3a8a}.iem-ads-package-context h3{margin:6px 0 4px;color:#0f172a}.iem-ads-package-context p{margin:6px 0 10px}.iem-ads-package-context-selected{background:#f8fafc;border-color:#e2e8f0;color:#334155}.iem-ads-package-card{position:relative;display:flex;flex-direction:column;min-height:250px}.iem-ads-package-card.is-disabled{opacity:.68}.iem-ads-package-tag{display:inline-flex;align-self:flex-start;margin-bottom:10px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800;color:#475569}.iem-ads-package-vip .iem-ads-package-tag{background:#111827;color:#fff;border-color:#111827}.iem-ads-package-featured .iem-ads-package-tag{background:#fef3c7;color:#92400e;border-color:#fde68a}.iem-ads-package-card p{color:#475569;line-height:1.55}.iem-ads-package-actions{margin-top:auto;padding-top:16px}.iem-ads-package-actions .iem-ads-btn{width:100%;justify-content:center;text-align:center}.iem-ads-package-disabled{display:flex;align-items:center;justify-content:center;width:100%;border-radius:12px;padding:11px 14px;background:#f1f5f9;color:#64748b;font-weight:800}.iem-ads-trust-note{margin-top:18px;padding:14px 16px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;color:#475569}.iem-ads-single-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px}.iem-ads-promote-link{font-weight:800;color:#0f766e!important}.iem-ads-my-actions .iem-ads-muted{display:inline-flex;align-items:center;margin-left:4px;font-size:12px;color:#64748b}
@media(max-width:720px){.iem-ads-packages-wrap .iem-ads-section-head-clean{align-items:flex-start}.iem-ads-test-mode-badge{margin-top:6px}.iem-ads-package-card{min-height:0}}

/* v1.1.3 Contact & Trust final polish */
.iem-ads-phone-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.iem-ads-phone-reveal{border:1px solid #dbe3ef;background:#f8fafc;color:#0f172a;border-radius:999px;padding:6px 10px;font-weight:800;cursor:pointer}.iem-ads-phone-value{font-weight:800;color:#0f172a}.iem-ads-contact-trust-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:18px;margin-top:22px}.iem-ads-contact-card,.iem-ads-safety-card{background:#fff;border:1px solid rgba(20,35,60,.12);border-radius:20px;padding:18px;box-shadow:0 10px 30px rgba(10,20,40,.06)}.iem-ads-contact-card h2,.iem-ads-safety-card h2{margin:0 0 8px;color:#0f172a}.iem-ads-contact-card p,.iem-ads-safety-card p{color:#475569}.iem-ads-contact-form{margin-top:12px}.iem-ads-contact-form label{display:block;font-weight:800;color:#14213d;margin-bottom:7px}.iem-ads-contact-form input,.iem-ads-contact-form textarea{width:100%;border:1px solid #d6deea;border-radius:12px;padding:11px 12px;background:#fff;color:#0f172a}.iem-ads-contact-form textarea{min-height:130px;resize:vertical}.iem-ads-safety-card{background:#fffbeb;border-color:#fde68a}.iem-ads-safety-card ul{margin:10px 0 0;padding-left:18px;color:#78350f}.iem-ads-safety-card li{margin:6px 0}.iem-ads-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}.iem-ads-single-details .iem-ads-detail-list a[href^="mailto:"]{word-break:break-all}
@media(max-width:820px){.iem-ads-contact-trust-grid{grid-template-columns:1fr}.iem-ads-phone-row{align-items:flex-start}}


/* v1.1.5 Frontend single/list polish + small bugfix pass */
.iem-ads-card {
    overflow: hidden;
}

.iem-ads-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}

.iem-ads-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.iem-ads-card:hover .iem-ads-thumb img {
    transform: scale(1.025);
}

.iem-ads-card-body {
    gap: 8px;
}

.iem-ads-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    line-height: 1.35;
}

.iem-ads-card-excerpt {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iem-ads-meta,
.iem-ads-card-dates {
    line-height: 1.4;
}

.iem-ads-single-topline {
    margin: 0 0 12px;
}

.iem-ads-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569 !important;
    font-weight: 800;
    text-decoration: none !important;
    font-size: 14px;
}

.iem-ads-back-link:hover,
.iem-ads-back-link:focus {
    color: #0f172a !important;
    text-decoration: none !important;
}

.iem-ads-single-layout {
    align-items: start;
}

.iem-ads-single-details {
    position: sticky;
    top: 24px;
}

.iem-ads-single-details .iem-ads-price {
    margin-top: 0;
}

.iem-ads-detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #eef2f7;
    padding: 9px 0;
}

.iem-ads-detail-list li:last-child {
    border-bottom: 0;
}

.iem-ads-detail-list strong {
    color: #334155;
    min-width: 120px;
}

.iem-ads-contact-trust-grid {
    margin-bottom: 18px;
}

.iem-ads-single-description {
    line-height: 1.75;
}

.iem-ads-single-description h2,
.iem-ads-contact-card h2,
.iem-ads-safety-card h2 {
    font-size: 20px;
    line-height: 1.25;
}

.iem-ads-report {
    text-decoration: none !important;
}

@media (max-width: 900px) {
    .iem-ads-single-details {
        position: static;
    }

    .iem-ads-detail-list li {
        display: block;
    }

    .iem-ads-detail-list strong {
        display: block;
        min-width: 0;
        margin-bottom: 3px;
    }
}

@media (max-width: 720px) {
    .iem-ads-card h3 {
        min-height: 0;
    }

    .iem-ads-card-excerpt {
        -webkit-line-clamp: 3;
    }
}

/* v1.1.6 - Related ads / seller ads pass */
.iem-ads-related-wrap {
    margin-top: 24px;
    display: grid;
    gap: 24px;
}

.iem-ads-related-section {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.05);
}

.iem-ads-related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e7edf5;
    padding-bottom: 12px;
}

.iem-ads-related-head h2 {
    margin: 0 !important;
    font-size: 21px;
    line-height: 1.25;
    color: #0f172a;
}

.iem-ads-related-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    text-align: right;
}

.iem-ads-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.iem-ads-related-grid .iem-ads-card {
    min-height: 100%;
    background: #f8fafc;
    border-color: #d6deea;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}

.iem-ads-related-grid .iem-ads-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: #c7d2e3;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.iem-ads-related-grid .iem-ads-thumb {
    min-height: 170px;
}

.iem-ads-related-grid .iem-ads-card-excerpt {
    display: none;
}

.iem-ads-related-grid .iem-ads-card-dates {
    font-size: 12px;
}

.iem-ads-related-grid .iem-ads-link {
    margin-top: auto;
}

@media (max-width: 1200px) {
    .iem-ads-related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .iem-ads-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .iem-ads-related-section {
        padding: 14px;
        border-radius: 16px;
    }

    .iem-ads-related-head {
        display: block;
    }

    .iem-ads-related-head p {
        text-align: left;
        margin-top: 6px;
    }

    .iem-ads-related-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.1.8 - Pre-payment readiness + listing card polish */
.iem-ads-list-wrap > .iem-ads-grid,
body.iem-ads-page.iem-ads-layout-full .iem-ads-list-wrap > .iem-ads-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.iem-ads-list-wrap > .iem-ads-grid .iem-ads-card,
.iem-ads-related-grid .iem-ads-card {
    background: #f8fafc;
    border: 1px solid #d6deea;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}

.iem-ads-list-wrap > .iem-ads-grid .iem-ads-card:hover,
.iem-ads-related-grid .iem-ads-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: #c7d2e3;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.iem-ads-list-wrap > .iem-ads-grid .iem-ads-card .iem-ads-link,
.iem-ads-related-grid .iem-ads-card .iem-ads-link {
    margin-top: auto;
}

.iem-ads-package-readiness {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 1120px) {
    .iem-ads-list-wrap > .iem-ads-grid,
    body.iem-ads-page.iem-ads-layout-full .iem-ads-list-wrap > .iem-ads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .iem-ads-list-wrap > .iem-ads-grid,
    body.iem-ads-page.iem-ads-layout-full .iem-ads-list-wrap > .iem-ads-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.2.1 — single image/header cleanup + lightbox gallery navigation */
body.single-iem_ad .single-featured-image,
body.single-iem_ad .single-post-featured-image,
body.single-iem_ad .entry-thumbnail,
body.single-iem_ad .post-thumbnail,
body.single-iem_ad .thumbnailarea,
body.single-iem_ad .rh-post-thumbnail,
body.single-iem_ad .rh_post_image,
body.single-iem_ad .featured-image,
body.single-iem_ad .featured_image,
body.single-iem_ad .wp-block-post-featured-image {
    display: none !important;
}

.iem-ads-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(15,23,42,.78);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

.iem-ads-lightbox-prev {
    left: 14px;
}

.iem-ads-lightbox-next {
    right: 14px;
}

.iem-ads-lightbox-nav:hover {
    background: rgba(15,23,42,.95);
}

.iem-ads-lightbox-nav[hidden] {
    display: none !important;
}

.iem-ads-lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: -36px;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,.78);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .iem-ads-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .iem-ads-lightbox-prev {
        left: 8px;
    }

    .iem-ads-lightbox-next {
        right: 8px;
    }
}

/* v1.2.3 - Public documentation / product page foundation */
.iem-ads-public-docs-wrap,
.iem-ads-product-page-wrap {
    max-width: 1180px;
    margin: 0 auto;
}

.iem-ads-doc-hero,
.iem-ads-product-hero {
    border: 1px solid #dbe3ee;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 28px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
    margin: 18px 0 22px;
}

.iem-ads-doc-hero h2,
.iem-ads-product-hero h2 {
    margin: 8px 0 10px !important;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    color: #0f172a;
}

.iem-ads-doc-hero p,
.iem-ads-product-hero p {
    max-width: 760px;
    color: #475569;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

.iem-ads-doc-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.iem-ads-doc-card,
.iem-ads-product-grid article,
.iem-ads-product-section,
.iem-ads-product-price-card {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.iem-ads-doc-card h3,
.iem-ads-product-grid h3,
.iem-ads-product-section h3 {
    margin: 0 0 10px !important;
    color: #0f172a;
    font-size: 20px;
}

.iem-ads-doc-card li,
.iem-ads-product-grid p,
.iem-ads-product-section p {
    color: #475569;
    line-height: 1.6;
}

.iem-ads-doc-card-note {
    background: #f8fafc;
}

.iem-ads-shortcode-table-wrap {
    overflow-x: auto;
}

.iem-ads-shortcode-table {
    width: 100%;
    border-collapse: collapse;
}

.iem-ads-shortcode-table th,
.iem-ads-shortcode-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: top;
}

.iem-ads-shortcode-table th {
    width: 42%;
    color: #334155;
}

.iem-ads-shortcode-table code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 7px;
}

.iem-ads-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    align-items: center;
}

.iem-ads-product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.iem-ads-btn-disabled {
    opacity: .7;
    cursor: not-allowed;
}

.iem-ads-product-price-card {
    display: grid;
    gap: 6px;
    text-align: center;
    background: #f8fafc;
}

.iem-ads-product-price-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.iem-ads-product-price-card strong {
    color: #0f172a;
    font-size: 24px;
    line-height: 1.2;
}

.iem-ads-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.iem-ads-product-section {
    margin: 16px 0;
}

@media (max-width: 1040px) {
    .iem-ads-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .iem-ads-product-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .iem-ads-doc-layout,
    .iem-ads-product-grid {
        grid-template-columns: 1fr;
    }

    .iem-ads-doc-hero,
    .iem-ads-product-hero,
    .iem-ads-doc-card,
    .iem-ads-product-grid article,
    .iem-ads-product-section,
    .iem-ads-product-price-card {
        padding: 16px;
        border-radius: 16px;
    }
}

/* v1.2.4 - Product page polish / paid download prep */
.iem-ads-product-page-polished {
    color: #0f172a;
}

.iem-ads-product-hero-pro {
    background: radial-gradient(circle at top right, rgba(59,130,246,.13), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #cbd5e1;
}

.iem-ads-product-hero-pro .iem-ads-product-actions .iem-ads-btn {
    min-height: 44px;
}

.iem-ads-product-price-card-pro {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
    box-shadow: 0 18px 42px rgba(15,23,42,.18);
}

.iem-ads-product-price-card-pro span,
.iem-ads-product-price-card-pro em {
    color: #cbd5e1;
}

.iem-ads-product-price-card-pro strong {
    color: #fff;
}

.iem-ads-product-highlight-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0 18px;
}

.iem-ads-product-highlight-row > div {
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: #f8fafc;
    padding: 16px;
}

.iem-ads-product-highlight-row strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 15px;
}

.iem-ads-product-highlight-row span {
    color: #475569;
    line-height: 1.55;
}

.iem-ads-product-grid-pro article {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.iem-ads-product-grid-pro article:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 38px rgba(15,23,42,.09);
}

.iem-ads-product-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.iem-ads-product-checklist {
    margin: 8px 0 0;
    padding-left: 0;
    list-style: none;
}

.iem-ads-product-checklist li {
    position: relative;
    padding: 8px 0 8px 26px;
    border-bottom: 1px solid #eef2f7;
    color: #475569;
    line-height: 1.55;
}

.iem-ads-product-checklist li:last-child {
    border-bottom: 0;
}

.iem-ads-product-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.iem-ads-product-steps ol {
    margin: 8px 0 0;
    padding-left: 22px;
}

.iem-ads-product-steps li {
    margin: 9px 0;
    color: #475569;
    line-height: 1.6;
}

.iem-ads-product-faq details {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
    margin: 10px 0;
    background: #f8fafc;
}

.iem-ads-product-faq summary {
    cursor: pointer;
    font-weight: 800;
    color: #0f172a;
}

.iem-ads-product-faq p {
    margin-top: 10px;
}

.iem-ads-product-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    box-shadow: 0 16px 42px rgba(15,23,42,.06);
    margin: 18px 0;
}

.iem-ads-product-final-cta h3 {
    margin: 6px 0 8px !important;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.15;
}

.iem-ads-product-final-cta p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .iem-ads-product-highlight-row,
    .iem-ads-product-two-col {
        grid-template-columns: 1fr;
    }

    .iem-ads-product-final-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}
