@font-face {
    font-family: "Vazirmatn";
    src: url(../fonts/Vazirmatn.woff2) format('woff2');
    ;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --spacing: 24px;
    --inner-spacing: 24px;
    --page-layout-spacing: 24px;
    --primary-col: #08a9e3;
    --body-background-color-xacwo: #f1f4f6;
    --header-main-header-background-color-xezgb: #ffffff;
    --header-main-header-border-bottom-nhfik: #e7e7e7;
    --theme-toggle-border-wmufd: #8c999f;
    --theme-toggle-color-xqhwc: #20252a;
    --btn-color-pekzn: white;
    --number-card-background-color-xghpo: #ffffff;
    --number-card-border-wqdaa: #d9e0e5;
    --number-info-span-color-fdpjr: #4b5961;
    --number-info-p-color-fyfga: #59656d;
    --number-card-number-header-background-color-dvxpc: #edf1f3;
    --search-inputs-input-border-bottom-wlecc: #8c999f;
    --secondary-col-background-color-zhhko: #08a9e3;
    --error-box-p-color-lorkt: #59656d;
    --simcard-eyebrow-color-opyik: #59656d;
    --simcard-hero-inactivity-color-szesi: #4b5961;
    --simcard-status-sold-color-mrvus: #7a4310;
    --simcard-status-sold-background-color-ljwly: #f4d8b5;
    --simcard-sold-label-background-color-xfbag: #fff1df;
    --modal-bg-background-color-qdkvd: rgba(20, 30, 35, .25);
    --modal-box-background-color-emcbg: #e7e7e7;
    --modal-box-box-shadow-gxswi: rgba(20, 30, 35, .18);
    --login-box-form-login-input-placeholder-color-oumbt: #68757c;
    --submit-ad-input-has-error-border-color-brpxb: #d96565;
    --submit-ad-field-error-color-xebei: #ff9f9f;
    --submit-ad-error-color-ryqrp: #8f2525;
    --submit-ad-error-background-color-ecyij: #ffe0e0;
    --price-input-group-label-color-ollzw: #59656d;
    --price-input-wrapper-border-xcnng: #c7d0d6;
    --price-input-wrapper-input-color-zqzsj: #20252a;
    --price-input-wrapper-span-color-zcqki: #68757c;
    --price-track-background-color-ngevy: #b5c0c6;
    --info-modal-bg-oaifv: white;
    --info-modal-border-tl6ao: var(--header-main-header-border-bottom-nhfik);
    --info-modal-item-bg-i184v: white;
    --info-modal-item-border-kv2dv: var(--header-main-header-border-bottom-nhfik);
}

:root.dark {
    --primary-col: #4fc5f0;
    --secondary-col-background-color-zhhko: #4fc5f0;
    --body-background-color-xacwo: #2B2B2B;
    --header-main-header-background-color-xezgb: #1C1C1C;
    --header-main-header-border-bottom-nhfik: #353535;
    --theme-toggle-border-wmufd: #616161;
    --theme-toggle-color-xqhwc: white;
    --btn-color-pekzn: black;
    --number-card-background-color-xghpo: #2E2E2E;
    --number-card-border-wqdaa: #3d3d3d;
    --number-info-span-color-fdpjr: #dedede;
    --number-info-p-color-fyfga: #d4d4d4;
    --number-card-number-header-background-color-dvxpc: #232323;
    --search-inputs-input-border-bottom-wlecc: rgb(144, 144, 144);
    --error-box-p-color-lorkt: #bdbdbd;
    --simcard-eyebrow-color-opyik: #a9a9a9;
    --simcard-hero-inactivity-color-szesi: #d2d2d2;
    --simcard-status-sold-color-mrvus: #ffe1c2;
    --simcard-status-sold-background-color-ljwly: #654626;
    --simcard-sold-label-background-color-xfbag: #3d3025;
    --modal-bg-background-color-qdkvd: rgba(0, 0, 0, .3);
    --modal-box-background-color-emcbg: #2A2A2A;
    --modal-box-box-shadow-gxswi: rgba(0, 0, 0, .6);
    --login-box-form-login-input-placeholder-color-oumbt: #888;
    --submit-ad-error-color-ryqrp: #ffd5d5;
    --submit-ad-error-background-color-ecyij: #642f35;
    --price-input-group-label-color-ollzw: #aaa;
    --price-input-wrapper-border-xcnng: #454545;
    --price-input-wrapper-input-color-zqzsj: #e5e5e5;
    --price-input-wrapper-span-color-zcqki: #777;
    --price-track-background-color-ngevy: #505050;
    --info-modal-bg-oaifv: var(--modal-box-background-color-emcbg);
    --info-modal-border-tl6ao: var(--number-card-border-wqdaa);
    --info-modal-item-bg-i184v: var(--header-main-header-background-color-xezgb);
    --info-modal-item-border-kv2dv: var(--header-main-header-border-bottom-nhfik);
}

