.template-detail-page {
    background: #fff;
}
.detail-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 72% 30%, #0a264b 0, #06253a 34%, #041326 72%);
    color: #fff;
    padding: 105px 0 34px;
}
.detail-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 183, 34, 0.5) 1px, transparent 1.3px);
    background-size: 72px 72px;
    opacity: 0.15;
    pointer-events: none;
}
.detail-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(75px);
    opacity: 0.2;
}
.detail-glow-left {
    left: -180px;
    top: 20px;
    background: #dc123e;
}
.detail-glow-right {
    right: -160px;
    top: -80px;
    background: #1461c6;
}
.detail-hero-inner {
    position: relative;
    z-index: 1;
}
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #b7c8d8;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 22px;
}
.breadcrumbs a:hover {
    color: #fff;
}
.breadcrumbs strong {
    color: #fff;
}
.detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(430px, 0.85fr);
    gap: 34px;
    align-items: end;
}
.detail-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.detail-title-row h1 {
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1;
    margin: 0;
    font-weight: 950;
    letter-spacing: -1.5px;
}
.free-badge {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(58,133,230,0.65);
    background: rgba(23,94,187,0.13);
    color: #67a0ea;
    font-weight: 900;
    font-size: 11px;
}
.detail-hero p {
    color: #d4dde7;
    max-width: 650px;
    font-size: 14px;
    margin: 15px 0 0;
}
.detail-benefit-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.detail-benefit-strip > div {
    text-align: center;
    padding: 7px 4px;
}
.benefit-symbol {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(53,128,226,0.28);
    background: rgba(14,92,195,0.1);
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #2773d6;
    font-size: 22px;
    margin: 0 auto 8px;
}
.detail-benefit-strip strong {
    font-size: 11px;
    display: block;
    color: #f3f8fa;
}
.detail-main-section {
    padding: 42px 0 28px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}
