/* ممانعت از سلکت متن و کشیدن تصاویر جهت حس اپلیکیشن بومی موبایل */
html, body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input, textarea, [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

.card-title, .card-subtitle, .kf-chat-text, .details-content, .guide-content, article, p {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

img, picture, svg, canvas {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
    -webkit-touch-callout: none;
}

/* ==================== لود فونت‌های محلی اختصاصی ==================== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/RFVregular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/RFVbold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/RFVextraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/RFVblack.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}


html {
    overscroll-behavior-y: auto;
}

body {
    background-color: #f7f9fb;
    color: #333;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    overscroll-behavior-y: auto;
}

.app-container {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}

/* ==================== HEADER ==================== */
.header {
    background-color: #85a1b9;
    min-height: auto;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none;
    overflow: hidden;
    padding-top: 19px;
    padding-bottom: 0;
    transition: padding-bottom 0.18s ease;
}

/* وقتی فیلترها باز هستند، زیر دایره کینگ‌فاکس بدون هیچ خطی با فاصله کمتر و متوازن قرار می‌گیرد */
.header.is-filters-open,
.header:has(+ .controls-section:not(.is-collapsed)) {
    padding-bottom: 11px;
}

.stars-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: block;
}

.avatar-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    margin-top: 0;
    margin-bottom: 0;
}

.avatar-circle {
    width: 156px;
    height: 156px;
    border-radius: 50%;
    border: 1px solid #c1d0db;
    background-color: transparent;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.28s ease, border-color 0.28s ease;
    animation: none !important;
}

.avatar-circle::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, box-shadow 0.28s ease;
    animation: none !important;
}

.avatar-circle:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.avatar-circle:active {
    transform: scale(0.96);
}

/* افکت سایه هوشمند دایره کینگ‌فاکس هنگام انتخاب فیلتر یا دسته‌بندی (#e9eff3) */
.avatar-circle.has-filter-active {
    border-color: #e9eff3 !important;
    box-shadow: 0 0 0 2.5px rgba(233, 239, 243, 0.9), 0 0 24px rgba(233, 239, 243, 0.85), 0 0 42px rgba(233, 239, 243, 0.6) !important;
}

.avatar-circle.has-filter-active::after {
    box-shadow: 0 0 18px rgba(233, 239, 243, 0.7);
    opacity: 0.7;
}

.avatar-circle.has-filter-active:hover {
    transform: scale(1.04);
    box-shadow: 0 0 0 3.5px #e9eff3, 0 0 30px rgba(233, 239, 243, 0.95), 0 0 52px rgba(233, 239, 243, 0.7) !important;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important;
    animation: none !important;
}

.king-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* متن تعداد فیلتر فعال (منحصراً متن سفید، سایز شکیل و خوانا، هم در حالت باز و هم بسته) */
.fox-filter-status-text {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 11px;
    margin-bottom: 2px;
    text-align: center;
    user-select: none;
    pointer-events: none;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    z-index: 3;
    display: block !important;
    max-width: 92vw;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
}

/* ================= گرید ۲ ستونه ۱۰ گزینه‌ای راهنمای خرید در تمام دیوایس‌ها ================= */
.guide-options-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 840px;
    margin: 14px auto 26px auto;
    padding: 0 4px !important;
    box-sizing: border-box;
}

.guide-option-card {
    background: #ffffff;
    border: 1.5px solid #dce8f2;
    border-radius: 18px;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(10, 45, 75, 0.06);
    transition: transform 0.24s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.24s ease, border-color 0.24s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.guide-option-card:hover {
    transform: translateY(-4px);
    border-color: #0087be;
    box-shadow: 0 10px 28px rgba(0, 135, 190, 0.18);
}

.guide-option-card:active {
    transform: scale(0.98);
}

.guide-card-thumb-wrap {
    width: 100%;
    aspect-ratio: 501 / 350;
    background: #f0f7fb;
    border-bottom: 1.5px solid #e2edf5;
    overflow: hidden;
    position: relative;
    display: block;
}

.guide-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.guide-option-card:hover .guide-card-thumb-img {
    transform: scale(1.05);
}

.guide-card-content {
    padding: 14px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex-grow: 1;
    justify-content: space-between;
}

.guide-card-title {
    font-size: 14px;
    font-weight: 900;
    color: #174261;
    margin: 0;
    line-height: 1.45;
    text-align: center;
}

.guide-card-age {
    display: inline-block;
    background: #eef6fb;
    color: #0087be;
    font-size: 15px;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1.5px solid #d3e7f4;
    line-height: 1.3;
}

.guide-card-btn-hint {
    margin-top: 4px;
    font-size: 11.5px;
    color: #0087be;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    padding: 5px 14px;
    border-radius: 12px;
    transition: all 0.22s ease;
}

.guide-option-card:hover .guide-card-btn-hint {
    background: #0087be;
    color: #ffffff;
    border-color: #0087be;
}

/* کارت‌های اختصاصی دخترانه و زنانه: صورتی جیغ (Hot Pink) */
.guide-card-female:hover {
    border-color: #ff007f !important;
    box-shadow: 0 10px 28px rgba(255, 0, 127, 0.22) !important;
}

.guide-card-female .guide-card-age {
    background: #fff0f6 !important;
    color: #ff007f !important;
    border: 1.5px solid #ffb3d9 !important;
}

.guide-card-female .guide-card-btn-hint {
    background: #fff0f6 !important;
    color: #ff007f !important;
    border: 1px solid #ffb3d9 !important;
}

.guide-card-female:hover .guide-card-btn-hint {
    background: #ff007f !important;
    color: #ffffff !important;
    border-color: #ff007f !important;
}

.guide-modal-footer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 14px auto 12px auto !important;
    padding: 10px 20px 14px !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
}

.guide-modal-back-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0087be;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 850;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 135, 190, 0.28);
    transition: all 0.22s ease;
}

.guide-modal-back-home-btn:hover {
    background: #0073a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 135, 190, 0.4);
}

@media (max-width: 480px) {
    .guide-options-grid {
        gap: 8px !important;
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 !important;
        margin: 10px 0 20px 0 !important;
    }
    .guide-option-card {
        border-radius: 14px;
    }
    .guide-card-content {
        padding: 10px 6px 12px;
        gap: 5px;
    }
    .guide-card-title {
        font-size: 12px;
        line-height: 1.35;
    }
    .guide-card-age {
        font-size: 13.5px !important;
        font-weight: 900 !important;
        padding: 3px 10px !important;
    }
    .guide-card-btn-hint {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* ================= GAME TUTORIAL TAP HAND ANIMATION (از کد الگو) ================= */
.tutorial-tap-container {
    position: absolute;
    top: 50px;
    left: calc(50% + 5px);
    width: 74px;
    height: 74px;
    pointer-events: auto;
    cursor: pointer;
    z-index: 25;
    display: block !important;
    opacity: 1 !important;
    transition: opacity 0.2s ease;
}

/* نمایش انیمیشن دست هم در حالت بسته بودن و هم در حالت باز بودن فیلترها */
.tutorial-tap-container.is-visible {
    display: block !important;
    opacity: 1 !important;
}

/* Keyframes for the clicking hand animation cycle:
   1) Hand fades in & floats down to KingFox circle
   2) Taps 3 times (press down + scale down slightly) and remains visible for 5 seconds total
   3) Fades out at 5.0s (50% of 10s)
   4) Remains invisible for exactly 5 seconds pause (from 50.1% to 100%)
   5) Repeats every 5 seconds (10s total cycle)
*/
@keyframes handClickGuide {
    0% {
        opacity: 0;
        transform: translate(25px, 25px) scale(0.9) rotate(-4deg);
    }
    4% {
        opacity: 1;
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    /* Click 1 */
    11% {
        transform: translate(-5px, -5px) scale(0.87) rotate(-3deg);
    }
    15% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    /* Click 2 */
    22% {
        transform: translate(-5px, -5px) scale(0.87) rotate(-3deg);
    }
    26% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    /* Click 3 */
    33% {
        transform: translate(-6px, -6px) scale(0.86) rotate(-4deg);
    }
    37% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    /* Visible until 45% (4.5s) */
    45% {
        opacity: 1;
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    /* Fade out at 50% (5.0s) */
    50% {
        opacity: 0;
        transform: translate(16px, 16px) scale(0.92) rotate(4deg);
    }
    /* 5 seconds pause (from 50.1% to 100%) */
    50.1%, 100% {
        opacity: 0;
        transform: translate(25px, 25px) scale(0.9);
    }
}

.tap-hand-icon {
    width: 100%;
    height: 100%;
    animation: handClickGuide 10s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    will-change: transform, opacity;
    pointer-events: none;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
}

@keyframes handRaysPulse {
    0%, 8% {
        opacity: 0;
        transform: scale(0.5);
    }
    11% {
        opacity: 1;
        transform: scale(1.15);
    }
    14% {
        opacity: 0;
        transform: scale(0.5);
    }
    19% {
        opacity: 0;
        transform: scale(0.5);
    }
    22% {
        opacity: 1;
        transform: scale(1.15);
    }
    25% {
        opacity: 0;
        transform: scale(0.5);
    }
    30% {
        opacity: 0;
        transform: scale(0.5);
    }
    33% {
        opacity: 1;
        transform: scale(1.15);
    }
    36%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.hand-rays {
    transform-origin: 85px 52px;
    animation: handRaysPulse 10s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    will-change: transform, opacity;
}

/* امواج همگام با ۳ بار کلیک */
.tap-ripple-ring {
    position: absolute;
    top: 13px;
    left: 21px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.2px solid #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 16px rgba(0, 180, 255, 0.7);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.2);
    animation: tapRippleRings 10s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
    will-change: transform, opacity;
}

@keyframes tapRippleRings {
    0%, 8% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
    11% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(0.5);
    }
    15% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.8);
    }
    19% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
    22% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(0.5);
    }
    26% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.8);
    }
    30% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
    33% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(0.5);
    }
    37% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.8);
    }
    40%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
}