html,
body {
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Vazirmatn";
    background-color: var(--body-background-color-xacwo);
    direction: rtl;
}

.site-logo {
    display: flex;
    width: 38px;
    color: var(--theme-toggle-color-xqhwc);
}

header.main-header {
    top: 0;
    position: sticky;
    height: 70px;
    background-color: var(--header-main-header-background-color-xezgb);
    border-bottom: 2px solid var(--header-main-header-border-bottom-nhfik);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    z-index: 9999;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--theme-toggle-border-wmufd);
    border-radius: 9px;
    background-color: transparent;
    color: var(--theme-toggle-color-xqhwc);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle svg {
    display: flex;
    width: 20px;
}

.theme-toggle:hover {
    border-color: var(--primary-col);
}

footer.main-footer {
    height: 55px;
    background-color: var(--header-main-header-background-color-xezgb);
    border-top: 2px solid var(--header-main-header-border-bottom-nhfik);
    color: var(--theme-toggle-color-xqhwc);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--inner-spacing);
    flex-shrink: 0;
}

.btn {
    appearance: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--primary-col);
    color: var(--btn-color-pekzn);
    padding: 6px 15px;
    cursor: pointer;
    font-family: "Vazirmatn";
    border-radius: 10px;
    font-weight: 500;
    /* font-size: 15px; */
    font-size: clamp(11px, 1.3vw, 15px);
    user-select: none;
    gap: 8px;
}

a.btn {
    text-decoration: none;
}

.fill-container {
    width: 100%;
}

header.main-header .btn {
    padding: 10px 25px;
}

.inner-full-spacing {
    padding: var(--inner-spacing);
}

.inner-spacing {
    padding-left: var(--inner-spacing);
    padding-right: var(--inner-spacing);
}

.mobile-content .number-list {
    display: grid;
    color: var(--theme-toggle-color-xqhwc);
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 8px;
    width: 100%;
}

.sim-card-box:has(.pagination) .number-list {
    margin-bottom: 20px;
}

.number-card {
    display: flex;
    flex-direction: column;
    background-color: var(--number-card-background-color-xghpo);
    border: 2px solid var(--number-card-border-wqdaa);
    border-radius: 12px;
    color: var(--theme-toggle-color-xqhwc);
    overflow: hidden;
    min-height: 168px;

}

.number-content {
    padding: 0 8px;
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.number-info {
    font-size: 15px;
}

.number-info span {
    font-weight: 400;
    color: var(--number-info-span-color-fdpjr);
}

.number-info p {
    color: var(--number-info-p-color-fyfga);
}

.number-price {
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-col);
    margin-top: auto;
}

.number-card .number-header {
    background-color: var(--number-card-number-header-background-color-dvxpc);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 8px;
    margin-bottom: 8px;
}

.number-card .number-header h2 {
    font-size: 18px;
    direction: ltr;
    font-weight: 600;
    height: 22px;
}

.number-card .number-header h2 a,
.phone-col a {
    color: inherit;
    text-decoration: none;
}