.detail-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(300px, 0.85fr);
    gap: 30px;
    align-items: start;
}
.main-preview-card {
    position: relative;
    border: 1px solid #e0e7ee;
    background: #fff;
    padding: 16px;
    border-radius: 17px;
    box-shadow: 0 12px 36px rgba(8, 31, 54, 0.09);
}
.browser-frame {
    overflow: hidden;
    border: 1px solid #d9e1e9;
    border-radius: 12px;
    background: #fff;
}
.browser-bar {
    height: 35px;
    background: #f3f6f8;
    border-bottom: 1px solid #e1e7ec;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
}
.browser-bar > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c7d0d9;
}
.browser-address {
    height: 19px;
    margin-left: 5px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e4e9ee;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #8390a0;
    font-size: 8px;
    flex: 1;
    max-width: 360px;
}
.browser-frame > img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #f5f8fb;
}
.preview-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #dfe5eb;
    background: #fff;
    color: #172236;
    font-size: 29px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(5, 22, 39, 0.12);
    cursor: pointer;
}
.preview-nav.prev {
    left: -23px;
}
.preview-nav.next {
    right: -23px;
}
.preview-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #dde5ec;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 14px;
    background: #fff;
}
.preview-actions > a,
.preview-actions > button {
    height: 52px;
    border: 0;
    border-right: 1px solid #e3e8ed;
    background: #040a28;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.preview-actions > *:last-child {
    border-right: 0;
}
.preview-actions > *:hover {
    background: #f5fbf7;
    color: #0a50ac;
}
.preview-actions span {
    font-size: 16px;
}
.template-sidebar {
    display: grid;
    gap: 16px;
}
.include-card,
.template-meta-card {
    border: 1px solid #e0e7ee;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(8, 31, 54, 0.07);
}
.include-card {
    padding: 24px;
}
.include-card h2 {
    margin: 0 0 16px;
    font-size: 20px;
}
.include-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    gap: 10px;
}
.include-card li {
    position: relative;
    padding-left: 24px;
    font-size: 13px;
    font-weight: 650;
    color: #263548;
}
.include-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #105aba;
    font-weight: 950;
}
.sidebar-messenger {
    width: 100%;
    font-size: 14px;
    padding: 13px 18px;
}
.include-card small {
    display: block;
    text-align: center;
    color: #000;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 10px;
}
.include-card small strong {
    color: #243349;
}
.template-meta-card {
    padding: 6px 20px;
}
.template-meta-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #e8edf2;
    font-size: 12px;
}
.template-meta-card > div:last-child {
    border-bottom: 0;
}
.template-meta-card span {
    font-weight: 750;
    color: #5b6879;
}
.template-meta-card strong {
    font-size: 11px;
    text-align: right;
}
.meta-green {
    color: #0a52af;
}
.meta-red {
    color: #ed3650;
}
.about-template {
    padding: 26px 0 42px;
}
.about-copy {
    /*max-width: 760px;*/
	max-width: none;
}
.detail-overline {
    display: block;
    color: #0b50aa;
    font-size: 14px;
    letter-spacing: 1.6px;
    font-weight: 950;
    margin-bottom: 5px;
}
.about-copy h2,
.detail-section-heading h2 {
    margin: 0;
    color: #b20909;
    font-size: 22px;
    line-height: 1.2;
}
.about-copy p,
.detail-section-heading p {
    color: #333;
    font-size: 15px;
    line-height: 1.7;
    margin: 10px 0 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
    margin-top: 25px;
}
.feature-grid article {
    border: 1px solid #e5eaf0;
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 6px 19px rgba(8, 31, 54, 0.05);
    padding: 18px;
    display: flex;
    gap: 13px;
    align-items: center;
}
.feature-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 950;
}
.adsense-icon {
    background: #fff3e6;
    color: #3e7ef1;
}
.adsterra-icon {
    background: #eef5ff;
    color: #1877f2;
    position: relative;
}
.adsterra-icon::before {
    content: "";
    width: 17px;
    height: 26px;
    border: 2px solid currentColor;
    border-radius: 4px;
    box-sizing: border-box;
}
.adsterra-icon::after {
    content: "";
    position: absolute;
    bottom: 11px;
    width: 5px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.seo-icon {
    background: #edf5ff;
    color: #387ee9;
}
.speed-icon {
    background: #f2ecff;
    color: #8754e5;
}
.feature-grid h3 {
    font-size: 13px;
    margin: 0 0 2px;
}
.feature-grid p {
    font-size: 15px;
    color: #6d7a8b;
    margin: 0;
    line-height: 1.45;
}
.screenshots-section {
    padding: 42px 0;
    background: #f7faff;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}
.detail-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.screen-count {
    background: #fff;
    border: 1px solid #dfe6ed;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 11px;
    color: #788598;
}
.screen-count strong {
    color: #0d51aa;
    font-size: 14px;
}
.screenshot-shell {
    position: relative;
}
.screenshot-scroller {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 13px;
}
.screenshot-scroller::-webkit-scrollbar {
    display: none;
}
.screenshot-thumb {
    appearance: none;
    text-align: left;
    border: 2px solid transparent;
    background: #fff;
    border-radius: 13px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(8, 31, 54, 0.08);
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 240px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: 0.2s;
}
.screenshot-thumb:hover,
.screenshot-thumb.active {
    border-color: #155fbf;
    transform: translateY(-2px);
}
.screenshot-thumb img {
    width: 100%;
    /*aspect-ratio: 16/10;*/
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #edf1f4;
}
.screenshot-thumb span {
    display: block;
    font-size: 11px;
    font-weight: 850;
    margin: 8px 4px 2px;
    color: #243246;
}
.screenshot-arrow {
    position: absolute;
    z-index: 3;
    top: 43%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dfe5eb;
    background: #fff;
    box-shadow: 0 10px 25px rgba(8, 31, 54, 0.13);
    font-size: 25px;
    cursor: pointer;
}
.screenshot-prev {
    left: -20px;
}
.screenshot-next {
    right: -20px;
}
.screenshot-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}
.screenshot-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c9d2dc;
    cursor: pointer;
}
.screenshot-dots button.active {
    width: 21px;
    border-radius: 99px;
    background: #115aba;
}
.related-templates-section {
    padding: 45px 0;
}
.related-heading {
    align-items: center;
}
.all-template-link {
    font-size: 12px;
    font-weight: 900;
    color: #084da6;
}
.related-template-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}
.related-card {
    border: 1px solid #e3e9ef;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 7px 23px rgba(8, 31, 54, 0.07);
    transition: 0.2s;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 34px rgba(8, 31, 54, 0.12);
}
.related-card > img {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
}
.related-card > div {
    padding: 13px;
}
.related-tag {
    display: inline-flex;
    color: #fff;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 900;
}
.related-tag.purple {
    background: #7b4dd5;
}
.related-tag.blue {
    background: #2785d9;
}
.related-tag.red {
    background: #eb3f4b;
}
.related-tag.orange {
    background: #ff8f15;
}
.related-card h3 {
    font-size: 14px;
    margin: 7px 0 3px;
}
.related-card p {
    font-size: 15px;
    color: #687688;
    /*line-height: 1.5;*/
    min-height: 44px;
    margin: 0 0 10px;
}
.related-card a {
    font-size: 11px;
    color: #000;
    font-weight: 900;
}
.detail-bottom-cta {
    background: linear-gradient(110deg, #041d3d, #064290 48%, #1159b6);
    color: #fff;
    padding: 21px 0;
}
.detail-bottom-cta-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
}
.cta-orb {
    width: 82px;
    height: 82px;
    border: 3px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 950;
    box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.08);
}
.cta-orb small {
    font-size: 8px;
}
.detail-bottom-cta span {
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1.5px;
    color: #d5e7fe;
}
.detail-bottom-cta h2 {
    font-size: 22px;
    margin: 3px 0 3px;
}
.detail-bottom-cta p {
    font-size: 11px;
    margin: 0;
    color: #e5f5eb;
}
.btn-light-detail {
    background: #fff;
    color: #064597;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
.btn-light-detail:before {
    content: "";
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background: url("../images/messenger.svg") center/contain no-repeat;
    filter: brightness(0) saturate(100%) invert(44%) sepia(76%) saturate(859%) hue-rotate(93deg) brightness(93%)
        contrast(88%);
}
@media (max-width: 1000px) {
    .detail-hero-grid {
        grid-template-columns: 1fr;
    }
    .detail-benefit-strip {
        max-width: 620px;
    }
    .detail-main-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
        gap: 20px;
    }
    .feature-grid,
    .related-template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .screenshot-thumb {
        flex-basis: calc((100% - 32px) / 3);
    }
    .preview-nav.prev {
        left: -14px;
    }
    .preview-nav.next {
        right: -14px;
    }
    .screenshot-prev {
        left: -12px;
    }
    .screenshot-next {
        right: -12px;
    }
}
@media (max-width: 820px) {
    .detail-main-grid {
        grid-template-columns: 1fr;
    }
    .template-sidebar {
        grid-template-columns: 1fr 1fr;
    }
    .include-card {
        grid-row: span 1;
    }
    .detail-bottom-cta-inner {
        grid-template-columns: auto 1fr;
    }
    .detail-bottom-cta .btn {
        grid-column: 1/3;
        width: 100%;
    }
    .preview-actions > a,
    .preview-actions > button {
        font-size: 11px;
    }
}
@media (max-width: 700px) {
    .detail-hero {
        padding-top: 88px;
    }
    .detail-benefit-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-grid,
    .related-template-grid {
        grid-template-columns: 1fr;
    }
    .screenshot-thumb {
        flex-basis: 78vw;
    }
    .screenshot-arrow {
        display: none;
    }
    .template-sidebar {
        grid-template-columns: 1fr;
    }
    .detail-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .screen-count {
        align-self: flex-end;
        margin-top: -48px;
    }
    .related-heading .all-template-link {
        align-self: flex-start;
    }
    .detail-bottom-cta-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cta-orb {
        margin: auto;
    }
    .detail-bottom-cta .btn {
        grid-column: auto;
    }
    .preview-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    .preview-actions > *:nth-child(2) {
        border-right: 0;
    }
    .preview-actions > *:nth-child(-n + 2) {
        border-bottom: 1px solid #e3e8ed;
    }
}
@media (max-width: 520px) {
    .detail-hero {
        padding-bottom: 25px;
    }
    .breadcrumbs {
        font-size: 10px;
        flex-wrap: wrap;
    }
    .detail-title-row {
        display: block;
    }
    .detail-title-row h1 {
        font-size: 34px;
    }
    .free-badge {
        margin-top: 11px;
    }
    .detail-hero p {
        font-size: 12px;
    }
    .detail-benefit-strip {
        gap: 6px;
        margin-top: 10px;
    }
    .detail-benefit-strip strong {
        font-size: 10px;
    }
    .benefit-symbol {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .detail-main-section {
        padding-top: 25px;
    }
    .main-preview-card {
        padding: 8px;
        border-radius: 13px;
    }
    .browser-bar {
        height: 29px;
    }
    .browser-address {
        display: none;
    }
    .preview-nav {
        display: none;
    }
    .preview-actions {
        margin-top: 10px;
    }
    .preview-actions > a,
    .preview-actions > button {
        height: 47px;
        font-size: 10px;
    }
    .include-card {
        padding: 20px;
    }
    .include-card h2 {
        font-size: 18px;
    }
    .include-card li {
        font-size: 12px;
    }
    .about-copy h2,
    .detail-section-heading h2 {
        font-size: 21px;
    }
    .feature-grid {
        gap: 11px;
    }
    .feature-grid article {
        padding: 15px;
    }
    .screenshot-scroller {
        margin-right: -12px;
        padding-right: 12px;
    }
    .screenshot-thumb {
        min-width: 0;
        flex-basis: 84vw;
    }
    .related-template-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .related-card p {
        display: none;
    }
    .related-card h3 {
        font-size: 12px;
    }
    .related-card > div {
        padding: 10px;
    }
    .detail-bottom-cta h2 {
        font-size: 20px;
    }
}
@media (max-width: 390px) {
    .related-template-grid {
        grid-template-columns: 1fr;
    }
    .preview-actions {
        grid-template-columns: 1fr 1fr;
    }
    .detail-benefit-strip {
        grid-template-columns: 1fr 1fr;
    }
    .template-meta-card > div {
        font-size: 11px;
    }
}

/* Template details: responsive preview + earning-potential clarification */
body {
    overflow-x: hidden;
}
.template-detail-page,
.detail-main-section,
.detail-main-grid,
.preview-column,
.template-sidebar,
.main-preview-card,
.browser-frame,
.preview-thumbnails,
.screenshot-shell,
.screenshot-scroller {
    min-width: 0;
    max-width: 100%;
}
.preview-column {
    width: 100%;
    overflow: hidden;
}
.main-preview-card {
    width: 100%;
    overflow: hidden;
}
.browser-frame {
    width: 100%;
}
.browser-frame > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.preview-thumbnails {
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e0e7ee;
    border-radius: 15px;
    background: #fffc65;
    box-shadow: 0 7px 22px rgba(8, 31, 54, 0.05);
    overflow: hidden;
}
.preview-thumbnails-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 11px;
    min-width: 0;
}
.preview-thumbnails-head > div {
    min-width: 0;
}
.preview-thumbnails-head h3 {
    margin: 0;
    font-size: 16px;
    color: #0a1628;
}
.preview-thumbnails-head p {
    margin: 2px 0 0;
    font-size: 15px;
    color: #333;
}
.preview-thumbnails .screen-count {
    flex: 0 0 auto;
}
.preview-thumbnails .screenshot-scroller {
    width: 100%;
    gap: 10px;
    padding: 2px 1px 8px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
}
.preview-thumbnails .screenshot-thumb {
    flex: 0 0 calc((100% - 30px) / 4);
    min-width: 0;
    max-width: none;
    padding: 6px;
    border-radius: 10px;
}
.preview-thumbnails .screenshot-thumb img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}
.preview-thumbnails .screenshot-thumb span {
    font-size: 9px;
    margin: 6px 3px 1px;
}
.preview-thumbnails .screenshot-arrow {
    width: 34px;
    height: 34px;
    font-size: 21px;
}
.preview-thumbnails .screenshot-prev {
    left: 6px;
}
.preview-thumbnails .screenshot-next {
    right: 6px;
}