/* ================= DIVIDER & TAGLINE (تنها و منحصراً در حالت بسته بودن فیلترها) ================= */
.fox-collapsed-divider-wrap {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 19px;
    margin-bottom: 0;
    z-index: 5;
    cursor: pointer;
    user-select: none;
}

.fox-collapsed-divider-wrap.is-visible {
    display: flex !important;
}

/* خط کامل تا انتها با رنگ c1d0db (ضخامت دقیقاً ۲ پیکسل هم‌اندازه بوردر دایره کینگ‌فاکس) */
.fox-full-divider-line {
    width: 100%;
    height: 2px;
    background-color: #c1d0db;
    opacity: 1;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* نوار رنگی کینگ‌فاکس دستیار هوشمند با فواصل کاملاً برابر در بالا و پایین متن */
.fox-collapsed-tagline-strip {
    width: 100%;
    height: auto;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #85a1b9;
    padding: 9px 18px;
    box-sizing: border-box;
}

.fox-collapsed-tagline {
    margin: 0;
    padding: 0;
    font-size: 16.6px;
    font-weight: 800 !important;
    color: #ffffff;
    -webkit-text-stroke: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.25;
    white-space: nowrap;
    transform: none;
}

@media (max-width: 480px) {
    .header {
        padding-top: 15px;
    }
    .header.is-filters-open,
    .header:has(+ .controls-section:not(.is-collapsed)) {
        padding-bottom: 8px;
    }
    .fox-collapsed-divider-wrap {
        margin-top: 15px;
    }
    .fox-collapsed-tagline-strip {
        min-height: 38px;
        padding: 7px 12px;
    }
    .fox-collapsed-tagline {
        font-size: 14.4px;
        font-weight: 800 !important;
        letter-spacing: 0.2px;
        line-height: 1.25;
        transform: none;
        -webkit-text-stroke: 0;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    }
    .king-badge {
        display: none !important;
        visibility: hidden !important;
    }
}

.header-guide-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 53px;
    height: 53px;
    min-width: 53px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    user-select: none;
    padding: 0;
}

.header-guide-btn .guide-btn-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10.5px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 3px rgba(10, 40, 65, 0.55);
}

.header-guide-btn .guide-btn-text span {
    display: block;
    text-align: center;
}

.header-guide-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #166597;
    border-color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.header-guide-btn:hover .guide-btn-text {
    color: #166597;
    text-shadow: none;
}

.header-guide-btn:active {
    transform: scale(0.94);
}

.header-discount-btn {
    position: absolute;
    top: 73px;
    right: 12px;
    width: 53px;
    height: 53px;
    min-width: 53px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    user-select: none;
    padding: 0;
}

.header-discount-btn .discount-btn-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10.5px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 3px rgba(10, 40, 65, 0.55);
}

.header-discount-btn .discount-btn-text span {
    display: block;
    text-align: center;
}

.header-discount-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #e83a59;
    border-color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(232, 58, 89, 0.25);
}

.header-discount-btn:hover .discount-btn-text {
    color: #e83a59;
    text-shadow: none;
}

.header-discount-btn:active {
    transform: scale(0.94);
}

/* ==================== FOX SPEECH BUBBLE ==================== */
.fox-speech-bubble {
    position: absolute;
    left: 10px;
    top: 10px;
    right: auto;
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    height: 75px;
    min-height: 75px;
    max-height: 75px;
    background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18) 65%, rgba(230, 245, 255, 0.28) 100%) !important;
    backdrop-filter: blur(16px) saturate(190%);
    -webkit-backdrop-filter: blur(16px) saturate(190%);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 7px 11px 7px 11px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2px;
    text-decoration: none;
    cursor: pointer;
    z-index: 25;
    box-shadow: 0 8px 24px rgba(10, 45, 75, 0.18), 0 0 18px rgba(239, 57, 78, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.95), inset 0 -2px 5px rgba(15, 60, 95, 0.15);
    animation: bubbleFloatWobble 4s ease-in-out infinite, foxBubbleEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
    user-select: none;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    transform-origin: center center;
}

.fox-speech-bubble::before {
    content: '';
    position: absolute;
    top: 2.5px;
    left: 12px;
    right: 12px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 18px 18px 6px 6px;
    pointer-events: none;
    z-index: 1;
}

.fox-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 22px;
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 6px 6px 0 -1.5px rgba(255, 255, 255, 0.8), 0 2px 5px rgba(10, 45, 75, 0.15);
    pointer-events: none;
    z-index: 30;
}

.fox-speech-bubble:hover {
    transform: translateY(-4px) scale(1.04);
    animation-play-state: paused;
    background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.26) 65%, rgba(230, 245, 255, 0.36) 100%) !important;
    border-color: #ffffff;
    box-shadow: 0 12px 32px rgba(10, 45, 75, 0.26), 0 0 26px rgba(239, 57, 78, 0.55), inset 0 2px 6px rgba(255, 255, 255, 1);
}

@keyframes bubbleFloatWobble {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-5px) rotate(-2deg) scale(1.015); }
    50% { transform: translateY(1.5px) rotate(1deg) scale(0.99); }
    75% { transform: translateY(-3.5px) rotate(2.2deg) scale(1.02); }
}

