/* =========================================================
   Shared Base Classes
========================================================= */
.market-card {
    --market-accent: var(--beam-color, #d4af37);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns:
        108px
        minmax(220px, 0.9fr)
        minmax(300px, 1.25fr)
        188px;
    align-items: center;
    gap: 18px;
    min-height: 154px;
    margin-bottom: 16px;
    padding: 16px;
    overflow: hidden;
    text-align: left;
    direction: ltr;
    border: 1px solid color-mix(
        in srgb,
        var(--market-accent) 34%,
        rgba(255, 255, 255, 0.08)
    );
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 92% 8%,
            color-mix(in srgb, var(--market-accent) 14%, transparent),
            transparent 31%
        ),
        linear-gradient(145deg, #111115 0%, #0b0b0e 62%, #09090c 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 18px 50px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.market-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline-start: 0;
    inset-block: 18px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        transparent,
        var(--market-accent),
        transparent
    );
    opacity: 0.8;
}

.market-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    padding: 7px;
    overflow: hidden;
    border-radius: 21px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent),
        #09090c;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 30px rgba(0, 0, 0, 0.28);
}

.market-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 9px 12px;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
    cursor: pointer;
}
.market-btn:hover {
    transform: translateY(-2px);
}
/* =========================================================
   Forex
========================================================= */
.prop-card-v2 {
    --market-accent: var(--beam-color, #d4af37);
}
.prop-card-v2:hover {
    border-color: color-mix(
        in srgb,
        var(--market-accent) 75%,
        transparent
    );
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.34),
        0 0 26px color-mix(
            in srgb,
            var(--market-accent) 13%,
            transparent
        );
    transform: translateY(-3px);
}
.prop-logo-container {
    border: 1px solid color-mix(
        in srgb,
        var(--market-accent) 45%,
        transparent
    );
}
.prop-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: contain;
}
.btn-main-v2 {
    order: -1;
    border: 1px solid var(--market-accent);
    background: var(--market-accent);
    color: #000;
    box-shadow: 0 10px 24px color-mix(
        in srgb,
        var(--market-accent) 18%,
        transparent
    );
}
.btn-main-v2:hover {
    filter: brightness(1.1);
    box-shadow: 0 8px 22px color-mix(
        in srgb,
        var(--market-accent) 22%,
        transparent
    );
    color: #000;
}
/* =========================================================
   Futures
========================================================= */
.futures-card-v2 {
    --market-accent: #10b981;
}
.futures-card-v2:hover {
    border-color: rgba(16, 185, 129, 0.72);
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.34),
        0 0 26px rgba(16, 185, 129, 0.13);
    transform: translateY(-3px);
}
.futures-logo-container {
    border: 1px solid rgba(16, 185, 129, 0.46);
}
.futures-logo-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: cover;
}
.btn-futures-main {
    background: #059669;
    color: #fff;
}
.btn-futures-main:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    color: #fff;
}
/* =========================================================
   Crypto
========================================================= */
.crypto-card-v2 {
    --market-accent: #2388ff;
}
.crypto-card-v2:hover {
    border-color: rgba(35, 136, 255, 0.75);
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.34),
        0 0 26px rgba(35, 136, 255, 0.14);
    transform: translateY(-3px);
}
.crypto-logo-container {
    border: 1px solid rgba(35, 136, 255, 0.46);
}
.crypto-logo-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: cover;
}
.btn-crypto-main {
    background: #007bff;
    color: #fff;
}
.btn-crypto-main:hover {
    filter: brightness(1.2);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    color: #fff;
}
/* =========================================================
   Shared Inner Elements
========================================================= */
.desktop-only {
    display: block;
    overflow: hidden;
    margin: 0 0 12px;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.25;
    color: #fff;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-card .desktop-only a,
.market-card .desktop-only a:visited,
.market-card .mobile-only a,
.market-card .mobile-only a:visited {
    color: inherit;
    text-decoration: none;
}

.market-card .desktop-only a:hover,
.market-card .mobile-only a:hover {
    color: var(--market-accent);
}

.mobile-only {
    display: none;
}
.prop-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.prop-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.detail-row {
    color: #a9a9b3;
    font-size: 12px;
    line-height: 1.45;
}
.detail-row strong {
    color: #f5f5f7;
    margin-inline-start: 4px;
    font-size: 13px;
    font-weight: 900;
}
.prop-details > .detail-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.018);
}
.prop-details > .detail-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* =========================================================
   Stats Section