.earning-highlight {
    position: relative;
    overflow: hidden;
    border-radius: 17px;
    padding: 22px;
    background: linear-gradient(135deg, #06070b 0%, #18080d 45%, #4c0012 72%, #7b001a 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(73, 0, 18, 0.22);
    border: 1px solid rgba(255, 75, 107, 0.3);
}
.earning-highlight:before {
    content: "$";
    position: absolute;
    right: -9px;
    top: -34px;
    font-size: 132px;
    line-height: 1;
    font-weight: 950;
    color: rgba(255, 255, 255, 0.055);
    transform: rotate(8deg);
    pointer-events: none;
}
.earning-kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 184, 31, 0.1);
    border: 1px solid rgba(255, 184, 31, 0.36);
    color: #ffc54a;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
.earning-kicker em {
    font-style: normal;
    color: #fff;
    background: #b80d2e;
    border-radius: 999px;
    padding: 3px 7px;
    letter-spacing: 0.35px;
}
.earning-highlight h2 {
    position: relative;
    margin: 13px 0 4px;
    font-size: 16px;
    color: #fff;
}
.earning-amount {
    position: relative;
    font-size: 30px;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -1px;
    color: #fff;
    margin: 0 0 14px;
}
.earning-amount span {
    color: #ffc54a;
}
.earning-amount b {
    font-size: 11px;
    letter-spacing: 0;
    color: #f1c6cf;
    font-weight: 800;
    white-space: nowrap;
}
.earning-free-box {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(139, 0, 30, 0.36));
    border-radius: 13px;
    padding: 14px 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.earning-free-box > span {
    display: block;
    font-size: 9px;
    letter-spacing: 1.25px;
    font-weight: 900;
    color: #ffdfe5;
    margin-bottom: 3px;
}
.earning-free-box > strong {
    display: block;
    font-size: 18px;
    line-height: 1.18;
    color: #fff;
    font-weight: 950;
}
.earning-free-box > strong:before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-right: 7px;
    border-radius: 50%;
    background: #1662c6;
    color: #fff;
    font-size: 12px;
    vertical-align: 2px;
}
.earning-free-box > small {
    display: block;
    margin-top: 6px;
    color: #f1cbd3;
    font-size: 9px;
    line-height: 1.45;
}
.earning-highlight > p {
    position: relative;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #f1d9df;
    max-width: 310px;
}
.earning-disclaimer {
    position: relative;
    display: block;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 8px;
    line-height: 1.45;
    color: #cfaab3;
}