@keyframes foxBubbleEntrance {
    from { opacity: 0; transform: translateY(-10px) scale(0.85); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.fox-bubble-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.fox-bubble-badge {
    background: linear-gradient(135deg, #ef394e, #c7152b);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(239, 57, 78, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 145px;
}

.fox-bubble-body {
    width: 100%;
    position: relative;
    z-index: 2;
}

.fox-bubble-text {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.35;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(10, 35, 60, 0.55), 0 0 6px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s ease;
}

.fox-bubble-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 1px;
    position: relative;
    z-index: 2;
}

.fox-bubble-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    color: #ef394e;
    font-size: 10px;
    font-weight: 900;
    padding: 2.5px 8px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
    transition: all 0.2s ease;
}

.fox-speech-bubble:hover .fox-bubble-cta {
    background: #ef394e;
    color: #ffffff;
    transform: translateX(-2px);
    box-shadow: 0 3px 8px rgba(239, 57, 78, 0.45);
}

/* استایل اختصاصی حالت حباب متنی ساده روباه سخنگو */
.fox-speech-bubble.fox-bubble-text-mode {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
}

.fox-speech-bubble.fox-bubble-text-mode:hover {
    transform: translateY(-2px) scale(1.02) !important;
}

.fox-bubble-pure-text {
    color: #ffffff !important;
    font-size: 11.5px;
    font-weight: 950 !important;
    line-height: 1.42;
    text-align: center;
    width: 100%;
    margin: 0;
    -webkit-text-stroke: 0.55px rgba(0, 0, 0, 0.95);
    paint-order: stroke fill;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 3px rgba(0, 0, 0, 0.6) !important;
    word-break: break-word;
    user-select: none;
    pointer-events: auto;
    z-index: 2;
}

/* ==================== CONTROLS SECTION ==================== */
.controls-section {
    background-color: #85a1b9;
    padding: 3px 16px 10px 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid #7592aa;
    position: relative;
    overflow: hidden;
    transition: padding 0.3s ease;
}

.controls-section .stars-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* بدنه تاشونده و انیمیشن روان باز و بسته شدن فیلترها (بسیار سریع و بدون دیلی) */
.controls-collapsible-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 440px;
    opacity: 1;
    visibility: visible;
    overflow: visible;
    transition: max-height 0.15s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.12s ease-out;
    transition-delay: 0s !important;
    will-change: max-height, opacity;
}

.controls-section.is-collapsed {
    display: none !important;
}

.controls-section.is-collapsed .controls-collapsible-body {
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: max-height 0.14s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.1s ease-in !important;
    transition-delay: 0s !important;
}

/* نوار خلاصه فیلترهای فعال در حالت بسته */
.controls-toggle-bar {
    width: 100%;
    max-width: 792px;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    margin-top: 4px;
    padding: 2px 0;
    transition: all 0.15s ease;
}

.controls-section.is-collapsed .controls-toggle-bar {
    display: flex;
    justify-content: center;
    margin-top: 0;
    cursor: pointer;
}

.controls-collapsed-summary {
    display: none;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.controls-section.is-collapsed .controls-collapsed-summary {
    display: flex;
}

.collapsed-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0.95;
    flex-shrink: 0;
}

.collapsed-summary-label {
    font-size: 11.5px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.collapsed-chips-list {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
    max-width: 100%;
}

.collapsed-chips-list::-webkit-scrollbar {
    display: none;
}

.collapsed-filter-chip {
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.1px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    line-height: 1.35;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.collapsed-filter-chip.chip-all {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
}



@media (max-width: 480px) {
    .controls-toggle-bar {
        padding: 2px 2px;
    }
    .controls-toggle-btn {
        font-size: 10.5px;
        padding: 4px 10px;
        gap: 4px;
    }
    .collapsed-summary-label {
        font-size: 10.5px;
    }
    .collapsed-filter-chip {
        font-size: 10px;
        padding: 2px 6px;
    }
}

.controls-inner {
    width: 100%;
    max-width: 792px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    position: relative;
    z-index: 2;
}

.box-btn {
    border: 1.2px solid rgba(255, 255, 255, 0.45);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.box-btn:active {
    transform: scale(0.98);
}

.gender-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    height: 68px;
    width: 100%;
}

.gender-btn {
    width: 100%;
    height: 68px;
    min-width: 0;
    max-width: 100%;
    background: transparent !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.2px solid rgba(255, 255, 255, 0.45);
    border-radius: 7px;
    padding: 2px 4px 0 4px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    box-shadow: none;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.gender-btn:hover {
    transform: translateY(-2px);
}

.gender-avatars-group {
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: flex-end;
    justify-content: space-around;
    gap: 2px;
    width: 100%;
    height: 100%;
    padding: 0 2px;
    pointer-events: none;
}

.gender-avatar-item {
    width: 53px;
    height: 53px;
    max-width: 33%;
    max-height: 56px;
    object-fit: contain;
    display: block;
    align-self: flex-end;
    margin-bottom: 0;
}

.gender-btn:not(.active) {
    opacity: 0.96 !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: none !important;
}

.gender-btn.active {
    opacity: 1 !important;
    background: transparent !important;
    border: 2.2px solid #ffffff !important;
    box-shadow: 0 0 13px rgba(255, 255, 255, 0.6), 0 0 6px rgba(255, 255, 255, 0.7), inset 0 0 6px rgba(255, 255, 255, 0.25), 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

#femaleBtn.active {
    border: 2.2px solid #FFFFFF !important;
}

.price-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    height: 48px;
    width: 100%;
}

.price-btn {
    width: 100%;
    height: 100%;
    background: transparent !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    padding: 2px 4px;
    position: relative;
    box-sizing: border-box;
    box-shadow: none;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    opacity: 0.96 !important;
    text-decoration: none;
}

.price-btn-main {
    font-size: 15px;
    font-weight: 850 !important;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    letter-spacing: -0.2px;
    text-align: center;
    line-height: 1.15;
}

.price-btn-sub {
    font-size: 11.5px;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    letter-spacing: -0.2px;
    text-align: center;
    line-height: 1.1;
}

.price-btn-text {
    font-size: 13.5px;
    font-weight: 800 !important;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    letter-spacing: -0.2px;
    text-align: center;
}

.price-sep {
    display: inline-block;
    margin: 0 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0.8;
    vertical-align: middle;
}

.price-btn-icon {
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-btn.active {
    opacity: 1 !important;
    background: transparent !important;
    border: 2px solid #FDF4D2 !important;
    box-shadow: 0 0 13px rgba(253, 244, 210, 0.75), 0 0 6px rgba(253, 244, 210, 0.9), inset 0 0 6px rgba(253, 244, 210, 0.35), 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    z-index: 2;
}

.age-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    height: 44px;
    width: 100%;
}

.age-btn {
    width: 100%;
    height: 100%;
    background: transparent !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 4px;
    position: relative;
    box-sizing: border-box;
    box-shadow: none;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    opacity: 0.96 !important;
}

.age-btn:hover {
    opacity: 1 !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-1.5px);
}

.age-btn.active {
    opacity: 1 !important;
    background: transparent !important;
    border: 2px solid #DAF5FF !important;
    box-shadow: 0 0 13px rgba(218, 245, 255, 0.75), 0 0 6px rgba(218, 245, 255, 0.9), inset 0 0 6px rgba(218, 245, 255, 0.35), 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    z-index: 2;
}

.age-btn-text {
    font-size: 14px;
    font-weight: 900 !important;
    color: #ffffff;
    -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    letter-spacing: 0.2px;
    text-align: center;
}

@media (max-width: 560px) {
    .age-row {
        grid-template-columns: repeat(5, 1fr) !important;
        height: 38px !important;
        gap: 5px !important;
    }
    .age-btn {
        height: 38px !important;
        padding: 0 2px !important;
        border-radius: 7px !important;
    }
    .age-btn-text {
        font-size: 11.5px !important;
        font-weight: 900 !important;
        -webkit-text-stroke: 0.28px rgba(255, 255, 255, 0.8);
        letter-spacing: -0.3px !important;
        white-space: nowrap !important;
    }
    .price-row {
        height: 44px;
        gap: 6px;
    }
    .price-btn-main {
        font-size: 13.8px;
        letter-spacing: -0.2px;
    }
    .price-btn-sub {
        font-size: 10.2px;
        letter-spacing: -0.2px;
    }
    .price-btn-text {
        font-size: 11.5px;
        letter-spacing: -0.4px;
    }
}

@media (max-width: 370px) {
    .age-row {
        gap: 3.5px !important;
        height: 36px !important;
    }
    .age-btn {
        height: 36px !important;
        padding: 0 1px !important;
        border-radius: 6px !important;
    }
    .age-btn-text {
        font-size: 10.5px !important;
        font-weight: 900 !important;
        -webkit-text-stroke: 0.22px rgba(255, 255, 255, 0.8);
        letter-spacing: -0.4px !important;
    }
}

@media (max-width: 380px) {
    .price-row {
        gap: 4px;
        height: 40px;
    }
    .price-btn {
        padding: 0 1px;
    }
    .price-btn-main {
        font-size: 12px;
        letter-spacing: -0.3px;
    }
    .price-btn-sub {
        font-size: 9.2px;
        letter-spacing: -0.3px;
    }
    .price-btn-text {
        font-size: 10px;
        letter-spacing: -0.5px;
    }
}

/* ==================== کشوی فیلتر دسته‌بندی ==================== */
.category-drawer {
    max-height: 215px;
    opacity: 1;
    overflow: hidden;
    padding: 6px 0 5px 0;
    margin-top: 5px;
    width: 100%;
    touch-action: pan-x pan-y;
    overscroll-behavior-y: auto;
    overscroll-behavior: auto;
}

.category-carousel-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    touch-action: pan-x pan-y;
    overscroll-behavior-y: auto;
    overscroll-behavior: auto;
}

