.ads-page .stripe-title {
    line-height: 1.35;
    padding: 0.65rem 0.75rem;
    white-space: normal;
}

.ads-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ads-preview-card {
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(35, 47, 62, 0.06);
    padding: 1rem;
}

.ads-preview-heading {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.ads-preview-badge {
    align-items: center;
    background: #1f6f8b;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    min-width: 4.25rem;
}

.ads-size-list {
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(35, 47, 62, 0.06);
    overflow: hidden;
}

.ads-size-row {
    align-items: center;
    border-bottom: 1px solid #eef1f5;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr) 8rem 6.5rem;
    padding: 0.9rem 1rem;
}

.ads-size-row:last-child {
    border-bottom: 0;
}

.ads-size-row strong {
    color: #13212c;
    font-size: 0.95rem;
}

.ads-size-row span {
    color: #5b6570;
    font-size: 0.86rem;
}

.ads-size-row em {
    background: #e8f4ff;
    border-radius: 999px;
    color: #1f6f8b;
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 800;
    justify-self: start;
    padding: 0.28rem 0.65rem;
}

.ads-size-row a {
    color: #1ba6b1;
    font-size: 0.82rem;
    font-weight: 700;
    justify-self: start;
    text-decoration: none;
}

.ads-size-row a:hover {
    text-decoration: underline;
}

.ads-price-grid {
    display: grid;
    gap: 0.875rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ads-price-box {
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(35, 47, 62, 0.06);
    padding: 1rem;
}

.ads-price-box--recommended {
    border-color: rgba(27, 166, 177, 0.42);
    box-shadow: 0 8px 22px rgba(27, 166, 177, 0.12);
}

.ads-price-box span {
    background: #e8f4ff;
    border-radius: 999px;
    color: #1f6f8b;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
    padding: 0.25rem 0.65rem;
}

.ads-price-box--recommended span {
    background: #1ba6b1;
    color: #fff;
}

.ads-price-box strong {
    color: #13212c;
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.ads-price-box p {
    color: #5b6570;
    font-size: 0.86rem;
    margin-bottom: 0;
}

.ads-price-table-wrap {
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(35, 47, 62, 0.06);
    overflow-x: auto;
}

.ads-price-table {
    border-collapse: collapse;
    color: #13212c;
    font-size: 0.92rem;
    min-width: 40rem;
    width: 100%;
}

.ads-price-table--plans {
    min-width: 44rem;
}

.ads-price-table th,
.ads-price-table td {
    border-bottom: 1px solid #eef1f5;
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
}

.ads-price-table thead th {
    background: #f3f8fb;
    color: #41505d;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.ads-price-table tbody th {
    font-weight: 800;
}

.ads-price-table td {
    color: #5b6570;
    font-weight: 700;
    text-align: left;
}

.ads-price-table td.ads-price-table__number {
    color: #1f6f8b;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
    width: 3.5rem;
}

.ads-price-table td.ads-price-table__amount {
    color: #13212c;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.ads-price-size {
    background: #e8f4ff;
    border-radius: 999px;
    color: #1f6f8b;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 0.28rem 0.65rem;
    white-space: nowrap;
}

.ads-price-sample-link {
    color: #1ba6b1;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.ads-price-sample-link:hover {
    color: #168c97;
    text-decoration: underline;
}

.ads-price-table tbody tr:last-child th,
.ads-price-table tbody tr:last-child td {
    border-bottom: 0;
}

.ads-price-table__highlight th,
.ads-price-table__highlight td {
    background: #f0fbfc;
}

.ads-banner-support {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(27, 166, 177, 0.24);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(35, 47, 62, 0.06);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.ads-banner-support strong {
    color: #13212c;
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.ads-banner-support p {
    color: #5b6570;
    font-size: 0.86rem;
    margin: 0;
}

.ads-banner-support span {
    background: #1ba6b1;
    border-radius: 999px;
    color: #fff;
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.35rem 0.85rem;
    white-space: nowrap;
}

.ads-page-mock,
.ads-phone-mock {
    background: #f7f9fb;
    border: 1px solid #d9e0e8;
    overflow: hidden;
}

.ads-page-mock {
    border-radius: 8px;
    min-height: 20rem;
    padding: 1rem;
}

.ads-page-mock--sidebar {
    display: grid;
    gap: 0.875rem;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 18.75rem);
}

.ads-page-mock--inline {
    align-items: center;
    display: flex;
    justify-content: center;
}

.ads-page-mock--compact {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 7.8125rem;
}

.ads-page-content,
.ads-mock-sidebar,
.ads-compact-list {
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 8px;
    padding: 0.875rem;
}

.ads-page-content {
    min-height: 16.25rem;
}

.ads-mock-sidebar {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 16.25rem;
}

.ads-mock-kicker {
    color: #1f6f8b;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
}

.ads-mock-title,
.ads-mock-line,
.ads-mock-question,
.ads-compact-row div,
.ads-compact-row span,
.ads-phone-top {
    background: #e7edf3;
    border-radius: 4px;
}

.ads-mock-title {
    height: 1.35rem;
    margin-bottom: 1rem;
    max-width: 15rem;
}

.ads-mock-line {
    height: 0.625rem;
    margin-bottom: 0.625rem;
    max-width: 70%;
}

.ads-mock-line--wide {
    max-width: 92%;
}

.ads-mock-line--short {
    max-width: 48%;
}

.ads-mock-question {
    height: 4.25rem;
    margin: 1rem 0;
}

.ads-mock-buttons {
    display: flex;
    gap: 0.5rem;
}

.ads-mock-buttons span {
    background: #d6eadf;
    border-radius: 999px;
    height: 1.75rem;
    width: 5rem;
}

.ads-sample {
    border: 1px solid rgba(31, 111, 139, 0.18);
    box-shadow: 0 8px 24px rgba(35, 47, 62, 0.12);
    color: #13212c;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.35;
    overflow: hidden;
    position: relative;
}

.ads-sample::before {
    background: rgba(255, 255, 255, 0.16);
    content: "";
    height: 8rem;
    position: absolute;
    right: -3rem;
    top: -4rem;
    transform: rotate(28deg);
    width: 8rem;
}

.ads-sample strong {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
    position: relative;
    z-index: 1;
}

.ads-sample small {
    color: #41505d;
    font-size: 0.72rem;
    margin-top: 0.25rem;
    position: relative;
    z-index: 1;
}

.ads-sponsored {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(31, 111, 139, 0.18);
    border-radius: 999px;
    color: #41505d;
    font-size: 0.625rem;
    font-weight: 700;
    left: 0.5rem;
    padding: 0.125rem 0.375rem;
    position: absolute;
    top: 0.5rem;
    z-index: 2;
}

.ads-brand {
    color: inherit;
    display: block;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    position: relative;
    text-transform: uppercase;
    z-index: 1;
}

.ads-tag {
    background: #fff;
    border-radius: 999px;
    color: #d95d39;
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
    padding: 0.2rem 0.55rem;
    position: relative;
    z-index: 1;
}

.ads-cta {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    color: #0f5f7a;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 800;
    justify-content: center;
    margin-top: 0.7rem;
    min-height: 1.8rem;
    padding: 0.25rem 0.8rem;
    position: relative;
    z-index: 1;
}

.ads-copy {
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* Type A: 300 x 250 */
.ads-sample--type-a {
    align-items: center;
    aspect-ratio: 300 / 250;
    background: linear-gradient(135deg, #0f5f7a 0%, #24a0a4 58%, #ffd166 100%);
    border-radius: 7px;
    color: #fff;
    max-width: 18.75rem;
    padding: 1.25rem;
    text-align: center;
    width: 100%;
}

.ads-sample--type-a strong,
.ads-sample--type-a small {
    color: #fff;
}

/* Type B: 300 x 125 */
.ads-sample--type-b {
    align-items: center;
    aspect-ratio: 300 / 125;
    background: linear-gradient(135deg, #fff7df 0%, #fff 48%, #d7edf1 100%);
    border-left: 6px solid #f4a261;
    border-radius: 7px;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: space-between;
    margin: 1.25rem auto;
    max-width: 18.75rem;
    padding: 1.25rem 0.875rem 0.75rem;
    width: 100%;
}

.ads-sample--type-b .ads-cta {
    background: #d95d39;
    color: #fff;
    flex: 0 0 auto;
    margin-top: 0;
}

.ads-sample--type-b strong {
    font-size: 0.88rem;
}

/* Type C: 125 x 125 */
.ads-sample--type-c {
    align-items: center;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #233d4d 0%, #1f6f8b 100%);
    border-radius: 7px;
    color: #fff;
    max-width: 7.8125rem;
    padding: 1.45rem 0.625rem 0.625rem;
    text-align: center;
    width: 100%;
}

.ads-sample--type-c strong {
    color: #fff;
    font-size: 0.95rem;
}

.ads-sample--type-c small {
    color: rgba(255, 255, 255, 0.88);
}

.ads-sample--type-c .ads-brand {
    color: #ffd166;
    margin-bottom: 0.2rem;
}

.ads-sample--type-c .ads-cta {
    color: #233d4d;
    font-size: 0.68rem;
    margin-top: 0.45rem;
    min-height: 1.35rem;
    padding: 0.1rem 0.5rem;
}

/* Type D: 320 x 50, responsive width */
.ads-sample--type-d {
    align-items: center;
    background: #152b42;
    border-color: #152b42;
    border-radius: 0;
    bottom: 0;
    color: #fff;
    flex-direction: row;
    gap: 0.625rem;
    height: 3.125rem;
    left: 0;
    padding: 0.5rem 0.875rem;
    position: absolute;
    right: 0;
}

.ads-sample--type-d::before {
    display: none;
}

.ads-sample--type-d .ads-sponsored {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    left: 0.625rem;
    position: static;
    top: auto;
}

.ads-sample--type-d strong {
    color: #fff;
    font-size: 0.9rem;
}

.ads-sample--type-d .ads-cta {
    background: #ffd166;
    color: #152b42;
    margin-left: auto;
    margin-top: 0;
    min-height: 1.55rem;
    padding: 0.15rem 0.65rem;
}

.ads-compact-list {
    display: grid;
    gap: 0.625rem;
}

.ads-compact-row {
    align-items: center;
    display: grid;
    gap: 0.625rem;
    grid-template-columns: 2.25rem minmax(0, 1fr);
}

.ads-compact-row span {
    height: 2.25rem;
}

.ads-compact-row div {
    height: 0.75rem;
}

.ads-phone-mock {
    border-radius: 24px;
    box-shadow: inset 0 0 0 6px #223142;
    height: 22rem;
    margin: 0 auto;
    max-width: 21.25rem;
    padding: 1rem;
    position: relative;
}

.ads-phone-top {
    height: 0.375rem;
    margin: 0.125rem auto 1rem;
    max-width: 4rem;
}

.ads-phone-content {
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 12px;
    min-height: 16rem;
    padding: 1rem;
}

.ads-sample-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ads-photo-card {
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(35, 47, 62, 0.06);
    padding: 1rem;
}

.ads-photo-link {
    color: inherit;
    display: block;
    margin: 0 auto;
    max-width: 20rem;
    text-decoration: none;
}

.ads-photo-link:hover {
    color: inherit;
    text-decoration: none;
}

.ads-photo-frame {
    background: #f7f9fb;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    display: block;
    overflow: hidden;
    position: relative;
}

.ads-photo-frame img {
    display: block;
    height: auto;
    width: 100%;
}

.ads-photo-highlight {
    background: rgba(244, 162, 97, 0.18);
    border: 3px solid #f06b3a;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(19, 33, 44, 0.18), 0 8px 22px rgba(240, 107, 58, 0.28);
    content: "";
    display: block;
    height: var(--ad-h);
    left: var(--ad-x);
    pointer-events: none;
    position: absolute;
    top: var(--ad-y);
    width: var(--ad-w);
}

.ads-photo-callout {
    background: #f06b3a;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 800;
    left: calc(var(--ad-x) + 0.5rem);
    line-height: 1;
    padding: 0.3rem 0.55rem;
    pointer-events: none;
    position: absolute;
    top: calc(var(--ad-y) + 0.5rem);
}

.ads-photo-frame--sample1 {
    --ad-x: 0%;
    --ad-y: 89%;
    --ad-w: 100%;
    --ad-h: 8.5%;
}

.ads-photo-frame--sample2 {
    --ad-x: 23%;
    --ad-y: 49%;
    --ad-w: 54%;
    --ad-h: 30%;
}

.ads-photo-frame--sample3 {
    --ad-x: 23%;
    --ad-y: 15%;
    --ad-w: 54%;
    --ad-h: 31%;
}

.ads-photo-frame--sample4 {
    --ad-x: 22%;
    --ad-y: 68%;
    --ad-w: 55%;
    --ad-h: 21%;
}

.ads-photo-frame--sample5 {
    --ad-x: 22%;
    --ad-y: 81%;
    --ad-w: 56%;
    --ad-h: 17%;
}

.ads-photo-meta {
    border-top: 1px solid #eef1f5;
    display: grid;
    gap: 0.45rem;
    margin: 0.9rem 0 0;
    padding-top: 0.8rem;
}

.ads-photo-meta div {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 6.5rem minmax(0, 1fr);
}

.ads-photo-meta dt {
    color: #5b6570;
    font-size: 0.78rem;
    font-weight: 700;
}

.ads-photo-meta dd {
    color: #13212c;
    font-size: 0.82rem;
    margin: 0;
}

.ads-lightbox {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1080;
}

.ads-lightbox:target {
    display: flex;
}

.ads-lightbox-backdrop {
    background: rgba(19, 33, 44, 0.78);
    inset: 0;
    position: absolute;
}

.ads-lightbox-dialog {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
    max-height: calc(100vh - 2rem);
    max-width: min(68rem, calc(100vw - 2rem));
    overflow: auto;
    padding: 1rem;
    position: relative;
    width: max-content;
    z-index: 1;
}

.ads-lightbox-dialog .ads-photo-frame {
    max-width: min(58rem, calc(100vw - 4rem));
}

.ads-lightbox-close {
    align-items: center;
    background: #152b42;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 1.4rem;
    height: 2.25rem;
    justify-content: center;
    position: absolute;
    right: 0.75rem;
    text-decoration: none;
    top: 0.75rem;
    width: 2.25rem;
    z-index: 2;
}

.ads-lightbox-close:hover {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .ads-preview-grid,
    .ads-sample-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .ads-price-grid {
        grid-template-columns: 1fr;
    }

    .ads-banner-support {
        align-items: flex-start;
        flex-direction: column;
    }

    .ads-size-row {
        grid-template-columns: 1fr;
    }

    .ads-page-mock {
        min-height: auto;
        padding: 0.75rem;
    }

    .ads-page-mock--sidebar,
    .ads-page-mock--compact {
        grid-template-columns: 1fr;
    }

    .ads-mock-sidebar {
        min-height: auto;
    }

    .ads-page-content {
        min-height: 12rem;
    }

    .ads-photo-link {
        max-width: 100%;
    }

    .ads-photo-meta div {
        grid-template-columns: 1fr;
    }

    .ads-lightbox-dialog {
        padding: 0.75rem;
    }

    .ads-lightbox-dialog .ads-photo-frame {
        max-width: calc(100vw - 3rem);
    }
}
