.supported-models-hero {
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
}

.hero-stat-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
}

.data-note-alert {
    border-radius: 12px;
}

.operation-note-alert {
    border-radius: 10px;
    font-size: 0.9rem;
}

.supported-model-card {
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
}

.supported-model-card .device-model-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #121212;
    margin-bottom: 0.15rem;
}

.supported-model-card .device-brand-name {
    font-size: 0.92rem;
    color: #6c757d;
    font-weight: 600;
    margin: 0;
}

.device-icon-circle {
    background: linear-gradient(135deg, #4cae50 0%, #45a049 100%);
    box-shadow: 0 4px 15px rgba(76, 174, 80, 0.3);
}

.custom-op-dropdown {
    position: relative;
    width: 100%;
}

.custom-op-dropdown-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0.5rem 0.85rem;
    background: #fff;
    border: 1px solid rgba(76, 174, 80, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    gap: 0.6rem;
    font-size: 1rem;
    text-align: left;
    color: #334155;
    outline: none;
}

.custom-op-dropdown-trigger:hover {
    border-color: rgba(76, 174, 80, 0.45);
    background: #fafffe;
}

.custom-op-dropdown-trigger:focus,
.custom-op-dropdown.open .custom-op-dropdown-trigger {
    border-color: rgba(76, 174, 80, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(76, 174, 80, 0.13);
}

.op-trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(76, 174, 80, 0.1);
    color: #4cae50;
    font-size: 1rem;
    flex-shrink: 0;
}

.op-trigger-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.op-trigger-text.has-value {
    color: #1e293b;
    font-weight: 600;
}

.op-trigger-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.custom-op-dropdown.open .op-trigger-arrow {
    transform: rotate(180deg);
}

.custom-op-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    max-height: 0;
    overflow: hidden;
}

.custom-op-dropdown.open .custom-op-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 360px;
    overflow: visible;
}

.op-dropdown-search-wrap {
    position: relative;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.op-dropdown-search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.op-dropdown-search-input {
    width: 100%;
    padding: 0.5rem 0.65rem 0.5rem 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #334155;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.op-dropdown-search-input:focus {
    border-color: rgba(76, 174, 80, 0.4);
    box-shadow: 0 0 0 2px rgba(76, 174, 80, 0.08);
    background: #fff;
}

.op-dropdown-search-input::placeholder {
    color: #94a3b8;
}

.op-dropdown-options {
    max-height: 260px;
    overflow-y: auto;
    padding: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.op-dropdown-options::-webkit-scrollbar {
    width: 5px;
}

.op-dropdown-options::-webkit-scrollbar-track {
    background: transparent;
}

.op-dropdown-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}

.op-dropdown-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-size: 0.9rem;
    color: #475569;
    user-select: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    outline: none;
}

.op-dropdown-option:hover,
.op-dropdown-option:focus-visible {
    background: rgba(76, 174, 80, 0.07);
    color: #334155;
}

.op-dropdown-option.selected {
    background: rgba(76, 174, 80, 0.12);
    color: #4cae50;
    font-weight: 600;
}

.op-dropdown-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(76, 174, 80, 0.08);
    color: #4cae50;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.15s;
}

.op-dropdown-option.selected .op-dropdown-option-icon {
    background: rgba(76, 174, 80, 0.18);
}

.op-dropdown-option-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.op-dropdown-option-check {
    display: none;
    color: #4cae50;
    font-size: 1rem;
    flex-shrink: 0;
}

.op-dropdown-option.selected .op-dropdown-option-check {
    display: flex;
}

.op-dropdown-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.5rem 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.op-dropdown-empty i {
    font-size: 1.3rem;
}

.operation-badge {
    cursor: pointer;
    transition: all 0.25s ease;
}

.operation-badge:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 2px 8px rgba(76, 174, 80, 0.28);
}

.operation-list-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

.operation-text-item {
    display: inline-flex;
    align-items: center;
    color: #4cae50;
    background: rgba(76, 174, 80, 0.12);
    border: 1px solid rgba(76, 174, 80, 0.08);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.operation-text-item:hover {
    color: #3f9443;
    background: rgba(76, 174, 80, 0.18);
    opacity: 0.9;
    text-decoration: underline;
}

.more-features-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    background: rgba(76, 174, 80, 0.12);
    border: 1px solid rgba(76, 174, 80, 0.08);
    border-radius: 999px;
    color: #4cae50;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 0.5rem;
    padding: 0.2rem 0.55rem;
    text-decoration: none;
    box-shadow: none;
    transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.more-features-btn:hover,
.more-features-btn:focus {
    background: rgba(76, 174, 80, 0.18);
    border-color: rgba(76, 174, 80, 0.08);
    color: #3f9443;
    text-decoration: underline;
    box-shadow: none;
}

.version-modal-item {
    background: #f8f9fa;
    transition: all 0.2s;
}

.version-modal-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

#alphabetFilters .alphabet-filter-btn {
    min-width: 45px;
    min-height: 40px;
    font-weight: 600;
    font-size: 14px;
}

/* Keep non-active filter buttons outlined even when focused */
#supported-models .btn-outline-primary:not(.active):focus,
#supported-models .btn-outline-primary:not(.active):focus-visible {
    color: rgb(var(--primary-rgb)) !important;
    background-color: transparent !important;
    border-color: rgb(var(--primary-rgb)) !important;
    box-shadow: 0 0 0 0.15rem rgba(var(--primary-rgb), 0.15) !important;
}

/* Active state remains filled for selected filters */
#supported-models .btn-outline-primary.active,
#supported-models .btn-outline-primary:active {
    color: #fff !important;
    background-color: rgb(var(--primary-rgb)) !important;
    border-color: rgb(var(--primary-rgb)) !important;
}