.cat-carousel-track {
    display: flex;
    align-items: stretch;
    gap: 9px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch !important;
    width: 100%;
    touch-action: pan-x pan-y pinch-zoom !important;
    overscroll-behavior-x: auto !important;
    overscroll-behavior-y: auto !important;
    overscroll-behavior: auto !important;
    scroll-behavior: auto !important;
    transform: translateZ(0);
    will-change: scroll-position;
    user-select: none;
    -webkit-user-select: none;
}

.cat-carousel-track::-webkit-scrollbar {
    display: none;
}

.cat-card {
    flex: 0 0 98px;
    width: 98px;
    min-width: 98px;
    height: 95px;
    background: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    padding: 4.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none !important;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x pan-y !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, opacity 0.22s ease;
    box-shadow: 0 3px 12px rgba(10, 45, 75, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    contain: layout style paint;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.cat-card:focus,
.cat-card:focus-visible {
    outline: none !important;
}

.cat-card::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 65%;
    height: 220%;
    background: linear-gradient(
        105deg,
        rgba(233, 239, 243, 0) 0%,
        rgba(233, 239, 243, 0.32) 30%,
        #e9eff3 50%,
        rgba(233, 239, 243, 0.56) 70%,
        rgba(233, 239, 243, 0) 100%
    );
    transform: translateX(-160%) rotate(25deg);
    pointer-events: none;
    opacity: 0;
    z-index: 5;
    will-change: transform, opacity;
}

/* فقط روی کامپیوتر/دسکتاپ با ماوس واقعی افکت hover اعمال شود تا روی تاچ موبایل خط حاشیه نچسبد */
@media (hover: hover) and (pointer: fine) {
    .cat-card:hover:not(.is-disabled) {
        transform: translateY(-2.5px);
        box-shadow: 0 6px 16px rgba(10, 45, 75, 0.16);
        opacity: 1 !important;
    }
    .cat-card:not(.active):hover:not(.is-disabled) {
        border-color: var(--cat-color, #0087be) !important;
    }
}

.cat-card:not(.active):not(.is-disabled) {
    opacity: 0.80 !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
}

.cat-card.active {
    background: #dff3ff !important;
    border: 2px solid var(--cat-color, #0087be) !important;
    box-shadow: 0 4px 14px rgba(10, 45, 75, 0.2);
    transform: translateY(-1.5px);
    opacity: 1 !important;
}

.cat-card.is-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

@keyframes magicLightBeam {
    0% {
        transform: translateX(-160%) rotate(25deg);
        opacity: 0;
    }
    25% {
        opacity: 0.60;
    }
    75% {
        opacity: 0.60;
    }
    100% {
        transform: translateX(360%) rotate(25deg);
        opacity: 0;
    }
}

@keyframes magicCardAura {
    0% {
        transform: scale(0.98);
        opacity: 0.9;
    }
    45% {
        transform: scale(1.03) translateY(-1px);
        opacity: 1;
        background-color: #f1f5f9 !important;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.cat-card.cat-pop-animate {
    animation: magicCardAura 0.58s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cat-card.cat-pop-animate::after {
    animation: magicLightBeam 0.58s ease-out;
}

.cat-card-count {
    font-size: 11px;
    font-weight: 800;
    color: var(--cat-color, #0087be);
    line-height: 1;
    transition: transform 0.2s ease;
}

.cat-card-img-wrap {
    width: 47px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 1px 0;
    pointer-events: none;
}

.cat-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.cat-card-title {
    font-size: 9.8px;
    font-weight: 800;
    color: var(--cat-color, #0087be);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cat-card[data-category="همه"] { --cat-color: #005b8e; }
.cat-card[data-category="تکنولوژی"] { --cat-color: #744f00; }
.cat-card[data-category="حیوانات_خانگی"] { --cat-color: #0a5a4f; }
.cat-card[data-category="خودرو_موتورسیکلت"] { --cat-color: #163252; }
.cat-card[data-category="ابزارآلات_تجهیزات"] { --cat-color: #75341f; }
.cat-card[data-category="مد_پوشاک_اکسسوری"] { --cat-color: #4b187a; }
.cat-card[data-category="مادر_کودک"] { --cat-color: #7a2434; }
.cat-card[data-category="ورزش"] { --cat-color: #850d20; }
.cat-card[data-category="فرهنگ_هنر"] { --cat-color: #055c5c; }
.cat-card[data-category="سفر_و_کمپینگ"] { --cat-color: #04526d; }
.cat-card[data-category="خانه_آشپزخانه"] { --cat-color: #803203; }
.cat-card[data-category="زیبایی_سلامت"] { --cat-color: #851062; }
.cat-card[data-category="بازی_و_سرگرمی"] { --cat-color: #1c5208; }

/* ==================== GIFT CARDS ==================== */
.cards-wrapper {
    width: 100%;
    padding: 16px 20px 24px 20px;
    display: flex;
    justify-content: center;
}

.cards-container {
    width: 100%;
    max-width: 1440px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cards-grid,
.fav-cards-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    justify-content: stretch;
}

/* در مانیتورهای بسیار عریض و غول‌پیکر (بالای ۱۷۵۰ پیکسل) ۴ تایی تمام‌عرض */
@media (min-width: 1750px) {
    .cards-container,
    .fav-page-body {
        max-width: 1800px;
    }
    .cards-grid,
    .fav-cards-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px;
    }
}

/* در تمام لپ‌تاپ‌ها از جمله ۱۴ اینچ (۱۰۲۵ تا ۱۷۴۹ پیکسل) دقیقاً ۳ تایی و تمام‌عرض کل ردیف */
@media (min-width: 1025px) and (max-width: 1749px) {
    .cards-container,
    .fav-page-body {
        max-width: 100%;
    }
    .cards-grid,
    .fav-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px;
    }
}

/* در تبلت‌ها و صفحات متوسط ۲ تایی تمام‌عرض کل ردیف */
@media (min-width: 721px) and (max-width: 1024px) {
    .cards-container,
    .fav-page-body {
        max-width: 100%;
    }
    .cards-grid,
    .fav-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
}

/* در موبایل در هر ردیف ۱ کارت ایده تمام‌عرض کل ردیف */
@media (max-width: 720px) {
    .cards-grid,
    .fav-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}

.gift-card {
    position: relative;
    background: #f1f6fa;
    border: 1px solid rgba(165, 195, 218, 0.25);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 0 1.5px rgba(160, 192, 216, 0.45), 0 3px 10px rgba(12, 48, 80, 0.08), 0 8px 24px rgba(12, 48, 80, 0.06);
}

.card-header {
    position: relative;
    padding: 10px 12px 7px 12px;
    background: #f1f6fa;
    border: none;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    gap: 6.5px;
}

.card-title {
    font-size: 17.1px;
    font-weight: 900;
    color: #21759b !important;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95%;
    -webkit-text-stroke: 0.34px #21759b;
    text-shadow: 0 1px 1.5px rgba(255, 255, 255, 0.85);
}

.card-subtitle {
    font-size: 13.3px;
    font-weight: 700;
    color: #235d87 !important;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95%;
    letter-spacing: -0.1px;
    text-shadow: 0 1px 1.5px rgba(255, 255, 255, 0.85);
}

.card-body {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    background: #f1f6fa;
    border: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none !important;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* کل تصویر بدون زوم شدن و بدون برش داخل کادر قرار می‌گیرد */
    display: block;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* انیمیشن قلب دابل‌تپ اینستاگرام */
.instagram-heart-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 76px;
    height: 76px;
    pointer-events: none;
    z-index: 25;
    filter: drop-shadow(0 4px 14px rgba(232, 58, 89, 0.45));
    animation: instaHeartPop 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.instagram-heart-animation svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes instaHeartPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    30% {
        transform: translate(-50%, -50%) scale(1.25);
        opacity: 0.95;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 0;
    }
}

.insta-action-btn.heart-btn.heart-bump {
    animation: heartBump 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBump {
    0% { transform: scale(1); }
    45% { transform: scale(1.32); }
    100% { transform: scale(1); }
}

.details-toggle-btn.arrow-toggle-btn {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    border: 1.3px solid #a8c8dd;
    border-radius: 6px;
    height: 26px;
    min-width: 96px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(22, 101, 151, 0.22), 0 1px 2px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.details-toggle-btn.arrow-toggle-btn:hover {
    border-color: #0284c7;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.details-toggle-btn.arrow-toggle-btn.active {
    background-color: #0284c7;
    border: 1.3px solid #0284c7;
    min-width: 106px;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.38);
    z-index: 25;
}

.desc-btn-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.desc-btn-text {
    font-size: 11.5px;
    font-weight: 900;
    color: #166597;
    line-height: 1;
    white-space: nowrap;
}

.details-toggle-btn.arrow-toggle-btn.active .desc-btn-text {
    color: #ffffff;
}

.icon-desc-chevron {
    width: 14.5px;
    height: 14.5px;
    stroke: #166597;
    stroke-width: 3.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transform: rotate(180deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.2s ease;
}

.details-toggle-btn.arrow-toggle-btn.active .icon-desc-chevron {
    stroke: #ffffff;
    transform: rotate(0deg);
}

.details-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f1f6fa;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 48px 4px 4px 5px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
    z-index: 9;
    display: flex;
    flex-direction: column;
}

.details-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.details-content {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding-left: 3px;
    padding-right: 3px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #bccbd6 transparent;
}

.details-content::-webkit-scrollbar {
    width: 4px;
}

.details-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.details-content::-webkit-scrollbar-thumb {
    background: #bccbd6;
    border-radius: 4px;
}

.details-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


.details-text {
    font-size: 13.5px !important;
    line-height: 1.95 !important;
    color: #334155;
    text-align: justify;
    font-weight: 500;
    margin: 0;
    white-space: pre-line;
    padding: 0 2px;
}

.details-text * {
    font-size: 13.5px !important;
    line-height: 1.85 !important;
}

/* ==================== پیام‌های چت راهنمای کینگ‌فاکس (e9eff3 با آیکون و دم پیکان) ==================== */
.kf-chat-container {
    display: flex;
    flex-direction: column;
    gap: 11px;
    width: 100%;
    padding: 2px 1px 12px 1px;
    box-sizing: border-box;
}

.kf-chat-row {
    display: flex !important;
    direction: ltr !important; /* تضمین قطعی قرارگیری آواتار کینگ‌فاکس در سمت چپ و بالون پیام در سمت راست */
    flex-direction: row !important;
    align-items: flex-end;
    gap: 6px;
    width: 100%;
    animation: kfChatFadeIn 0.3s ease-out;
}

@keyframes kfChatFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kf-chat-avatar {
    width: 33px;
    height: 33px;
    min-width: 33px;
    min-height: 33px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 2px;
    background: #ffffff url('/assets/images/platform/kingfox88822.webp') center/cover no-repeat;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kf-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.kf-chat-bubble {
    position: relative;
    border-radius: 18px 18px 18px 0 !important;
    padding: 9px 12px;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    transition: background-color 0.2s;
}

/* تمام پیام‌های چت راهنما: رنگ سفید */
.kf-chat-row .kf-chat-bubble,
.kf-chat-row.chat-row-alt .kf-chat-bubble,
.kf-chat-row:nth-child(odd) .kf-chat-bubble,
.kf-chat-row.chat-row-white .kf-chat-bubble,
.kf-chat-row:nth-child(even) .kf-chat-bubble {
    background-color: #ffffff;
    border: 1.5px solid rgba(168, 190, 206, 0.65);
    box-shadow: 0 2px 8px rgba(33, 117, 155, 0.08);
}

.kf-chat-tail .kf-tail-fill,
.kf-chat-row .kf-chat-tail .kf-tail-fill {
    fill: #ffffff !important;
}
.kf-chat-tail .kf-tail-stroke,
.kf-chat-row .kf-chat-tail .kf-tail-stroke {
    stroke: rgba(168, 190, 206, 0.65) !important;
}

.kf-chat-tail {
    position: absolute;
    bottom: -1px;
    left: -11px;
    width: 12px;
    height: 16px;
    pointer-events: none;
    z-index: 2;
}

.kf-chat-text {
    direction: rtl !important;
    text-align: justify !important;
    text-justify: inter-word !important;
    text-align-last: right !important;
    word-spacing: -0.2px;
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    font-size: 12.35px !important;
    line-height: 1.85 !important;
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
    white-space: pre-line;
    margin: 0;
}

.kf-chat-text a {
    color: #0284c7;
    text-decoration: underline;
    font-weight: 700;
}

.kf-chat-text strong, .kf-chat-text b {
    color: #0f172a;
    font-weight: 800;
}

/* افکت جذاب فوکوس و تابش نوری هنگام باز شدن ایده اشتراک‌گذاری‌شده */
.gift-card.card-share-highlight {
    animation: cardSharePulse 3.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.4), 0 12px 32px rgba(2, 132, 199, 0.28) !important;
    z-index: 10;
}

@keyframes cardSharePulse {
    0% {
        transform: scale(1.04);
        opacity: 0.95;
    }
    30% {
        transform: scale(1.04);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.card-floating-actions {
    position: absolute;
    left: 10px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 6;
    width: 26px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* پنهان شدن موقت آیکون‌های اشتراک‌گذاری، علاقه‌مندی و نشان هیجان‌زده زمانی که راهنما باز است */
.gift-card.details-open .card-floating-actions,
.card-body:has(.details-panel.active) .card-floating-actions {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* گسترش کادر راهنما خرید تا پایین کادر و پنهان شدن دکمه‌های فروشگاه و لایک */
.gift-card.details-open .card-body,
.card-body:has(.details-panel.active) {
    overflow: visible;
    z-index: 15;
}

.gift-card.details-open .details-panel,
.card-body:has(.details-panel.active) .details-panel {
    height: calc(100% + 48px);
    z-index: 20;
    padding-bottom: 12px;
}

.details-toggle-btn.arrow-toggle-btn.active,
.gift-card.details-open .details-toggle-btn {
    z-index: 25 !important;
}

.gift-card.details-open .card-footer,
.gift-card:has(.details-panel.active) .card-footer {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.insta-action-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-save, .icon-share {
    width: 26px;
    height: 26px;
    stroke: #21759b !important;
    stroke-width: 2.3;
    fill: none;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.95));
}

.insta-action-btn.saved .icon-save {
    fill: #21759b !important;
    stroke: #21759b !important;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #f1f6fa;
    border: none;
    border-top: none;
    height: 48px;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.store-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    max-width: calc(100% - 56px);
}
.store-badges::-webkit-scrollbar {
    display: none;
}

.store-badge-btn {
    height: 27.5px;
    padding: 0 8.5px;
    border-radius: 5.5px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s ease;
    background-color: #0284c7;
}

.store-badge-btn:hover {
    transform: translateY(-1px);
}

.store-badge-icon {
    width: 13px;
    height: 13px;
    stroke: #ffffff;
    stroke-width: 2.3;
}

.store-btn-text {
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-digi { background-color: #ef4056; }
.badge-snapp { background-color: #b53995; }
.badge-basalam { background-color: #00a693; }
.badge-technolife { background-color: #002e6e; }
.badge-custom { background-color: #2563eb; }

.card-actions-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
    max-width: 26px;
    flex-shrink: 0;
}

.card-actions-left .insta-action-btn.heart-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    cursor: pointer;
    width: 26px;
    min-width: 26px;
    max-width: 26px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 5;
}

/* ناحیه کلیک و لمس بزرگ و ارگونومیک بدون برهم زدن تراز بصری عمودی */
.card-actions-left .insta-action-btn.heart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 48px;
    pointer-events: auto;
}

.card-actions-left .like-count {
    font-size: 11px;
    font-weight: 900;
    color: #e83a59;
    line-height: 1;
    text-align: center;
    width: 100%;
    user-select: none;
    pointer-events: none;
}

.icon-heart {
    width: 26px;
    height: 26px;
    stroke: #e83a59;
    stroke-width: 2.2;
    fill: none;
    pointer-events: none;
}

.icon-heart path {
    pointer-events: none;
}

.insta-action-btn.liked .icon-heart {
    fill: #e83a59;
}

/* ==================== BOTTOM NAV BAR ==================== */
.floating-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-top: 1.5px solid #d0e0ec;
    box-shadow: 0 -4px 20px rgba(15, 55, 90, 0.09);
    z-index: 998;
}

.bottom-bar-inner {
    width: 100%;
    max-width: 792px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 10px;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    color: #176185;
    text-decoration: none;
    height: 100%;
}

.bottom-nav-item#bottomNavFilterBtn {
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), filter 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item#bottomNavFilterBtn.is-at-top {
    opacity: 0.35 !important;
    filter: grayscale(0.55) !important;
    pointer-events: none !important;
    cursor: default !important;
}

.bottom-nav-item .nav-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.6;
}

.bottom-nav-item .nav-icon-img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.bottom-nav-item .nav-label {
    font-size: 11.5px;
    font-weight: 850;
    color: #164361;
    line-height: 1.25;
    margin-top: 3px;
    white-space: nowrap;
}

.nav-divider {
    width: 1.2px;
    height: 28px;
    background: rgba(33, 117, 155, 0.2);
}

.nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fav-badge-count {
    position: absolute;
    top: -7px;
    right: -8px;
    background: #e83a59;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    min-width: 19px;
    height: 19px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(232, 58, 89, 0.45);
    transform: scale(0);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 5;
}

.fav-badge-count.visible {
    transform: scale(1);
}

/* دکمه حذف تمام علاقه‌مندی‌ها (فقط آیکون کوچک سطل زباله با فاصله مناسب از عنوان) */
.btn-clear-all-favs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    margin-right: 18px;
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-all-favs:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: scale(1.06);
}

.btn-clear-all-favs svg {
    width: 14px;
    height: 14px;
}

/* دکمه‌های شیشه‌ای ناوبری دسته‌بندی‌ها */
.cat-slider-nav-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
    margin-bottom: 4px;
}

@media (hover: none), (pointer: coarse) {
    .cat-slider-nav-btns {
        display: none !important;
    }
}

.cat-nav-arrow-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 3px 10px rgba(10, 45, 75, 0.08);
    color: #166597;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.cat-nav-arrow-btn:hover:not(:disabled):not(.disabled) {
    background: rgba(255, 255, 255, 0.85);
    color: #0087be;
    box-shadow: 0 4px 14px rgba(10, 45, 75, 0.16);
    transform: scale(1.08);
}

.cat-nav-arrow-btn.disabled,
.cat-nav-arrow-btn:disabled {
    opacity: 0.22 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.cat-nav-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #166597;
    color: #0c4a75;
    transform: scale(1.1);
    box-shadow: 0 5px 14px rgba(22, 101, 151, 0.2);
}

.cat-nav-arrow-btn:active {
    transform: scale(0.92);
}

/* ==================== FULLSCREEN FAVORITES & MODALS ==================== */
.favorites-fullscreen-overlay, #guideModalOverlay, .discounts-fullscreen-overlay, #installAppModalOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #f7f9fb !important;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto !important;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

/* اسکرول‌بار در سمت راست قرار بگیرد و محتوا راست‌به‌چپ بماند */
#favoritesModalOverlay, #guideModalOverlay {
    direction: ltr !important;
}

#favoritesModalOverlay > *, #guideModalOverlay > * {
    direction: rtl !important;
}

/* راهنمای خرید و علاقه‌مندی‌ها هر دو تمام صفحه هستند */
.favorites-fullscreen-overlay.open, #guideModalOverlay.open {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
    background: #f7f9fb !important;
}

/* ==================== صفحه شاه تخفیف تمام‌صفحه (دیجی‌کالا بالای ۹۰٪) ==================== */
#discountsModalOverlay {
    background: #ffffff !important;
    direction: rtl !important;
}

#discountsModalOverlay.open {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    overflow-y: auto !important;
    background: #ffffff !important;
}

.discounts-modal-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 70px;
    width: 100%;
    box-sizing: border-box;
}

.discounts-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid #f1f5f9;
}

.discounts-brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.discounts-logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(239, 64, 86, 0.25);
    flex-shrink: 0;
}

.discounts-brand-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discounts-fire-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    color: #ef4056;
    background: #fff1f2;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 4px;
}

.discounts-heading {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.discounts-modal-body {
    margin-top: 24px;
}

.discounts-intro-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    margin: 0 0 24px;
}

.shah-takhfif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .shah-takhfif-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}

.takhfif-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.26s ease, border-color 0.26s ease;
}

.takhfif-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(239, 64, 86, 0.14);
    border-color: #ef4056;
}

.takhfif-card-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.takhfif-tier-badge {
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
}

.tier-cheap .takhfif-tier-badge { background: #ecfdf5; color: #059669; }
.tier-medium .takhfif-tier-badge { background: #eff6ff; color: #2563eb; }
.tier-high .takhfif-tier-badge { background: #faf5ff; color: #9333ea; }
.tier-expensive .takhfif-tier-badge { background: #fff1f2; color: #e11d48; }

.takhfif-percent-tag {
    font-size: 11px;
    font-weight: 900;
    color: #ef4056;
    background: #fef2f2;
    border: 1px solid #fecdd3;
    padding: 2px 8px;
    border-radius: 12px;
}

.takhfif-icon-box {
    margin: 8px 0 14px;
}

.takhfif-brand-logo {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(239, 64, 86, 0.22);
    transition: transform 0.26s ease;
}

.takhfif-card:hover .takhfif-brand-logo {
    transform: scale(1.08);
}

.takhfif-tier-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.takhfif-tier-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 16px;
    flex-grow: 1;
}

.takhfif-action-btn {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4056 0%, #e11d48 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 64, 86, 0.28);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.takhfif-card:hover .takhfif-action-btn {
    filter: brightness(1.08);
}

/* ==================== صفحه تمام‌صفحه نصب و دانلود اپلیکیشن ==================== */
#installAppModalOverlay {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 420px, #f8fafc 100%) !important;
    direction: rtl !important;
}

#installAppModalOverlay.open {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column;
    overflow-y: auto !important;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 420px, #f8fafc 100%) !important;
}

.install-page-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 24px 20px 70px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.install-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid #e0f2fe;
}

.install-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.install-page-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 2px solid #bae6fd;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.install-header-badge {
    font-size: 11.5px;
    font-weight: 800;
    color: #0284c7;
    background: #e0f2fe;
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 4px;
}

.install-header-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.install-page-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 30px 0 50px;
}

.install-stores-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 320px));
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.install-store-card {
    flex: 0 1 290px;
    width: 290px;
    max-width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 22px;
    padding: 30px 20px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    gap: 16px;
}

.install-store-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(2, 132, 199, 0.12);
    border-color: #38bdf8;
}

