.zm-rf-home-section {
    margin: 22px 0 30px;
    color: var(--main-color, #2d3440);
}

.zm-rf-home-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    position: relative;
}

.zm-rf-home-title:after {
    content: "";
    position: absolute;
    left: 36px;
    right: -20px;
    bottom: -5px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5db9, rgba(255, 93, 185, 0));
}

.zm-rf-home-title h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .02em;
}

.zm-rf-home-title-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff7bd1, #ff4ab2);
    box-shadow: 0 8px 22px rgba(255, 81, 178, .28);
    position: relative;
}

.zm-rf-home-title-icon:before {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    top: 7px;
    height: 11px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .9);
}

.zm-rf-home-title-icon:after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
}

.zm-rf-home-grid {
    display: grid;
    grid-template-columns: repeat(var(--zm-rf-home-desktop-columns, 6), minmax(0, 1fr));
    gap: 16px;
}

.zm-rf-home-card {
    min-height: 250px;
    padding: 13px 10px 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 28px rgba(17, 40, 64, .08);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.zm-rf-home-card:before {
    content: attr(data-watermark) " " attr(data-watermark) " " attr(data-watermark);
    position: absolute;
    inset: 43px 10px 70px;
    color: rgba(43, 54, 68, .055);
    font-size: 25px;
    line-height: 1.8;
    font-weight: 800;
    letter-spacing: .05em;
    word-break: keep-all;
    overflow: hidden;
    z-index: -1;
}

.zm-rf-home-card:after {
    content: "";
    position: absolute;
    left: -28px;
    top: -46px;
    width: 150px;
    height: 95px;
    border-radius: 0 0 100% 0;
    background: linear-gradient(135deg, rgba(126, 199, 255, .22), rgba(126, 199, 255, 0));
    z-index: -1;
}

.zm-rf-home-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.zm-rf-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 18px;
    position: relative;
    z-index: 3;
}

