/* =========================================================
   VARIABLES
========================================================= */

:root {

    --primary: #0071e3;
    --primary-dark: #005bb5;
    --primary-soft: #eaf4ff;

    --text-main: #1f2937;
    --text-muted: #6b7280;

    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-footer: #f8fafc;

    --border: #e5e7eb;
    --border-dark: #d1d5db;

    --success: #16a34a;
    --danger: #ef4444;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;

    --shadow-sm:
        0 4px 16px rgba(15,23,42,.05);

    --shadow-md:
        0 16px 40px rgba(15,23,42,.08);

    --shadow-lg:
        0 30px 80px rgba(15,23,42,.12);

    --container: 1180px;

}


/* =========================================================
   RESET
========================================================= */

* {

    box-sizing: border-box;
    margin: 0;
    padding: 0;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family: "Vazirmatn", sans-serif;

    background: var(--bg);

    color: var(--text-main);

    line-height: 1.8;

    overflow-x: hidden;

}


button,
input {

    font-family: inherit;

}


button {

    border: 0;

    cursor: pointer;

}


a {

    color: inherit;

    text-decoration: none;

}


img {

    max-width: 100%;

    display: block;

}


/* =========================================================
   GLOBAL
========================================================= */

.container {

    width:
        min(
            var(--container),
            calc(100% - 40px)
        );

    margin-inline: auto;

}


.section {

    padding: 90px 0;

}


.section-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 35px;

}


.section-title {

    font-size: 30px;

    font-weight: 800;

    letter-spacing: -.5px;

}


.section-subtitle {

    color: var(--text-muted);

    margin-top: 6px;

    font-size: 15px;

}


.section-link {

    color: var(--primary);

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

}


/* =========================================================
   HEADER
========================================================= */

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(255,255,255,.90);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    border-bottom:
        1px solid rgba(229,231,235,.75);

}


.nav {

    height: 74px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.logo {

    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 800;

    font-size: 20px;

    white-space: nowrap;

}


.logo-mark {
    width: 38px;
    height: 38px;
    /* پس‌زمینه حذف شد */
    background: transparent; 
    /* رنگ خاکستری برای محتوا */
    color: #808080; 
    display: grid;
    place-items: center;
    font-size: 19px;
    font-weight: 800;
    /* سایه قبلی حذف شد */
    box-shadow: none; 
}



.nav-links {

    display: flex;

    align-items: center;

    gap: 5px;

}


.nav-links a {

    padding: 8px 13px;

    color: #4b5563;

    font-size: 14px;

    border-radius: 10px;

    transition: .2s;

}


.nav-links a:hover {

    background: var(--bg-soft);

    color: var(--primary);

}


.nav-search {

    width: 210px;

    height: 42px;

    background: var(--bg-soft);

    border: 1px solid var(--border);

    border-radius: 12px;

    display: flex;

    align-items: center;

    padding: 0 13px;

    gap: 8px;

}


.nav-search span {

    color: #9ca3af;

    font-size: 20px;

}


.nav-search input {

    width: 100%;

    border: 0;

    outline: 0;

    background: transparent;

    font-size: 13px;

}


.mobile-menu-button {

    display: none;

    width: 43px;

    height: 43px;

    border-radius: 12px;

    background: var(--bg-soft);

    border: 1px solid var(--border);

    font-size: 22px;

}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu-panel {

    position: fixed;

    inset: 0;

    z-index: 1500;

    background:
        rgba(15,23,42,.45);

    backdrop-filter: blur(7px);

    opacity: 0;

    visibility: hidden;

    transition: .25s;

}


.mobile-menu-panel.active {

    opacity: 1;

    visibility: visible;

}


.mobile-menu-inner {

    position: absolute;

    top: 0;

    right: 0;

    width: min(360px, 88%);

    height: 100%;

    background: white;

    padding: 22px;

    transform: translateX(100%);

    transition: .3s;

    box-shadow:
        -20px 0 50px rgba(0,0,0,.12);

}


.mobile-menu-panel.active
.mobile-menu-inner {

    transform: translateX(0);

}


.mobile-menu-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);

}


.mobile-menu-close {

    width: 40px;

    height: 40px;

    border-radius: 11px;

    background: var(--bg-soft);

    font-size: 21px;

}