.store-icon-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.store-brand-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.08));
    transition: transform 0.28s ease;
}

.install-store-card:hover .store-brand-icon {
    transform: scale(1.08);
}

.store-card-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 850;
    color: #0f172a;
}

.store-download-btn {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.store-download-btn.btn-direct {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.store-download-btn.btn-bazaar {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.store-download-btn.btn-myket {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.store-download-btn:hover {
    filter: brightness(1.08);
    transform: scale(1.02);
}

.install-features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1.5px solid #e2e8f0;
}

.install-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.feature-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-text-wrap {
    display: flex;
    flex-direction: column;
}

.feature-text-wrap strong {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.feature-text-wrap span {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.6;
}

/* ردیف دوتایی دانلود مستقیم و نسخه تحت وب (iOS) در یک ردیف */
.install-paired-row {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
}

.install-paired-row .install-store-card {
    width: 100% !important;
    max-width: 100% !important;
}

/* بج قرمز با عدد ۴ روی دکمه شناور نصب اپلیکیشن */
.app-attention-badge {
    position: absolute;
    top: -5px;
    left: -7px;
    right: auto;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
    border: 1.5px solid #ffffff;
    line-height: 1;
    letter-spacing: -0.2px;
    z-index: 5;
    animation: appBadgePulse 2s infinite ease-in-out;
}

@keyframes appBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
    }
    50% {
        transform: scale(1.18);
        box-shadow: 0 4px 14px rgba(220, 38, 38, 0.75);
    }
}

@media (max-width: 640px) {
    .discounts-modal-container, .install-page-container {
        padding: 16px 14px 60px;
    }
    .discounts-heading, .install-header-title {
        font-size: 17px;
    }
    .install-hero-banner {
        padding: 18px 14px;
    }
    .install-hero-title {
        font-size: 16px;
    }
    .install-stores-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 360px;
    }
    .install-paired-row {
        gap: 8px !important;
    }
    .install-paired-row .store-card-title {
        font-size: 12px !important;
    }
    .install-paired-row .store-download-btn {
        font-size: 10.5px !important;
        padding: 0 6px !important;
    }
    .install-store-card {
        width: 100%;
        max-width: 100%;
        padding: 14px 12px;
        gap: 8px;
        border-radius: 16px;
    }
    .store-icon-wrapper {
        width: 58px;
        height: 58px;
    }
    .store-card-title {
        font-size: 13.5px;
    }
    .store-download-btn {
        height: 38px;
        border-radius: 10px;
        font-size: 12px;
        gap: 6px;
    }
    .store-download-btn svg {
        width: 16px;
        height: 16px;
    }
    .install-page-body {
        padding: 16px 0 40px;
    }
}

/* افکت جادویی و جرقه نوری فرشته (اجی‌مجی سریع) هنگام تغییر سن/جنسیت/قیمت */
@keyframes fairyMagicSparkle {
    0% {
        transform: scale(0.97);
        filter: brightness(1.6) drop-shadow(0 0 12px rgba(254, 240, 138, 0.9));
        opacity: 0.85;
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.3) drop-shadow(0 0 18px rgba(56, 189, 248, 0.85)) drop-shadow(0 0 8px rgba(232, 58, 89, 0.6));
        opacity: 1;
    }
    100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(none);
        opacity: 1;
    }
}

