.optico-filter-root {
    --optico-navy: #0F294A;
    --optico-gold: #C9A84C;
    --optico-slate: #64748B;
    --optico-border: #E2E8F0;
    font-family: 'DM Sans', -apple-system, sans-serif;
    position: relative;
    margin-bottom: 35px;
}

/* Dual-Ring Luxury Spinner */
.optico-filter-loader {
    display: none;
    position: absolute;
    inset: -10px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
}
.optico-filter-root.is-loading .optico-filter-loader { display: flex; }
.optico-spinner-ring {
    width: 46px;
    height: 46px;
    border: 3.5px solid rgba(15, 41, 74, 0.1);
    border-top-color: var(--optico-gold);
    border-right-color: var(--optico-navy);
    border-radius: 50%;
    animation: opticoSpin 0.75s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}
@keyframes opticoSpin { to { transform: rotate(360deg); } }

/* Smart Face Match Box */
.optico-smart-match-box {
    background: #F8FAFC;
    border: 1.5px solid var(--optico-gold);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 22px;
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.12);
}
.optico-sm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.optico-sm-title { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--optico-navy); }
.optico-sm-tag { font-size: 9px; font-weight: 800; background: #0F294A; color: #C9A84C; padding: 2px 7px; border-radius: 999px; letter-spacing: 0.05em; }
.optico-sm-desc { font-size: 11.5px; line-height: 1.45; color: var(--optico-slate); margin: 0 0 12px 0; }
.optico-sm-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--optico-navy);
    color: #FFFFFF;
    border: none;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}
.optico-sm-btn svg { width: 15px; height: 15px; color: var(--optico-gold); }
.optico-sm-btn:hover { background: var(--optico-gold); color: #0F294A; }
.optico-sm-btn:hover svg { color: #0F294A; }

/* Scanning Animation */
.optico-sm-scanning-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0; }
.optico-scan-window {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--optico-gold);
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.4);
}
.optico-scan-window img { width: 100%; height: 100%; object-fit: cover; }
.optico-laser-beam {
    position: absolute;
    left: 0; right: 0; height: 3px;
    background: #10B981;
    box-shadow: 0 0 12px #10B981, 0 0 4px #FFFFFF;
    animation: opticoLaserScan 1.6s ease-in-out infinite alternate;
}
@keyframes opticoLaserScan { 0% { top: 0%; } 100% { top: 96%; } }
.optico-scan-msg { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--optico-navy); font-weight: 700; }
.optico-pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; animation: opticoPulse 1.2s infinite; }
@keyframes opticoPulse { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

/* Result State Clean Header */
.optico-res-profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #EEF2F6;
}
.optico-user-photo-wrap {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--optico-gold);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.optico-user-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.optico-verified-dot {
    position: absolute; bottom: 0; right: 0;
    width: 14px; height: 14px;
    background: #10B981; color: #fff;
    font-size: 8px; font-weight: 800;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #fff;
}
.optico-res-profile-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}
.optico-res-shape-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0F294A;
    white-space: nowrap;
}
.optico-res-status-sub {
    font-size: 10.5px;
    color: #10B981;
    font-weight: 700;
}

/* Delete Trash Button */
.optico-icon-trash-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    color: #EF4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.optico-icon-trash-btn:hover {
    background: #EF4444;
    color: #FFFFFF;
}

/* Action Buttons */
.optico-res-action-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.optico-upload-new-btn {
    flex-grow: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0F294A;
    color: #FFFFFF;
    border: none;
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.optico-upload-new-btn:hover { background: #C9A84C; }
.optico-reuse-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #EEF4FA;
    border: 1px solid #CBD5E1;
    color: #0F294A;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.optico-reuse-btn:hover { background: #0F294A; color: #FFFFFF; }
.optico-sm-advice {
    font-size: 12px; line-height: 1.5; color: #334155;
    background: #FFFFFF; padding: 10px;
    border-radius: 8px; border: 1px solid #E2E8F0;
    margin: 0 0 10px 0;
}

/* Active Chips Bar */
.optico-active-chips-bar {
    background: #FFFFFF; border: 1.5px solid var(--optico-navy);
    border-radius: 10px; padding: 10px 12px; margin-bottom: 20px;
}
.optico-chips-title {
    font-size: 11px; font-weight: 800; color: var(--optico-navy);
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em;
}
.optico-chips-list { display: flex; flex-wrap: wrap; gap: 6px; }
.optico-chip-item {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--optico-navy); color: #FFFFFF;
    font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 999px;
}
.optico-chip-remove { cursor: pointer; font-size: 12px; color: var(--optico-gold); font-weight: 800; line-height: 1; }
.optico-chip-remove:hover { color: #FFFFFF; }

/* Filter Controls Header */
.optico-filter-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--optico-navy);
}
.optico-filter-badge { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--optico-navy); }
.optico-clear-btn {
    background: transparent; color: var(--optico-navy);
    border: 1.5px solid var(--optico-navy); padding: 4px 12px;
    border-radius: 999px; font-size: 11px; font-weight: 700;
    cursor: pointer; transition: all 0.25s ease;
}
.optico-clear-btn:hover { background: var(--optico-navy); color: #FFFFFF; }

/* Section Title */
.optico-filter-section { margin-bottom: 24px; }
.optico-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem; font-weight: 700; color: var(--optico-navy);
    margin: 0 0 12px 0; position: relative; padding-left: 12px;
}
.optico-section-title::before {
    content: ''; position: absolute; left: 0; top: 3px; bottom: 3px;
    width: 3.5px; background: var(--optico-gold); border-radius: 2px;
}
.optico-items-scrollable {
    max-height: 230px; overflow-y: auto; padding-right: 5px;
    scrollbar-width: thin; scrollbar-color: var(--optico-navy) transparent;
}
.optico-items-scrollable::-webkit-scrollbar { width: 4px; }
.optico-items-scrollable::-webkit-scrollbar-thumb { background: var(--optico-border); border-radius: 10px; }