.mobile-nav {

    padding-top: 20px;

}


.mobile-nav a {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 15px 10px;

    border-bottom: 1px solid #f1f5f9;

    font-size: 14px;

    font-weight: 600;

}


.mobile-nav a span {

    color: #9ca3af;

}


/* =========================================================
   HERO
========================================================= */

.hero {

    position: relative;

    padding: 80px 0 100px;

    background:

        radial-gradient(
            circle at 50% 0%,
            rgba(0,113,227,.10),
            transparent 38%
        ),

        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );

    overflow: hidden;

}


.hero-content {

    position: relative;

    z-index: 1;

    text-align: center;

}


.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: var(--primary-soft);

    color: var(--primary);

    border:
        1px solid rgba(0,113,227,.10);

    border-radius: 999px;

    padding: 7px 14px;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 20px;

}


.hero-badge-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: var(--primary);

}


.hero h1 {

    font-size:
        clamp(34px,5vw,58px);

    line-height: 1.25;

    letter-spacing: -1.5px;

    font-weight: 800;

    max-width: 850px;

    margin: auto;

}


.hero h1 span {

    color: var(--primary);

}


.hero-description {

    max-width: 650px;

    margin: 18px auto 40px;

    color: var(--text-muted);

    font-size: 16px;

}


/* =========================================================
   MAIN COMPARISON
========================================================= */

.compare-box {

    max-width: 940px;

    margin: 0 auto;

    background:
        rgba(255,255,255,.95);

    border:
        1px solid var(--border);

    border-radius: var(--radius-xl);

    padding: 18px;

    box-shadow: var(--shadow-lg);

}


.compare-grid {

    display: grid;

    grid-template-columns:
        1fr 82px 1fr;

    align-items: stretch;

    gap: 14px;

}


.phone-selector {

    min-height: 275px;

    border:
        1.5px dashed #cbd5e1;

    border-radius: 25px;

    background: #fbfdff;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 25px;

    transition: .25s;

}


.phone-selector:hover {

    border-color: var(--primary);

    background: #f7fbff;

}


.phone-selector.selected {

    border-style: solid;

    border-color:
        rgba(0,113,227,.35);

    background:
        linear-gradient(
            180deg,
            #fff,
            #f7fbff
        );

}


.phone-icon {

    width: 105px;

    height: 150px;

    border:
        3px solid #cbd5e1;

    border-radius: 20px;

    position: relative;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    padding-bottom: 14px;

    margin-bottom: 17px;

    background: white;

}


.phone-icon::before {

    content: "";

    position: absolute;

    width: 35px;

    height: 5px;

    border-radius: 999px;

    background: #d1d5db;

    top: 9px;

    left: 50%;

    transform: translateX(-50%);

}


.selector-label {

    font-size: 13px;

    color: var(--text-muted);

}


.selector-title {

    font-size: 18px;

    font-weight: 800;

    margin-bottom: 12px;

    max-width: 230px;

}


.select-button {

    height: 44px;

    padding: 0 24px;

    border-radius: 12px;

    background: var(--primary);

    color: white;

    font-size: 13px;

    font-weight: 700;

    box-shadow:
        0 8px 20px rgba(0,113,227,.20);

}


.vs {

    display: flex;

    align-items: center;

    justify-content: center;

}


.vs-circle {

    width: 58px;

    height: 58px;

    border-radius: 50%;

    background: white;

    border:
        1px solid var(--border);

    box-shadow: var(--shadow-sm);

    display: grid;

    place-items: center;

    font-size: 15px;

    font-weight: 800;

    color: var(--text-muted);

}


.compare-action {

    margin-top: 14px;

    height: 58px;

    width: 100%;

    border-radius: 17px;

    background: var(--primary);

    color: white;

    font-size: 16px;

    font-weight: 800;

    box-shadow:
        0 12px 28px rgba(0,113,227,.24);

}


.compare-action:disabled {

    background: #dbeafe;

    color: #93c5fd;

    box-shadow: none;

    cursor: not-allowed;

}


.compare-help {

    text-align: center;

    font-size: 12px;

    color: var(--text-muted);

    margin-top: 11px;

}


/* =========================================================
   QUICK SEARCH
========================================================= */