.magic-sparkle-reveal {
    animation: fairyMagicSparkle 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
    position: relative;
}

.fairy-star-particle {
    position: absolute;
    pointer-events: none;
    z-index: 99;
    font-size: 15px;
    animation: fairyParticleFly 0.42s ease-out forwards;
}

@keyframes fairyParticleFly {
    0% {
        transform: translate(0, 0) scale(0.3) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(var(--tx, 8px), var(--ty, -15px)) scale(1.3) rotate(60deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 16px), var(--ty, -30px)) scale(0) rotate(120deg);
        opacity: 0;
    }
}

/* ==================== BANNER CAROUSEL ==================== */
.banner-box {
    position: relative;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}
.banner-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.banner-slide {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.banner-slide.active {
    display: block;
    opacity: 1;
}
.banner-slide a {
    display: block;
    width: 100%;
    line-height: 0;
}
.banner-slide img {
    width: 100%;
    border-radius: 14px;
    display: block;
    aspect-ratio: 14 / 3;
    object-fit: cover;
}
.banner-dots-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.banner-dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}
.banner-dot-btn.active {
    width: 28px;
    background: #0284c7;
}

.fav-page-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 74px;
    min-height: 74px;
    background: #ffffff;
    border-bottom: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    box-sizing: border-box;
}