/* Shape Cards (High Contrast Active State) */
.optico-shape-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.optico-shape-card {
    position: relative; background: #FFFFFF; border: 1.5px solid var(--optico-border);
    border-radius: 12px; padding: 10px 6px 8px; min-height: 60px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1); gap: 5px;
}
.optico-shape-card:hover { border-color: var(--optico-gold); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(201, 168, 76, 0.16); }
.optico-active-check {
    display: none; position: absolute; top: 4px; right: 4px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #C9A84C; color: #FFFFFF; font-size: 9px;
    font-weight: 800; line-height: 14px; text-align: center;
}
.optico-shape-card.is-active { border-color: #0F294A !important; background: #F0F6FF !important; box-shadow: 0 0 0 2px #0F294A !important; }
.optico-shape-card.is-active .optico-active-check { display: block; }
.optico-shape-card.is-active .optico-shape-label { color: #0F294A !important; font-weight: 800 !important; }
.optico-shape-icon-wrap { width: 100%; height: 28px; display: flex; align-items: center; justify-content: center; }
.optico-shape-icon-wrap img { max-width: 100%; max-height: 28px; object-fit: contain; }
.optico-shape-placeholder { width: 10px; height: 10px; border-radius: 50%; background: var(--optico-border); }
.optico-shape-label { font-size: 10px; font-weight: 700; color: var(--optico-slate); text-align: center; line-height: 1.1; }

/* Color Circles */
.optico-color-wrap { display: flex; flex-wrap: wrap; gap: 10px; padding: 3px; }
.optico-color-circle {
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid #CBD5E1;
    cursor: pointer; position: relative; transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(15, 41, 74, 0.08);
}
.optico-color-circle:hover { transform: scale(1.15); border-color: var(--optico-navy); }
.optico-color-circle.is-active {
    border-color: var(--optico-navy) !important; transform: scale(1.15);
    box-shadow: 0 0 0 2.5px var(--optico-gold), 0 4px 14px rgba(15, 41, 74, 0.2) !important;
}
.optico-color-check {
    display: none; width: 8px; height: 8px; background: #FFFFFF; border-radius: 50%;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.85);
}
.optico-color-circle.is-active .optico-color-check { display: block; }

/* Radio Pills */
.optico-pills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.optico-pill-btn {
    background: #FFFFFF; border: 1.5px solid var(--optico-border); padding: 7px 15px;
    border-radius: 999px; font-size: 12px; font-weight: 700; color: #334155;
    cursor: pointer; transition: all 0.2s ease;
}
.optico-pill-btn:hover { border-color: var(--optico-navy); color: var(--optico-navy); }
.optico-pill-btn.is-active {
    background: var(--optico-navy) !important; color: #FFFFFF !important;
    border-color: var(--optico-navy) !important; box-shadow: 0 4px 10px rgba(15, 41, 74, 0.2);
}

/* Checkbox List */
.optico-checkbox-wrap { display: flex; flex-direction: column; gap: 10px; }
.optico-checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #334155; cursor: pointer; }
.optico-checkbox-row input { cursor: pointer; width: 17px; height: 17px; accent-color: var(--optico-navy); }
.optico-checkbox-row.is-active { font-weight: 700; color: var(--optico-navy); }

.optico-products-loading { opacity: 0.45; pointer-events: none; transition: opacity 0.25s ease; }