========================================================= */
.prop-stats-v2 {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    direction: ltr;
}
.stat-row-v2 {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 31px;
    padding: 4px 8px;
    direction: ltr;
    color: #aaaab4;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.016);
}
.stat-row-v2 > span {
    color: #aaaab4;
    font-size: 11px;
}
.stat-row-v2 strong {
    overflow: hidden;
    color: #f0f0f3;
    margin: 0;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stat-tags-v2 {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px;
}
.tag-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 3px 8px;
    color: #ededf1;
    border-radius: 50px;
    font-size: 10px;
    line-height: 1.35;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.045);
    white-space: nowrap;
}
.tag-v2 img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
/* =========================================================
   Actions
========================================================= */
.prop-actions-v2 {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding-top: 35px;
}
.btn-details-v2 {
    color: #f2f2f4;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.045);
}
.btn-details-v2:hover {
    color: #fff;
    border-color: color-mix(
        in srgb,
        var(--market-accent) 48%,
        rgba(255, 255, 255, 0.14)
    );
    background: rgba(255, 255, 255, 0.075);
    box-shadow: none;
}
.market-card > .favorite-button--company-card {
    z-index: 8;
    top: 16px;
    right: 18px;
    left: auto;
    color: #ededf1;
}
.market-card > .favorite-button--company-card:hover,
.market-card > .favorite-button--company-card.is-saved {
    color: var(--market-accent);
}
/* =========================================================
   Responsive
========================================================= */
@media (max-width: 992px) {
    .market-card {
        grid-template-columns: 88px minmax(190px, 0.9fr) minmax(0, 1.25fr);
        gap: 12px;
        min-height: 0;
        padding: 14px;
        border-radius: 21px;
    }

    .market-logo {
        width: 88px;
        height: 88px;
        border-radius: 18px;
    }

    .prop-stats-v2 {
        padding-right: 46px;
    }

    .prop-actions-v2 {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding-top: 0;
    }

    .market-card > .favorite-button--company-card {
        top: 14px;
        right: 14px;
        left: auto;
    }
}