/* هدر راهنمای جامع خرید هوشمند کادو شناور نیست و با اسکرول حرکت می‌کند */
.guide-page-header {
    position: relative !important;
    top: auto !important;
    z-index: 10 !important;
}

.fav-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.fav-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.fav-header-left {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.fav-page-title {
    font-size: 18px;
    font-weight: 900;
    color: #0284c7;
    margin: 0;
    white-space: nowrap;
}


.fav-header-counter {
    background: transparent !important;
    color: #0284c7 !important;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    width: auto;
    height: auto;
    min-width: unset;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: none !important;
}

.fav-page-close-btn {
    background: rgba(232, 58, 89, 0.08);
    border: 1.5px solid rgba(232, 58, 89, 0.25);
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
}

.fav-page-close-btn:hover {
    background: rgba(232, 58, 89, 0.18);
    border-color: rgba(232, 58, 89, 0.45);
    transform: scale(1.08);
}

.fav-notice-banner {
    width: 100%;
    background: #f8fafc;
    border-bottom: none !important;
    padding: 10px 24px;
    text-align: right;
    font-size: 12.5px;
    font-weight: 750;
    color: #334155;
    box-sizing: border-box;
    display: block;
    direction: rtl;
}

.fav-page-container .banner-box {
    background-color: #e9eff3 !important;
    padding: 10px 0;
    margin: 0 !important;
    width: 100%;
}

/* دکمه شناور سطل زباله در گوشه پایین سمت چپ صفحه علاقه‌مندی‌ها (هم‌اندازه دکمه ضربدر و تعداد) */
.floating-fav-trash-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    border: 1.5px solid #fca5a5;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-fav-trash-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #dc2626;
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.45);
}

.fav-page-body {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 20px 80px 20px;
    box-sizing: border-box;
}

