:root {
            --bg-page: #f8fafc;
            --bg-panel: #ffffff;
            --border-dark: #e2e8f0;
            --border-light: #e2e8f0;
            --accent-main: #f97316;
            --accent-hover: #ea580c;
            --text-main: #0f172a;
            --text-muted: #64748b;
            --success: #16a34a;
            --danger: #dc2626;
            --sidebar-bg: #ffffff;
            --specs-bg: #f8fafc;
            --specs-border: #e2e8f0;
            --icon-color: #3b82f6;
            --score-color: #8b5cf6;
        }

        * { 
            box-sizing: border-box; 
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
            -webkit-font-smoothing: antialiased; 
        }
        
        html, body { 
            height: 100%; 
            margin: 0; 
            padding: 0; 
            background-color: var(--bg-page); 
            color: var(--text-main); 
            scroll-behavior: smooth; 
            overflow-x: clip; 
            width: 100%; 
        }
        
        body.modal-open { 
            overflow: hidden; 
            padding-right: calc(100vw - 100%); 
        }

        #full-page-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-panel); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s; }
        #full-page-loader h2 { color: var(--accent-main); font-size: 36px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; text-align: center;}
        .loader-bar { width: 100%; max-width: 400px; height: 4px; background: var(--border-dark); margin: 15px 0 25px 0; position: relative; overflow: hidden; border-radius: 2px; }
        .loader-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--accent-main); width: 40%; animation: slide 1s infinite alternate; }
        #loading-text { color: var(--text-muted); font-size: 18px; font-weight: 600; transition: 0.3s; }
        @keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

        .container { max-width: 1350px; width: 100%; display: flex; flex-direction: column; padding: 20px 15px 120px 15px; margin: 0 auto; overflow-x: clip;}

        .global-header { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; background: var(--bg-panel); padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); transition: all 0.3s ease; position: sticky; top: 0; z-index: 950; }
        .global-header.scrolled { padding: 10px 20px; border-radius: 0 0 12px 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-top: 5px solid var(--bg-page); }
        .logo-area { cursor: pointer; user-select: none; }
        .logo-area h1 { margin: 0; font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--text-main); transition: all 0.3s ease;}
        .logo-area h1 span { color: var(--accent-main); }
        .logo-area p { margin: 5px 0 0 0; transition: all 0.3s ease; opacity: 1; height: auto; }
        .global-header.scrolled .logo-area h1 { font-size: 22px; }
        .global-header.scrolled .logo-area p { opacity: 0; height: 0; overflow: hidden; margin: 0; }
        
        .header-controls { display: flex; align-items: center; gap: 15px; flex: 1; justify-content: flex-end; transition: all 0.3s ease;}
        .global-search-container { position: relative; max-width: 400px; width: 100%; }
        .search-input { width: 100%; padding: 12px 35px 12px 15px; background: var(--bg-page); border: 1px solid var(--border-light); color: var(--text-main); border-radius: 6px; font-size: 14px; outline: none; transition: 0.2s;}
        .search-input:focus { border-color: var(--accent-main); }
        .global-header.scrolled .search-input { padding: 8px 35px 8px 15px; font-size: 13px; }

        .top-sections-wrapper { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; width: 100%; }
        .price-inputs { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 15px;}
        .price-inputs input { width: 100%; padding: 8px; background: var(--bg-page); border: 1px solid var(--border-light); border-radius: 6px; font-size: 13px; text-align: center; outline: none; font-weight: bold; color: var(--text-main);}
        .price-inputs input:focus { border-color: var(--accent-main); }
        .range-slider { position: relative; width: calc(100% - 20px); height: 6px; margin: 15px 10px; background: var(--border-light); border-radius: 5px; }
        .range-slider .progress { position: absolute; height: 100%; left: 0%; right: 0%; background: var(--accent-main); border-radius: 5px; }
        .range-slider input[type="range"] { position: absolute; width: calc(100% + 20px); left: -10px; height: 6px; top: -5px; -webkit-appearance: none; background: transparent; pointer-events: none; margin:0; padding:0; }
        .range-slider input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; background: #fff; border: 2px solid var(--accent-main); border-radius: 50%; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.2);}

        .smart-finder-banner { background: #ffffff; border: 1px solid var(--border-dark); border-top: 4px solid var(--accent-main); padding: 20px 25px; border-radius: 12px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
        .sf-top-bar { display: flex; justify-content: space-between; align-items: center; width: 100%; border-bottom: 1px solid var(--border-light); padding-bottom: 10px;}
        .sf-title-wrap { display: flex; flex-direction: column; gap: 2px; }
        .sf-main-title { font-size: 20px; font-weight: 900; color: var(--text-main); margin: 0; letter-spacing: -0.5px;}
        .sf-subtitle { font-size: 13px; color: var(--text-muted); font-weight: 600; }
        .sf-wizard-step { position: relative; padding: 15px 20px; border: 1px dashed var(--border-light); border-radius: 10px; background: #f8fafc; }
        .sf-step-badge { position: absolute; top: -12px; left: 20px; background: var(--text-main); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);}
        .sf-chips-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 5px; }
        .sf-chip-label { cursor: pointer; user-select: none; height: 100%; display: block;}
        .sf-chip-label input { display: none; }
        .sf-chip-box { border: 2px solid var(--border-light); border-radius: 8px; padding: 10px 8px; text-align: center; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); background: #ffffff; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
        .sf-chip-box:hover { border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.04);}
        .sf-chip-label input[type="radio"]:checked + .sf-chip-box { border-color: var(--accent-main); background: #fff7ed; box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15); }
        .sf-chip-label input[type="checkbox"]:checked + .sf-chip-box { border-color: #3b82f6; background: #eff6ff; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15); }
        .sf-chip-icon { font-size: 20px; line-height: 1; margin-bottom: 2px; }
        .sf-chip-title { font-size: 13px; font-weight: 800; color: var(--text-main); line-height: 1.2; }
        .sf-chip-sub { font-size: 10px; font-weight: 600; color: var(--text-muted); line-height: 1.3; margin-top: 2px; padding: 0 2px;}
        .sf-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: -5px;}
        .sf-btn-outline { background: #fff; border: 2px solid var(--border-light); color: var(--text-muted); padding: 8px 20px; font-size: 12px; font-weight: 800; border-radius: 6px; cursor: pointer; transition: 0.2s; text-transform: uppercase;}
        .sf-btn-outline:hover { border-color: var(--text-main); color: var(--text-main); }
        .sf-btn-action { background: var(--text-main); color: #fff; border: none; padding: 8px 24px; font-size: 13px; font-weight: 800; border-radius: 6px; cursor: pointer; transition: 0.2s; text-transform: uppercase; letter-spacing: 0.5px;}
        .sf-btn-action:hover { background: var(--accent-main); box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3); }

        @media (max-width: 992px) { .sf-chips-grid { grid-template-columns: repeat(3, 1fr); } }
        @media (max-width: 576px) {
            .smart-finder-banner { padding: 15px; }
            .sf-chips-grid { grid-template-columns: repeat(2, 1fr); gap: 8px;}
            .sf-chip-box { padding: 10px 5px; }
            .sf-chip-icon { font-size: 18px; }
            .sf-actions { flex-direction: row; width: 100%; justify-content: space-between; margin-top: 0; }
            .sf-btn-outline, .sf-btn-action { flex: 1; text-align: center; padding: 10px 8px;}
        }

        .compare-strip { background: var(--bg-panel); border: 1px solid var(--border-dark); padding: 20px 25px; border-radius: 12px; }
        .compare-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;}
        .compare-slot { flex: 1; position: relative; width: 100%; }
        .compare-input { width: 100%; padding: 12px 30px 12px 15px; background: var(--bg-page); border: 1px solid var(--border-light); color: var(--text-main); border-radius: 6px; font-size: 13px; outline: none; transition: 0.2s;}
        .compare-input.locked { border-color: var(--success); font-weight: bold; background: #f0fdf4; }
        .vs-badge { background: var(--text-main); color: var(--bg-panel); font-size: 10px; font-weight: bold; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .clear-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--danger); cursor: pointer; display: none; font-size: 18px; padding: 0; font-weight: bold;}
        .action-btn { background: var(--text-main); color: #fff; border: none; border-radius: 6px; padding: 12px 25px; font-weight: 800; cursor: pointer; text-transform: uppercase; font-size: 14px;}

        .mobile-controls-bar { display: none; justify-content: space-between; align-items: center; background: var(--bg-panel); padding: 10px 15px; border-radius: 8px; border: 1px solid var(--border-dark); margin-bottom: 15px; position: sticky; top: 0; z-index: 940; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
        .mobile-filter-btn { background: var(--bg-page); border: 1px solid var(--border-light); padding: 8px 15px; border-radius: 6px; font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-main);}
        .mobile-sort-select { padding: 8px; font-size: 13px; font-weight: 600; border: 1px solid var(--border-light); border-radius: 6px; background: var(--bg-page); outline: none;}

        .sort-controls, .mobile-sort-select { appearance: none; -webkit-appearance: none; background-color: var(--bg-panel); background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; border: 1px solid var(--border-light); padding: 8px 30px 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--text-main); outline: none; cursor: pointer; transition: 0.2s;}

        .layout-wrapper { display: flex; gap: 20px; align-items: flex-start; width: 100%; }
        
        .sidebar { flex: 0 0 260px; background: var(--sidebar-bg); border: 1px solid var(--border-dark); border-radius: 12px; position: sticky; top: 90px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; transition: top 0.3s ease;}
        .sidebar-content { padding: 20px; overflow-y: auto; flex: 1; position: relative; scroll-behavior: smooth;}
        .sidebar-content::-webkit-scrollbar { width: 5px; }
        .sidebar-content::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
        
        .filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-dark); }
        .filter-header h3 { margin: 0; font-size: 20px; font-weight: 900; color: var(--text-main); }
        .clear-all-btn { background:transparent; border:none; color: var(--accent-main); font-size: 11px; font-weight:700; cursor:pointer; text-transform: uppercase;}
        
        .filter-group { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-light); }
        .filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
        .filter-title { background: #fef4ea; padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 800; color: var(--text-main); margin-bottom: 12px; display: flex; align-items: center; border-left: 4px solid var(--accent-main); letter-spacing: -0.2px;}
        
        .filter-search-box { width: 100%; padding: 8px 10px; margin-bottom: 10px; border: 1px solid var(--border-light); border-radius: 4px; font-size: 12px; background: var(--bg-page); color: var(--text-main); outline: none;}
        .checkbox-container { max-height: 160px; overflow-y: auto; padding-right: 5px;}
        .checkbox-container::-webkit-scrollbar { width: 4px; }
        .checkbox-container::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }
        .checkbox-list { display: flex; flex-direction: column; gap: 8px; }
        .checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); cursor: pointer; font-weight: 600;}
        .checkbox-label input[type="checkbox"] { accent-color: var(--accent-main); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0;}
        .sub-options { margin-left: 23px; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; display: none; padding-left: 8px; border-left: 2px solid var(--border-light);}

        #sidebar-btt { position: absolute; bottom: 20px; right: 20px; background: var(--text-main); color: #fff; width: 35px; height: 35px; border-radius: 50%; border: none; font-weight: bold; cursor: pointer; display: none; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: 0.3s; align-items: center; justify-content: center; }
        #sidebar-btt:hover { background: var(--accent-main); transform: translateY(-3px); }

        .mobile-filter-footer { display: none; padding: 15px; background: var(--bg-panel); border-top: 1px solid var(--border-dark); gap: 10px;}
        .mobile-filter-footer button { flex: 1; padding: 12px; border-radius: 6px; font-weight: 800; font-size: 14px; text-transform: uppercase; cursor: pointer; border: none;}
        .btn-cancel { background: var(--bg-page); color: var(--text-main); border: 1px solid var(--border-light) !important;}
        .btn-apply { background: var(--text-main); color: #fff; }

        .main-content { flex: 1; min-width: 0; }
        .top-bar-results { display: flex; justify-content: space-between; align-items: center; background: transparent; margin-bottom: 15px; }
        .results-count { font-size: 15px; font-weight: 700; color: var(--text-main); }
        .controls-right { display: flex; align-items: center; gap: 15px; }

        .load-more-btn { display: block; margin: 30px auto; padding: 12px 40px; background: var(--text-main); color: #fff; border: none; border-radius: 8px; font-weight: 800; font-size: 14px; cursor: pointer; text-transform: uppercase; transition: 0.2s;}
        .load-more-btn:hover { background: var(--accent-main); }

        .results-grid { display: grid; gap: 15px; }
        .mobile-only { display: none !important; }

        .phone-card { 
            background: var(--bg-panel); 
            box-shadow: 0 4px 15px rgba(0,0,0,0.06); 
            border: 1px solid var(--border-dark); 
            border-radius: 12px; 
            display: flex; 
            flex-direction: row; 
            align-items: center; 
            padding: 24px 20px; 
            position: relative; 
            transition: 0.2s; 
        }
        .phone-card:hover { border-color: var(--accent-main); box-shadow: 0 8px 25px rgba(249, 115, 22, 0.15); }
        .phone-card.rank-1::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--success); border-radius: 12px 0 0 12px;}
        
        /* 🔥 TOP 3 RECOMMENDATIONS CSS 🔥 */
        .top-3-container { display: grid; gap: 15px; margin-bottom: 30px; background: linear-gradient(145deg, #fffbeb, #ffffff); padding: 20px; border-radius: 12px; border: 1px solid #fde68a; box-shadow: 0 10px 30px rgba(245, 158, 11, 0.05); }
        .top-3-title { font-size: 22px; font-weight: 900; color: #d97706; margin: 0 0 15px 0; display: flex; align-items: center; gap: 8px; }
        .other-options-title { font-size: 20px; font-weight: 800; margin: 0 0 15px 0; color: var(--text-main); padding-bottom: 10px; border-bottom: 2px solid var(--border-light); }
        .phone-card.top-3-card { border-color: #fcd34d; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1); }
        .phone-card.top-3-card:hover { border-color: #f59e0b; box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2); transform: translateY(-2px); }

        /* 🔥 FLAGS CSS 🔥 */
        .flags-container { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; width: 100%;}
        .flag-badge { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 6px; display: flex; align-items: center; gap: 4px; line-height: 1.2; box-shadow: 0 1px 3px rgba(0,0,0,0.05);}
        .flag-red { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
        .flag-green { background: #dcfce7; color: #166534; border: 1px solid #86efac; }

        /* 🔥 VERDICT & RANK BADGE CSS 🔥 */
        .verdict-box { 
            background: #f8fafc; 
            border: 1px dashed #cbd5e1; 
            padding: 15px; 
            border-radius: 10px; 
            font-size: 13px; 
            color: #334155; 
            text-align: left; 
            line-height: 1.6; 
            margin: 15px; 
            box-shadow: inset 0 2px 10px rgba(0,0,0,0.02); 
        }
        .verdict-box-title { 
            color: #0f172a; 
            font-size: 15px; 
            font-weight: 900; 
            margin-bottom: 10px; 
            border-bottom: 1px solid #e2e8f0; 
            padding-bottom: 5px; 
        }
        .verdict-box ul { 
            margin: 0; 
            padding-left: 20px; 
            display: flex; 
            flex-direction: column; 
            gap: 8px; 
        }
        .verdict-box li { margin-bottom: 0; }
        
        /* 🚨 BUG FIX: Bullet continuity fixed here */
        .verdict-box b { 
            color: #0f172a; 
            font-weight: 800; 
        }
        
        .rank-badge-img { 
            display: inline-block; 
            background: #fff; 
            padding: 4px 12px; 
            border-radius: 20px; 
            font-weight: 900; 
            font-size: 12px; 
            box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
            border: 2px solid; 
            white-space: nowrap; 
            margin-bottom: 10px;
        }
        .rank-1-badge { border-color: #fbbf24; color: #d97706; }
        .rank-2-badge { border-color: #94a3b8; color: #475569; }
        .rank-3-badge { border-color: #b45309; color: #78350f; }

        .card-img-col { width: 180px; border-right: 1px solid var(--border-light); padding-right: 20px; display: flex; flex-direction: column; align-items: center; position: relative;}
        .trending-badge { position: absolute; top: 25px; left: 0px; background: #6366f1; color: #fff; font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 4px; text-transform: uppercase; z-index: 2;}
        .card-img { width: 100%; height: 140px !important; object-fit: contain; display: block; margin: 0 auto; cursor: pointer;}
        
        .market-status-label { font-size: 12px; padding-top: 5px; padding-bottom: 8px; color: #4b5563; font-weight: 700; margin-bottom: 10px; text-align: center; width: 100%; }
        .in-stock { color: #16a34a; }
        .out-of-stock { color: #dc2626; }
        
        .col-price-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 12px; gap: 6px; }
        .under-img-price { font-size: 22px; font-weight: 900; color: #000; text-align: center; line-height: 1;}
        .price-updated { font-size: 10px; font-weight: 600; color: var(--text-muted); text-align: center; margin-top: 0; line-height: 1.4;}
        
        .card-compare-label { font-size: 12px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 6px; cursor: pointer; justify-content: center;}
        .card-compare-label input { accent-color: var(--accent-main); width: 16px; height: 16px; cursor: pointer;}

        .card-info-col { flex: 1; padding: 0 20px; display: flex; flex-direction: column; gap: 12px; }
        .card-title-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 5px; }
        .card-title { font-size: 20px; font-weight: 800; color: #1e3a8a; margin: 0; cursor: pointer; line-height: 1.2;}
        .score-badge { display: flex; align-items: center; gap: 5px; background: #f3e8ff; padding: 4px 8px; border-radius: 6px; border: 1px solid #ddd6fe;}
        .score-val { font-size: 16px; font-weight: 900; color: var(--score-color); line-height: 1;}
        .score-label { font-size: 9px; font-weight: 800; color: var(--score-color); text-transform: uppercase; line-height: 1.1;}

        .specs-box { background: transparent; border: 1px solid var(--specs-border); border-radius: 8px; display: flex; flex-direction: column; padding: 15px; gap: 12px;}
        .spec-line { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-main); font-weight: 600; line-height: 1.7; }
        .spec-icon { width: 18px; height: 18px; fill: none; stroke: var(--icon-color); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; background: #eff6ff; padding: 2px; border-radius: 4px; border: 1px solid #bfdbfe; }
        
        .view-specs-btn { background: var(--bg-panel); border: 2px solid var(--border-dark); color: var(--text-main); font-size: 13px; font-weight: 800; cursor: pointer; display: block; text-align: center; text-transform: uppercase; transition: 0.2s; text-decoration: none; padding: 10px; border-radius: 6px; margin-top: 8px;}
        .view-specs-btn:hover { border-color: var(--accent-main); color: var(--accent-main); background: #fff7ed; }

        .card-action-col { width: 220px; border-left: 1px dashed var(--border-light); padding-left: 20px; display: flex; flex-direction: column; align-items: center; }
        
        .pricing-block { display: flex; flex-direction: column; gap: 10px; width: 100%; align-items: center;}
        .save-banner { border: 1px dashed #22c55e; color: #22c55e; background: #f0fdf4; padding: 6px 8px; text-align: center; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; width: 100%; max-width: 200px; box-sizing: border-box; line-height: 1.2;}
        .store-btn-large { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 6px; font-size: 15px; font-weight: 800; text-decoration: none; border: none; cursor: pointer; width: 100%; max-width: 200px; line-height: 1; box-sizing: border-box; text-align: center;}
        .btn-amz-large { background: #f59e0b; color: #000; }
        .btn-flp-large { background: #0084ff; color: #fff; }
        .best-deal-badge { position: absolute; top: -10px; right: -5px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; border: 1px solid #f87171;}
        .store-svg { height: 18px; fill: currentColor;}
        
        .sticky-compare-dock { position: fixed; bottom: -150px; left: 0; width: 100%; background: var(--bg-panel); border-top: 2px solid var(--accent-main); padding: 15px 20px; z-index: 990; display: flex; justify-content: center; box-shadow: 0 -10px 40px rgba(0,0,0,0.15); transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        .sticky-compare-dock.show { bottom: 0; }
        .dock-container { display: flex; align-items: center; justify-content: space-between; max-width: 1350px; width: 100%; gap: 20px;}
        .dock-phones { display: flex; gap: 15px; flex: 1; justify-content: center;}
        .dock-phone-slot { width: 100%; max-width: 250px; background: var(--bg-page); border: 1px solid var(--border-light); border-radius: 8px; padding: 12px 15px; display: flex; align-items: center; gap: 12px; position: relative; transition: 0.2s;}
        .dock-phone-slot img { width: 35px; height: 45px; object-fit: contain; }
        .dock-phone-title { font-size: 13px; font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}
        .dock-phone-slot.empty { background: transparent; border: 1px dashed var(--border-light); justify-content: center; color: var(--text-muted); font-size: 12px; font-weight: bold; text-transform: uppercase;}
        .remove-dock-item { position: absolute; top: -10px; right: -10px; background: var(--danger); color: #fff; border-radius: 50%; width: 24px; height: 24px; font-size: 14px; font-weight: bold; border: none; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2);}
        #dock-buttons { display: flex; gap: 10px; }

        .suggestions-box { position: absolute; top: calc(100% + 5px); left: 0; width: 100%; background: var(--bg-panel); border: 1px solid var(--border-dark); border-radius: 8px; max-height: 250px; overflow-y: auto; z-index: 100; display: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
        .suggestion-item { padding: 10px 15px; display: flex; align-items: center; gap: 12px; cursor: pointer; border-bottom: 1px solid var(--border-light); }
        .suggestion-img { width: 25px; height: 35px; object-fit: contain; }
        .suggestion-text { color: var(--text-main); font-size: 13px; font-weight: 600; flex: 1;}

        .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 1000; justify-content: center; align-items: center; padding: 20px; }
        .modal-box { background: var(--bg-page); width: 100%; max-width: 800px; max-height: 90vh; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 50px rgba(0,0,0,0.3); }
        .modal-box.large { max-width: 1100px; }
        .modal-header { padding: 15px 20px; border-bottom: 1px solid var(--border-dark); display: flex; justify-content: space-between; align-items: center; background: #fff; flex-shrink: 0;}
        .modal-header h2 { margin: 0; font-size: 18px; color: var(--text-main); font-weight: 800;}
        .modal-body { padding: 0; overflow-y: auto; flex: 1; background: var(--bg-panel);}
        .mobile-back-btn { display: none; }

        .sp-top-section { display: flex; flex-direction: column; align-items: center; padding: 20px; border-bottom: 1px solid var(--border-light); gap: 10px; background: #fff;}
        .sp-top-section img { max-height: 180px; object-fit: contain; }
        .specs-accordion-container { padding: 20px; background: var(--bg-page); }
        
        .spec-group { border: 1px solid var(--border-dark); margin-bottom: 15px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.02);}
        .spec-group summary { list-style: none; outline: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #f8fafc; border-bottom: 1px solid transparent; font-weight: 800; color: var(--text-main); text-transform: uppercase; font-size: 14px;}
        .spec-group summary::-webkit-details-marker { display: none; }
        .spec-group[open] summary { border-bottom: 1px solid var(--border-light); }
        .spec-group summary .sgh-title { display: flex; align-items: center; gap: 8px; }
        .spec-group summary .sgh-icon { transition: transform 0.3s; color: var(--text-muted); font-size: 12px;}
        .spec-group[open] summary .sgh-icon { transform: rotate(180deg); }
        
        .modal-spec-table { width: 100%; border-collapse: collapse; }
        .modal-spec-row { border-bottom: 1px solid var(--border-light); transition: background 0.15s;}
        .modal-spec-row:hover { background: #f8fafc; }
        .modal-spec-row:last-child { border-bottom: none; }
        .modal-spec-label { width: 35%; padding: 12px 20px; font-weight: 700; color: var(--text-muted); font-size: 13px; background: #fafafa; border-right: 1px solid var(--border-light); }
        .modal-spec-val { padding: 12px 20px; font-weight: 600; color: var(--text-main); font-size: 14px; }
        .highlight-spec { font-weight: 800 !important; color: #0f172a !important; }

        .sp-bottom-section { padding: 20px; background: #fff; border-top: 1px solid var(--border-dark); display: flex; justify-content: center; align-items: center; }
        .sp-bottom-section .pricing-block { max-width: 600px; flex-direction: column; align-items: center;}

        /* 🚨 FIXED COMPARISON TABLE HEADER STICKINESS 🚨 */
        .comp-table-wrapper { width: 100%; }
        .comp-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; font-size: 13px; background: #fff; }
        .comp-table th, .comp-table td { padding: 12px 15px; border-bottom: 1px solid var(--border-dark); border-right: 1px solid var(--border-dark); vertical-align: middle; }
        
        .comp-table th.header-cell { background-color: #ffffff; position: sticky; top: 0; z-index: 50; border-bottom: 2px solid var(--border-light); box-shadow: 0 4px 6px -2px rgba(0,0,0,0.1); min-width: 150px; padding: 0; text-align: center; vertical-align: bottom;}
        
        .comp-header-inner { position: relative; width: 100%; height: 100%; padding: 25px 15px 15px 15px; }
        
        .comp-table th.top-left-cell { position: sticky; top: 0; left: 0; z-index: 60; background: #f8fafc; border-right: 1px solid var(--border-dark); text-align: center; padding: 20px 10px; }
        .comp-table td.spec-name { font-weight: 800; color: var(--text-muted); background: #f8fafc; width: 150px; font-size: 12px; position: sticky; left: 0; z-index: 10; border-right: 1px solid var(--border-dark); }
        .comp-category-row td { position: sticky; left: 0; z-index: 11; background: #fef4ea; font-weight: 900; color: var(--text-main); font-size: 14px; text-transform: uppercase; padding: 12px 15px; border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); }
        
        .comp-img-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 10px auto; }
        .comp-img { max-height: 100%; max-width: 100%; object-fit: contain; }
        .modal-remove-btn { position: absolute; background: var(--bg-page); color: var(--text-muted); border: 1px solid var(--border-dark); border-radius: 50%; width: 24px; height: 24px; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 12px; font-weight: bold;}
        .modal-remove-btn:hover { background: var(--danger); color: #fff; border-color: var(--danger);}
        .comp-title { font-size: 16px; font-weight: 800; color: var(--text-main); margin-bottom: 5px;}
        .comp-price { font-size: 20px; font-weight: 900; color: #000; margin-bottom: 5px;}
        .show-diff-only .all-same-row { display: none !important; }

        #back-to-top { position: fixed; bottom: 30px; right: 30px; background: var(--text-main); color: #fff; width: 45px; height: 45px; border-radius: 50%; border: none; font-size: 20px; font-weight: bold; cursor: pointer; display: none; z-index: 995; box-shadow: 0 4px 15px rgba(0,0,0,0.25); transition: 0.3s; align-items: center; justify-content: center;}
        #back-to-top:hover { background: var(--accent-main); transform: translateY(-3px);}

        /* Responsive Breakpoints */
        @media (max-width: 768px) {
            .container { padding-top: 10px; }
            .global-header { flex-direction: column; text-align: center; padding: 15px; }
            .header-controls { width: 100%; transition: all 0.3s ease; max-height: 100px; opacity: 1; overflow: hidden; }
            .global-header.hide-search .header-controls { max-height: 0; opacity: 0; margin: 0; padding: 0; pointer-events: none; border: none; }
            .compare-strip { display: none !important; }
            .top-bar-results { display: none; }
            .mobile-controls-bar { display: flex !important; position: sticky; z-index: 1050; width: 100%; background: white; border-radius: 0; border: 1px solid var(--border-dark); margin-bottom: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
            .sidebar { display: none; }
            .sidebar.mobile-active { display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; background: var(--bg-panel); border-radius: 0; margin: 0; border: none; }
            .mobile-filter-footer { display: flex; }
            .sidebar-content { padding-bottom: 80px; } 
            .modal-overlay { padding: 0 !important; align-items: flex-start; }
            .modal-box { max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 50px rgba(0,0,0,0.3); }
            .modal-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 5px rgba(0,0,0,0.05); padding: 12px 15px; border-radius: 0; }
            .modal-body { flex: 1; padding-bottom: 80px; }
            .sp-top-section img { max-height: 140px; }
            .mobile-back-btn { display: flex !important; align-items: center; gap: 5px; border: 1px solid var(--border-light); background: var(--bg-page); padding: 6px 12px; border-radius: 6px; font-weight: bold; color: var(--text-main); font-size: 13px; cursor: pointer; }
            .desktop-close-btn { display: none !important; }
            #modal-title { font-size: 15px !important; }
            .pricing-block { flex-direction: row !important; flex-wrap: wrap; justify-content: center; }
            .store-btn-large { flex: 1; min-width: 120px; max-width: none !important; padding: 10px 5px !important; font-size: 13px !important; }
            .save-banner { width: 100% !important; max-width: none !important; }
            .comp-table .pricing-block { flex-direction: column !important; }
            .desktop-only { display: none !important; }
            .mobile-only { display: flex !important; }

            .phone-card {
                display: grid !important; grid-template-columns: 110px 1fr;
                grid-template-areas: "mobheader mobheader" "img rightcol" "specs specs" "flags flags" "actions actions";
                padding: 15px; gap: 12px; align-items: stretch;
            }
            .mobile-layout-header { grid-area: mobheader; display: flex; justify-content: space-between; width: 100%; border-bottom: 1px solid var(--border-light); padding-bottom: 12px; margin-bottom: 5px; }
            .card-img-col { grid-area: img; width: 100%; padding: 0; border: none; align-self: center; }
            .card-img-col .trending-badge { top: -5px; left: -5px; }
            .card-info-col { display: contents; }
            .mobile-price-compare-col { grid-area: rightcol; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }
            .mobile-price-compare-col .under-img-price { font-size: 22px; font-weight: 900; color: #000; text-align: right; line-height: 1; }
            .mobile-price-compare-col .price-updated { font-size: 10px; font-weight: 600; color: var(--text-muted); text-align: right; margin-top: 4px; }
            .mobile-price-compare-col .card-compare-label { margin-top: 12px; }
            .specs-box { grid-area: specs; margin-top: 5px; }
            .flags-container { grid-area: flags; margin-top: 0;}
            .card-action-col { grid-area: actions; width: 100%; padding: 0; border: none; margin-top: 5px; }
            
            #back-to-top { bottom: 90px; right: 20px; width: 40px; height: 40px; }
            #sidebar-btt { bottom: 80px; }
            
            .sticky-compare-dock { padding: 15px 10px; }
            .dock-container { display: flex; flex-direction: column !important; gap: 10px; width: 100%; }
            .dock-phones { display: flex; width: 100% !important; gap: 10px !important; justify-content: space-between; flex-wrap: nowrap; }
            .dock-phone-slot { flex: 1; max-width: none; margin: 0; padding: 8px 4px; flex-direction: column; text-align: center;}
            .dock-phone-slot img { width: 25px; height: 35px;}
            .dock-phone-title { font-size: 12px; }
            .dock-phone-slot:nth-child(3) { display: none; }
            #dock-buttons { display: flex; width: 100%; gap: 10px; justify-content: center; }
            #dock-buttons button { flex: 1; padding: 12px; font-size: 13px; }
            .footer-container { grid-template-columns: 1fr; text-align: center; gap: 25px; }
            .modal-spec-label { width: 45%; } 
        }

        .site-footer { background: var(--bg-panel); border-top: 1px solid var(--border-dark); padding: 50px 15px; margin-top: 50px; }
        .footer-container { max-width: 1350px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
        .footer-col h4 { font-size: 16px; font-weight: 800; color: var(--text-main); margin: 0 0 15px 0; text-transform: uppercase; letter-spacing: 0.5px; }
        .footer-col p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0 0 10px 0; }
        .footer-col a { color: var(--accent-main); text-decoration: none; font-weight: 600; }
        .footer-col a:hover { text-decoration: underline; }