@media (max-width: 1000px) {
    .preview-nav.prev {
        left: 8px;
    }
    .preview-nav.next {
        right: 8px;
    }
}
@media (max-width: 820px) {
    .preview-column {
        overflow: visible;
    }
}
@media (max-width: 700px) {
    .template-detail-page {
        overflow-x: clip;
    }
    .main-preview-card {
        padding: 8px;
    }
    .preview-nav {
        display: none;
    }
    .preview-thumbnails {
        padding: 12px;
        margin-top: 12px;
    }
    .preview-thumbnails .screenshot-arrow {
        display: none;
    }
    .preview-thumbnails .screenshot-scroller {
        margin: 0;
        padding: 2px 0 8px;
        gap: 9px;
    }
    .preview-thumbnails .screenshot-thumb {
        flex: 0 0 72%;
        min-width: 0;
        max-width: 260px;
    }
    .earning-highlight {
        padding: 20px;
    }
}
@media (max-width: 520px) {
    .preview-thumbnails-head {
        align-items: flex-start;
    }
    .preview-thumbnails-head p {
        display: none;
    }
    .preview-thumbnails .screenshot-thumb {
        flex-basis: 78%;
        max-width: 240px;
    }
    .earning-amount {
        font-size: 27px;
    }
    .earning-free-box > strong {
        font-size: 16px;
    }
}
@media (max-width: 380px) {
    .preview-thumbnails .screenshot-thumb {
        flex-basis: 82%;
    }
    .earning-kicker {
        font-size: 8px;
    }
    .earning-amount {
        font-size: 25px;
    }
}