@media (max-width: 700px) {
    .market-card {
        grid-template-columns: 70px minmax(0, 1fr) auto;
        gap: 10px;
        margin-bottom: 14px;
        padding: 13px;
        overflow: hidden;
        text-align: left;
        border-radius: 20px;
    }

    .market-card::before {
        inset-block: 14px;
    }

    .prop-header {
        display: contents;
    }

    .market-logo {
        grid-row: 1;
        grid-column: 1;
        width: 70px;
        height: 70px;
        padding: 5px;
        border-radius: 17px;
    }

    .prop-logo-img {
        border-radius: 12px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
        grid-row: 1;
        grid-column: 2;
        align-self: center;
        min-width: 0;
        margin: 0;
        color: #fff;
        font-size: clamp(17px, 5.3vw, 21px);
        font-weight: 900;
        line-height: 1.25;
    }

    .mobile-only a {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .market-card > .favorite-button--company-card {
        position: static;
        grid-row: 1;
        grid-column: 3;
        align-self: start;
        justify-self: end;
        margin-top: 2px;
        color: #ededf1;
    }

    .market-card > .favorite-button--company-card .favorite-button__icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .market-card > .favorite-button--company-card .favorite-button__count {
        font-size: 12px;
    }

    .prop-details {
        grid-row: 2;
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }

    .prop-details > .detail-row {
        display: flex;
        min-width: 0;
        min-height: 62px;
        padding: 7px 5px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-align: center;
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.024);
    }

    .prop-details > .detail-row span {
        color: #9999a4;
        font-size: 9px;
    }

    .prop-details > .detail-row strong {
        display: -webkit-box;
        overflow: hidden;
        max-width: 100%;
        margin: 0;
        color: #f5f5f7;
        font-size: 11px;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .prop-stats-v2 {
        grid-row: 3;
        grid-column: 1 / -1;
        width: 100%;
        padding: 0;
        gap: 6px;
    }

    .stat-row-v2 {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 37px;
        padding: 5px 7px;
        gap: 5px;
        text-align: left;
        border-radius: 11px;
    }

    .stat-row-v2 > span {
        font-size: 9px;
    }

    .stat-row-v2 strong {
        font-size: 11px;
    }

    .stat-tags-v2 {
        justify-content: flex-start;
        gap: 3px;
    }

    .tag-v2 {
        padding: 2px 6px;
        gap: 4px;
        font-size: 9px;
    }

    .tag-v2 img {
        width: 14px;
        height: 14px;
    }

    .prop-actions-v2 {
        grid-row: 4;
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 7px;
        margin: 0;
        padding: 0;
    }

    .market-btn {
        min-height: 42px;
        padding: 7px 8px;
        font-size: 11px;
        border-radius: 12px;
    }

    .btn-main-v2 {
        grid-column: 1;
    }

    .btn-details-v2 {
        grid-column: 2;
    }

    .prop-actions-v2 > :only-child {
        grid-column: 1 / -1;
    }
}
/* =========================================================
   New Forex Firm Highlight - Fixed Border + Moving Beam
========================================================= */
@property --new-border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
.new-firm-card {
    position: relative;
    overflow: hidden;
    border: 1.5px solid transparent;
    background:
        radial-gradient(
            circle at 92% 8%,
            color-mix(in srgb, var(--market-accent) 15%, transparent),
            transparent 31%
        ) padding-box,
        linear-gradient(145deg, #111115 0%, #0b0b0e 62%, #09090c 100%)
            padding-box,
        conic-gradient(
            from var(--new-border-angle),
            color-mix(in srgb, var(--market-accent) 22%, transparent) 0deg,
            color-mix(in srgb, var(--market-accent) 22%, transparent) 260deg,
            color-mix(in srgb, var(--market-accent) 48%, transparent) 285deg,
            var(--market-accent) 315deg,
            #fff 330deg,
            var(--market-accent) 345deg,
            color-mix(in srgb, var(--market-accent) 22%, transparent) 360deg
        ) border-box;
    animation: newFirmBorderMove 3s linear infinite;
    box-shadow: 0 0 18px color-mix(
        in srgb,
        var(--market-accent) 10%,
        transparent
    );
}
@keyframes newFirmBorderMove {
    to {
        --new-border-angle: 360deg;
    }
}
/* كلمة جديد فوق صورة الشركة */
.new-firm-card .market-logo {
    position: relative;
}
.new-firm-card .market-logo::after {
    content: "New";
    position: absolute;
    top: 7px;
    right: auto;
    left: 7px;
    z-index: 3;
    background: var(--market-accent);
    color: #000;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 50px;
    box-shadow: 0 0 12px color-mix(
        in srgb,
        var(--market-accent) 45%,
        transparent
    );
    line-height: 1.4;
}
/* تحسين بسيط عند الهوفر */
.new-firm-card:hover {
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.34),
        0 0 24px color-mix(
            in srgb,
            var(--market-accent) 15%,
            transparent
        );
}
/* موبايل */
@media (max-width: 992px) {
    .new-firm-card .market-logo::after {
        top: 6px;
        right: auto;
        left: 6px;
        font-size: 9px;
        padding: 3px 8px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .market-card .desktop-only a,
    .market-card .desktop-only a:hover,
    .market-card .desktop-only a:active,
    .market-card .mobile-only a,
    .market-card .mobile-only a:hover,
    .market-card .mobile-only a:active {
        color: inherit;
        text-decoration: none;
        user-select: none;
        -webkit-user-select: none;
    }

    .market-card:hover,
    .market-btn:hover {
        transform: none;
    }
}
/* =========================================================
   APF Home Promo Popup - Finotive Funding
========================================================= */
@property --apf-popup-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
.apf-promo-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        radial-gradient(circle at center, rgba(212, 175, 55, 0.12), transparent 38%),
        rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.apf-promo-overlay.show {
    display: flex;
    animation: apfPromoFadeIn 0.35s ease forwards;
}
.apf-promo-modal {
    position: relative;
    width: 100%;
    max-width: 430px;
    overflow: hidden;
    border: 1.5px solid transparent;
    border-radius: 26px;
    background:
        linear-gradient(#09090b, #09090b) padding-box,
        conic-gradient(
            from var(--apf-popup-angle),
            rgba(212, 175, 55, 0.22) 0deg,
            rgba(212, 175, 55, 0.22) 250deg,
            rgba(212, 175, 55, 0.50) 285deg,
            #d4af37 315deg,
            #fff3a3 330deg,
            #d4af37 345deg,
            rgba(212, 175, 55, 0.22) 360deg
        ) border-box;
    animation:
        apfPromoPopIn 0.45s ease forwards,
        apfPopupBorderMove 3.2s linear infinite;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(212, 175, 55, 0.16);
}
.apf-promo-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.18), transparent 35%),
        radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.08), transparent 40%);
    pointer-events: none;
}
.apf-promo-shine {
    position: absolute;
    top: -80px;
    right: -120px;
    width: 230px;
    height: 230px;
    background: rgba(212, 175, 55, 0.18);
    filter: blur(45px);
    border-radius: 50%;
    pointer-events: none;
}
.apf-promo-content {
    position: relative;
    z-index: 2;
    padding: 28px 24px 24px;
    text-align: center;
    direction: ltr;
}
.apf-promo-close {
    position: absolute;
    top: 13px;
    right: 13px;
    left: auto;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(24, 24, 27, 0.92);
    color: #fff;
    font-size: 25px;
    line-height: 28px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.apf-promo-close:hover {
    background: #d4af37;
    color: #000;
    transform: rotate(90deg);
}
.apf-promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.13);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #f3d675;
    font-size: 12px;
    font-weight: 900;
}
.apf-promo-logo-wrap {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    padding: 9px;
    border-radius: 20px;
    background: #111114;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 22px rgba(212, 175, 55, 0.12);
}
.apf-promo-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}
.apf-promo-title {
    margin: 0;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.25;
}
.apf-promo-subtitle {
    margin: 7px 0 18px;
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.7;
}
.apf-promo-offer {
    margin: 0 auto 16px;
    padding: 16px 14px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.24);
}
.apf-promo-percent {
    color: #f3d675;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 22px rgba(212, 175, 55, 0.25);
}
.apf-promo-plus {
    margin-top: 7px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}