.desktop-content .number-list {
    width: 100%;
    color: var(--theme-toggle-color-xqhwc);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.desktop-content .number-header {
    display: grid;

    grid-template-columns: 0.9fr 1fr 0.8fr 1fr;

    gap: 10px;
}

.desktop-content .number-header>div {
    padding: 6px 15px;

    background-color: var(--number-card-background-color-xghpo);
    border: 2px solid var(--number-card-border-wqdaa);
    border-radius: 12px;

    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-row {
    display: grid;

    grid-template-columns: 0.9fr 1fr 0.8fr 1fr;

    align-items: center;
    background-color: var(--number-card-background-color-xghpo);
    border: 2px solid var(--number-card-border-wqdaa);
    border-radius: 12px;

    overflow: hidden;
}

.number-row>div {
    padding: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-row svg {
    display: flex;
    width: 100%;
    max-width: 70px;
}

.sim-card-box,
.filters-box,
.search-box {
    background-color: var(--header-main-header-background-color-xezgb);
    border: 2px solid var(--header-main-header-border-bottom-nhfik);
    border-radius: 18px;
    padding: 14px;
}

.search-inputs span {
    color: var(--theme-toggle-color-xqhwc);
    font-size: 22px;
}

.search-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-left: 10px;
}

.mobile-content .search-inputs {
    margin-bottom: 12px;
}

.search-inputs input {
    all: unset;
    color: var(--theme-toggle-color-xqhwc);
    border-bottom: 2px solid var(--search-inputs-input-border-bottom-wlecc);
    width: 100%;
    font-size: 22px;
    max-width: 35px;
    text-align: center;
}

.search-box form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: ltr;
}

.desktop-content .search-box form {
    gap: 14px;
}

.mobile-content .search-box form {
    gap: 6px;
}

.search-box .btn {
    padding: 10px 25px;
}

.rounded {
    border-radius: 100px;
}

.sim-card-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    ;
}

.sim-card-box h1 {
    font-size: 22px;
    color: var(--theme-toggle-color-xqhwc);
    text-align: center;
    font-weight: 600;
    padding-bottom: 10px;
}

.pagination {
    display: flex;
    gap: 6px;
    margin-top: auto;
    align-self: center;
}

.secondary-col {
    background-color: var(--secondary-col-background-color-zhhko);
}

.pagination-next svg,
.pagination-previous svg {
    display: flex;
    height: 14px;
}

.page-btn {

    padding-left: 10px;
    padding-right: 10px;

}

.page-btn:not(.active) {
    background-color: transparent;
    border: 1px solid var(--theme-toggle-border-wmufd);
    color: var(--theme-toggle-color-xqhwc);
}

.page-btn.active {
    background-color: var(--primary-col);
}

.page-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
    padding: var(--page-layout-spacing) 0;
    flex: 1;
    align-items: center;
}

.error-page-layout {
    justify-content: center;
}

.error-box {
    width: min(100%, 620px);
    background-color: var(--header-main-header-background-color-xezgb);
    border: 2px solid var(--header-main-header-border-bottom-nhfik);
    border-radius: 18px;
    padding: 36px 24px;
    color: var(--theme-toggle-color-xqhwc);
    text-align: center;
}

.error-code {
    color: var(--primary-col);
    direction: ltr;
    font-size: clamp(72px, 16vw, 144px);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 18px;
}

.error-box h1 {
    font-size: var(--spacing);
    font-weight: 500;
    margin-bottom: 10px;
}

.error-box p {
    color: var(--error-box-p-color-lorkt);
    font-size: 15px;
    margin-bottom: var(--spacing);
}

.error-box .btn {
    margin: 0 auto;
    width: fit-content;
    min-width: 150px;
}

.simcard-detail-page {
    padding: var(--page-layout-spacing) var(--inner-spacing);
}

.simcard-detail-layout {
    width: 100%;
    max-width: 1050px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing);
    align-items: stretch;
}

.simcard-hero,
.simcard-info-box,
.similar-simcards {
    background-color: var(--header-main-header-background-color-xezgb);
    border: 2px solid var(--header-main-header-border-bottom-nhfik);
    border-radius: 18px;
    color: var(--theme-toggle-color-xqhwc);
}