.quick-search {

    max-width: 600px;

    margin: 26px auto 0;

    height: 52px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 15px;

    display: flex;

    align-items: center;

    padding: 0 16px;

    gap: 10px;

    box-shadow: var(--shadow-sm);

}


.quick-search input {

    flex: 1;

    border: 0;

    outline: 0;

    font-size: 13px;

}


/* =========================================================
   TRUST
========================================================= */

.trust-bar {

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);

    background: white;

}


.trust-grid {

    min-height: 82px;

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    align-items: center;

}


.trust-item {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    color: var(--text-muted);

    font-size: 13px;

    border-left:
        1px solid var(--border);

}


.trust-item:last-child {

    border-left: 0;

}


.trust-icon {

    width: 36px;

    height: 36px;

    border-radius: 10px;

    display: grid;

    place-items: center;

    background: var(--primary-soft);

    color: var(--primary);

}


/* =========================================================
   DISCOVER CATEGORIES
========================================================= */

.discover-section {

    background: var(--bg-soft);

}


.discover-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 14px;

}


.discover-card {

    min-height: 145px;

    border:
        1px solid var(--border);

    border-radius: 20px;

    background: white;

    padding: 21px;

    position: relative;

    overflow: hidden;

    transition: .25s;

}


.discover-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow-md);

    border-color:
        rgba(0,113,227,.22);

}


.discover-icon {

    width: 45px;

    height: 45px;

    border-radius: 14px;

    display: grid;

    place-items: center;

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 20px;

    margin-bottom: 15px;

}


.discover-card h3 {

    font-size: 15px;

    margin-bottom: 4px;

}


.discover-card p {

    color: var(--text-muted);

    font-size: 11px;

}


.discover-arrow {

    position: absolute;

    left: 18px;

    bottom: 18px;

    color: var(--primary);

    font-size: 18px;

}


/* =========================================================
   BRANDS
========================================================= */

.brands {

    display: grid;

    grid-template-columns:
        repeat(7,1fr);

    gap: 12px;

}


.brand-card {

    height: 92px;

    border:
        1px solid var(--border);

    border-radius: 17px;

    background: white;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    transition: .22s;

}


.brand-card:hover {

    border-color:
        rgba(0,113,227,.25);

    transform: translateY(-4px);

    box-shadow: var(--shadow-sm);

}


.brand-logo {

    font-weight: 800;

    font-size: 16px;

}


.brand-count {

    color: #9ca3af;

    font-size: 10px;

}


/* =========================================================
   PHONE CARDS
========================================================= */

.phone-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 17px;

}


.phone-card {

    position: relative;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 21px;

    padding: 18px;

    transition: .25s;

}


.phone-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow-md);

}


.phone-card-image {

    height: 190px;

    border-radius: 16px;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(0,113,227,.08),
            transparent 65%
        ),
        #f8fafc;

    display: grid;

    place-items: center;

    margin-bottom: 15px;

}


.mini-phone {

    width: 85px;

    height: 145px;

    border:
        3px solid #374151;

    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eef2f7
        );

    position: relative;

}


.mini-camera {

    position: absolute;

    width: 31px;

    height: 31px;

    border-radius: 10px;

    background: #1f2937;

    top: 12px;

    right: 9px;

}


.phone-card h3 {

    font-size: 15px;

    margin-bottom: 5px;

}


.phone-brand {

    color: var(--text-muted);

    font-size: 11px;

    margin-bottom: 13px;

}


.specs {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 14px;

}


.spec {

    background: var(--bg-soft);

    border-radius: 7px;

    padding: 4px 7px;

    font-size: 10px;

    color: #6b7280;

}


.card-compare {

    width: 100%;

    height: 40px;

    border-radius: 11px;

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

}


.card-compare:hover {

    background: var(--primary);

    color: white;

}


/* =========================================================
   STEPS
========================================================= */

.steps-section {

    background: #fbfdff;

}


.steps {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 18px;

}


.step {

    background: white;

    border:
        1px solid var(--border);

    border-radius: 22px;

    padding: 28px;

}


.step-number {

    width: 43px;

    height: 43px;

    border-radius: 13px;

    background: var(--primary);

    color: white;

    display: grid;

    place-items: center;

    font-weight: 800;

    margin-bottom: 20px;

}