.zm-rf-dots {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.zm-rf-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.zm-rf-dots i:nth-child(1) { background: #2d8ee8; }
.zm-rf-dots i:nth-child(2) { background: #ff4b3e; }
.zm-rf-dots i:nth-child(3) { background: #bcc315; }

.zm-rf-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667282;
    font-size: 13px;
    white-space: nowrap;
}

.zm-rf-card-date i {
    position: relative;
    width: 17px;
    height: 14px;
    display: inline-block;
}

.zm-rf-card-date i:before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: #20b9ee;
    box-shadow: 2px 4px 0 #20b9ee, 0 8px 0 #20b9ee;
}

.zm-rf-card-date i:after {
    content: "";
    position: absolute;
    right: 1px;
    top: 1px;
    width: 9px;
    height: 13px;
    background: linear-gradient(180deg, #45d8ff, #0aa7df);
    clip-path: polygon(43% 0, 100% 0, 62% 42%, 98% 42%, 29% 100%, 43% 56%, 0 56%);
}

.zm-rf-card-icon-wrap {
    height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.zm-rf-card-icon,
.zm-rf-single-icon,
.zm-rf-modal-icon,
.zm-rf-card-mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: none;
}

.zm-rf-card-icon {
    width: 76px;
    height: 76px;
    border-radius: 19px;
    box-shadow: 0 12px 30px rgba(10, 28, 50, .15);
}

.zm-rf-card-icon img,
.zm-rf-single-icon img,
.zm-rf-modal-icon img,
.zm-rf-card-mini-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zm-rf-icon-fallback {
    background: linear-gradient(135deg, #111827, #334155);
    color: #fff;
    font-weight: 800;
}

.zm-rf-card-footer {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    gap: 8px;
    align-items: center;
    position: relative;
    z-index: 4;
}

.zm-rf-card-mini-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(10, 28, 50, .14);
}

.zm-rf-card-text {
    min-width: 0;
}

.zm-rf-card-text h3,
.zm-rf-card-text p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zm-rf-card-text h3 {
    font-size: 13px;
    font-weight: 600;
    color: #56606e;
}

.zm-rf-card-text p {
    margin-top: 3px;
    color: #6a7280;
    font-size: 12px;
}

.zm-rf-card-download {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #767676, #454545);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 10px 15px;
    text-decoration: none !important;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.zm-rf-card-download:hover {
    filter: brightness(1.08);
}

.zm-rf-badges {
    position: absolute;
    top: 34px;
    right: 10px;
    z-index: 5;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.zm-rf-badge {
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    letter-spacing: .03em;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .12);
}

.zm-rf-badge.is-new { background: linear-gradient(135deg, #ff3d57, #ff8a00); }
.zm-rf-badge.is-update { background: linear-gradient(135deg, #1ccf85, #0e9dea); }

.zm-rf-single-card {
    margin: 0 0 22px;
    padding: 20px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(74, 185, 255, .16), transparent 34%),
        linear-gradient(135deg, #fff, #f8fbff);
    box-shadow: 0 16px 42px rgba(13, 42, 70, .12);
    color: #253040;
}

.zm-rf-single-hero {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 18px;
    align-items: center;
}

.zm-rf-single-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(15, 40, 70, .18);
}

.zm-rf-single-main h1 {
    margin: 5px 0 8px;
    font-size: 25px;
    line-height: 1.25;
}

.zm-rf-single-main p {
    margin: 0;
    color: #6d7685;
    line-height: 1.65;
}

.zm-rf-single-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6d7685;
    font-size: 13px;
}

.zm-rf-single-kicker span:first-child {
    color: #0f8bda;
    font-weight: 700;
}

.zm-rf-download-primary,
.zm-rf-actions button,
.zm-rf-actions a {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #111827, #475569);
    color: #fff !important;
    padding: 11px 22px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

.zm-rf-attrs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.zm-rf-attr {
    padding: 12px;
    border-radius: 14px;
    background: rgba(33, 150, 243, .08);
}

.zm-rf-attr span {
    display: block;
    color: #6d7685;
    font-size: 12px;
}

.zm-rf-attr strong {
    display: block;
    margin-top: 5px;
    color: #243244;
    font-size: 15px;
}

.zm-rf-update-log {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .05);
}

.zm-rf-update-log p {
    margin: 8px 0 0;
    color: #586271;
}

.zm-rf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.zm-rf-actions button,
.zm-rf-actions a {
    background: rgba(15, 23, 42, .08);
    color: #334155 !important;
    padding: 9px 15px;
}

.zm-rf-actions button:last-child {
    background: linear-gradient(135deg, #ff7a18, #ff3d58);
    color: #fff !important;
}

.zm-rf-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.zm-rf-modal.is-open {
    display: block;
}

.zm-rf-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .54);
    backdrop-filter: blur(6px);
}

.zm-rf-modal-panel {
    position: relative;
    width: min(560px, calc(100vw - 28px));
    max-height: calc(100vh - 60px);
    overflow: auto;
    margin: 40px auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    padding: 20px;
    animation: zm-rf-modal-in .18s ease-out;
}

@keyframes zm-rf-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.zm-rf-modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #667085;
}

.zm-rf-modal-head {
    display: flex;
    gap: 13px;
    align-items: center;
    padding-right: 30px;
}

.zm-rf-modal-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
}

.zm-rf-modal-head h3 {
    margin: 0;
    font-size: 19px;
}

.zm-rf-modal-head p {
    margin: 4px 0 0;
    color: #6b7280;
}

.zm-rf-modal-note {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f3f7fb;
    color: #607084;
}

.zm-rf-download-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #eef2f7;
}

.zm-rf-download-row strong,
.zm-rf-download-row span,
.zm-rf-download-row em {
    display: block;
}

.zm-rf-download-row span,
.zm-rf-download-row em {
    margin-top: 4px;
    color: #6b7280;
    font-style: normal;
    font-size: 13px;
}

.zm-rf-download-row code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f3f4f6;
}

.zm-rf-download-row button {
    border: 0;
    color: #0f8bda;
    background: transparent;
    cursor: pointer;
}

.zm-rf-download-row > a {
    border-radius: 999px;
    padding: 9px 16px;
    background: #111827;
    color: #fff !important;
    text-decoration: none !important;
}

.zm-rf-download-empty {
    padding: 20px 0 4px;
    color: #6b7280;
}

.zm-rf-preview-modal .zm-rf-modal-mask {
    background: rgba(0, 0, 0, .52);
    backdrop-filter: none;
}

.zm-rf-preview-panel {
    position: relative;
    width: min(632px, calc(100vw - 28px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    margin: 6vh auto;
    border: 2px solid #ff4b32;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
    animation: zm-rf-modal-in .18s ease-out;
}

.zm-rf-preview-close {
    position: absolute;
    right: 12px;
    top: 10px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    font-size: 21px;
    line-height: 30px;
    cursor: pointer;
}

.zm-rf-preview-cover {
    height: 320px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .28), transparent 34%),
        linear-gradient(135deg, #202938, #0d111a);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zm-rf-preview-cover.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zm-rf-preview-cover.is-empty {
    min-height: 260px;
}

.zm-rf-preview-fallback-icon {
    width: 112px;
    height: 112px;
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: none;
}

.zm-rf-preview-fallback-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zm-rf-preview-body {
    position: relative;
    z-index: 2;
    margin-top: -1px;
    padding: 46px 30px 22px;
    background: #fff;
    text-align: center;
}

.zm-rf-preview-body:before {
    content: "";
    position: absolute;
    left: -7%;
    right: -7%;
    top: -44px;
    height: 78px;
    background: rgba(255, 255, 255, .96);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: rotate(-4deg);
    transform-origin: center bottom;
    z-index: -1;
}

.zm-rf-preview-body h3 {
    max-width: 540px;
    margin: 0 auto 20px;
    color: #5f6673;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.38;
}

.zm-rf-preview-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.zm-rf-preview-actions a {
    min-width: 138px;
    border-radius: 8px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.zm-rf-preview-primary {
    background: #ff443d;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(255, 68, 61, .22);
}

.zm-rf-preview-secondary {
    border: 1px solid #eceff5;
    background: #fff;
    color: #4f63ff !important;
}

.zm-rf-copyright {
    margin: 20px 0;
    padding: 15px 18px;
    border-radius: 14px;
    background: rgba(245, 158, 11, .1);
    color: #705019;
}

.zm-rf-copyright p {
    margin: 8px 0 0;
}

body.zm-rf-modal-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .zm-rf-home-grid {
        grid-template-columns: repeat(var(--zm-rf-home-tablet-columns, 3), minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .zm-rf-home-grid {
        grid-template-columns: repeat(var(--zm-rf-home-mobile-columns, 2), minmax(0, 1fr));
        gap: 12px;
    }

    .zm-rf-home-card {
        min-height: 218px;
        padding: 10px 8px;
    }

    .zm-rf-card-icon-wrap {
        height: 118px;
    }

    .zm-rf-card-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .zm-rf-card-footer {
        grid-template-columns: 22px 1fr;
    }

    .zm-rf-card-download {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 4px;
    }

    .zm-rf-single-hero {
        grid-template-columns: 72px 1fr;
    }

    .zm-rf-single-icon {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .zm-rf-download-primary {
        grid-column: 1 / -1;
        width: 100%;
    }

    .zm-rf-single-main h1 {
        font-size: 20px;
    }

    .zm-rf-preview-panel {
        width: calc(100vw - 22px);
        margin: 7vh auto;
    }

    .zm-rf-preview-cover {
        height: 230px;
    }

    .zm-rf-preview-body {
        padding: 38px 18px 20px;
    }

    .zm-rf-preview-body h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .zm-rf-preview-actions {
        gap: 8px;
    }

    .zm-rf-preview-actions a {
        min-width: 0;
        flex: 1;
        padding: 12px 10px;
    }
}