.simcard-hero {
    min-height: 330px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.simcard-eyebrow {
    color: var(--simcard-eyebrow-color-opyik);
    font-size: 14px;
    margin-bottom: 14px;
}

.simcard-hero h1 {
    direction: ltr;
    color: var(--theme-toggle-color-xqhwc);
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.simcard-hero-price {
    color: var(--primary-col);
    font-size: var(--spacing);
    font-weight: 600;
    margin-bottom: 8px;
}

.simcard-hero-inactivity {
    color: var(--simcard-hero-inactivity-color-szesi);
    font-size: 15px;
    margin-bottom: var(--spacing);
}

.simcard-actions {
    width: 100%;
    max-width: 380px;
    display: flex;
    gap: 10px;
}

.simcard-actions .btn {
    flex: 1;
    padding-top: 10px;
    padding-bottom: 10px;
}

.simcard-secondary-action {
    background-color: transparent;
    border: 1px solid var(--theme-toggle-border-wmufd);
    color: var(--theme-toggle-color-xqhwc);
}

.simcard-info-box {
    padding: 22px;
}

.simcard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.simcard-section-header h2 {
    font-size: 19px;
    font-weight: 500;
}

.simcard-section-header a {
    color: var(--primary-col);
    font-size: 13px;
    text-decoration: none;
}

.simcard-status {
    color: var(--header-main-header-background-color-xezgb);
    background-color: var(--primary-col);
    border-radius: 8px;
    font-size: 12px;
    padding: 5px 10px;
}

.simcard-status.sold {
    color: var(--simcard-status-sold-color-mrvus);
    background-color: var(--simcard-status-sold-background-color-ljwly);
}

.simcard-sold-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--simcard-status-sold-background-color-ljwly);
    border-radius: 10px;
    color: var(--simcard-status-sold-color-mrvus);
    background-color: var(--simcard-sold-label-background-color-xfbag);
    font-size: 14px;
    padding: 10px 15px;
}

.simcard-info-list {
    display: flex;
    flex-direction: column;
}

.simcard-info-list>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--header-main-header-border-bottom-nhfik);
}

.simcard-info-list>div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.simcard-info-list dt {
    color: var(--simcard-eyebrow-color-opyik);
    font-size: 14px;
}

.simcard-info-list dd {
    color: var(--theme-toggle-color-xqhwc);
    font-size: 14px;
    text-align: left;
}

.available-text {
    color: var(--primary-col) !important;
}

.available-text.sold {
    color: var(--simcard-status-sold-color-mrvus) !important;
}

.similar-simcards {
    width: 100%;
    max-width: 1050px;
    padding: 22px;
}

.similar-simcards .simcard-section-header {
    margin-bottom: 14px;
}

.similar-simcard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.similar-simcard-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 15px;
    background-color: var(--number-card-background-color-xghpo);
    border: 2px solid var(--number-card-border-wqdaa);
    border-radius: 12px;
    color: var(--theme-toggle-color-xqhwc);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.similar-number {
    font-size: 17px;
    font-weight: 500;
}

.similar-price {
    color: var(--primary-col);
    font-size: 14px;
}

.similar-inactivity {
    color: var(--error-box-p-color-lorkt);
    font-size: 12px;
}

.empty-simcards {
    color: var(--error-box-p-color-lorkt);
    font-size: 14px;
}

.content-layout {
    flex: 1;
    width: 100%;
}

.content-container {
    display: flex;
    flex-direction: row-reverse;
    gap: var(--spacing);
    padding: 0 var(--inner-spacing);
    height: 100%;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
    height: 100%;
}

.filters-box {
    width: 340px;
    height: stretch;
    color: var(--theme-toggle-color-xqhwc);
}

.chevron-btn {
    appearance: none;
    border: none;
    padding: 6px;
    color: var(--theme-toggle-color-xqhwc);
    background-color: transparent;
    cursor: inherit;
    transition: .15s ease-in-out;
}

.chevron-btn svg {
    display: flex;
    width: 20px;
}

.filters-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
}

.filters-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 2px;
}

.filters-box h2 {
    font-size: 18px;
    font-weight: 600;
}

.clean-filters {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary-col);
}

.social-links ul {
    list-style: none;
    display: flex;
    gap: 12px;
}

.social-links ul li a {
    display: flex;
    width: 22px;
    color: var(--theme-toggle-color-xqhwc);
}

.search-btn {
    font-weight: 700;
}

.search-btn svg {
    display: flex;
    width: 20px;
}

.phone-col {
    direction: ltr;
}

.info-modal {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    opacity: 0;
    transition: opacity .125s ease-in-out;
}