.apf-promo-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #111114;
    border: 1px dashed rgba(212, 175, 55, 0.45);
}
.apf-promo-code-box span {
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 800;
}
.apf-promo-code {
    min-width: 92px;
    padding: 8px 15px;
    border: 0;
    border-radius: 999px;
    background: #d4af37;
    color: #000;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.25s ease;
}
.apf-promo-code:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}
.apf-promo-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.apf-promo-main-btn {
    display: block;
    width: 100%;
    padding: 13px 18px;
    border-radius: 999px;
    background: #d4af37;
    color: #000;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.18);
}
.apf-promo-main-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    color: #000;
}
.apf-promo-details-link {
    color: #d4af37;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    opacity: 0.9;
}
.apf-promo-details-link:hover {
    opacity: 1;
    text-decoration: underline;
}
@keyframes apfPopupBorderMove {
    to {
        --apf-popup-angle: 360deg;
    }
}
@keyframes apfPromoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes apfPromoPopIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(18px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.apf-countdown-horizontal {
    margin: 0 auto 16px;
    padding: 14px 12px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.10), rgba(0, 0, 0, 0.35));
    border: 1px solid rgba(212, 175, 55, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 24px rgba(212, 175, 55, 0.10);
}

.apf-countdown-title {
    margin-bottom: 12px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.4;
}

.apf-countdown-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.apf-time-box {
    width: 82px;
    padding: 11px 6px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, #141414, #09090b);
    border: 1px solid rgba(212, 175, 55, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 20px rgba(0, 0, 0, 0.22);
    text-align: center;
}

.apf-time-box span {
    display: block;
    color: #f3d675;
    font-size: 29px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.20);
}

.apf-time-box small {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.apf-time-separator {
    color: #d4af37;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 480px) {
    .apf-promo-content {
        padding: 26px 17px 20px;
    }
    .apf-promo-logo-wrap {
        width: 82px;
        height: 82px;
    }
    .apf-promo-title {
        font-size: 24px;
    }
    .apf-promo-percent {
        font-size: 36px;
    }
    .apf-promo-plus {
        font-size: 14px;
    }
    .apf-promo-code-box {
        flex-direction: column;
        gap: 8px;
    }
    .apf-promo-code {
        width: 100%;
    }
}

.apf-countdown-horizontal {
    padding: 12px 8px;
}

.apf-countdown-row {
    gap: 5px;
}

.apf-time-box {
    width: 68px;
    padding: 10px 4px;
    border-radius: 14px;
}

.apf-time-box span {
    font-size: 24px;
}

.apf-time-box small {
    font-size: 10px;
}

.apf-time-separator {
    font-size: 22px;
}

/* =========================================================
   APF Homepage Overview and Offers
========================================================= */

.apf-home-hero-copy {
    display: none;
}

.apf-home-hero-copy.active {
    display: block;
}

.apf-home-hero-stage .hero-section::before {
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--beam-color, #d4af37) 11%, transparent) 0%,
        transparent 70%
    );
}

.apf-home-overview {
    --apf-home-accent: var(--beam-color, #d4af37);
    position: relative;
    z-index: 3;
    margin: -19px auto 34px;
}

.apf-home-platform-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.apf-home-platform-stat {
    min-width: 0;
    min-height: 56px;
    padding: 9px 13px;
    display: grid;
    grid-template-columns: 31px auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: #d8d8de;
    border: 0;
    border-radius: 999px;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--apf-home-accent) 11%, #222227),
            #19191e 62%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 9px 24px rgba(0, 0, 0, 0.16);
}

.apf-home-platform-stat > i {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    color: var(--apf-home-accent);
    border-radius: 10px;
    background: color-mix(
        in srgb,
        var(--apf-home-accent) 13%,
        rgba(255, 255, 255, 0.025)
    );
    font-family: Arial, sans-serif !important;
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
}

.apf-home-platform-stat > strong {
    color: #fff;
    font-family: Arial, sans-serif !important;
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
}

.apf-home-platform-stat > span {
    overflow: hidden;
    color: #a8a8b0;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apf-home-offers {
    position: relative;
    padding: 15px;
    overflow: hidden;
    border: 1px solid color-mix(
        in srgb,
        var(--apf-home-accent) 66%,
        rgba(255, 255, 255, 0.08)
    );
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 90% 0%,
            color-mix(in srgb, var(--apf-home-accent) 18%, transparent),
            transparent 38%
        ),
        linear-gradient(145deg, #19191e, #111116 68%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 18px 44px rgba(0, 0, 0, 0.24);
}

.apf-home-offers-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.apf-home-offers-head > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.apf-home-offers-head span {
    color: var(--apf-home-accent);
    font-size: 9px;
    font-weight: 900;
}

.apf-home-offers-head h2 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.apf-home-offers-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.apf-home-offers-actions > a {
    margin-inline-end: 4px;
    color: #dadade;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
}

.apf-home-offers-actions > a:hover {
    color: var(--apf-home-accent);
}

.apf-home-offers-actions > button {
    width: 23px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0 0 1px;
    color: #b8b8c0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    font: 900 19px/1 Arial, sans-serif !important;
    cursor: pointer;
}

.apf-home-offers-actions > button:hover,
.apf-home-offers-actions > button:focus-visible {
    color: var(--apf-home-accent);
    background: color-mix(
        in srgb,
        var(--apf-home-accent) 12%,
        transparent
    );
    outline: none;
}

.apf-home-offers-actions > button:disabled {
    opacity: 0.34;
    cursor: default;
}

