.best-deals-page {
    --best-deals-gold: #d4af37;
    --best-deals-gold-rgb: 212, 175, 55;
    --best-deals-panel: #0d0d11;
    --best-deals-panel-strong: #111116;
    --best-deals-muted: #9b9ba5;
    position: relative;
    z-index: 1;
    width: min(1400px, calc(100% - 34px));
    max-width: none;
    margin: 32px auto 82px;
    padding: 0;
    color: #f7f7f8;
}

.best-deals-page,
.best-deals-page * {
    box-sizing: border-box;
}

.best-deals-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.72fr);
    overflow: hidden;
    min-height: 380px;
    padding: clamp(32px, 4.5vw, 62px);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    border: 1px solid rgba(var(--best-deals-gold-rgb), 0.26);
    border-radius: 27px;
    background:
        linear-gradient(115deg, rgba(var(--best-deals-gold-rgb), 0.09), transparent 42%),
        radial-gradient(circle at 92% 0, rgba(var(--best-deals-gold-rgb), 0.15), transparent 31%),
        #0b0b0f;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 28px 78px rgba(0, 0, 0, 0.26);
}

.best-deals-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--best-deals-gold), transparent);
    opacity: 0.7;
}

.best-deals-hero-glow {
    position: absolute;
    z-index: -1;
    top: -230px;
    left: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(var(--best-deals-gold-rgb), 0.1);
    filter: blur(120px);
    pointer-events: none;
}

.best-deals-hero-copy {
    min-width: 0;
}