.modal-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg-background-color-qdkvd);
}

.info-modal.active {
    opacity: 1;
}

.modal-box-container {
    max-width: 450px;
    width: 100%;
    padding: 15px;
}

.modal-box {
    position: relative;
    background-color: var(--info-modal-bg-oaifv);
    border: 2px solid var(--info-modal-border-tl6ao);
    border-radius: 22px;
    min-height: 305px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 18px var(--modal-box-box-shadow-gxswi);
}

.link-item {
    background-color: var(--info-modal-item-bg-i184v);
    border: 2px solid var(--info-modal-item-border-kv2dv);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-radius: 16px;
}

.link-info {
    display: flex;
    gap: 4px;
    color: var(--theme-toggle-color-xqhwc);
    align-items: center;
}

.link-info span {
    direction: ltr;
}

.link-info svg {
    display: flex;
    width: 26px;
}

.link-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.modal-content {
    display: flex;
    flex-direction: column;
    padding: 16px;
    justify-content: space-between;
    flex: 1;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-info h2 {
    font-size: 19px;
    font-weight: 600;
    color: var(--theme-toggle-color-xqhwc);
    text-align: center;
}

.modal-actions {
    display: flex;
    flex-direction: column;
}

.filter {
    display: flex;
    flex-direction: column;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background-color: var(--modal-box-background-color-emcbg);
    padding: 8px 14px;
    border-radius: 16px 16px;
    cursor: pointer;
    transition: .2s ease-in-out;
    user-select: none;
}

.filter-content {
    background-color: var(--header-main-header-border-bottom-nhfik);
    border-radius: 0 0 16px 16px;
    max-height: 0;
    overflow: hidden;
    transition: .12s ease padding;
    padding: 0 12px;
}

.filter.open .filter-header {
    border-radius: 16px 16px 0 0;
}

.filter.open .filter-content {
    max-height: max-content;
    padding: 12px;
}

.filter.open .chevron-btn {
    transform: rotate(180deg);
}

.filter h3 {
    font-weight: 500;
    font-size: 16px;
}

.login-container {
    width: 420px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-page {
    justify-content: center;
    padding: var(--page-layout-spacing) var(--inner-spacing);
}

.login-container h1 {
    color: var(--theme-toggle-color-xqhwc);
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 6px;
}

.login-description {
    color: var(--simcard-eyebrow-color-opyik);
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
}

.login-box {
    width: 100%;
    padding: 20px;
    background-color: var(--header-main-header-background-color-xezgb);
    border: 2px solid var(--header-main-header-border-bottom-nhfik);
    border-radius: 18px;
    display: flex;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--theme-toggle-color-xqhwc);
    flex: 1;
}

.login-box form .login-input {
    appearance: none;
    width: 100%;
    padding: 9px 14px;
    background-color: var(--number-card-background-color-xghpo);
    border: 2px solid var(--number-card-border-wqdaa);
    border-radius: 10px;
    color: var(--theme-toggle-color-xqhwc);
    font-family: "Vazirmatn";
    font-size: 14px;
    outline: none;
}

.login-box form .login-input::placeholder {
    color: var(--login-box-form-login-input-placeholder-color-oumbt);
}

.login-box .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-box label {
    font-size: 14px;
    font-weight: 500;
    color: var(--simcard-hero-inactivity-color-szesi);
}

.submit-ad-page {
    justify-content: center;
    padding: var(--page-layout-spacing) var(--inner-spacing);
}

.submit-ad-container {
    width: 520px;
    max-width: 100%;
    color: var(--theme-toggle-color-xqhwc);
}

.submit-ad-container h1 {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}

.submit-ad-description {
    color: var(--simcard-eyebrow-color-opyik);
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
}

.submit-ad-privacy-notice {
    color: var(--simcard-eyebrow-color-opyik);
    background-color: var(--number-card-number-header-background-color-dvxpc);
    border: 1px solid var(--number-card-border-wqdaa);
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.8;
    margin: -4px 0 16px;
    padding: 8px 12px;
    text-align: center;
}

.submit-ad-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background-color: var(--header-main-header-background-color-xezgb);
    border: 2px solid var(--header-main-header-border-bottom-nhfik);
    border-radius: 18px;
}

