/* ==========================================================================
   ICE BLUE GLASSMORPHISM MODULES STYLING
   ========================================================================== */

/* --- مشترکات و متغیرها --- */
:root {
    --ice-glow: rgba(56, 189, 248, 0.4);
    --ice-cyan: #38bdf8;
    --ice-blue-light: #e0f2fe;
    --glass-bg: rgba(15, 23, 42, 0.68);
    --glass-border: rgba(56, 189, 248, 0.22);
    --glass-blur: blur(16px);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.08);
}

.glass-panel-inner {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
}

.ice-badge-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--ice-cyan);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ================= MODULE 1: GRADE COMPARISON SLIDER ================= */

.ice-grade-compare-section {
    padding: 70px 0;
}


/* ---------- Grade Tabs ---------- */

.ice-grade-tabs {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ice-grade-tab-btn {
    appearance: none;
    -webkit-appearance: none;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 190px;

    padding: 11px 22px;

    border: 1px solid var(--glass-border);
    border-radius: 40px;

    background: rgba(15, 23, 42, 0.5);

    color: #94a3b8;

    cursor: pointer;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    line-height: 1.5;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.ice-grade-tab-btn span {
    display: block;

    margin-top: 2px;

    font-size: 11px;
    font-weight: 500;

    opacity: 0.75;
}

.ice-grade-tab-btn:hover {
    border-color: var(--ice-cyan);
    color: #e0f2fe;

    transform: translateY(-1px);
}

.ice-grade-tab-btn.active {
    background: var(--ice-cyan);
    border-color: var(--ice-cyan);

    color: #030712;

    box-shadow:
        0 0 20px var(--ice-glow),
        0 8px 20px rgba(56, 189, 248, 0.12);
}

.ice-grade-tab-btn.active span {
    opacity: 0.85;
}


/* ---------- Main Card ---------- */

.ice-grade-slider-card {
    padding: 30px;
}


/* ---------- Comparison Viewport ---------- */

/*
 * بسیار مهم:
 *
 * نسبت کادر با تصویر یکی است.
 * بنابراین object-fit مجبور به Crop کردن تصویر نمی‌شود.
 */

.ice-grade-slider-wrapper {
    --grade-slider-position: 50%;

    position: relative;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 18px;

    background: #0b1220;

    user-select: none;
    -webkit-user-select: none;

    touch-action: none;

    cursor: ew-resize;

    isolation: isolate;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 15px 35px rgba(0, 0, 0, 0.25);
}


/* ---------- Both Images ---------- */

/*
 * هر دو Layer دقیقاً کل کادر را اشغال می‌کنند.
 *
 * نکته کلیدی:
 * Overlay دیگر width:50% ندارد.
 *
 * بنابراین تصویر دوم هرگز داخل نصف کادر scale نمی‌شود.
 */

.ice-slider-layer {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}


/*
 * تصویر پایه
 */

.ice-slider-base {
    z-index: 1;
}


/*
 * تصویر Overlay
 *
 * خود تصویر همیشه 100% کل کادر است.
 *
 * فقط clip-path مقدار قابل مشاهده را کنترل می‌کند.
 */

.ice-slider-overlay {
    z-index: 2;

    width: 100%;
    height: 100%;

    border-left: 0;

    clip-path: inset(
        0
        calc(100% - var(--grade-slider-position))
        0
        0
    );

    -webkit-clip-path: inset(
        0
        calc(100% - var(--grade-slider-position))
        0
        0
    );

    will-change: clip-path;
}


/*
 * خود تصاویر
 *
 * object-fit: fill عمداً استفاده شده:
 * چون هر دو فایل تصویر شما یک ابعاد دارند و باید
 * دقیقاً pixel-to-pixel روی هم قرار بگیرند.
 */

.ice-slider-layer img {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    object-fit: fill;

    margin: 0;
    padding: 0;

    pointer-events: none;

    user-select: none;
    -webkit-user-drag: none;
}


/* ---------- Image Labels ---------- */

.ice-layer-tag {
    position: absolute;

    top: 16px;

    z-index: 5;

    display: inline-flex;
    align-items: center;

    min-height: 30px;

    padding: 6px 14px;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 800;

    line-height: 1;

    white-space: nowrap;

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

    pointer-events: none;
}

.base-tag {
    right: 16px;

    background: rgba(0, 0, 0, 0.68);

    border: 1px solid rgba(255, 255, 255, 0.12);

    color: #fff;
}

.overlay-tag {
    left: 16px;

    background: rgba(56, 189, 248, 0.9);

    border: 1px solid rgba(255, 255, 255, 0.25);

    color: #020617;
}


/* ---------- Slider Handle ---------- */

.ice-slider-handle {
    position: absolute;

    top: 0;
    bottom: 0;

    left: var(--grade-slider-position);

    width: 0;

    z-index: 10;

    pointer-events: none;

    will-change: left;
}


/*
 * خط وسط
 */

.ice-slider-handle .handle-line {
    position: absolute;

    top: 0;
    bottom: 0;

    left: -1px;

    width: 2px;

    background: #ffffff;

    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.65),
        0 0 14px rgba(56, 189, 248, 0.85);
}


/*
 * دکمه وسط
 */

.handle-button {
    position: absolute;

    top: 50%;
    left: 0;

    width: 48px;
    height: 48px;

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

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0284c7;

    border: 3px solid #ffffff;

    border-radius: 50%;

    color: #ffffff;

    box-shadow:
        0 0 0 1px rgba(2, 132, 199, 0.35),
        0 0 25px rgba(56, 189, 248, 0.85),
        0 8px 20px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ice-grade-slider-wrapper:hover .handle-button,
.ice-grade-slider-wrapper.is-dragging .handle-button {
    transform: translate(-50%, -50%) scale(1.08);

    box-shadow:
        0 0 0 1px rgba(2, 132, 199, 0.35),
        0 0 32px rgba(56, 189, 248, 1),
        0 10px 25px rgba(0, 0, 0, 0.4);
}

.handle-button svg {
    display: block;
}


/* ---------- Slider Helper ---------- */

.ice-slider-help {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-top: 12px;

    padding: 0 4px;

    color: #64748b;

    font-size: 11px;
    font-weight: 600;
}

.ice-slider-help span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ice-slider-help strong {
    color: var(--ice-cyan);

    font-size: 14px;
}


/* ---------- Specifications ---------- */

.ice-grade-spec-list {
    margin-top: 24px;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 16px;
}

.spec-row {
    background: rgba(255, 255, 255, 0.02);

    padding: 14px 18px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-label {
    display: block;

    color: var(--ice-cyan);

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 4px;
}

.spec-label .dashicons {
    vertical-align: middle;

    width: 16px;
    height: 16px;

    font-size: 16px;

    margin-left: 3px;
}

.spec-val {
    font-size: 13px;

    color: #cbd5e1;

    line-height: 1.8;
}


/* ---------- Responsive ---------- */

@media (max-width: 767px) {

    .ice-grade-compare-section {
        padding: 45px 0;
    }

    .ice-grade-slider-card {
        padding: 16px;
    }

    .ice-grade-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .ice-grade-tab-btn {
        min-width: 0;

        flex: 1 1 calc(50% - 8px);

        padding: 9px 12px;

        font-size: 12px;
    }

    .ice-grade-tab-btn span {
        font-size: 10px;
    }

    .ice-grade-slider-wrapper {
        border-radius: 14px;
    }

    .ice-layer-tag {
        top: 10px;

        min-height: 26px;

        padding: 5px 9px;

        font-size: 10px;
    }

    .base-tag {
        right: 10px;
    }

    .overlay-tag {
        left: 10px;
    }

    .handle-button {
        width: 42px;
        height: 42px;
    }

    .ice-slider-help {
        font-size: 10px;
    }

    .ice-grade-spec-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

}


@media (max-width: 480px) {

    .ice-grade-tabs {
        flex-direction: column;
    }

    .ice-grade-tab-btn {
        width: 100%;
        flex: none;
    }

    .ice-grade-slider-card {
        padding: 10px;
        border-radius: 18px;
    }

    .ice-slider-help {
        flex-direction: column;
        justify-content: center;
        gap: 3px;

        text-align: center;
    }

}

/* ================= MODULE 2: TRADE-IN CALCULATOR ================= */
/* =========================================
   MODULE 2: Trade-In Calculator — Light Theme
   ========================================= */
/* ================= MODULE 2: TRADE-IN CALCULATOR (LIGHT THEME & REFINED) ================= */

.ice-tradein-section {
    padding: 60px 0;
    background: #f8fafc;
    color: #0f172a;
}

.tradein-container {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.glass-panel-light {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.02);
}

.ice-tradein-card {
    padding: 40px;
    box-sizing: border-box;
}

.ice-tradein-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.ice-tradein-form-wrap {
    min-width: 0;
}

.tradein-header-meta {
    margin-bottom: 24px;
}

.ice-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: #e0f2fe;
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #0284c7;
    font-size: 13px;
    font-weight: 700;
}

.tradein-title {
    margin: 12px 0 8px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
}

.tradein-desc {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.tradein-fields {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    min-width: 0;
}

.form-group > label,
.battery-label-row label {
    display: block;
    margin-bottom: 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.ice-select-wrapper {
    position: relative;
}

.ice-select {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ice-select:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

/* گزینه‌های حافظه */
.ice-radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-label:hover {
    border-color: #38bdf8;
    background: #f0f9ff;
    color: #0284c7;
}

.radio-label.active {
    border-color: #0284c7;
    background: #e0f2fe;
    color: #0369a1;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* اسلایدر باتری با فضای بهینه */
.battery-group {
    padding-top: 4px;
    padding-bottom: 6px;
}

.battery-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.battery-label-row label {
    margin-bottom: 0;
}

.range-display {
    color: #0284c7;
    font-size: 15px;
    font-weight: 800;
    direction: ltr;
}

.battery-range-wrap {
    padding: 6px 0;
}

.ice-range-slider {
    display: block;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    outline: none;
    accent-color: #0284c7;
    cursor: pointer;
    margin: 0;
}

.battery-range-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

/* باکس قیمت نهایی */
.ice-tradein-result-box {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 22px;
    padding: 32px 28px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-header {
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.result-price-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 22px 0 24px;
}

.price-digits {
    color: #0284c7;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    direction: ltr;
    letter-spacing: -0.5px;
}

.currency {
    color: #475569;
    font-size: 15px;
    font-weight: 700;
}

.trade-terms-list {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trade-terms-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.6;
}

.trade-terms-list .dashicons {
    flex-shrink: 0;
    color: #16a34a;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* دکمه اکشن */
.tradein-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: 0;
    border-radius: 14px;
    background: #0284c7;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.4);
    transition: all 0.2s ease;
}

.tradein-submit-btn:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -5px rgba(2, 132, 199, 0.5);
}

.tradein-submit-btn svg {
    transition: transform 0.2s ease;
}

.tradein-submit-btn:hover svg {
    transform: translateX(-4px);
}

/* ریسپانسیو و بهینه‌سازی موبایل */
@media (max-width: 991px) {
    .ice-tradein-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ice-tradein-card {
        padding: 30px 24px;
    }
}

@media (max-width: 576px) {
    .ice-tradein-section {
        padding: 36px 0;
    }

    .ice-tradein-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .tradein-title {
        font-size: 20px;
    }

    .ice-radio-group {
        gap: 8px;
    }

    .radio-label {
        font-size: 12.5px;
        min-height: 44px;
        padding: 6px 4px;
    }

    .price-digits {
        font-size: 28px;
    }

    .ice-tradein-result-box {
        padding: 24px 18px;
    }
}

.tradein-container {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.glass-panel-light {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    box-shadow:
        0 20px 45px -10px rgba(15, 23, 42, 0.08),
        0 0 1px 1px rgba(0, 0, 0, 0.02);
}

.tradein-header-meta {
    margin-bottom: 24px;
}

.ice-select-wrapper {
    position: relative;
    width: 100%;
}

.battery-group {
    padding-top: 4px;
    padding-bottom: 6px;
}

.battery-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.battery-label-row label {
    margin-bottom: 0;
}

.range-display {
    display: inline-flex;
    align-items: baseline;
    color: #0284c7;
    font-size: 15px;
    font-weight: 800;
    direction: ltr;
    white-space: nowrap;
}

.range-display strong {
    font-weight: 900;
}

.battery-range-wrap {
    padding: 6px 0;
}

.ice-range-slider {
    display: block;
    width: 100%;
    height: 8px;
    margin: 0;
    border-radius: 999px;
    background: #e2e8f0;
    outline: none;
    accent-color: #0284c7;
    cursor: pointer;
}

.ice-range-slider:focus-visible {
    outline: 3px solid rgba(2, 132, 199, 0.25);
    outline-offset: 4px;
}

.battery-range-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    user-select: none;
}

/* ظاهر بهتر اسلایدر در مرورگرهای WebKit */
.ice-range-slider::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
}

.ice-range-slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -6px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
    appearance: none;
    cursor: pointer;
}

.ice-range-slider::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
}

.ice-range-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
    cursor: pointer;
}

/* ================= MODULE 3: 48-POINT DIAGNOSTIC X-RAY ================= */
.ice-xray-section { padding: 60px 0; }
.ice-xray-board {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    padding: 30px;
    margin-top: 30px;
}
@media (max-width: 991px) { .ice-xray-board { grid-template-columns: 1fr; } }

.ice-xray-viewport {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.08) 0%, #050b14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}
.xray-main-img { max-width: 85%; height: auto; filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.2)); }