.step h3 {

    font-size: 17px;

    margin-bottom: 7px;

}


.step p {

    color: var(--text-muted);

    font-size: 13px;

}


/* =========================================================
   POPULAR COMPARISONS
========================================================= */

/* =========================================================
   POPULAR COMPARISONS
========================================================= */

.comparisons {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

}


.comparison-card {

    border:
        1px solid var(--border);

    border-radius: 22px;

    padding: 22px;

    background: white;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

}


.comparison-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow-md);

    border-color:
        rgba(0,113,227,.20);

}


/* =========================================================
   TITLE
========================================================= */

.comparison-title {

    font-size: 14px;

    font-weight: 800;

    line-height: 1.8;

    margin-bottom: 22px;

    text-align: center;

    color: var(--text-main);

}


/* =========================================================
   VERSUS
========================================================= */

.versus {

    display: grid;

    grid-template-columns:
        1fr 40px 1fr;

    align-items: center;

    gap: 8px;

}


/* =========================================================
   PHONE
========================================================= */

.compare-phone {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    min-width: 0;

    color: var(--text-main);

}


.compare-phone-icon {

    width: 105px;

    height: 145px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 10px;

    background: transparent;

    border: 0;

    border-radius: 0;

    overflow: visible;

}


/*
 * خود عکس گوشی مستقیماً در همین DIV قرار می‌گیرد.
 * هیچ کادر، border یا شبیه‌سازی موبایل نداریم.
 */

.compare-phone-icon img {

    width: auto;

    height: 135px;

    max-width: 95px;

    object-fit: contain;

    display: block;

}