/* 2026-08-08: preview arrow visibility + sidebar highlight order/colors */
.preview-column {
    overflow: visible;
}
.main-preview-card {
    overflow: visible;
}
.browser-frame {
    overflow: hidden;
}
.preview-nav {
    z-index: 20;
}

/* Free setup message: intentionally shown before "This Template Includes" */
.free-setup-highlight {
    position: relative;
    overflow: hidden;
    border-radius: 17px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #09070a 0%, #1b080d 44%, #580014 76%, #8a001d 100%);
    color: #fff;
    border: 1px solid rgba(255, 82, 110, 0.34);
    box-shadow: 0 15px 34px rgba(88, 0, 20, 0.2);
}
.free-setup-highlight:after {
    content: "FREE";
    position: absolute;
    right: -8px;
    bottom: -19px;
    font-size: 58px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -4px;
    color: rgba(255, 255, 255, 0.045);
    pointer-events: none;
}
.free-setup-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffb9c7;
    font-size: 9px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.9px;
}
.free-setup-highlight h2 {
    position: relative;
    z-index: 1;
    margin: 11px 0 2px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.7px;
    font-weight: 850;
}
.free-setup-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.45px;
    color: #fff;
}
.free-setup-main:before {
    content: "✓";
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #1663c8;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 0 0 4px rgba(22,99,200,0.13);
}
.free-setup-highlight p {
    position: relative;
    z-index: 1;
    margin: 9px 0 0;
    color: #f0c9d1;
    font-size: 10px;
    line-height: 1.55;
}