.best-deals-eyebrow {
    display: inline-flex;
    min-height: 31px;
    padding: 5px 13px;
    align-items: center;
    color: var(--best-deals-gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
    border: 1px solid rgba(var(--best-deals-gold-rgb), 0.32);
    border-radius: 999px;
    background: rgba(var(--best-deals-gold-rgb), 0.075);
}

.best-deals-hero h1 {
    max-width: 820px;
    margin: 17px 0 11px;
    color: #fff;
    font-size: clamp(34px, 4.5vw, 58px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.best-deals-hero h1 span {
    display: block;
    color: var(--best-deals-gold);
    text-shadow: 0 0 36px rgba(var(--best-deals-gold-rgb), 0.2);
}

.best-deals-hero-copy > p {
    max-width: 720px;
    margin: 0;
    color: #aaaab3;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.85;
}

.best-deals-method {
    display: flex;
    margin-top: 22px;
    flex-wrap: wrap;
    gap: 8px;
}

.best-deals-method span {
    display: inline-flex;
    min-height: 34px;
    padding: 6px 10px;
    align-items: center;
    gap: 7px;
    color: #c7c7ce;
    font-size: 9px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.028);
}

.best-deals-method span::before {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    content: "";
    border-radius: 50%;
    background: var(--best-deals-gold);
    box-shadow: 0 0 11px rgba(var(--best-deals-gold-rgb), 0.62);
}

.best-deals-hero-stats {
    display: grid;
    gap: 9px;
}

.best-deals-hero-stats > div {
    position: relative;
    overflow: hidden;
    min-height: 92px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent),
        rgba(8, 8, 11, 0.78);
}

.best-deals-hero-stats > div::after {
    position: absolute;
    top: 14px;
    right: 0;
    bottom: 14px;
    width: 3px;
    content: "";
    border-radius: 99px 0 0 99px;
    background: rgba(255, 255, 255, 0.12);
}

.best-deals-hero-stats span,
.best-deals-hero-stats small,
.best-deals-hero-stats strong {
    display: block;
}

.best-deals-hero-stats span {
    color: #85858f;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.best-deals-hero-stats strong {
    margin-top: 3px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.1;
}

.best-deals-hero-stats small {
    margin-top: 4px;
    color: #85858f;
    font-size: 8.5px;
    font-weight: 700;
}

.best-deals-hero-stats .best-deals-stat--accent {
    border-color: rgba(var(--best-deals-gold-rgb), 0.26);
    background:
        radial-gradient(circle at 100% 0, rgba(var(--best-deals-gold-rgb), 0.13), transparent 54%),
        rgba(8, 8, 11, 0.86);
}

.best-deals-hero-stats .best-deals-stat--accent::after {
    background: var(--best-deals-gold);
    box-shadow: 0 0 18px rgba(var(--best-deals-gold-rgb), 0.54);
}

.best-deals-hero-stats .best-deals-stat--accent strong {
    color: var(--best-deals-gold);
}

.best-deals-directory {
    margin-top: 34px;
}

.best-deals-directory-head {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.best-deals-directory-head > div > span {
    color: var(--best-deals-gold);
    font-size: 10px;
    font-weight: 900;
}

.best-deals-directory-head h2 {
    margin: 3px 0 0;
    color: #fff;
    font-size: clamp(23px, 3vw, 33px);
    font-weight: 900;
    line-height: 1.25;
}

.best-deals-directory-head > p {
    margin: 0;
    color: #90909a;
    font-size: 10px;
    font-weight: 800;
}

.best-deals-directory-head > p strong {
    margin-right: 3px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

.best-deals-toolbar {
    position: relative;
    display: flex;
    min-height: 72px;
    margin-bottom: 14px;
    padding: 12px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(var(--best-deals-gold-rgb), 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 0, rgba(var(--best-deals-gold-rgb), 0.07), transparent 34%),
        linear-gradient(145deg, #17171c, #111116 72%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 17px 42px rgba(0, 0, 0, 0.18);
}

.best-deals-price-note {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: #a9a9b2;
    font-size: 10px;
    font-weight: 800;
}

.best-deals-price-note i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #23cf88;
    box-shadow: 0 0 13px rgba(35, 207, 136, 0.72);
}

.best-deals-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.best-deals-sort > span {
    color: #e7e7eb;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

.best-deals-sort select {
    min-width: 190px;
    min-height: 43px;
    padding: 7px 36px 7px 12px;
    color: #f5f5f7;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    background: #0b0b0e;
    cursor: pointer;
}

.best-deals-sort select:focus-visible {
    border-color: var(--best-deals-gold);
    box-shadow: 0 0 0 3px rgba(var(--best-deals-gold-rgb), 0.12);
}

.best-deals-sort-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.best-deals-list {
    display: grid;
    gap: 13px;
    transition: opacity 120ms ease, transform 120ms ease;
}

.best-deals-list.is-sorting {
    opacity: 0.78;
    transform: translateY(2px);
}

.best-deal-item {
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.022), transparent),
        rgba(10, 10, 13, 0.88);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.15);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.best-deal-company-bar {
    display: grid;
    grid-template-columns: 40px minmax(190px, 1fr) minmax(130px, auto) auto;
    min-height: 55px;
    padding: 5px 7px 10px;
    align-items: center;
    gap: 10px;
}

.best-deal-position {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--best-deals-gold);
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid rgba(var(--best-deals-gold-rgb), 0.2);
    border-radius: 11px;
    background: rgba(var(--best-deals-gold-rgb), 0.06);
}

.best-deal-company-identity {
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.best-deal-company-identity strong,
.best-deal-company-identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.best-deal-company-identity strong {
    font-size: clamp(15px, 1.8vw, 19px);
    font-weight: 900;
    line-height: 1.25;
}

.best-deal-company-identity small {
    margin-top: 2px;
    color: #81818b;
    font-size: 8.5px;
    font-weight: 800;
}

.best-deal-account-size {
    display: grid;
    min-width: 128px;
    min-height: 40px;
    padding: 5px 11px;
    place-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}

.best-deal-account-size small,
.best-deal-account-size strong {
    display: block;
}

.best-deal-account-size small {
    color: #797984;
    font-size: 7px;
    font-weight: 900;
}

.best-deal-account-size strong {
    margin-top: 1px;
    color: #f1f1f4;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
}

.best-deal-company-details {
    display: inline-flex;
    min-height: 39px;
    padding: 6px 12px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--best-deals-gold);
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid rgba(var(--best-deals-gold-rgb), 0.24);
    border-radius: 11px;
    background: rgba(var(--best-deals-gold-rgb), 0.055);
    white-space: nowrap;
    transition: background 180ms ease, transform 180ms ease;
}

.best-deal-company-details span {
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.best-deal-item .pf-price-card {
    margin: 0;
    border-color: rgba(255, 255, 255, 0.075);
    background:
        radial-gradient(circle at 100% 0, rgba(var(--best-deals-gold-rgb), 0.07), transparent 31%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.006)),
        #0c0c0f;
}

.best-deal-item .pf-price-card::before {
    background: var(--best-deals-gold);
}

.best-deals-empty {
    display: grid;
    min-height: 210px;
    padding: 38px 20px;
    place-content: center;
    justify-items: center;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.018);
}

.best-deals-empty > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--best-deals-gold);
    font-weight: 900;
    border: 1px solid rgba(var(--best-deals-gold-rgb), 0.22);
    border-radius: 50%;
    background: rgba(var(--best-deals-gold-rgb), 0.06);
}

.best-deals-empty strong {
    margin-top: 12px;
    color: #e6e6ea;
    font-size: 14px;
}

.best-deals-empty p {
    margin: 5px 0 0;
    color: #85858f;
    font-size: 10px;
}

@media (hover: hover) {
    .best-deal-item:hover {
        border-color: rgba(var(--best-deals-gold-rgb), 0.17);
        box-shadow: 0 20px 52px rgba(0, 0, 0, 0.2);
        transform: translateY(-1px);
    }

    .best-deal-company-details:hover {
        background: rgba(var(--best-deals-gold-rgb), 0.1);
        transform: translateX(2px);
    }
}

@media (max-width: 980px) {
    .best-deals-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 25px;
    }

    .best-deals-hero-copy {
        text-align: center;
    }

    .best-deals-hero h1,
    .best-deals-hero-copy > p {
        margin-inline: auto;
    }

    .best-deals-method {
        justify-content: center;
    }

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

    .best-deals-hero-stats > div {
        min-height: 88px;
    }
}