.submit-ad-form-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.submit-ad-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.submit-ad-form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--simcard-hero-inactivity-color-szesi);
    font-size: 14px;
    font-weight: 500;
}

.submit-ad-form-group label small {
    color: var(--simcard-eyebrow-color-opyik);
    font-size: 11px;
    font-weight: 400;
}

.submit-ad-character-counter {
    display: inline-block;
    flex-shrink: 0;
    direction: ltr;
    color: var(--simcard-eyebrow-color-opyik);
    font-size: 11px;
    text-align: left;
}

.submit-ad-character-counter.at-limit {
    color: var(--submit-ad-input-has-error-border-color-brpxb);
    font-weight: 600;
}

.submit-ad-input {
    appearance: none;
    width: 100%;
    padding: 9px 14px;
    background-color: var(--number-card-background-color-xghpo);
    border: 2px solid var(--number-card-border-wqdaa);
    border-radius: 10px;
    color: var(--theme-toggle-color-xqhwc);
    font-family: "Vazirmatn";
    font-size: 14px;
    outline: none;
}

.submit-ad-input::placeholder {
    color: var(--login-box-form-login-input-placeholder-color-oumbt);
}

.submit-ad-date-wrapper {
    position: relative;
}

.submit-ad-date-wrapper input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
}

.submit-ad-date-button {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--theme-toggle-color-xqhwc);
    cursor: pointer;
    transform: translateY(-50%);
    z-index: 2;
}

.submit-ad-date-icon {
    width: 18px;
    height: 18px;
}

.submit-ad-input.has-error {
    border-color: var(--submit-ad-input-has-error-border-color-brpxb);
}

.submit-ad-field-error {
    min-height: 18px;
    color: var(--submit-ad-field-error-color-xebei);
    font-size: 12px;
}

.ltr-input {
    direction: ltr;
    text-align: left;
}