.ice-hotspot {
    position: absolute;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 20;
}
.hotspot-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    top: 6px;
    left: 6px;
    background: var(--ice-cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--ice-cyan);
}
.hotspot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.4);
    animation: hotspotPulse 2s infinite ease-out;
}
@keyframes hotspotPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

.hotspot-popover {
    position: absolute;
    bottom: 35px;
    right: -100px;
    width: 250px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--ice-cyan);
    border-radius: 12px;
    padding: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.hotspot-popover h4 { font-size: 14px; color: var(--ice-cyan); margin: 0 0 6px; }
.hotspot-popover p { font-size: 12px; color: #94a3b8; line-height: 1.6; margin: 0 0 8px; }
.popover-status { font-size: 11px; color: #4ade80; font-weight: bold; }

.ice-hotspot:hover .hotspot-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ice-xray-checklist-panel h3 { font-size: 20px; color: #f8fafc; margin-bottom: 20px; }
.xray-check-list { list-style: none; padding: 0; margin: 0 0 30px; }
.xray-check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #cbd5e1;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.xray-check-list li i { color: #38bdf8; font-size: 18px; }

.xray-certified-seal {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px dashed rgba(56, 189, 248, 0.4);
    padding: 16px;
    border-radius: 14px;
}
.seal-icon { font-size: 32px; }
.xray-certified-seal strong { display: block; color: #fff; font-size: 14px; }
.xray-certified-seal small { color: #94a3b8; font-size: 12px; }

/* ================= MODULE 4: FLASH DROPS GLOW BORDER ================= */
.ice-flash-drops-section { padding: 60px 0; }
.flash-drops-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.fire-badge { background: rgba(244, 63, 94, 0.15); color: #fb7185; border-color: rgba(244, 63, 94, 0.4); }
.timer-digits { font-family: monospace; font-size: 20px; font-weight: 900; color: #fb7185; }

.ice-flash-drops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.ice-flash-card-wrapper {
    position: relative;
    border-radius: 24px;
    padding: 2px;
    overflow: hidden;
}

/* نوار نوری چرخان */
.ice-glowing-border {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(56, 189, 248, 0.8), transparent 30%);
    animation: rotateGlow 4s linear infinite;
    z-index: 1;
}
@keyframes rotateGlow {
    100% { transform: rotate(360deg); }
}

.ice-flash-card {
    position: relative;
    z-index: 2;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flash-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
}

.flash-img-wrap { text-align: center; margin: 20px 0; }
.flash-img-wrap img { max-height: 200px; object-fit: contain; }

.flash-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.tag-battery, .tag-grade {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    color: #e2e8f0;
}

.flash-product-title { font-size: 17px; margin-bottom: 16px; }
.flash-product-title a { color: #f8fafc; text-decoration: none; }
.flash-pricing { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }

.ice-btn-buy-instant {
    background: var(--ice-cyan);
    color: #020617;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
}
.ice-btn-buy-instant:hover { box-shadow: 0 0 15px var(--ice-cyan); }

/* ================= MODULE 5: LIVE TRUST TICKER ================= */
.ice-live-ticker {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    max-width: 380px;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ice-live-ticker.active {
    transform: translateY(0);
    opacity: 1;
}

.ticker-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    background: rgba(56, 189, 248, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.live-dot-pulse {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #0f172a;
}
.ticker-content p { margin: 0; font-size: 13px; color: #f1f5f9; font-weight: 600; line-height: 1.4; }
.ticker-content small { font-size: 11px; color: #94a3b8; }
.ticker-close { background: none; border: none; color: #64748b; font-size: 18px; cursor: pointer; margin-right: auto; }