@media (max-width: 720px) {
    .best-deals-page {
        width: calc(100% - 20px);
        margin-top: 20px;
        margin-bottom: 62px;
    }

    .best-deals-hero {
        padding: 28px 16px 22px;
        border-radius: 21px;
    }

    .best-deals-hero h1 {
        margin-top: 13px;
        font-size: clamp(28px, 9vw, 38px);
        letter-spacing: -0.8px;
    }

    .best-deals-hero-copy > p {
        font-size: 10.5px;
        line-height: 1.75;
    }

    .best-deals-method {
        margin-top: 17px;
        gap: 5px;
    }

    .best-deals-method span {
        min-height: 29px;
        padding: 5px 7px;
        font-size: 7.5px;
    }

    .best-deals-hero-stats {
        gap: 5px;
    }

    .best-deals-hero-stats > div {
        min-height: 76px;
        padding: 10px 8px;
        border-radius: 12px;
    }

    .best-deals-hero-stats span {
        font-size: 6.5px;
        letter-spacing: 0.03em;
    }

    .best-deals-hero-stats strong {
        font-size: 19px;
    }

    .best-deals-hero-stats small {
        font-size: 6.5px;
    }

    .best-deals-directory {
        margin-top: 27px;
    }

    .best-deals-directory-head {
        align-items: flex-end;
    }

    .best-deals-directory-head h2 {
        font-size: 23px;
    }

    .best-deals-toolbar {
        padding: 10px;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        border-radius: 15px;
    }

    .best-deals-price-note {
        min-height: 30px;
        padding-inline: 3px;
        font-size: 8px;
    }

    .best-deals-sort {
        justify-content: space-between;
    }

    .best-deals-sort select {
        width: min(215px, 68vw);
        min-width: 0;
        min-height: 40px;
    }

    .best-deals-list {
        gap: 9px;
    }

    .best-deal-item {
        padding: 7px;
        border-radius: 18px;
    }

    .best-deal-company-bar {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        min-height: 52px;
        padding: 3px 4px 8px;
        gap: 7px;
    }

    .best-deal-position {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 9px;
    }

    .best-deal-company-identity strong {
        font-size: 14px;
    }

    .best-deal-company-identity small {
        font-size: 7px;
    }

    .best-deal-account-size {
        grid-row: 2;
        grid-column: 2;
        min-width: 0;
        min-height: 31px;
        padding: 3px 8px;
        place-content: center start;
        text-align: left;
    }

    .best-deal-account-size small,
    .best-deal-account-size strong {
        display: inline;
    }

    .best-deal-account-size small {
        margin-right: 5px;
        font-size: 6.5px;
    }

    .best-deal-account-size strong {
        font-size: 11px;
    }

    .best-deal-company-details {
        grid-row: 1 / 3;
        grid-column: 3;
        min-height: 38px;
        padding-inline: 9px;
        font-size: 0;
    }

    .best-deal-company-details span {
        font-size: 16px;
    }
}

@media (max-width: 430px) {
    .best-deals-method span {
        flex: 1 1 100%;
        justify-content: center;
    }

    .best-deals-sort {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .best-deals-sort select {
        width: 100%;
    }

    .best-deals-directory-head > p {
        font-size: 0;
    }

    .best-deals-directory-head > p strong {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .best-deals-list,
    .best-deal-item,
    .best-deal-company-details {
        transition: none;
    }
}

/* ArabPropFirm RTL mirror of the ApexPropFirms layout */
.best-deals-page {
    direction: rtl;
    text-align: right;
}

.best-deals-hero {
    background:
        linear-gradient(245deg, rgba(var(--best-deals-gold-rgb), 0.09), transparent 42%),
        radial-gradient(circle at 8% 0, rgba(var(--best-deals-gold-rgb), 0.15), transparent 31%),
        #0b0b0f;
}

.best-deals-hero-glow {
    right: -180px;
    left: auto;
}

.best-deals-hero-stats > div::after {
    right: auto;
    left: 0;
    border-radius: 0 99px 99px 0;
}

.best-deals-hero-stats .best-deals-stat--accent {
    background:
        radial-gradient(circle at 0 0, rgba(var(--best-deals-gold-rgb), 0.13), transparent 54%),
        rgba(8, 8, 11, 0.86);
}

.best-deals-directory-head > p strong {
    margin-right: 0;
    margin-left: 3px;
}

.best-deals-toolbar {
    background:
        radial-gradient(circle at 8% 0, rgba(var(--best-deals-gold-rgb), 0.07), transparent 34%),
        linear-gradient(215deg, #17171c, #111116 72%);
}

.best-deals-sort select {
    padding: 7px 12px 7px 36px;
}

.best-deal-item .pf-price-card {
    background:
        radial-gradient(circle at 0 0, rgba(var(--best-deals-gold-rgb), 0.07), transparent 31%),
        linear-gradient(225deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.006)),
        #0c0c0f;
}

@media (hover: hover) {
    .best-deal-company-details:hover {
        transform: translateX(-2px);
    }
}

@media (max-width: 720px) {
    .best-deal-account-size {
        text-align: right;
    }

    .best-deal-account-size small {
        margin-right: 0;
        margin-left: 5px;
    }
}