.apf-home-offers-viewport {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.apf-home-offers-viewport:focus-visible {
    outline: 2px solid color-mix(
        in srgb,
        var(--apf-home-accent) 62%,
        transparent
    );
    outline-offset: 4px;
    border-radius: 14px;
}

.apf-home-offers-track {
    --apf-home-offer-gap: 9px;
    display: grid;
    grid-template-rows: repeat(2, minmax(92px, auto));
    grid-auto-flow: column;
    grid-auto-columns: calc(
        (
            100%
            - var(--apf-home-offer-gap)
            - var(--apf-home-offer-gap)
        ) / 3
    );
    gap: var(--apf-home-offer-gap);
    direction: ltr;
    transition: transform 0.38s cubic-bezier(0.22, 0.75, 0.24, 1);
    will-change: transform;
}

.apf-home-offers-track.is-dragging {
    transition: none;
}

.apf-home-offer-card {
    min-width: 0;
    min-height: 92px;
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 66px;
    align-items: center;
    gap: 9px;
    direction: ltr;
    color: #f4f4f6;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 14px;
    background: rgba(7, 7, 10, 0.88);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 7px 18px rgba(0, 0, 0, 0.16);
}

.apf-home-offer-card:hover {
    border-color: color-mix(
        in srgb,
        var(--apf-home-accent) 45%,
        rgba(255, 255, 255, 0.08)
    );
}

.apf-home-offer-company {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.apf-home-offer-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    padding: 3px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid color-mix(
        in srgb,
        var(--apf-home-accent) 60%,
        rgba(255, 255, 255, 0.12)
    );
    border-radius: 12px;
    background: #050508;
}

.apf-home-offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.apf-home-offer-company > div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 7px;
}