.submit-ad-button {
    margin-top: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.submit-ad-message {
    color: var(--header-main-header-background-color-xezgb);
    background-color: var(--primary-col);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.submit-ad-error {
    color: var(--submit-ad-error-color-ryqrp);
    background-color: var(--submit-ad-error-background-color-ecyij);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 12px;
}

#login-btn {
    margin-top: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.sorting-container {
    color: var(--theme-toggle-color-xqhwc);
    margin-bottom: 14px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.sorting-container h2 {
    font-weight: 400;
    font-size: 17px;
}

.select-wrapper {
    position: relative;
    display: inline-flex;
}

.select-wrapper select {
    all: unset;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    height: 35px;
    min-width: 120px;

    padding: 0 8px 0 40px;

    background-color: var(--number-card-background-color-xghpo);
    border: 2px solid var(--number-card-border-wqdaa);
    border-radius: 8px;
    font-size: 15px;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    transition: border-color 0.2s ease,
        background-color 0.2s ease;
}

.select-wrapper select option {
    padding: 0;
    margin: 0;
    font-size: 15px;
}

.select-icon {
    position: absolute;

    top: 50%;
    left: 10px;

    width: 16px;
    height: 16px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}

.mobile-content {
    display: none;
}

.desktop-content {
    display: flex;
}


.price-filter {
    width: 100%;
    padding: 0px 4px 14px 4px;
    box-sizing: border-box;
}

.price-inputs {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 14px;
}

.price-input-group {
    flex: 1;
    min-width: 0;
}

.price-input-group label {
    display: block;
    margin-bottom: 5px;

    color: var(--price-input-group-label-color-ollzw);
    font-size: 13px;
    font-weight: 500;
}

.price-input-wrapper {
    display: flex;
    align-items: center;

    height: 34px;
    width: 100%;

    box-sizing: border-box;

    background-color: var(--modal-box-background-color-emcbg);
    border: 1px solid var(--price-input-wrapper-border-xcnng);
    border-radius: 9px;

    padding: 0 8px;

    transition: border-color .15s ease;
}

.price-input-wrapper input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--price-input-wrapper-input-color-zqzsj);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    direction: ltr;
}

.price-input-wrapper input::-webkit-outer-spin-button,
.price-input-wrapper input::-webkit-inner-spin-button {
    display: none;
}

.price-input-wrapper span {
    flex-shrink: 0;

    margin-right: 5px;

    color: var(--price-input-wrapper-span-color-zcqki);
    font-size: 12px;

    white-space: nowrap;
}

.price-current {
    text-align: center;
    margin-bottom: 16px;

    color: var(--price-input-wrapper-input-color-zqzsj);

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-slider {
    position: relative;

    width: 100%;
    height: 20px;

    direction: ltr;
}

.price-track,
.price-progress {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    height: 5px;

    border-radius: 10px;
}

.price-track {
    width: 100%;

    background-color: var(--price-track-background-color-ngevy);
}

.price-progress {
    background-color: var(--price-input-wrapper-input-color-zqzsj);
}

.price-slider input[type="range"] {
    position: absolute;

    width: 100%;
    height: 20px;

    top: 0;
    left: 0;

    margin: 0;

    background: none;

    pointer-events: none;

    appearance: none;
    -webkit-appearance: none;
}

.price-slider input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
}

.price-slider input[type="range"]::-moz-range-track {
    background: transparent;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background-color: var(--price-input-wrapper-input-color-zqzsj);

    border: 3px solid var(--body-background-color-xacwo);

    cursor: pointer;

    pointer-events: auto;
}

.price-slider input[type="range"]::-moz-range-thumb {
    width: 17px;
    height: 17px;

    border-radius: 50%;

    background-color: var(--price-input-wrapper-input-color-zqzsj);

    border: 3px solid var(--body-background-color-xacwo);

    cursor: pointer;

    pointer-events: auto;
}

.price-limits {
    display: flex;

    justify-content: space-between;

    width: 100%;

    margin-top: 9px;

    color: var(--simcard-eyebrow-color-opyik);

    font-size: 13px;

    direction: ltr;
}

.price-limits span {
    white-space: nowrap;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.number-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 360px) {

    .price-filter {
        padding-left: 2px;
        padding-right: 2px;
    }

    .price-inputs {
        gap: 6px;
    }

    .price-input-wrapper {
        height: 32px;
        padding: 0 6px;
    }

    .price-input-wrapper input {
        font-size: 12px;
    }

    .price-input-wrapper span {
        font-size: 10px;
        margin-right: 3px;
    }

    .price-input-group label {
        font-size: 11px;
    }

    .price-current {
        font-size: 12px;
    }

    .price-limits {
        font-size: 11px;
    }
}

@media (max-width: 1032px) {

    :root {
        --spacing: 16px;
        --inner-spacing: 16px;
        --page-layout-spacing: 16px;
    }

    .filters-box {
        width: 280px;
    }

    .search-inputs {
        gap: 10px;
    }
}

@media (max-width: 900px) {
    :root {
        --spacing: 10px;
        --inner-spacing: 10px;
        --page-layout-spacing: 10px;
    }

    .filters-box {
        width: 100%;
        height: unset;
    }

    .main-content {
        display: flex;
        flex-direction: column;
    }

    .search-box form {
        flex-direction: column;
        border-radius: 22px;
        align-items: unset;
    }

    .search-inputs {
        gap: 8px;
        margin-left: unset;
    }

    .search-inputs input {
        max-width: 30px;
    }

    .search-btn {
        width: 100%;
    }

    .desktop-content {
        display: none;
    }

    .mobile-content {
        display: flex;
    }

    .login-page {
        align-items: stretch;
        flex: 1;
        padding: var(--page-layout-spacing) var(--inner-spacing);
    }

    .login-container {
        width: 100%;
    }

    .login-box {
        padding: 16px;
    }

    .btn {
        font-size: 14px;
    }

    .simcard-detail-layout {
        grid-template-columns: 1fr;
        gap: var(--page-layout-spacing);
    }

    .simcard-hero {
        min-height: 280px;
        padding: 24px 16px;
    }

    .simcard-hero h1 {
        font-size: 30px;
        letter-spacing: 0;
    }

    .simcard-hero-price {
        font-size: 20px;
    }

    .simcard-actions {
        max-width: 100%;
    }

    .similar-simcards {
        padding: 16px;
    }

    .similar-simcard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}