/* Earning potential: green/black so it reads as income potential, not a price card */
.earning-highlight {
    position: relative;
    overflow: hidden;
    border-radius: 17px;
    padding: 22px;
    background: linear-gradient(135deg, #050b09 0%, #071611 42%, #061a35 72%, #062c5e 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(1,31,71,0.2);
    border: 1px solid rgba(47,120,216,0.28);
}
.earning-highlight:before {
    content: "$";
    position: absolute;
    right: -9px;
    top: -34px;
    font-size: 132px;
    line-height: 1;
    font-weight: 950;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(8deg);
    pointer-events: none;
}
.earning-kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(51,124,220,0.11);
    border: 1px solid rgba(51,124,220,0.34);
    color: #73a9ef;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
.earning-highlight h2 {
    color: #fff;
}
.earning-amount {
    color: #fff;
}
.earning-amount span {
    color: #629fee;
}
.earning-amount b {
    color: #bfd0e7;
}
.earning-highlight > p {
    color: #d4e9db;
}
.earning-disclaimer {
    border-top-color: rgba(255, 255, 255, 0.12);
    color: #9bb5d6;
}

@media (max-width: 1000px) {
    .preview-nav.prev {
        left: -14px;
    }
    .preview-nav.next {
        right: -14px;
    }
}
@media (max-width: 820px) {
    .preview-nav.prev {
        left: 8px;
    }
    .preview-nav.next {
        right: 8px;
    }
}
@media (max-width: 700px) {
    .preview-column,
    .main-preview-card {
        overflow: hidden;
    }
    .preview-nav {
        display: none;
    }
}
@media (max-width: 520px) {
    .free-setup-highlight {
        padding: 18px;
    }
    .free-setup-main {
        font-size: 19px;
    }
}

/* Dynamic detail page additions */
.premium-detail-badge {
    background: linear-gradient(135deg, #9d1028, #111722) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}
.premium-purchase-highlight {
    background: linear-gradient(135deg, #25030a 0%, #070b12 58%, #50101a 100%) !important;
}
.detail-not-found {
    padding: 70px 20px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(4, 19, 38, 0.08);
}
.detail-not-found h1 {
    margin: 0 0 10px;
    font-size: 36px;
}
.detail-not-found p {
    margin: 0 0 22px;
    color: #667085;
}


.rich-description{color:#333;font-size:15px;line-height:1.75;margin-top:10px}
.rich-description p{margin:0 0 12px}
.rich-description h2,.rich-description h3,.rich-description h4{color:#172033;line-height:1.3;margin:20px 0 9px}
.rich-description h2{font-size:23px}.rich-description h3{font-size:19px}.rich-description h4{font-size:16px}
.rich-description ul,.rich-description ol{margin:10px 0 14px;padding-left:24px}
.rich-description li{margin:5px 0}
.rich-description blockquote{margin:14px 0;padding:10px 14px;border-left:3px solid #1877f2;background:#f4f8ff;border-radius:0 8px 8px 0}
.rich-description a{color:#1268d4;text-decoration:underline;font-weight:700}