.apf-home-offer-company > div > a {
    grid-column: 1 / -1;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apf-home-offer-company > div > a:hover {
    color: var(--apf-home-accent);
}

.apf-home-offer-company > div > small {
    overflow: hidden;
    color: #8f8f98;
    font-size: 8px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apf-home-offer-company > div > span {
    color: #e4e4e8;
    font-family: Arial, sans-serif !important;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

.apf-home-offer-company > div > span b {
    color: var(--apf-home-accent);
}

.apf-home-offer-deal {
    min-width: 90px;
    display: grid;
    justify-items: center;
    gap: 5px;
}

.apf-home-offer-deal > strong {
    color: var(--apf-home-accent);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.apf-home-offer-deal > button,
.apf-home-offer-deal > small {
    min-height: 24px;
    padding: 4px 8px;
    color: #ededf1;
    border: 1px solid color-mix(
        in srgb,
        var(--apf-home-accent) 55%,
        rgba(255, 255, 255, 0.1)
    );
    border-radius: 999px;
    background: color-mix(
        in srgb,
        var(--apf-home-accent) 9%,
        rgba(255, 255, 255, 0.025)
    );
    font: inherit;
    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
}

.apf-home-offer-deal > button {
    cursor: pointer;
}

.apf-home-offer-deal > button:hover {
    color: #09090b;
    background: var(--apf-home-accent);
}

.apf-home-offer-claim {
    width: 66px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    color: #09090b;
    border: 1px solid var(--apf-home-accent);
    border-radius: 9px;
    background: var(--apf-home-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.apf-home-offer-claim:hover,
.apf-home-offer-claim:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 5px 12px color-mix(in srgb, var(--apf-home-accent) 20%, transparent);
    outline: none;
}

.apf-home-offers-footer {
    min-height: 24px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.apf-home-offers-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.apf-home-offers-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #696971;
    cursor: pointer;
    transition:
        width 0.2s ease,
        background 0.2s ease;
}

.apf-home-offers-dots button.is-active {
    width: 22px;
    background: var(--apf-home-accent);
}

.apf-home-offers-footer > span {
    color: #777780;
    font-family: Arial, sans-serif !important;
    font-size: 9px;
    font-weight: 800;
}

.apf-home-offers-empty {
    padding: 25px;
    color: #9999a2;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    text-align: center;
}

@media (max-width: 900px) {
    .apf-home-overview {
        margin-top: -8px;
        margin-bottom: 28px;
    }

    .apf-home-platform-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .apf-home-offers-track {
        grid-template-rows: repeat(2, minmax(92px, auto));
        grid-auto-columns: 100%;
    }
}

@media (max-width: 520px) {
    .apf-home-overview {
        margin-inline: -1px;
    }

    .apf-home-platform-stat {
        min-height: 52px;
        padding: 7px 9px;
        grid-template-columns: 28px auto minmax(0, 1fr);
        gap: 6px;
    }

    .apf-home-platform-stat > i {
        width: 28px;
        height: 28px;
    }

    .apf-home-platform-stat > strong {
        font-size: 15px;
    }

    .apf-home-platform-stat > span {
        font-size: 8px;
    }

    .apf-home-offers {
        padding: 11px;
        border-radius: 17px;
    }

    .apf-home-offers-head {
        gap: 8px;
    }

    .apf-home-offers-head > div:first-child {
        display: grid;
        gap: 1px;
    }

    .apf-home-offers-head h2 {
        font-size: 15px;
    }

    .apf-home-offers-actions > a {
        font-size: 8px;
    }

    .apf-home-offers-actions > button {
        width: 23px;
        height: 25px;
    }

    .apf-home-offers-track {
        grid-template-rows: repeat(2, minmax(88px, auto));
    }

    .apf-home-offer-card {
        min-height: 88px;
        padding: 8px;
        grid-template-columns: minmax(0, 1fr) auto 56px;
        gap: 7px;
    }

    .apf-home-offer-logo {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .apf-home-offer-company {
        gap: 7px;
    }

    .apf-home-offer-company > div > a {
        font-size: 10px;
    }

    .apf-home-offer-deal {
        min-width: 72px;
    }

    .apf-home-offer-deal > strong {
        font-size: 9px;
    }

    .apf-home-offer-deal > button,
    .apf-home-offer-deal > small {
        max-width: 86px;
        overflow: hidden;
        font-size: 7px;
        text-overflow: ellipsis;
    }

    .apf-home-offer-claim {
        width: 56px;
        min-height: 28px;
        padding: 4px 6px;
        border-radius: 8px;
        font-size: 7px;
    }
}

/* =========================================================
   APF Homepage Company Directory
========================================================= */

.main-container {
    max-width: 1460px;
}

.apf-firm-directory {
    --apf-directory-accent: var(--beam-color, #d4af37);
    --apf-list-columns:
        220px
        115px
        165px
        140px
        135px
        170px
        145px
        175px
        125px;
    --apf-list-width: 1390px;
    position: relative;
    margin: 4px auto 54px;
}

.apf-directory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.apf-directory-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f4f4f5;
}

.apf-directory-heading > span {
    font-size: 15px;
    font-weight: 900;
}

.apf-directory-heading > strong {
    padding: 5px 10px;
    color: var(--apf-directory-accent);
    border: 1px solid color-mix(
        in srgb,
        var(--apf-directory-accent) 36%,
        rgba(255, 255, 255, 0.08)
    );
    border-radius: 999px;
    background: color-mix(
        in srgb,
        var(--apf-directory-accent) 8%,
        transparent
    );
    font-size: 11px;
    white-space: nowrap;
}

.apf-directory-toolbar-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.apf-directory-update {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 12px;
    direction: ltr;
    color: #d7d7dc;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.075);
    white-space: nowrap;
}

.apf-directory-update > i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #10b981;
    box-shadow:
        0 0 0 5px rgba(16, 185, 129, 0.12),
        0 0 13px rgba(16, 185, 129, 0.75);
}

.apf-directory-update > span {
    color: #34d399;
    font-size: 10px;
    font-weight: 900;
}

.apf-directory-update > b {
    color: #a7a7af;
    font-size: 9px;
    font-weight: 800;
}

.apf-directory-update time {
    color: #f1f1f3;
    font-style: normal;
}

.apf-directory-filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.apf-directory-filters button {
    min-height: 38px;
    padding: 7px 14px;
    color: #b5b5bd;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.028);
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.apf-directory-filters button:hover,
.apf-directory-filters button.is-active {
    color: #09090b;
    border-color: var(--apf-directory-accent);
    background: var(--apf-directory-accent);
}

.apf-directory-filters button:hover {
    transform: translateY(-1px);
}

.apf-list-scroll-guide {
    display: grid;
    justify-items: center;
    gap: 7px;
    margin: 0 auto 18px;
    transition: opacity 0.2s ease;
}

.apf-list-scroll-guide.is-static {
    display: none;
}

.apf-list-scroll-track {
    position: relative;
    width: min(330px, 56vw);
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    cursor: ew-resize;
    touch-action: none;
}

.apf-list-scroll-track:focus-visible {
    outline: 2px solid color-mix(
        in srgb,
        var(--apf-directory-accent) 68%,
        transparent
    );
    outline-offset: 5px;
}

.apf-list-scroll-track > span {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    width: 26%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--apf-directory-accent) 74%, #fff),
        var(--apf-directory-accent)
    );
    box-shadow: 0 0 16px color-mix(
        in srgb,
        var(--apf-directory-accent) 42%,
        transparent
    );
    will-change: transform, width;
    cursor: grab;
}

.apf-list-scroll-track.is-dragging > span {
    cursor: grabbing;
}

.apf-list-scroll-guide small {
    color: #777780;
    font-size: 9px;
    font-weight: 800;
}

.apf-firm-list-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    direction: ltr;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.apf-firm-list-viewport::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.apf-firm-list-viewport:focus-visible {
    outline: 2px solid color-mix(
        in srgb,
        var(--apf-directory-accent) 62%,
        transparent
    );
    outline-offset: 5px;
    border-radius: 18px;
}

.apf-firm-list-head-shell {
    position: sticky;
    top: var(--apf-sticky-header-height, var(--apf-header-height, 123px));
    z-index: 40;
    width: 100%;
    margin-bottom: 8px;
    overflow: hidden;
    direction: ltr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    background: #09090c;
    box-shadow: 0 9px 20px rgba(9, 9, 12, 0.82);
}

.apf-firm-list-table,
.apf-firm-list-head {
    width: max(100%, var(--apf-list-width));
    min-width: var(--apf-list-width);
    direction: ltr;
}

.apf-firm-list-head,
.apf-firm-list-row {
    display: grid;
    grid-template-columns: var(--apf-list-columns);
    align-items: stretch;
}

.apf-firm-list-head {
    position: relative;
    z-index: 8;
    min-height: 48px;
    color: #85858f;
    background: #09090c;
    transform: translateX(var(--apf-list-header-offset, 0px));
    will-change: transform;
}

.apf-firm-list-head .apf-firm-list-cell {
    min-height: 48px;
    font-size: 10px;
    font-weight: 900;
}

.apf-firm-list-body {
    display: grid;
    gap: 8px;
}

.apf-firm-list-row {
    --apf-row-background: #121216;
    position: relative;
    min-height: 108px;
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 17px;
    background: var(--apf-row-background);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition:
        border-color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.apf-firm-list-row:nth-child(even) {
    --apf-row-background: #0f0f13;
}

.apf-firm-list-row--rank-1 {
    --apf-row-background: color-mix(
        in srgb,
        var(--apf-directory-accent) 13%,
        #121216
    );
    border-color: color-mix(
        in srgb,
        var(--apf-directory-accent) 30%,
        rgba(255, 255, 255, 0.08)
    );
}

.apf-firm-list-row--rank-2 {
    --apf-row-background: #17171b;
}

.apf-firm-list-row--rank-3 {
    --apf-row-background: color-mix(
        in srgb,
        #b97343 11%,
        #121216
    );
    border-color: rgba(185, 115, 67, 0.24);
}

.apf-firm-list-row:hover {
    z-index: 2;
    border-color: color-mix(
        in srgb,
        var(--apf-directory-accent) 50%,
        rgba(255, 255, 255, 0.08)
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 11px 30px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.apf-firm-list-row[hidden] {
    display: none !important;
}

.apf-firm-list-cell {
    min-width: 0;
    min-height: 108px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.065);
    text-align: center;
}

.apf-firm-list-cell:last-child {
    border-inline-end: 0;
}

.apf-firm-list-cell--company {
    position: sticky;
    left: 0;
    right: auto;
    z-index: 5;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
    background: var(--apf-row-background, #09090c);
    border-radius: 16px 0 0 16px;
    box-shadow: 14px 0 24px rgba(0, 0, 0, 0.24);
}

.apf-firm-list-head .apf-firm-list-cell--company {
    position: relative;
    left: auto;
    right: auto;
    z-index: 10;
    min-height: 48px;
    color: #85858f;
    background: #09090c;
    border-radius: 0;
    transform: translateX(var(--apf-list-company-offset, 0px));
    will-change: transform;
}

.apf-list-rank {
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    color: #d4d4d8;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif !important;
    font-size: 11px;
    font-weight: 900;
}

.apf-firm-list-row--rank-1 .apf-list-rank {
    color: #09090b;
    border-color: var(--apf-directory-accent);
    background: var(--apf-directory-accent);
}

.apf-firm-list-row--rank-2 .apf-list-rank {
    color: #101014;
    border-color: #d4d4d8;
    background: #d4d4d8;
}

.apf-firm-list-row--rank-3 .apf-list-rank {
    color: #0c0c0f;
    border-color: #c77c4d;
    background: #c77c4d;
}

.apf-list-logo {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    padding: 4px;
    overflow: hidden;
    border: 2px solid color-mix(
        in srgb,
        var(--apf-directory-accent) 74%,
        rgba(255, 255, 255, 0.14)
    );
    border-radius: 15px;
    background: #07070a;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
}

.apf-list-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.apf-list-company-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 7px;
    min-width: 0;
    flex: 1;
    max-width: 100%;
    opacity: 1;
    overflow: hidden;
    transition:
        max-width 0.2s ease,
        opacity 0.15s ease;
}

.apf-firm-directory.is-list-scrolled
    .apf-firm-list-cell--company {
    width: 126px;
    justify-self: start;
}

.apf-firm-directory.is-list-scrolled
    .apf-list-company-copy {
    max-width: 0;
    flex: 0 0 0;
    opacity: 0;
    pointer-events: none;
}

.apf-list-company-copy > a {
    grid-column: 1 / -1;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apf-list-company-copy > a:hover {
    color: var(--apf-directory-accent);
}

.apf-list-new-badge {
    justify-self: start;
    padding: 3px 7px;
    color: #09090b;
    border-radius: 999px;
    background: var(--apf-directory-accent);
    font-size: 8px;
    font-weight: 900;
}

.favorite-button--home-list {
    justify-self: end;
    width: auto;
    min-height: 24px;
    padding: 0;
    gap: 4px;
    color: #b8b8c0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.favorite-button--home-list:hover,
.favorite-button--home-list.is-saved {
    color: var(--apf-directory-accent);
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.favorite-button--home-list .favorite-button__label {
    display: none;
}

.favorite-button--home-list .favorite-button__icon {
    font-size: 18px;
}

.favorite-button--home-list .favorite-button__count {
    font-size: 10px;
}

.apf-firm-list-cell--rating {
    flex-direction: column;
    gap: 6px;
}

.apf-firm-list-cell--rating strong {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.apf-firm-list-cell--rating strong span {
    color: var(--apf-directory-accent);
}

.apf-firm-list-cell--rating small {
    color: #a7a7af;
    font-size: 9px;
    font-weight: 800;
}

.apf-list-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.apf-list-tags span {
    padding: 4px 8px;
    color: #d7d7dc;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.apf-firm-list-cell--value strong,
.apf-firm-list-cell--funding strong,
.apf-firm-list-cell--payout strong {
    color: #f8f8fa;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.7;
}

.apf-firm-list-cell--funding {
    flex-direction: column;
    gap: 8px;
}

.apf-firm-list-cell--funding > span {
    width: 72%;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.apf-firm-list-cell--funding > span > i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--apf-directory-accent) 70%, #fff),
        var(--apf-directory-accent)
    );
    box-shadow: 0 0 12px color-mix(
        in srgb,
        var(--apf-directory-accent) 42%,
        transparent
    );
}

.apf-list-options {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.apf-list-options > span {
    display: inline-grid;
    place-items: center;
    min-width: 29px;
    height: 29px;
    padding: 3px;
    overflow: hidden;
    color: #dddde2;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: #f5f5f6;
}

.apf-list-options img {
    width: 21px;
    height: 21px;
    object-fit: contain;
    border-radius: 999px;
}

.apf-list-options b {
    color: #111116;
    font-size: 7px;
    font-weight: 900;
}

.apf-list-options small {
    color: #85858d;
    font-size: 9px;
    font-weight: 800;
}

.apf-list-options .apf-list-option-more {
    color: #09090b;
    border-color: var(--apf-directory-accent);
    background: var(--apf-directory-accent);
    font-size: 9px;
    font-weight: 900;
}

.apf-firm-list-cell--actions {
    flex-direction: column;
    gap: 7px;
    border-inline-end: 0;
    border-radius: 0 16px 16px 0;
}

.apf-firm-list-cell--actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 6px 9px;
    color: #09090b;
    border: 1px solid var(--apf-directory-accent);
    border-radius: 999px;
    background: var(--apf-directory-accent);
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
}

.apf-firm-list-cell--actions a + a {
    color: #f1f1f3;
    border-color: color-mix(
        in srgb,
        var(--apf-directory-accent) 55%,
        rgba(255, 255, 255, 0.12)
    );
    background: transparent;
}

.apf-firm-list-cell--actions a:hover {
    filter: brightness(1.08);
}

.apf-firm-list-empty {
    margin: 18px 0 0;
    padding: 22px;
    color: #aaaab2;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.apf-firm-list-empty[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .main-container {
        padding-inline: 10px;
    }

    .apf-directory-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .apf-directory-toolbar-side {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .apf-directory-update {
        width: 100%;
    }

    .apf-directory-filters {
        width: 100%;
        padding-bottom: 3px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .apf-directory-filters::-webkit-scrollbar {
        display: none;
    }

    .apf-list-scroll-guide {
        margin-top: 22px;
        margin-bottom: 18px;
    }

    .apf-firm-directory {
        --apf-list-columns:
            190px
            112px
            165px
            140px
            135px
            170px
            145px
            175px
            125px;
        --apf-list-width: 1357px;
    }

    .apf-firm-list-head-shell {
        top: var(--apf-sticky-header-height, var(--apf-header-height, 104px));
    }

    .apf-firm-list-row,
    .apf-firm-list-cell {
        min-height: 104px;
    }

    .apf-firm-list-cell--company {
        gap: 8px;
        padding: 8px;
        box-shadow: 16px 0 28px rgba(0, 0, 0, 0.42);
    }

    .apf-firm-directory.is-list-scrolled
        .apf-firm-list-cell--company {
        width: 112px;
    }

    .apf-list-rank {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
        font-size: 10px;
    }

    .apf-list-logo {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        border-radius: 14px;
    }

    .apf-list-company-copy > a {
        font-size: 11px;
    }

    .apf-directory-filters button {
        min-height: 35px;
        padding-inline: 12px;
        font-size: 10px;
    }
}

@media (max-width: 520px) {
    .main-container {
        margin-top: 24px;
        padding-inline: 7px;
    }

    .hero-section {
        margin-bottom: 24px;
    }

    .apf-firm-directory {
        margin-inline: -1px;
    }

    .apf-directory-toolbar {
        padding-inline: 5px;
    }

    .apf-directory-heading > span {
        font-size: 13px;
    }

    .apf-list-scroll-track {
        width: min(265px, 70vw);
    }

    .apf-firm-list-head-shell {
        margin-bottom: 6px;
    }

    .apf-firm-list-body {
        gap: 6px;
    }

    .apf-firm-list-row {
        border-radius: 14px;
    }

    .apf-firm-list-cell {
        padding: 9px;
    }

    .apf-firm-list-cell--company {
        border-radius: 13px 0 0 13px;
    }

    .apf-list-logo {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .apf-list-company-copy {
        gap: 4px;
    }

    .apf-list-company-copy > a {
        font-size: 10px;
    }

    .favorite-button--home-list .favorite-button__count {
        font-size: 9px;
    }
}