.fav-empty-state {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.share-toast {
    position: fixed;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.site-footer {
    background-color: #85a1b9;
    width: 100%;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-top: 1px solid #7592aa;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer-copyright {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 2;
}

.footer-link {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none !important;
}

/* ==================== GUIDE MODAL ==================== */
.guide-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    border-radius: 20px;
    border: 1.5px solid #d4e5f2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.guide-modal-header {
    background: linear-gradient(135deg, #f0f7fc 0%, #e2eff8 100%);
    padding: 14px 20px;
    border-bottom: 1.5px solid #d8e8f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guide-modal-title {
    font-size: 15px;
    font-weight: 800;
    color: #166597;
}

.guide-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-tip-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tip-num {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #0087be;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-title {
    font-size: 12px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.tip-desc {
    font-size: 11.5px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.guide-tip-card.checklist-card {
    grid-column: span 2;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #7dd3fc;
}

.checklist-items {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checklist-items li {
    font-size: 12px;
    font-weight: 700;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-modal-footer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 14px auto 12px auto !important;
    padding: 10px 20px 14px !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
}

.guide-modal-action-btn {
    width: 100%;
    background: linear-gradient(135deg, #0087be 0%, #006da0 100%);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

/* مودال تایید اختصاصی حذف علاقه‌مندی‌ها */
.custom-confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: confirmFadeIn 0.2s ease;
}

@keyframes confirmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-confirm-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 20px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: confirmCardPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes confirmCardPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.confirm-icon-box {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1;
}

.confirm-title {
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.confirm-message {
    font-size: 12.8px;
    font-weight: 700;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 18px 0;
    text-align: center;
}

.confirm-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.btn-confirm-cancel {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    padding: 9px 14px;
    font-size: 12.2px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-confirm-cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-confirm-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    border-radius: 9px;
    padding: 9px 14px;
    font-size: 12.2px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.35);
    transition: all 0.2s ease;
}

.btn-confirm-delete:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 5px 16px rgba(239, 68, 68, 0.45);
}

/* ==================== تصویر حالت بدون ایده کادو (Empty State) ==================== */
.king-empty-state-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 44px 16px;
    margin: 20px auto;
    text-align: center;
    animation: fadeInEmpty 0.35s ease;
}

.king-empty-img {
    max-width: 580px;
    width: 90%;
    height: auto;
    aspect-ratio: 1024 / 205;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: none !important;
    box-shadow: none !important;
    border: none !important;
}

@keyframes fadeInEmpty {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== پیوندهای فوتر بالای کپی‌رایت ==================== */
.footer-links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
    direction: rtl;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.footer-links-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.footer-links-top {
    gap: 14px;
}

.footer-links-bottom {
    gap: 12px;
}

.footer-nav-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 750 !important;
    transition: all 0.2s ease;
    padding: 2px 4px;
    letter-spacing: -0.2px;
    text-align: center;
    white-space: nowrap !important;
    display: inline-block;
    flex-shrink: 0;
}

.footer-nav-link:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    opacity: 0.85;
    transform: translateY(-1px);
}

.footer-nav-divider {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 520px) {
    .footer-links-container {
        gap: 6px;
        padding: 0 4px;
        margin-bottom: 4px;
    }
    .footer-links-top {
        gap: 10px;
    }
    .footer-links-bottom {
        gap: 8px;
    }
    .footer-nav-link {
        font-size: 12.5px;
        padding: 2px 3px;
        letter-spacing: -0.3px;
    }
    .footer-nav-divider {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.65);
    }
}

@media (max-width: 400px) {
    .footer-links-container {
        gap: 5px;
        padding: 0 2px;
        margin-bottom: 3px;
    }
    .footer-links-top {
        gap: 7px;
    }
    .footer-links-bottom {
        gap: 5px;
    }
    .footer-nav-link {
        font-size: 11.5px;
        padding: 1px 2px;
        letter-spacing: -0.35px;
    }
    .footer-nav-divider {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.6);
    }
}

@media (max-width: 340px) {
    .footer-links-container {
        gap: 4px;
        padding: 0 1px;
    }
    .footer-links-top {
        gap: 5px;
    }
    .footer-links-bottom {
        gap: 4px;
    }
    .footer-nav-link {
        font-size: 10px;
        padding: 1px 1px;
        letter-spacing: -0.4px;
    }
    .footer-nav-divider {
        font-size: 9.5px;
    }
}



/* ========================================================
   مودال اختصاصی و لوکس اشتراک‌گذاری ایده کادو (Share Modal)
   ======================================================== */
.share-modal-container {
    background: #ffffff;
    border-radius: 20px;
    width: 92%;
    max-width: 440px;
    padding: 22px 20px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(2, 132, 199, 0.15);
    direction: rtl;
    text-align: right;
    animation: shareModalScaleUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    box-sizing: border-box;
}

@keyframes shareModalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1.5px solid #f1f5f9;
    margin-bottom: 14px;
}

.share-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.share-modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.share-modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.share-card-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.share-preview-thumb {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 4px;
}

.share-preview-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.share-preview-title {
    margin: 0 0 3px 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.35;
    text-align: center;
}

.share-preview-subtitle {
    margin-bottom: 4px;
    text-align: center;
}

.share-preview-code-badge {
    display: inline-block;
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.share-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.share-social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    text-decoration: none;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-social-btn:hover {
    transform: translateY(-3px);
    border-color: #0284c7;
    box-shadow: 0 8px 16px -4px rgba(2, 132, 199, 0.15);
    color: #0f172a;
}

.share-social-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.09);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.share-social-btn:hover .share-social-img {
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.share-native-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.share-social-btn:hover .share-native-icon-box {
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
}

.share-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.share-social-btn:hover .share-icon-circle {
    transform: scale(1.08);
}

.share-copy-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
}

.share-copy-label {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.share-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.share-input-group:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.share-url-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 12px;
    font-size: 12px;
    font-family: monospace, sans-serif;
    color: #0f172a;
    background: transparent;
    direction: ltr;
    text-align: left;
}

.share-btn-copy {
    border: none;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.share-btn-copy:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
}

.share-btn-copy.copied {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

/* Accessible hidden element for search engine H1 / site identity */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


.store-download-btn.btn-ios {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
    cursor: pointer;
    border: none;
}
.store-download-btn.btn-ios:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.4);
}
.install-store-card.ios-card:hover {
    border-color: #64748b;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}


/* ==================== استایل‌های مدرن و تمام‌صفحه راهنمای خرید کادو (طراحی لوکس دسکتاپ و روان موبایل) ==================== */
#guideModalOverlay {
    background: #f8fafc !important;
}

.guide-page-header {
    height: 74px !important;
    padding: 0 32px !important;
    background: #ffffff !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
}

.guide-header-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    flex-shrink: 0;
}

.guide-modal-page-title {
    font-size: 17px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.guide-page-body {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 32px 28px 36px !important;
    box-sizing: border-box !important;
}

.guide-hero-banner {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 12px 18px !important;
    margin-bottom: 20px !important;
    box-shadow: none !important;
    text-align: center !important;
}

.guide-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 13px;
    font-weight: 850;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.guide-hero-title {
    font-size: 23px;
    font-weight: 950;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.5;
    text-align: center;
}

.guide-hero-desc {
    font-size: 14.5px;
    color: #475569;
    font-weight: 600;
    margin: 0 auto;
    line-height: 1.8;
    max-width: 680px;
    text-align: center;
}

.guide-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    width: 100%;
}

.guide-step-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.02);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: right;
    box-sizing: border-box;
}

.guide-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(2, 132, 199, 0.09);
    border-color: #93c5fd;
}

.guide-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.guide-num-badge {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 19px;
    font-weight: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    flex-shrink: 0;
}

.guide-card-title {
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    line-height: 1.5;
}

.guide-card-text {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.85;
    margin: 0;
    font-weight: 500;
}

/* در صفحات موبایل (حالت فشرده، خوانا و بدون اسکرول افقی) */
@media (max-width: 767px) {
    .guide-page-header {
        padding: 0 16px !important;
        height: 64px !important;
    }
    .guide-modal-page-title {
        font-size: 15px !important;
    }
    .guide-page-body {
        padding: 14px 4px 24px !important;
    }
    .guide-hero-banner {
        padding: 6px 4px 10px !important;
        border-radius: 0 !important;
        margin-bottom: 12px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .guide-hero-title {
        font-size: 16.5px !important;
    }
    .guide-hero-desc {
        font-size: 12.5px !important;
    }
    .guide-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .guide-step-card {
        padding: 16px;
        border-radius: 14px;
    }
    .guide-card-title {
        font-size: 14px;
    }
    .guide-card-text {
        font-size: 13px;
        line-height: 1.8;
    }
    .guide-num-badge {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 16px;
        border-radius: 10px;
    }
}



/* ==================== لودر بی‌نهایت بارگذاری مرحله‌ای ایده‌ها (Infinite Scroll Loader) ==================== */
.cards-infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    margin: 28px auto 46px;
    padding: 13px 22px;
    background: rgba(15, 23, 42, 0.78);
    border: 1.5px solid rgba(56, 189, 248, 0.28);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.infinite-loader-spinner {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2.5px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: infiniteSpinnerSpin 0.75s linear infinite;
}

@keyframes infiniteSpinnerSpin {
    to { transform: rotate(360deg); }
}

.infinite-loader-text {
    font-size: 13.5px;
    font-weight: 650;
    color: #f1f5f9;
    letter-spacing: -0.2px;
    user-select: none;
}

/* انیمیشن محو ظاهر شدن کارت‌های جدید لود شده */
.card-fade-in {
    animation: cardBatchFadeIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardBatchFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