.compare-phone span {

    display: block;

    width: 100%;

    text-align: center;

    font-size: 11px;

    font-weight: 700;

    color: var(--text-main);

    line-height: 1.7;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/* =========================================================
   VS
========================================================= */

.versus-label {

    width: 34px;

    height: 34px;

    border-radius: 50%;

    background: var(--bg-soft);

    border:
        1px solid var(--border);

    color: var(--text-muted);

    display: grid;

    place-items: center;

    font-size: 9px;

    font-weight: 900;

}


/* =========================================================
   LINK
========================================================= */

.view-comparison {

    display: block;

    text-align: center;

    margin-top: 20px;

    padding-top: 15px;

    border-top:
        1px solid var(--border);

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    transition: .2s;

}


.view-comparison:hover {

    color: var(--primary-dark);

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .comparisons {

        grid-template-columns:
            1fr;

        gap: 12px;

    }


    .comparison-card {

        padding: 19px;

        border-radius: 19px;

    }


    .comparison-title {

        font-size: 13px;

        margin-bottom: 18px;

    }


    .compare-phone-icon {

        width: 90px;

        height: 125px;

    }


    .compare-phone-icon img {

        height: 118px;

        max-width: 82px;

    }


    .compare-phone span {

        font-size: 10px;

    }

}


@media (max-width: 400px) {

    .comparison-card {

        padding: 16px;

    }


    .versus {

        grid-template-columns:
            1fr 34px 1fr;

        gap: 5px;

    }


    .compare-phone-icon {

        width: 82px;

        height: 115px;

    }


    .compare-phone-icon img {

        height: 108px;

        max-width: 75px;

    }


    .versus-label {

        width: 30px;

        height: 30px;

        font-size: 8px;

    }

}

/* =========================================================
   CTA
========================================================= */

.cta {

    padding: 30px 0 90px;

}


.cta-box {

    background:
        linear-gradient(
            135deg,
            #0071e3,
            #005bb5
        );

    border-radius: 30px;

    padding: 50px;

    color: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


.cta h2 {

    font-size: 28px;

}


.cta p {

    color:
        rgba(255,255,255,.78);

    font-size: 14px;

}


.cta-button {

    background: white;

    color: var(--primary);

    padding: 14px 24px;

    border-radius: 13px;

    font-size: 13px;

    font-weight: 800;

}


/* =========================================================
   FOOTER
========================================================= */

footer {

    background: var(--bg-footer);

    border-top:
        1px solid var(--border);

}


.footer-main {

    padding: 55px 0 35px;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 40px;

}


.footer-brand p {

    max-width: 380px;

    color: var(--text-muted);

    font-size: 12px;

    margin-top: 14px;

}


.footer-column h4 {

    font-size: 13px;

    margin-bottom: 15px;

}


.footer-column a {

    display: block;

    color: var(--text-muted);

    font-size: 12px;

    margin-bottom: 9px;

}


.footer-bottom {

    border-top:
        1px solid var(--border);

    padding: 18px 0;

    color: #9ca3af;

    font-size: 11px;

    display: flex;

    justify-content: space-between;

}


/* =========================================================
   MODAL
========================================================= */

.modal {

    position: fixed;

    inset: 0;

    background:
        rgba(15,23,42,.45);

    backdrop-filter: blur(8px);

    z-index: 3000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

}


.modal.active {

    display: flex;

}


.modal-box {

    width:
        min(600px,100%);

    max-height: 85vh;

    overflow: auto;

    background: white;

    border-radius: 25px;

    padding: 25px;

    box-shadow:
        0 30px 100px rgba(0,0,0,.2);

}


.modal-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}


.modal-close {

    width: 36px;

    height: 36px;

    border-radius: 10px;

    background: var(--bg-soft);

    font-size: 18px;

}


.modal-search {

    width: 100%;

    height: 48px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    padding: 0 14px;

    outline: none;

    font-size: 13px;

    margin-bottom: 15px;

}


.phone-results {

    display: grid;

    gap: 8px;

}


.phone-result {

    width: 100%;

    min-height: 62px;

    padding: 10px 12px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background: white;

    display: flex;

    align-items: center;

    gap: 12px;

    text-align: right;

}


.result-image {

    width: 42px;

    height: 52px;

    border:
        2px solid #cbd5e1;

    border-radius: 9px;

    background: #f8fafc;

}


.result-name {

    font-size: 12px;

    font-weight: 700;

}


.result-brand {

    font-size: 10px;

    color: var(--text-muted);

}


/* =========================================================
   FLOATING COMPARISON BAR
========================================================= */

.floating-compare {

    position: fixed;

    left: 50%;

    bottom: 18px;

    transform:
        translate(-50%,120px);

    width:
        min(760px,calc(100% - 28px));

    background:
        rgba(255,255,255,.96);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border:
        1px solid rgba(229,231,235,.9);

    border-radius: 22px;

    padding: 10px;

    box-shadow:
        0 20px 70px rgba(15,23,42,.18);

    z-index: 2500;

    opacity: 0;

    visibility: hidden;

    transition: .3s;

}


.floating-compare.active {

    transform:
        translate(-50%,0);

    opacity: 1;

    visibility: visible;

}


.floating-inner {

    display: grid;

    grid-template-columns:
        1fr 1fr auto;

    gap: 10px;

    align-items: center;

}


.compare-slot {

    min-height: 66px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background: #fbfdff;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 8px 10px;

    position: relative;

}


.compare-slot.empty {

    justify-content: center;

    border-style: dashed;

    color: #9ca3af;

    font-size: 11px;

}


.slot-phone-image {

    width: 42px;

    height: 52px;

    border:
        2px solid #cbd5e1;

    border-radius: 9px;

    background: #f8fafc;

    flex-shrink: 0;

}


.slot-info {

    min-width: 0;

    flex: 1;

}


.slot-label {

    color: #9ca3af;

    font-size: 9px;

}


.slot-name {

    font-size: 11px;

    font-weight: 800;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


.slot-remove {

    width: 27px;

    height: 27px;

    border-radius: 8px;

    background: #f1f5f9;

    color: #94a3b8;

    flex-shrink: 0;

}


.slot-remove:hover {

    background: #fee2e2;

    color: var(--danger);

}


.floating-vs {

    display: none;

}


.floating-action {

    height: 52px;

    padding: 0 20px;

    border-radius: 13px;

    background: var(--primary);

    color: white;

    font-size: 12px;

    font-weight: 800;

    white-space: nowrap;

}


.floating-action:disabled {

    background: #dbeafe;

    color: #93c5fd;

    cursor: not-allowed;

}


/* =========================================================
   TOAST
========================================================= */

.toast {

    position: fixed;

    top: 90px;

    left: 50%;

    transform:
        translate(-50%,-20px);

    background:
        #1f2937;

    color: white;

    padding: 10px 18px;

    border-radius: 12px;

    font-size: 12px;

    z-index: 5000;

    opacity: 0;

    visibility: hidden;

    transition: .25s;

}


.toast.active {

    opacity: 1;

    visibility: visible;

    transform:
        translate(-50%,0);

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .nav-links {

        display: none;

    }

    .mobile-menu-button {

        display: block;

    }

    .nav-search {

        margin-right: auto;

        width: 220px;

    }

    .brands {

        grid-template-columns:
            repeat(4,1fr);

    }

    .phone-grid {

        grid-template-columns:
            repeat(2,1fr);

    }

    .discover-grid {

        grid-template-columns:
            repeat(2,1fr);

    }

}


@media (max-width: 700px) {

    .container {
        width: min(
            100% - 28px,
            var(--container)
        );
    }

    .section {
        padding: 60px 0;
    }

    .nav {
        height: 64px;
        position: relative;
        justify-content: space-between;
    }

    .logo {
        font-size: 17px;
        flex-shrink: 0;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    /* سرچ وسط هدر موبایل */
    .nav-search {
		display: flex;
		position: absolute;

		left: 50%;
		transform: translateX(-50%);

		width: min(210px, 42vw);
		height: 40px;

		margin: 0;
		padding: 0 11px;

		gap: 6px;

		z-index: 2;
	}

    .nav-search input {
        width: 100%;
        min-width: 0;
        font-size: 12px;
    }

    .nav-search span {
        font-size: 18px;
        flex-shrink: 0;
    }

    .hero {
        padding: 50px 0 65px;
    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: -.8px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .compare-box {
        padding: 10px;
        border-radius: 22px;
    }

    .compare-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .phone-selector {
        min-height: 205px;
        padding: 18px;
    }

    .phone-icon {
        width: 70px;
        height: 105px;
        border-radius: 15px;
        margin-bottom: 10px;
    }

    .selector-title {
        font-size: 15px;
    }

    .vs {
        height: 38px;
    }

    .vs-circle {
        width: 42px;
        height: 42px;
        font-size: 11px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        padding: 15px 0;
        gap: 14px;
    }

    .trust-item {
        border-left: 0;
        justify-content: flex-start;
    }

    .discover-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 10px;
    }

    .discover-card {
        min-height: 130px;
        padding: 15px;
    }

    .discover-card h3 {
        font-size: 13px;
    }

    .brands {
        grid-template-columns: repeat(3,1fr);
    }

    .brand-card {
        height: 75px;
    }

    .phone-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .phone-card {
        padding: 11px;
        border-radius: 16px;
    }

    .phone-card-image {
        height: 150px;
    }

    .mini-phone {
        width: 63px;
        height: 108px;
    }

    .phone-card h3 {
        font-size: 12px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .comparisons {
        grid-template-columns: 1fr;
    }

    .section-header {
        align-items: flex-start;
    }

    .section-title {
        font-size: 24px;
    }

    .cta-box {
        padding: 32px 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .floating-compare {
        bottom: 10px;
        width: calc(100% - 16px);
        padding: 8px;
        border-radius: 18px;
    }

    .floating-inner {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .floating-action {
        grid-column: 1 / -1;
        height: 46px;
        width: 100%;
    }

    .compare-slot {
        min-height: 57px;
        padding: 6px;
    }

    .slot-phone-image {
        width: 35px;
        height: 44px;
    }

    .slot-name {
        font-size: 9px;
    }
}

@media (max-width: 400px) {

    .nav-search {
        width: 46vw;
        height: 38px;
        padding: 0 9px;
    }

    .nav-search input {
        font-size: 11px;
    }

    .nav-search span {
        font-size: 16px;
    }

    .phone-grid {
        grid-template-columns: 1fr;
    }

    .brands {
        grid-template-columns: repeat(2,1fr);
    }

    .hero h1 {
        font-size: 29px;
    }
}
@media (max-width: 400px) {

    .phone-grid {

        grid-template-columns: 1fr;

    }


    .brands {

        grid-template-columns:
            repeat(2,1fr);

    }


    .hero h1 {

        font-size: 29px;

    }

}